/* Home — elegant forest-green welcome */

.home-page {
	--gm-ink: #08160e;
	--gm-ink-soft: #122418;
	--gm-mist: #f2f5f2;
	--gm-leaf: #2f6a48;
	--gm-line: rgba(8, 22, 14, 0.14);
	--gm-ease: cubic-bezier(0.22, 1, 0.36, 1);
	color: var(--gm-ink);
	background:
		radial-gradient(ellipse 60% 50% at 85% 8%, rgba(47, 106, 72, 0.14), transparent 55%),
		radial-gradient(ellipse 45% 40% at 0% 30%, rgba(8, 22, 14, 0.05), transparent 50%),
		linear-gradient(180deg, #f8faf8 0%, var(--gm-mist) 45%, #e8efe9 100%);
}

.home-page .cd-main-content {
	overflow-x: hidden;
}

.home-shell {
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* —— Loader —— */
.home-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	background:
		radial-gradient(ellipse 70% 50% at 50% 40%, rgba(47, 106, 72, 0.14), transparent 60%),
		linear-gradient(165deg, #f7f9f7 0%, #eef3ef 55%, #e4ebe5 100%);
	transition: opacity 0.65s var(--gm-ease), visibility 0.65s var(--gm-ease);
}

.home-loader.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.home-loader__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.home-loader__ring {
	position: relative;
	width: 4.25rem;
	height: 4.25rem;
}

.home-loader__orbit {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(8, 22, 14, 0.12);
	border-top-color: var(--gm-leaf);
	border-right-color: rgba(47, 106, 72, 0.35);
	animation: homeLoaderSpin 1.1s linear infinite;
}

.home-loader__dot {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.45rem;
	height: 0.45rem;
	margin: -0.225rem 0 0 -0.225rem;
	border-radius: 50%;
	background: var(--gm-ink);
	box-shadow: 0 0 0 6px rgba(47, 106, 72, 0.12);
	animation: homeLoaderPulse 1.4s var(--gm-ease) infinite;
}

.home-loader__label {
	margin: 0.35rem 0 0;
	font-family: "Montserrat", sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gm-ink);
}

.home-loader__hint {
	margin: 0;
	font-family: "Lato", sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: rgba(8, 22, 14, 0.5);
	animation: homeLoaderFade 1.6s var(--gm-ease) infinite;
}

.home-page .animsition {
	opacity: 1 !important;
}

.home-page:not(.home-is-ready) .home-hero,
.home-page:not(.home-is-ready) .home-paths {
	opacity: 0;
}

.home-page.home-is-ready .home-hero,
.home-page.home-is-ready .home-paths {
	opacity: 1;
	transition: opacity 0.45s var(--gm-ease);
}

.home-page.home-is-ready .home-kicker,
.home-page.home-is-ready .home-brand,
.home-page.home-is-ready .home-lede,
.home-page.home-is-ready .home-cta,
.home-page.home-is-ready .home-hero__portrait {
	animation-play-state: running;
}

/* —— Hero —— */
.home-hero {
	padding: 7.25rem 0 3.5rem;
	min-height: min(88vh, 760px);
	display: flex;
	align-items: center;
}

.home-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem 3rem;
	align-items: center;
}

.home-hero__copy {
	min-width: 0;
}

.home-kicker {
	display: inline-block;
	margin: 0 0 0.85rem;
	font-family: "Lato", sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gm-leaf);
	opacity: 0;
	animation: homeReveal 0.9s var(--gm-ease) 0.05s both;
	animation-play-state: paused;
}

.home-brand {
	margin: 0 0 1.15rem;
	font-family: "Playball", Georgia, serif;
	font-weight: 400;
	font-size: clamp(2.85rem, 6vw, 4.4rem);
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--gm-ink);
	text-align: left;
	opacity: 0;
	animation: homeReveal 1s var(--gm-ease) 0.12s both;
	animation-play-state: paused;
}

.home-lede {
	margin: 0 0 1.75rem;
	max-width: none;
	font-family: "Lato", sans-serif;
	font-size: 1.08rem;
	line-height: 1.75;
	color: rgba(8, 22, 14, 0.76);
	opacity: 0;
	animation: homeReveal 1s var(--gm-ease) 0.22s both;
	animation-play-state: paused;
}

.home-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	opacity: 0;
	animation: homeReveal 1s var(--gm-ease) 0.32s both;
	animation-play-state: paused;
}

.home-cta__primary,
.home-cta__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 1.25rem;
	font-family: "Montserrat", sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.3s var(--gm-ease), color 0.3s var(--gm-ease), border-color 0.3s var(--gm-ease);
}

a.home-cta__primary,
.home-cta__primary {
	border: 1px solid var(--gm-ink);
	background: var(--gm-ink);
	color: #ffffff;
}

a.home-cta__primary:hover,
a.home-cta__primary:focus,
a.home-cta__primary:visited,
.home-cta__primary:hover {
	background: var(--gm-leaf);
	border-color: var(--gm-leaf);
	color: #ffffff;
	text-decoration: none;
}

.home-cta__secondary {
	border: 1px solid rgba(8, 22, 14, 0.28);
	background: transparent;
	color: var(--gm-ink);
}

.home-cta__secondary:hover {
	border-color: var(--gm-ink);
	color: var(--gm-ink);
	text-decoration: none;
}

/* Equal-width framed portrait */
.home-hero__portrait {
	position: relative;
	margin: 0;
	justify-self: center;
	width: min(100%, 280px);
	padding: 0.85rem;
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(236, 243, 238, 0.88));
	border: 1px solid rgba(47, 106, 72, 0.28);
	box-shadow:
		0 0 0 6px rgba(255, 255, 255, 0.55),
		0 0 0 7px rgba(47, 106, 72, 0.18),
		0 22px 48px rgba(8, 22, 14, 0.14);
	opacity: 0;
	animation: homePortraitIn 1.1s var(--gm-ease) 0.28s both;
	animation-play-state: paused;
}

.home-hero__frame {
	position: absolute;
	inset: 0.45rem;
	border: 1px solid rgba(47, 106, 72, 0.35);
	pointer-events: none;
	z-index: 2;
}

.home-hero__frame::before,
.home-hero__frame::after {
	content: "";
	position: absolute;
	width: 0.85rem;
	height: 0.85rem;
	border-color: var(--gm-leaf);
	border-style: solid;
}

.home-hero__frame::before {
	top: -1px;
	left: -1px;
	border-width: 2px 0 0 2px;
}

.home-hero__frame::after {
	right: -1px;
	bottom: -1px;
	border-width: 0 2px 2px 0;
}

.home-hero__portrait img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 264 / 354;
	object-fit: cover;
	filter: saturate(0.94) contrast(1.03);
}

.home-hero__caption {
	position: relative;
	z-index: 1;
	margin: 0.7rem 0 0.15rem;
	font-family: "Lato", sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: center;
	color: rgba(8, 22, 14, 0.55);
}

/* —— Other services: four elegant columns —— */
.home-paths {
	padding: 2.5rem 0 4.75rem;
	border-top: 1px solid var(--gm-line);
}

.home-section-head {
	margin-bottom: 2rem;
}

.home-section-head .home-kicker {
	animation: none;
	opacity: 1;
}

.home-section-head h2 {
	margin: 0 0 0.55rem;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gm-ink);
	text-align: left;
}

.home-section-head p {
	margin: 0;
	max-width: 34rem;
	font-family: "Lato", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(8, 22, 14, 0.62);
}

.home-path-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--gm-line);
	border-bottom: 1px solid var(--gm-line);
}

.home-path-grid > li {
	min-width: 0;
	border-right: 1px solid var(--gm-line);
}

.home-path-grid > li:last-child {
	border-right: 0;
}

.home-path-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	min-height: 16rem;
	padding: 1.45rem 1.1rem 1.3rem;
	text-decoration: none;
	color: inherit;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(244, 248, 245, 0.2));
	transition: background 0.35s var(--gm-ease), transform 0.35s var(--gm-ease);
}

.home-path-tile:hover,
.home-path-tile:focus {
	background:
		linear-gradient(180deg, rgba(47, 106, 72, 0.08), rgba(255, 255, 255, 0.45));
	text-decoration: none;
	color: inherit;
}

.home-path-index {
	display: block;
	margin-bottom: 1.35rem;
	font-family: "Playball", Georgia, serif;
	font-size: 2rem;
	line-height: 1;
	color: var(--gm-leaf);
}

.home-path-label {
	display: block;
	margin-bottom: 0.75rem;
	font-family: "Montserrat", sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gm-ink);
	line-height: 1.35;
}

.home-path-text {
	display: block;
	flex: 1;
	margin: 0 0 1.35rem;
	font-family: "Lato", sans-serif;
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(8, 22, 14, 0.68);
}

.home-path-go {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	font-family: "Lato", sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gm-leaf);
}

.home-path-go i {
	font-style: normal;
	transition: transform 0.3s var(--gm-ease);
}

.home-path-tile:hover .home-path-go i,
.home-path-tile:focus .home-path-go i {
	transform: translateX(4px);
}

/* —— Biography —— */
.home-bio {
	padding: 0 0 4.5rem;
}

.home-bio__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 2rem 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--gm-line);
}

.home-bio__intro h2 {
	margin: 0 0 1.15rem;
	font-family: "Playball", Georgia, serif;
	font-size: clamp(1.85rem, 3vw, 2.4rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--gm-ink);
	text-align: left;
}

.home-bio__hallmark {
	margin: 0;
	font-family: "Lato", sans-serif;
	font-size: 1.02rem;
	line-height: 1.7;
	color: rgba(8, 22, 14, 0.78);
}

.home-bio__body p {
	margin: 0 0 1.5rem;
	font-family: "Lato", sans-serif;
	font-size: 1.02rem;
	line-height: 1.75;
	color: rgba(8, 22, 14, 0.78);
}

.home-bio__facts {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.15rem;
}

.home-bio__facts > div {
	padding-top: 1rem;
	border-top: 1px solid var(--gm-line);
}

.home-bio__facts dt {
	margin: 0 0 0.35rem;
	font-family: "Lato", sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gm-leaf);
}

.home-bio__facts dd {
	margin: 0;
	font-family: "Lato", sans-serif;
	font-size: 0.98rem;
	line-height: 1.6;
	color: rgba(8, 22, 14, 0.78);
}

/* —— Café note —— */
.home-cafe {
	padding: 0 0 5rem;
}

.home-cafe__inner {
	padding: 2.5rem 0 0;
	border-top: 1px solid var(--gm-line);
	max-width: 36rem;
}

.home-cafe h2 {
	margin: 0 0 0.85rem;
	font-family: "Playball", Georgia, serif;
	font-size: clamp(1.85rem, 3vw, 2.35rem);
	font-weight: 400;
	color: var(--gm-ink);
	text-align: left;
}

.home-cafe p {
	margin: 0 0 1.35rem;
	font-family: "Lato", sans-serif;
	font-size: 1.05rem;
	line-height: 1.75;
	color: rgba(8, 22, 14, 0.72);
}

@keyframes homeReveal {
	from {
		opacity: 0;
		transform: translateY(18px);
		filter: blur(2px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

@keyframes homePortraitIn {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes homeLoaderSpin {
	to { transform: rotate(360deg); }
}

@keyframes homeLoaderPulse {
	0%, 100% { transform: scale(1); opacity: 0.85; }
	50% { transform: scale(1.35); opacity: 1; }
}

@keyframes homeLoaderFade {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 0.9; }
}

@media (max-width: 1100px) {
	.home-path-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-path-grid > li:nth-child(3n) {
		border-right: 0;
	}

	.home-path-grid > li:nth-child(n+4) {
		border-top: 1px solid var(--gm-line);
	}

	.home-path-grid > li:last-child {
		border-right: 0;
	}
}

@media (max-width: 860px) {
	.home-hero {
		min-height: auto;
		padding: 6.75rem 0 2.75rem;
	}

	.home-hero__layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.home-hero__portrait {
		justify-self: center;
		width: min(100%, 220px);
		order: -1;
	}

	.home-hero__portrait img {
		width: 100%;
	}

	.home-path-grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-path-grid > li {
		border-right: 1px solid var(--gm-line);
		border-top: 0;
		border-bottom: 1px solid var(--gm-line);
	}

	.home-path-grid > li:nth-child(2n) {
		border-right: 0;
	}

	.home-path-grid > li:nth-child(3n) {
		border-right: 1px solid var(--gm-line);
	}

	.home-path-grid > li:nth-child(n+4) {
		border-top: 0;
	}

	.home-path-grid > li:last-child:nth-child(odd) {
		border-right: 0;
		grid-column: 1 / -1;
	}

	.home-path-grid > li:nth-last-child(-n+2) {
		border-bottom: 0;
	}

	.home-path-grid > li:nth-last-child(2):nth-child(odd) {
		border-bottom: 1px solid var(--gm-line);
	}

	.home-path-tile {
		min-height: 14rem;
	}

	.home-bio__layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 560px) {
	.home-path-grid {
		grid-template-columns: 1fr;
	}

	.home-path-grid > li {
		border-right: 0;
		border-bottom: 1px solid var(--gm-line);
	}

	.home-path-grid > li:last-child {
		border-bottom: 0;
	}

	.home-path-tile {
		min-height: 0;
		padding: 1.35rem 1.1rem 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-loader__orbit,
	.home-loader__dot,
	.home-loader__hint,
	.home-kicker,
	.home-brand,
	.home-lede,
	.home-cta,
	.home-hero__portrait {
		animation: none !important;
		opacity: 1;
		transform: none;
		filter: none;
	}

	.home-page:not(.home-is-ready) .home-hero,
	.home-page:not(.home-is-ready) .home-paths {
		opacity: 1;
	}
}
