	/* ==========================================================================
   Homepage
   Tokens follow the existing about / philosophy pattern: scoped to
   body.nd-homepage, aliasing Astra global colour slots so the Customizer
   remains the source of truth, with fallbacks for missing variables.
   ========================================================================== */

body.nd-homepage {
	--hp-bg:           var(--ast-global-color-4, #f6f5ee);
	--hp-bg-alt:       #ffffff;
	--hp-bg-mint:      #e9eef0;
	--hp-card:         var(--ast-global-color-5, #ffffff);
	--hp-ink:          var(--ast-global-color-2, #20201a);
	--hp-ink-soft:     var(--ast-global-color-3, #4f4f45);
	--hp-muted:        var(--ast-global-color-3, #8a8a7e);
	--hp-line:         var(--ast-global-color-6, #e7e6dd);

	--hp-accent:       var(--ast-global-color-0, #559da4);
	--hp-accent-hover: var(--ast-global-color-1, #437f86);
	--hp-accent-soft:  rgba(85, 157, 164, 0.10);
	--hp-on-accent:    var(--ast-global-color-5, #ffffff);

	--hp-radius:    18px;
	--hp-radius-sm: 10px;
	--hp-pill:      999px;
	--hp-maxw:      1160px;
	--hp-readw:     680px;

	--hp-hero-bg: #2f3a3c;
	--hp-section-pad: clamp(3rem, 7vw, 6rem);
	--hp-side-pad: clamp(1.25rem, 4vw, 2.5rem);

	background: var(--hp-bg);
	color: var(--hp-ink);
}

/* ==========================================================================
   Page shell
   ========================================================================== */

.homepage {
	position: relative;
}

/* ==========================================================================
   Shared building blocks: buttons and eyebrows
   ========================================================================== */

.hp-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1.4rem;
	border: 1px solid transparent;
	border-radius: var(--hp-pill);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hp-btn svg {
	width: 1rem;
	height: 1rem;
}

.hp-btn:active {
	transform: translateY(1px);
}

.hp-btn--primary {
	background: #559da4;
	color: var(--hp-on-accent);
}

.hp-btn--primary:hover {
	background: var(--hp-accent-hover);
	color: var(--hp-on-accent);
}

.hp-btn--ghost {
	background: transparent;
	border-color: var(--hp-accent);
	color: var(--hp-accent);
}

.hp-btn--ghost:hover {
	background: var(--hp-accent);
	color: var(--hp-on-accent);
}

.hp-btn--on-accent {
	background: var(--hp-on-accent);
	color: var(--hp-accent-hover);
}

.hp-btn--on-accent:hover {
	background: var(--hp-ink);
	color: var(--hp-on-accent);
}

.hp-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Eyebrow used across sections. */
[class$="__eyebrow"] {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hp-accent);
}

/* Serif italic accent inside any homepage heading. */
.homepage h1 em,
.homepage h2 em,
.homepage h3 em {
	font-style: italic;
	font-weight: 400;
}

/* ==========================================================================
   Section 2: Bio teaser
   ========================================================================== */

.hp-bio {
	background: var(--hp-bg-alt);
	padding: var(--hp-section-pad) var(--hp-side-pad);
}

.hp-bio__inner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	max-width: var(--hp-maxw);
	margin: 0 auto;
}

.hp-bio__media {
	position: relative;
}

.hp-bio__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hp-radius);
	box-shadow: 0 30px 60px -36px rgba(31, 58, 60, 0.4);
}

.hp-bio__media::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 1px dashed var(--hp-accent);
	border-radius: var(--hp-radius);
	z-index: -1;
	opacity: 0.6;
}

.hp-bio__eyebrow {
	margin: 0 0 0.85rem;
}

.hp-bio__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.6rem, 3vw, 2.5rem);
	line-height: 1.15;
	color: var(--hp-ink);
}

.hp-bio__body {
	color: var(--hp-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.75;
	margin-bottom: 1.75rem;
}

.hp-bio__body p {
	margin: 0 0 1rem;
}

.hp-bio__body p:last-child {
	margin-bottom: 0;
}

.hp-bio__actions {
	margin: 0;
}

/* ==========================================================================
   Section 3: Services
   ========================================================================== */

.hp-services {
	background: var(--hp-bg);
	padding: var(--hp-section-pad) var(--hp-side-pad);
}

.hp-services__inner {
	max-width: var(--hp-maxw);
	margin: 0 auto;
}

.hp-services__head {
	max-width: var(--hp-readw);
	margin: 0 auto clamp(2rem, 4vw, 3.5rem);
	text-align: center;
}

.hp-services__eyebrow {
	margin: 0 0 0.75rem;
}

.hp-services__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	line-height: 1.15;
	color: var(--hp-ink);
}

.hp-services__intro {
	color: var(--hp-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.hp-services__intro p {
	margin: 0;
}

/* ---- Grid ---------------------------------------------------------------- */

.hp-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	padding: 0;
	list-style: none;
}

.hp-services__more {
	margin: 0;
	text-align: center;
}

/* ---- Card ---------------------------------------------------------------- */

.hp-service-card {
	background: var(--hp-card);
	border-radius: var(--hp-radius);
	overflow: hidden;
	box-shadow: 0 24px 50px -36px rgba(31, 58, 60, 0.3);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 60px -32px rgba(31, 58, 60, 0.35);
}

.hp-service-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.hp-service-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--hp-line);
}

.hp-service-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hp-service-card:hover .hp-service-card__image {
	transform: scale(1.04);
}

.hp-service-card__body {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}

.hp-service-card__number {
	display: block;
	margin-bottom: 0.6rem;
	color: var(--hp-accent);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.hp-service-card__title {
	margin: 0 0 0.6rem;
	font-size: 1.2rem;
	line-height: 1.25;
	color: var(--hp-ink);
}

.hp-service-card__excerpt {
	margin: 0 0 1.25rem;
	color: var(--hp-ink-soft);
	font-size: 0.95rem;
	line-height: 1.6;
	flex: 1;
}

.hp-service-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--hp-accent);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.hp-service-card__more svg {
	width: 0.9rem;
	height: 0.9rem;
	transition: transform 0.2s ease;
}

.hp-service-card:hover .hp-service-card__more svg {
	transform: translateX(3px);
}

.hp-service-card__link:focus-visible {
	outline: 2px solid var(--hp-accent);
	outline-offset: 4px;
}

/* ==========================================================================
   Section 4: Magazine
   ========================================================================== */

.hp-magazine {
	background: var(--hp-bg-alt);
	padding: var(--hp-section-pad) var(--hp-side-pad);
}

.hp-magazine__inner {
	max-width: var(--hp-maxw);
	margin: 0 auto;
}

.hp-magazine__head {
	max-width: var(--hp-readw);
	margin: 0 auto clamp(2rem, 4vw, 3.5rem);
	text-align: center;
}

.hp-magazine__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	line-height: 1.15;
	color: var(--hp-ink);
}

.hp-magazine__subtitle {
	margin: 0;
	color: var(--hp-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.hp-magazine__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	padding: 0;
	list-style: none;
}

.hp-magazine__more {
	margin: 0;
	text-align: center;
}

/* ---- Post card ----------------------------------------------------------- */

.hp-post-card {
	display: flex;
}

.hp-post-card__inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: 100%;
}

.hp-post-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--hp-radius);
	background: var(--hp-line);
}

.hp-post-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hp-post-card:hover .hp-post-card__image {
	transform: scale(1.03);
}

.hp-post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--hp-line), var(--hp-accent-soft));
}

.hp-post-card__body {
	display: flex;
	flex-direction: column;
}

.hp-post-card__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hp-post-card__eyebrow a {
	color: var(--hp-accent);
	text-decoration: none;
}

.hp-post-card__eyebrow a:hover {
	color: var(--hp-accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hp-post-card__title {
	margin: 0 0 0.65rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.hp-post-card__title a {
	color: var(--hp-ink);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.3s ease;
}

.hp-post-card__title a:hover {
	background-size: 100% 1px;
}

.hp-post-card__excerpt {
	margin: 0 0 0.85rem;
	color: var(--hp-ink-soft);
	font-size: 0.95rem;
	line-height: 1.6;
}

.hp-post-card__more {
	margin: 0;
}

.hp-post-card__more-link {
	color: var(--hp-accent);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hp-post-card__more-link:hover {
	color: var(--hp-accent-hover);
}

/* ==========================================================================
   Section 5: Closing CTA
   ========================================================================== */

.hp-cta {
	padding: var(--hp-section-pad) var(--hp-side-pad);
	background: #559da4;
	color: var(--hp-on-accent);
}

.hp-cta__inner {
	max-width: var(--hp-readw);
	margin: 0 auto;
	text-align: center;
}

.hp-cta__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.2;
	color: var(--hp-on-accent);
}

.hp-cta__text {
	margin: 0 0 1.75rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	opacity: 0.95;
}

.hp-cta__actions {
	margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
	.hp-bio__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hp-bio__media {
		max-width: 360px;
		margin: 0 auto;
	}

	.hp-bio__media::before {
		display: none;
	}
}
