/* =========================================================================
   Home page, ported from Theme B v2 (sections 6–17, the 23b overrides that
   touch this page, and the reveal / reduced-motion rules).
   Logical properties only. Loaded on the front page and in the editor.
   ========================================================================= */

:root {
	--section-y: clamp(4rem, 8.1vw, 7.2rem);
	--cut: 0px;
	--gold-bright: #e8c66a;
	--gold-shine: linear-gradient(180deg, #fff3c4 0%, #f4d57e 36%, #d9ae45 60%, #f7de90 100%);
	--grad-end: 90deg;
	--mq-dir: -1;
}

[dir="rtl"] {
	--grad-end: 270deg;
	--mq-dir: 1;
}

/* Section rhythm is 10% tighter from 768px. Phones keep the previous clamp. */
@media (max-width: 767px) {
	:root {
		--section-y: clamp(4rem, 9vw, 8rem);
	}
}

/* ---------- Shared pieces the home sections use ---------- */
.home > *,
.home .home-content > * {
	margin-block-start: 0;
}

/*
 * Query loops are lists. The design spaces them with gap, so the list items
 * themselves stay flush. Other home blocks keep the margins written below.
 */
.home .wp-block-post-template > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.hero p,
.benefits-section p,
.facts p,
.programme-cards p,
.levels-section p,
.news-section p,
.sabela p,
.quote-band p,
.stories-section p,
.gallery-section p,
.partners-section p,
.join-band p,
.hero h1,
.hero h2,
.benefits-section h2,
.benefits-section h3,
.programme-cards h2,
.programme-cards h3,
.levels-section h2,
.news-section h2,
.news-section h3,
.sabela h2,
.stories-section h2,
.stories-section h3,
.gallery-section h2,
.gallery-section h3,
.join-band h2,
.hero figure,
.programme-cards figure,
.sabela figure,
.quote-band figure,
.news-section figure,
.stories-section figure,
.gallery-section figure {
	margin-block: 0;
}

.hero ul,
.benefits-section ul,
.facts ul,
.programme-cards ul,
.news-section ul,
.stories-section ul,
.gallery-section ul,
.partners-section ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.h2 {
	font-size: var(--fs-h2);
	line-height: 1.2;
	font-weight: 800;
}

.icon--flip {
	transform: scaleX(-1);
}

[dir="rtl"] .icon--dir {
	transform: scaleX(-1);
}

[dir="rtl"] .icon--dir.icon--flip {
	transform: none;
}

.btn--lg {
	min-height: 56px;
	padding: 0.9rem 2rem;
	font-size: 1.0625rem;
}

@media (min-width: 768px) {
	.btn--lg {
		min-height: 50px;
		padding: 0.8rem 1.8rem;
		font-size: 0.95625rem;
	}
}

.btn--outline {
	border-color: rgba(255, 255, 255, 0.85);
	color: var(--white);
	background: rgba(255, 255, 255, 0.06);
}

.btn--outline:hover {
	background: var(--white);
	color: var(--night);
}

.btn--light {
	background: var(--white);
	color: var(--hya-green-ink);
}

.btn--light:hover {
	background: var(--mist);
	color: var(--hya-green-deep);
}

.hero__cta .wp-block-button__link {
	min-height: 56px;
	padding: 0.9rem 2rem;
	border: 2px solid transparent;
	font-size: 1.0625rem;
	box-shadow: none;
}

.hero__cta .btn--green .wp-block-button__link {
	background: var(--hya-green-ink);
	color: var(--white);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.hero__cta .btn--green .wp-block-button__link:hover {
	background: var(--hya-green-deep);
	color: var(--white);
}

.hero__cta .btn--outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.85);
	color: var(--white);
	background: rgba(255, 255, 255, 0.06);
}

.hero__cta .btn--outline .wp-block-button__link:hover {
	background: var(--white);
	color: var(--night);
}

.sabela .btn--light .wp-block-button__link {
	background: var(--white);
	color: var(--hya-green-ink);
	border: 2px solid transparent;
}

.sabela .btn--light .wp-block-button__link:hover {
	background: var(--mist);
	color: var(--hya-green-deep);
}

/* The join band is white, so its light button is filled dark green. */
.join-band .btn--light .wp-block-button__link {
	background: var(--night);
	color: var(--white);
	border: 2px solid transparent;
}

.join-band .btn--light .wp-block-button__link:hover {
	background: var(--night-2);
	color: var(--white);
}

.join-band .btn--lg .wp-block-button__link {
	min-height: 56px;
	padding: 0.9rem 2rem;
	font-size: 1.0625rem;
}

.hero__cta .wp-block-button,
.join-band .wp-block-button,
.sabela .wp-block-button {
	width: auto;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem;
	border-radius: var(--r-pill);
	font: 600 0.9rem / 1.4 var(--font-body);
	text-decoration: none;
	margin: 0;
}

.chip--glass {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--white);
	backdrop-filter: blur(6px);
}

.chips,
.chips.wp-block-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--hya-green-ink);
	white-space: nowrap;
}

.link-arrow .icon {
	transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon {
	transform: translateX(4px);
}

[dir="rtl"] .link-arrow:hover .icon {
	transform: scaleX(-1) translateX(4px);
}

.section-head--dark .link-arrow,
.section--night .link-arrow {
	color: var(--white);
}

.section-head__link {
	margin: 0;
}

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid var(--hya-green-ink);
	background: var(--white);
	color: var(--hya-green-ink);
	padding: 0;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.round-btn:hover {
	background: var(--hya-green-ink);
	color: var(--white);
}

.round-btn--light {
	border-color: rgba(255, 255, 255, 0.8);
	background: transparent;
	color: var(--white);
}

.round-btn--light:hover {
	background: var(--white);
	color: var(--hya-green-ink);
}

.star {
	width: 1em;
	height: 1em;
	fill: var(--hya-gold);
	flex: none;
}

.hero,
.facts,
.section--night,
.sabela,
.lv-panel,
.gallery-section {
	--focus: var(--white);
}

/* ---------- 6. Hero ---------- */
.hero {
	position: relative;
	z-index: 2;
	display: grid;
	align-items: end;
	min-height: 100svh;
	color: var(--white);
	isolation: isolate;
	overflow: hidden;
	padding-block: 9rem calc(var(--cut) + clamp(3rem, 5.4vw, 4.5rem));
	background: var(--night);
}

@media (min-width: 768px) {
	.hero {
		padding-block-start: 8.1rem;
	}
}

.hero__media {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: -2;
	height: 100%;
}

.hero__media img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 62% 50%;
	filter: brightness(1.16) saturate(1.06);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(0deg, rgba(10, 61, 2, 0.78) 0%, rgba(10, 61, 2, 0.3) 42%, rgba(10, 61, 2, 0) 72%),
		linear-gradient(var(--grad-end), rgba(10, 61, 2, 0.38), rgba(10, 61, 2, 0) 58%);
	pointer-events: none;
}

.hero__inner {
	display: grid;
	justify-items: start;
	gap: 1.25rem;
}

.hero__title {
	/* 1.5 keeps the tanween on «معاً» clear of the next line at 1280, 1366 and 375. */
	font: 900 var(--fs-h1) / 1.5 var(--font-display);
	max-width: 11em;
	color: var(--white);
	text-wrap: balance;
}

.hero__lead {
	max-width: 40rem;
	font-size: clamp(1rem, 1.25vw, 1.15rem);
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.88);
	text-align: justify;
	text-justify: inter-word;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 0.75rem;
}

.hero-seal {
	position: absolute;
	z-index: 1;
	inset-inline-end: var(--gutter);
	inset-block-start: 7.5rem;
	margin: 0;
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 0.15rem;
	width: 7.5rem;
	aspect-ratio: 1;
	border-radius: 50%;
	color: var(--white);
	text-align: center;
	background: rgba(10, 61, 2, 0.6);
	border: 2px solid var(--gold-bright);
	box-shadow: inset 0 0 0 5px rgba(10, 61, 2, 0.6), inset 0 0 0 6px rgba(232, 198, 106, 0.55);
	backdrop-filter: blur(6px);
}

.hero-seal__name {
	font: 600 0.62rem / 1.3 var(--font-body);
	max-width: 5.5rem;
	opacity: 0.92;
}

.hero-seal__from,
.hero-seal__go {
	font: 700 0.8rem / 1.2 var(--font-display);
}

.hero-seal__year {
	font: 900 1.8rem / 1 var(--font-display);
	background: var(--gold-shine);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 10px rgba(244, 213, 126, 0.22));
}

.scroll-cue {
	position: absolute;
	inset-inline-end: var(--gutter);
	inset-block-end: calc(var(--cut) + 1.25rem);
	display: none;
	width: 28px;
	height: 48px;
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 16px;
}

.scroll-cue span {
	position: absolute;
	inset-inline-start: 50%;
	inset-block-start: 8px;
	width: 4px;
	height: 8px;
	margin-inline-start: -2px;
	background: var(--white);
	border-radius: 4px;
	animation: hya-cue 1.8s var(--ease) infinite;
}

@keyframes hya-cue {
	0% {
		opacity: 0;
		transform: translateY(0);
	}

	30% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translateY(16px);
	}
}

@media (min-width: 768px) {
	.scroll-cue {
		display: block;
	}
}

@media (min-width: 900px) {
	.hero-seal {
		inset-block-start: auto;
		inset-block-end: clamp(3rem, 6vw, 5rem);
		width: 11.5rem;
		gap: 0.3rem;
	}

	.hero-seal__name {
		font-size: 0.8rem;
		max-width: 8rem;
	}

	.hero-seal__from,
	.hero-seal__go {
		font-size: 1.05rem;
	}

	.hero-seal__year {
		font-size: 3rem;
	}

	.scroll-cue {
		inset-inline-end: 50%;
	}
}

/* ---------- 7. Sections ---------- */
.section {
	padding-block: var(--section-y);
	overflow-x: clip;
}

.section--white {
	background: var(--white);
}

.section--mist {
	background: var(--mist);
}

.section--night {
	background: var(--night);
	color: var(--white);
}

/* The gallery band is light, not dark green (client edits v4). Saved home pages
   still carry section--night, so the override lives here. */
.gallery-section.section--night {
	--focus: var(--hya-green-ink);
	background: var(--mist);
	color: var(--ink);
}

.gallery-section .section-head--dark .link-arrow {
	color: var(--hya-green-ink);
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-block-end: clamp(2rem, 3.6vw, 3.15rem);
}

.section-head--rail {
	align-items: center;
}

.section-head .h2,
.section--night .h2,
.on-dark {
	color: inherit;
}

.section-head--dark .h2,
.section--night .h2 {
	color: var(--white);
}

.gallery-section .section-head--dark .h2 {
	color: var(--night);
}

.rail-nav {
	display: flex;
	gap: 0.6rem;
}

/* ---------- 7b. Benefits («ماذا تكسب؟», client edits v6) ----------
   A white band between the hero and the facts, so the two dark greens no longer
   run together. Cards are outlined and fill green on hover. */
.benefits__head {
	display: grid;
	justify-items: center;
	gap: 0.85rem;
	max-width: 46rem;
	margin: 0 auto clamp(2.25rem, 4vw, 3.5rem);
	text-align: center;
}

.benefits__kicker {
	font: 700 clamp(1rem, 1.3vw, 1.15rem) / 1.4 var(--font-display);
	letter-spacing: 0.06em;
	color: var(--gold-ink);
}

.benefits-section .h2 {
	color: var(--night);
	text-wrap: balance;
}

.benefits__lead {
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	color: var(--ink-soft);
}

.benefits__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

.benefit {
	display: grid;
	align-content: start;
	gap: 0.75rem;
	padding: clamp(1.5rem, 2.6vw, 2.1rem);
	border: 1.5px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--white);
	color: var(--ink);
}

.benefit__icon {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-block-end: 0.5rem;
	border-radius: var(--r-md);
	background: var(--mist);
	color: var(--hya-green-ink);
}

.benefit__icon .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.benefit__title {
	font: 800 var(--fs-h3) / 1.4 var(--font-display);
	color: var(--night);
}

.benefit__text {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--ink-soft);
}

/* All cards start outlined; the one under the pointer fills dark green
   (client edits v7). The reveal transition is repeated here because
   `.js .reveal` would otherwise override the colour fade. */
.benefit,
.benefit__icon,
.benefit__title,
.benefit__text {
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.js .benefit.reveal {
	transition:
		opacity 0.5s var(--ease) calc(var(--i, 0) * 80ms),
		transform 0.5s var(--ease) calc(var(--i, 0) * 80ms),
		background-color 0.25s var(--ease),
		border-color 0.25s var(--ease);
}

@media (hover: hover) {
	.benefit:hover {
		border-color: var(--night);
		background: var(--night);
		color: var(--white);
	}

	.benefit:hover .benefit__icon {
		background: rgba(232, 198, 106, 0.16);
		color: var(--gold-bright);
	}

	.benefit:hover .benefit__title {
		color: var(--white);
	}

	.benefit:hover .benefit__text {
		color: rgba(255, 255, 255, 0.85);
	}
}

@media (min-width: 600px) {
	.benefits__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.benefits__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- 8. Facts ---------- */
.facts {
	background: var(--night);
	color: var(--white);
	padding-block: clamp(2.5rem, 4.5vw, 4.05rem) clamp(3.5rem, 6.3vw, 5.4rem);
}

.facts__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 1.25rem;
}

.fact {
	border-inline-start: 2px solid rgba(180, 151, 89, 0.5);
	padding-inline-start: 1rem;
}

.fact__num {
	font: 900 clamp(2rem, 3.24vw, 2.79rem) / 1 var(--font-display);
	margin: 0 0 0.6rem;
	unicode-bidi: isolate;
	background: var(--gold-shine);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 10px rgba(244, 213, 126, 0.22));
}

.fact__label {
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--fs-sm);
	line-height: 1.7;
}

.nb {
	white-space: nowrap;
}

@media (min-width: 768px) {
	.facts__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.facts__list {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

/* ---------- 9. Programmes ---------- */
.rail {
	display: flex;
	gap: 1rem;
	padding-block-end: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.rail::-webkit-scrollbar {
	display: none;
}

.rail__item {
	flex: 0 0 min(78vw, 320px);
	scroll-snap-align: start;
	margin: 0;
}

.pcard {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--r-lg);
	overflow: hidden;
	color: var(--white);
	isolation: isolate;
	text-decoration: none;
	background: var(--night);
}

.pcard .wp-block-image {
	position: absolute;
	inset: 0;
	height: 100%;
	z-index: -2;
}

.pcard img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.pcard::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(10, 61, 2, 0.5) 0%, rgba(10, 61, 2, 0) 32%, rgba(10, 61, 2, 0.94) 100%);
	pointer-events: none;
}

.pcard:hover img {
	transform: scale(1.06);
}

.pcard__num {
	position: absolute;
	inset-block-start: 0.75rem;
	inset-inline-start: 1.25rem;
	font: 900 clamp(3.5rem, 4.5vw, 4.5rem) / 1 var(--font-display);
	color: transparent;
	-webkit-text-stroke: 2px var(--white);
	margin: 0;
}

.pcard__body {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	display: block;
	padding: 1.25rem 1.25rem 1.5rem;
}

.pcard__title {
	font: 800 1.2rem / 1.35 var(--font-display);
	color: var(--white);
}

.pcard__title a {
	color: var(--white);
	text-decoration: none;
}

.pcard__title a.stretched::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pcard__goal {
	display: grid;
	grid-template-rows: 1fr;
	margin-block-start: 0.6rem;
	font-size: var(--fs-sm);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.92);
}

.pcard__goal > span {
	overflow: hidden;
}

@media (hover: hover) {
	.pcard__goal {
		grid-template-rows: 0fr;
		opacity: 0;
		transition: grid-template-rows 0.45s var(--ease), opacity 0.45s;
	}

	.pcard:hover .pcard__goal,
	.pcard:focus-within .pcard__goal {
		grid-template-rows: 1fr;
		opacity: 1;
	}
}

/* One row from a 1200px viewport, so a 1280px office monitor fits all five at 100% zoom. */
@media (min-width: 1200px) {
	.rail {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 1.125rem;
		overflow: visible;
		padding-block-end: 0;
	}

	.rail__item {
		flex: none;
	}

	.rail__item:nth-child(1),
	.rail__item:nth-child(5) {
		margin-block-start: 3.6rem;
	}

	.rail__item:nth-child(2),
	.rail__item:nth-child(4) {
		margin-block-start: 1.8rem;
	}

	.pcard__title {
		font-size: 1.08rem;
	}

	.rail-nav {
		display: none;
	}
}

/* ---------- 10. Levels ---------- */
.levels {
	max-width: 1000px;
	margin-inline: auto;
}

.lv-tabs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6rem;
	margin-block-end: 1rem;
}

.lv-tab {
	position: relative;
	min-height: 60px;
	padding: 0.75rem 1.5rem;
	border-radius: var(--r-md);
	border: 2px solid var(--line);
	background: var(--white);
	color: var(--ink);
	font: 800 clamp(1.05rem, 1.6vw, 1.3rem) / 1.2 var(--font-display);
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.lv-tab::before {
	content: "";
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: var(--lv, var(--line));
}

.lv-tab--bronze {
	--lv: var(--hya-bronze);
}

.lv-tab--silver {
	--lv: var(--hya-silver);
}

.lv-tab--gold {
	--lv: var(--hya-gold);
}

.lv-tab:hover {
	border-color: var(--lv);
}

.lv-tab[aria-selected="true"] {
	background: var(--lv);
	border-color: var(--lv);
	color: var(--white);
	box-shadow: var(--shadow-sm);
}

.lv-tab[aria-selected="true"]::before {
	background: currentColor;
}

@media (min-width: 640px) {
	.lv-tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.9rem;
	}
}

.lv-panel {
	background: var(--night);
	color: var(--white);
	border-radius: var(--r-lg);
	padding: clamp(1.5rem, 4vw, 3rem);
	animation: hya-fade-up 0.45s var(--ease);
}

.lv-panel[hidden] {
	display: none;
}

@keyframes hya-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

.lv-badge {
	display: inline-block;
	padding: 0.3rem 1.1rem;
	border-radius: var(--r-pill);
	font: 800 0.95rem / 1.5 var(--font-display);
}

.lv-badge--bronze {
	background: var(--hya-bronze);
	color: var(--white);
}

.lv-badge--silver {
	background: var(--hya-silver);
	color: var(--white);
}

.lv-badge--gold {
	background: var(--hya-gold);
	color: var(--white);
}

.lv-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1rem;
	margin: 1.5rem 0 0;
}

/* Each stat spans a label row and a value row of the list, so labels that
   wrap to two lines don't push their value lower than the others. Labels
   start on one top line (client edits v4). */
.lv-stats > div {
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	row-gap: 0;
}

.lv-stats dt,
.lv-stats .lv-k {
	align-self: start;
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--fs-sm);
	margin-block-end: 0.35rem;
	font-weight: 400;
}

.lv-stats dd,
.lv-stats .lv-v {
	font: 800 1.15rem / 1.6 var(--font-display);
	margin: 0;
}

.lv-stats b {
	display: block;
	unicode-bidi: isolate;
	font: 900 clamp(2.6rem, 6vw, 4.25rem) / 1 var(--font-display);
	background: var(--gold-shine);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 10px rgba(244, 213, 126, 0.22));
}

.lv-stats small {
	font: 500 0.9rem / 1.4 var(--font-body);
	color: rgba(255, 255, 255, 0.75);
}

.lv-stats__wide {
	grid-column: 1 / -1;
	padding-block-start: 1.25rem;
	border-block-start: 1px solid rgba(255, 255, 255, 0.16);
}

.lv-trip {
	font-weight: 500;
	font-family: var(--font-body);
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.92);
}

/* Short values in the stat row (trip length, previous level) read as figures. */
.lv-stats > div:not(.lv-stats__wide) .lv-trip {
	font: 800 1.3rem / 1.5 var(--font-display);
	color: var(--white);
}

.lv-note {
	margin-block-start: 1.25rem;
	padding: 0.9rem 1.1rem;
	border: 1px dashed var(--hya-gold);
	border-radius: var(--r-md);
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--fs-sm);
}

@media (min-width: 800px) {
	.lv-stats--four {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- 11. News ---------- */
.news-mag {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 960px) {
	.news-mag {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		align-items: stretch;
	}
}

.news-lead .wp-block-post-template,
.news-list .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-lead .wp-block-post,
.news-list .wp-block-post {
	margin: 0;
	list-style: none;
}

.lead-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(440px, 41.4vw, 486px);
	border-radius: var(--r-lg);
	overflow: hidden;
	color: var(--white);
	isolation: isolate;
	background: var(--night);
}

.lead-card .wp-block-post-featured-image {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	width: 100%;
	height: 66%;
	margin: 0;
	z-index: -2;
}

.lead-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 80%;
	transition: transform 0.8s var(--ease);
}

.lead-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, var(--night) 0%, var(--night) 30%, rgba(10, 61, 2, 0) 48%);
	pointer-events: none;
}

.lead-card:hover img {
	transform: scale(1.04);
}

.lead-card__body {
	padding: clamp(1.25rem, 3vw, 2.25rem);
}

.lead-card__title {
	font: 800 clamp(1.15rem, 1.71vw, 1.44rem) / 1.5 var(--font-display);
	color: var(--white);
}

.lead-card__title a,
.nlist__title a {
	color: inherit;
	text-decoration: none;
}

.lead-card__title a::after,
.nlist__item a.wp-block-post-title-link::after,
.nlist__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ncard__date {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.15rem 0.8rem;
	border-radius: var(--r-pill);
	background: var(--mist);
	color: var(--hya-green-ink);
	font: 600 var(--fs-xs) / 1.7 var(--font-body);
}

.ncard__date time {
	font: inherit;
}

.ncard__date--light {
	background: rgba(255, 255, 255, 0.16);
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.nlist {
	display: grid;
	gap: 1rem;
	align-content: start;
}

.nlist__item {
	position: relative;
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 1.1rem;
	align-items: center;
	padding: 0.75rem;
	border-radius: var(--r-md);
	background: var(--mist);
	transition: background-color 0.2s, transform 0.25s var(--ease);
}

.nlist__item:hover {
	background: #e6ece8;
	transform: translateY(-2px);
}

.nlist__thumb {
	width: 104px;
	aspect-ratio: 1;
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--white);
	margin: 0;
}

.nlist__thumb a,
.nlist__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nlist__title {
	font: 600 1.05rem / 1.6 var(--font-display);
	color: var(--ink);
}

.empty {
	padding: 2rem;
	text-align: center;
	color: var(--ink-soft);
}

.section--night .empty {
	color: rgba(255, 255, 255, 0.82);
}

.gallery-section.section--night .empty {
	color: var(--ink-soft);
}

.news-lead .wp-block-post-template:empty,
.news-list .wp-block-post-template:empty {
	display: none;
}

/* ---------- 12. Sabela ---------- */
.sabela {
	position: relative;
	z-index: 1;
	color: var(--white);
	isolation: isolate;
	padding-block: var(--section-y);
	background: var(--night);
	overflow: hidden;
}

.sabela__media {
	position: absolute;
	inset: 0;
	margin: 0;
	height: 100%;
	z-index: -2;
}

.sabela__media img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 40%;
}

.sabela::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Phones: a shade from the top, where the text sits. From 900px it moves to
	   the bottom corner behind the text only, so the photo stays clear (client edits v4). */
	background: linear-gradient(180deg, rgba(10, 61, 2, 0.8) 0, rgba(10, 61, 2, 0.5) 35%, rgba(10, 61, 2, 0) 65%);
	pointer-events: none;
}

[dir="ltr"] .sabela {
	--sabela-shade-x: 0%;
}

.sabela__inner {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.sabela__text {
	display: grid;
	justify-items: start;
	gap: 1.25rem;
}

.sabela .h2,
.sabela__text .h2 {
	color: var(--white);
}

.sabela__desc {
	font-size: clamp(1.1rem, 1.62vw, 1.215rem);
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.92);
	text-align: justify;
	text-justify: inter-word;
}

.sabela .wp-block-buttons {
	gap: 0;
}

.ticket {
	position: relative;
	display: grid;
	max-width: 420px;
	background: var(--white);
	color: var(--ink);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	justify-self: center;
	width: 100%;
	background-image:
		radial-gradient(circle at 1.4rem 1.4rem, var(--night) 0 0.42rem, transparent 0.46rem),
		radial-gradient(circle at calc(100% - 1.4rem) 1.4rem, var(--night) 0 0.42rem, transparent 0.46rem);
}

.ticket__main {
	padding: 3rem 1.5rem 2rem;
	text-align: center;
	border-block-end: 3px dashed var(--line);
}

.ticket__since {
	display: grid;
	justify-items: center;
	gap: 0.2rem;
}

.ticket__from {
	font: 800 1.3rem / 1 var(--font-display);
	color: var(--ink-soft);
}

.ticket__day {
	font: 900 clamp(4rem, 9vw, 6rem) / 0.9 var(--font-display);
	color: var(--hya-green-ink);
}

.ticket__month {
	font: 800 clamp(1.3rem, 1.98vw, 1.53rem) / 1.3 var(--font-display);
}

.ticket__stub {
	display: grid;
	grid-template-columns: 1.6rem minmax(0, 1fr) 1.6rem;
	align-items: center;
	padding: 1.25rem 1.5rem;
	background: var(--hya-green-ink);
	color: var(--white);
}

.ticket__stub > * {
	margin: 0;
}

.ticket__name {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0;
	padding-inline: 2.2rem;
	text-align: center;
	font: 800 1.05rem / 1.5 var(--font-display);
	color: var(--white);
}

.ticket__stub .star {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	z-index: 1;
	width: 1.6rem;
	height: 1.6rem;
	fill: var(--white);
}

@media (min-width: 768px) {
	.ticket__day {
		font-size: clamp(3.6rem, 8.1vw, 5.4rem);
	}
}

/* The ticket is small at every width (client edits v4). */
.sabela .ticket {
	width: 264px;
	max-width: 100%;
	background-image:
		radial-gradient(circle at 0.9rem 0.9rem, var(--night) 0 0.3rem, transparent 0.33rem),
		radial-gradient(circle at calc(100% - 0.9rem) 0.9rem, var(--night) 0 0.3rem, transparent 0.33rem);
}

.sabela .ticket__main {
	padding: 1.6rem 1rem 1.1rem;
	border-block-end-width: 2px;
}

.sabela .ticket__from {
	font-size: 1rem;
}

.sabela .ticket__day {
	font-size: clamp(2.6rem, 3.6vw, 3.2rem);
}

.sabela .ticket__month {
	font-size: 1.05rem;
}

.sabela .ticket__stub {
	grid-template-columns: 1.1rem minmax(0, 1fr) 1.1rem;
	padding: 0.7rem 0.9rem;
}

.sabela .ticket__name {
	padding-inline: 1.3rem;
	font-size: 0.85rem;
	text-wrap: balance;
}

.sabela .ticket__stub .star {
	width: 1.1rem;
	height: 1.1rem;
}

/* Desktop: the photo shows whole; the text sits in the bottom corner on its own
   side and the ticket in the opposite top corner (client edits v4). */
@media (min-width: 900px) {
	.sabela {
		display: flex;
		align-items: stretch;
		min-height: clamp(520px, 48vw, 700px);
		padding-block: 2.5rem;
	}

	.sabela::before {
		background: radial-gradient(120% 95% at var(--sabela-shade-x, 100%) 100%, rgba(10, 61, 2, 0.8) 0, rgba(10, 61, 2, 0.5) 32%, rgba(10, 61, 2, 0) 62%);
	}

	.sabela__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		width: 100%;
	}

	.sabela .ticket {
		align-self: start;
		justify-self: end;
	}
}

/* ---------- 13. Quote band ---------- */
/* White space above and below, so it doesn't run into the Sabela band and the
   gallery (client edits v4). */
.quote-band {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--white);
	padding-block: var(--section-y);
}

.quote-band__photo {
	position: relative;
	min-height: 420px;
	background: var(--night);
	margin: 0;
	height: auto;
}

.quote-band__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 18%;
}

.quote-band__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5.5rem);
	background: var(--white);
	color: var(--night);
}

.qmark {
	display: block;
	font: 900 clamp(4rem, 6.3vw, 5.85rem) / 0.55 var(--font-display);
	color: var(--hya-gold);
	height: 0.5em;
	margin: 0;
}

.pq-stage {
	display: grid;
	min-height: 12rem;
	align-items: center;
}

.pq {
	grid-area: 1 / 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.js .quote-band .pq:not(.is-active) {
	display: none;
}

.pq.is-active {
	animation: hya-fade-up 0.5s var(--ease);
}

.pq p,
.quote-band .wp-block-quote p {
	font: 800 clamp(1.3rem, 1.98vw, 1.71rem) / 1.55 var(--font-display);
	color: var(--night);
}

.quote-band__by {
	font: 700 1.17rem / 1.7 var(--font-display);
	color: var(--hya-green-ink);
}

/* The panel is white, so the light (outlined white) buttons take the default look. */
.quote-band .round-btn--light {
	border-color: var(--night);
	color: var(--night);
}

.quote-band .round-btn--light:hover {
	background: var(--night);
	color: var(--white);
}

.quote-band__ctrl {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.quote-band__count {
	margin: 0 0.75rem;
	font: 800 1.25rem / 1 var(--font-display);
}

.quote-band .icon--play {
	display: none;
}

.quote-band [aria-pressed="true"] .icon--pause {
	display: none;
}

.quote-band [aria-pressed="true"] .icon--play {
	display: block;
}

.quote-band__bar {
	height: 4px;
	background: var(--line);
	border-radius: 4px;
	overflow: hidden;
}

.quote-band__bar span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--night);
}

.quote-band.is-running .quote-band__bar span {
	animation: hya-barfill var(--q-dur, 6s) linear forwards;
}

.quote-band.is-paused .quote-band__bar span,
.quote-band:hover .quote-band__bar span,
.quote-band:focus-within .quote-band__bar span {
	animation-play-state: paused;
}

@keyframes hya-barfill {
	to {
		width: 100%;
	}
}

@media (min-width: 900px) {
	.quote-band {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		min-height: min(88vh, 780px);
	}

	.quote-band__photo {
		height: 100%;
		min-height: 100%;
		overflow: hidden;
		border-start-end-radius: var(--r-lg);
		border-end-end-radius: var(--r-lg);
	}
}

/* ---------- 14. Stories ---------- */
.stories {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-block-end: 1rem;
	scrollbar-width: none;
	list-style: none;
}

.stories::-webkit-scrollbar {
	display: none;
}

.stories > li {
	flex: 0 0 min(80vw, 340px);
	scroll-snap-align: start;
	display: flex;
	margin: 0;
}

.story {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 0.75rem 0.75rem 1.75rem;
	background: var(--white);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-sm);
}

.story__photo {
	aspect-ratio: 4 / 4.6;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--mist);
}

.story__photo a,
.story__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.story__body {
	padding-inline: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}

.story .qmark {
	color: var(--hya-gold);
	height: 0.45em;
	font-size: 5.5rem;
}

.story__quote {
	margin: 0;
}

.story__quote p,
.story__quote .wp-block-post-excerpt__excerpt {
	font-size: var(--fs-sm);
	line-height: 1.85;
	color: var(--ink-soft);
	margin: 0;
	text-align: justify;
	text-justify: inter-word;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.story__quote .wp-block-post-excerpt__more-link,
.story__quote .wp-block-post-excerpt__more-text {
	display: none;
}

.story__name {
	margin-block-start: auto;
	padding-block-start: 0.5rem;
	font: 800 1.2rem / 1.5 var(--font-display);
	color: var(--ink);
}

.story__name a {
	color: inherit;
	text-decoration: none;
}

.story__badge {
	margin: 0;
	align-self: flex-start;
	padding: 0.15rem 0.8rem;
	border-radius: var(--r-pill);
	background: var(--mist);
	color: var(--hya-green-ink);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.story__badge a {
	color: inherit;
	text-decoration: none;
}

@media (min-width: 1024px) {
	.stories {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		overflow: visible;
	}

	.stories > li {
		flex: none;
	}
}

/* ---------- 15. Gallery bento ---------- */
.bento {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: clamp(150px, 38vw, 230px);
	grid-auto-flow: dense;
	gap: 0.75rem;
	list-style: none;
}

.bento > li {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--night-2);
	min-height: 0;
	margin: 0;
}

.bento .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	height: 100%;
	margin: 0;
}

.bento .wp-block-post-featured-image a,
.bento .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.bento > li:hover img {
	transform: scale(1.06);
}

.bento__chip {
	position: absolute;
	inset-inline-start: 0.75rem;
	inset-block-end: 0.75rem;
	z-index: 1;
	max-width: calc(100% - 1.5rem);
	margin: 0;
	padding: 0.3rem 0.85rem;
	border-radius: var(--r-pill);
	background: rgba(10, 61, 2, 0.82);
	color: var(--white);
	font: 500 var(--fs-xs) / 1.4 var(--font-body);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bento__chip a {
	color: var(--white);
	text-decoration: none;
}

.bento > li:nth-child(1) {
	grid-column: 1 / -1;
	grid-row: span 2;
}

.bento > li:nth-child(3) {
	grid-row: span 2;
}

.bento > li:nth-child(5),
.bento > li:nth-child(6) {
	grid-column: 1 / -1;
}

@media (min-width: 900px) {
	.bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: repeat(3, clamp(162px, 15.3vw, 225px));
		grid-auto-rows: auto;
		gap: 1rem;
	}

	.bento > li:nth-child(1) {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
	}

	.bento > li:nth-child(2) {
		grid-column: 3;
		grid-row: 1;
	}

	.bento > li:nth-child(3) {
		grid-column: 4;
		grid-row: 1 / 3;
	}

	.bento > li:nth-child(4) {
		grid-column: 3;
		grid-row: 2;
	}

	.bento > li:nth-child(5) {
		grid-column: 1 / 3;
		grid-row: 3;
	}

	.bento > li:nth-child(6) {
		grid-column: 3 / 5;
		grid-row: 3;
	}
}

/* ---------- 16. Partners ---------- */
.partners__rows {
	display: grid;
	gap: 1rem;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee {
	display: flex;
	overflow: hidden;
}

.marquee__track {
	display: flex;
	flex: none;
	min-width: 100%;
	gap: 1rem;
	padding-inline-end: 1rem;
	margin: 0;
	list-style: none;
	animation: hya-mq 70s linear infinite;
}

.marquee--2 .marquee__track {
	animation-direction: reverse;
}

@keyframes hya-mq {
	to {
		transform: translateX(calc(100% * var(--mq-dir)));
	}
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track {
	animation-play-state: paused;
}

.logo-cell {
	flex: none;
	display: grid;
	place-items: center;
	width: clamp(130px, 14vw, 180px);
	height: 88px;
	padding: 0.75rem 1rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	margin: 0;
}

.logo-cell a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.logo-cell img,
.logo {
	max-height: 60px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.78;
	transition: filter 0.3s, opacity 0.3s;
}

.logo-cell:hover img,
.logo-cell:focus-within img {
	filter: none;
	opacity: 1;
}

/* ---------- 17. Join band ---------- */
.join-band {
	position: relative;
	z-index: 2;
	overflow: hidden;
	background: var(--white);
	color: var(--night);
	border-block-start: 1px solid var(--line);
	padding-block: clamp(4rem, 7.2vw, 6.3rem);
}

.join-band__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}

.join-band__text {
	font: 800 clamp(1.25rem, 2.07vw, 1.755rem) / 1.55 var(--font-display);
	max-width: 27em;
	color: var(--night);
}

.star--bg {
	position: absolute;
	inset-inline-end: -2rem;
	inset-block-start: -3rem;
	width: clamp(180px, 26vw, 380px);
	height: auto;
	aspect-ratio: 1;
	fill: rgba(10, 61, 2, 0.06);
	pointer-events: none;
}

@media (min-width: 900px) {
	.join-band__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ---------- 24. Reveal ---------- */
.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
	transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

.facts__list .fact:nth-child(1),
.rail__item:nth-child(1),
.nlist > li:nth-child(1),
.stories > li:nth-child(1),
.bento > li:nth-child(1) {
	--i: 0;
}

.facts__list .fact:nth-child(2),
.rail__item:nth-child(2),
.nlist > li:nth-child(2),
.stories > li:nth-child(2),
.bento > li:nth-child(2) {
	--i: 1;
}

.facts__list .fact:nth-child(3),
.rail__item:nth-child(3),
.nlist > li:nth-child(3),
.stories > li:nth-child(3),
.bento > li:nth-child(3) {
	--i: 2;
}

.facts__list .fact:nth-child(4),
.rail__item:nth-child(4),
.stories > li:nth-child(4),
.bento > li:nth-child(4) {
	--i: 3;
}

.facts__list .fact:nth-child(5),
.rail__item:nth-child(5),
.bento > li:nth-child(5) {
	--i: 4;
}

.facts__list .fact:nth-child(6),
.bento > li:nth-child(6) {
	--i: 5;
}

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.home *,
	.home *::before,
	.home *::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}

	.scroll-cue span {
		animation: none;
		opacity: 1;
	}

	.partners__rows {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.marquee {
		display: block;
		overflow: visible;
	}

	.marquee__track {
		flex-wrap: wrap;
		justify-content: center;
		padding-inline: var(--gutter);
		transform: none;
		min-width: 0;
	}

	.marquee__track[aria-hidden="true"] {
		display: none;
	}

	.quote-band__bar {
		display: none;
	}

	.pcard:hover img,
	.bento > li:hover img,
	.lead-card:hover img,
	.nlist__item:hover {
		transform: none;
	}
}
