/* Hero: full-bleed carousel with side navigation */
.hero--full {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
}

.hero__carousel {
	position: relative;
	width: 100%;
	min-height: min(88vh, 46rem);
	overflow: hidden;
}

.hero__carousel-track {
	/* Deliberately not positioned: .hero__carousel (min-height, definite
	   rendered height) is the containing block .hero__slide (inset: 0)
	   resolves against. A position:relative track with height:100% would
	   sit between them and collapse to 0, since percentage-height on a
	   normal-flow box needs the parent's *height* property itself
	   specified, and min-height doesn't count for that resolution. */
	width: 100%;
}

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.9s ease;
}

.hero__slide.is-active {
	opacity: 1;
}

.hero__slide--photo {
	background-size: cover;
	background-position: center;
}

@media (prefers-reduced-motion: reduce) {
	.hero__slide {
		transition: none;
	}
}

.hero__slide--1 {
	background: linear-gradient(155deg, #f4f4f2 0%, #e2e3e1 55%, #dadad8 100%);
}

.hero__slide--2 {
	background: linear-gradient(200deg, #f4f4f2 0%, #eeeeec 45%, #c8c6c5 100%);
}

.hero__slide--3 {
	background: linear-gradient(115deg, #f9f9f7 0%, #e5e2e1 50%, #dadad8 100%);
}

/* Dark bottom scrim so overlaid white text stays legible over any slide,
   photo or on-palette gradient. */
.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(26, 26, 26, 0.45) 0%,
		rgba(26, 26, 26, 0.05) 20%,
		rgba(26, 26, 26, 0.35) 55%,
		rgba(26, 26, 26, 0.8) 100%
	);
	pointer-events: none;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 4rem;
	pointer-events: none;
}

.hero__overlay > * {
	pointer-events: auto;
}

/* The overlay (heading/description/buttons) now lives inside each
   crossfading .hero__slide rather than as one shared block outside the
   carousel, so an inactive slide's buttons need to stop being
   clickable/focusable while faded to opacity:0 underneath the active one. */
.hero__slide:not(.is-active) .hero__overlay > * {
	pointer-events: none;
}

.hero__overlay h1 {
	color: var(--surface);
	max-width: 16ch;
	margin-bottom: 1.25rem;
}

.hero__overlay .hero__subtext {
	font-size: 1.125rem;
	line-height: 1.7;
	color: color-mix(in srgb, var(--surface) 85%, transparent);
	max-width: 36ch;
	margin-bottom: 2rem;
}

.hero__overlay .hero__actions {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.text-link--on-dark {
	color: var(--surface);
	border-color: var(--surface);
}

.text-link--on-dark:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* Empty state (no slides): same overlay treatment over a static placeholder */
.hero__carousel--empty {
	display: flex;
}

.hero__carousel--empty .hero__overlay {
	position: relative;
}

.hero__carousel--empty .hero__overlay h1,
.hero__carousel--empty .hero__overlay .hero__subtext {
	color: var(--ink);
}

.hero__carousel--empty .hero__overlay .hero__subtext {
	color: var(--ink-muted);
}

/* Side arrow navigation */
.hero__carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--surface) 20%, transparent);
	border: 1px solid color-mix(in srgb, var(--surface) 50%, transparent);
	color: var(--surface);
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: border-color 0.3s ease, background-color 0.3s ease;
}

.hero__carousel-btn:hover {
	border-color: var(--accent);
	background: color-mix(in srgb, var(--surface) 30%, transparent);
}

.hero__carousel-btn--prev {
	left: var(--space-mobile);
}

.hero__carousel-btn--next {
	right: var(--space-mobile);
}

@media (min-width: 900px) {
	.hero__carousel-btn--prev {
		left: var(--space-lg);
	}

	.hero__carousel-btn--next {
		right: var(--space-lg);
	}
}

.hero__carousel-dots {
	position: absolute;
	bottom: 1.75rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 0.5rem;
}

.hero__carousel-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero__carousel-dot.is-active {
	background: var(--accent);
	border-color: var(--accent);
}

/* Offering (asymmetric bento — not three identical cards) */
.offering__intro {
	max-width: 48rem;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.offering__intro h2 {
	margin: 0;
}

/* .offering__grid and .offering__stack are core Columns/Column blocks now:
   the split width and side-by-side placement come from the block's own
   flex-basis, not CSS Grid — only gap/stacking needs overriding here. */
.offering__grid.wp-block-columns {
	gap: var(--space-md);
}

.offering__stack {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.offering__card {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	position: relative;
}

.offering__card--lead {
	justify-content: space-between;
}

.offering__number {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	color: var(--border-strong);
	margin-bottom: 1.5rem;
	transition: color 0.3s ease;
}

.offering__card:hover .offering__number {
	color: var(--accent);
}

.offering__card h3 {
	margin-bottom: 0.75rem;
}

.offering__card p {
	color: var(--ink-muted);
	line-height: 1.6;
}

.icon-wrap {
	margin-top: 1.5rem;
	color: var(--ink);
}

/* Philosophy (single zigzag split) */
.philosophy {
	background: var(--bg);
}

/* .philosophy__grid is a core Columns block now: equal-width split and
   side-by-side placement come from the block itself, just vertical
   centering + gap need overriding here. */
.philosophy__grid.wp-block-columns {
	align-items: center;
	gap: 3rem;
}

@media (min-width: 900px) {
	.philosophy__grid.wp-block-columns {
		gap: 5rem;
	}
}

.philosophy__media-wrap {
	position: relative;
}

.philosophy__media {
	aspect-ratio: 3 / 4;
}

.philosophy__frame {
	position: absolute;
	top: 2rem;
	right: -1.5rem;
	width: 70%;
	height: 80%;
	border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
	z-index: -1;
	transform: translate(3rem, 3rem);
}

.philosophy__rule {
	width: 4rem;
	height: 1px;
	background: var(--accent);
	margin-block: 1.5rem;
}

.philosophy__lead {
	color: var(--ink-muted);
	line-height: 1.7;
	max-width: 34ch;
	margin-bottom: 1.5rem;
}

.philosophy__quote {
	font-family: var(--font-body);
	font-style: italic;
	color: var(--ink-muted);
	opacity: 0.85;
	max-width: 30ch;
	margin-bottom: 2rem;
}

/* Archive gallery (bento, distinct layout family from offering) */
.archive-gallery {
	background: var(--surface-sunken);
}

.archive-gallery__heading {
	text-align: center;
	max-width: 40rem;
	margin-inline: auto;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* CTA */
.cta {
	text-align: center;
	border-top: 1px solid var(--border);
}

.cta__inner {
	max-width: 40rem;
}

.cta p {
	color: var(--ink-muted);
	margin-block: 1.5rem;
	margin-inline: auto;
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin-top: 1rem;
}
