/* =========================================================
   sections.css — landing-page sections and inner pages
   Surfaces alternate white ↔ navy (see .section--dark/--dots
   in base.css). Colours come from tokens only: navy, white,
   teal accent, ink.
   ========================================================= */

/* ---------------------------------------------------------
   Hero: copy left, vector artwork right, navy with texture
   --------------------------------------------------------- */

.hero {
	--sec-bg: var(--navy-700);
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	/* Fills the first screen below the sticky header; min-height so a long
	   headline can still grow past it. */
	min-height: calc(100vh - var(--header-stack));
	min-height: calc(100svh - var(--header-stack));
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(6rem, 4rem + 6vw, 9rem);
	background: var(--grad-navy);
	color: #fff;
	overflow: hidden;
}

@media (max-height: 620px) {
	.hero { min-height: 0; }
}

/* The pipe-network texture, a teal light behind the artwork and a deeper
   navy pool at the bottom so the counter cards sit on something dark. */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../img/pattern-pipes.svg") center / 520px auto repeat;
	opacity: 0.07;
}

.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(820px 620px at 82% 30%, rgba(53, 208, 222, 0.15), transparent 62%),
		radial-gradient(640px 480px at 6% 0%, rgba(47, 92, 179, 0.16), transparent 60%),
		linear-gradient(180deg, transparent 58%, rgba(13, 20, 32, 0.4));
}

.hero__inner {
	display: grid;
	gap: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
	align-items: center;
	width: 100%;
}

@media (min-width: 900px) {
	.hero__inner {
		grid-template-columns: 1.05fr 0.95fr;
		gap: clamp(2.5rem, 1rem + 4vw, 5rem);
	}
}

.hero__copy { max-width: 42rem; }

.hero .eyebrow { margin-bottom: var(--sp-4); }

.hero__title {
	margin: 0 0 var(--sp-4);
	font-size: clamp(2rem, min(1.3rem + 3.2vw, 1rem + 5.4vh), 3.5rem);
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: 0;
	color: #fff;
	max-width: 18ch;
	text-wrap: balance;
}

.hero__text {
	margin: 0 0 clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	max-width: 52ch;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

@media (max-width: 419px) {
	.hero__actions { flex-direction: column; align-items: stretch; }
	.hero__actions .btn { width: 100%; }
}

.hero__art {
	order: -1;
	display: grid;
	place-items: center;
}

.hero__art img {
	width: min(100%, 560px);
	height: auto;
	filter: drop-shadow(0 30px 60px rgba(4, 12, 32, 0.55));
}

@media (min-width: 900px) {
	.hero__art { order: 0; justify-items: end; }
	.hero__art img { width: min(100%, 600px); }
}

/* ---------------------------------------------------------
   Carousel primitives (shared)
   Navy outline arrows that fill teal on hover.
   --------------------------------------------------------- */

.carousel { position: relative; }
.carousel__track { display: grid; }

.carousel__controls {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-top: var(--sp-4);
}

.carousel__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--navy-100);
	color: var(--brand);
	background: #fff;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.carousel__arrow:hover { background: var(--teal-500); border-color: var(--teal-500); color: var(--navy-900); }

.carousel__dots { display: flex; gap: var(--sp-2); margin-inline: auto; }

.carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 50%;
	background: var(--line);
	transition: all var(--dur) var(--ease);
}

.carousel__dot.is-active { width: 28px; border-radius: var(--radius-pill); background: var(--teal-500); }

/* ---------------------------------------------------------
   Banner: a full-width image slider, nothing else
   --------------------------------------------------------- */

.banner {
	padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 4rem) clamp(1rem, 0.5rem + 1.5vw, 2rem);
	background: var(--surface);
}

.banner__carousel { position: relative; }

.banner__track {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--surface-2);
	box-shadow: var(--shadow-lg);
	/* Matches the brand artwork (~2.2:1) so nothing is cropped at any width;
	   the box stays stable while slides cross-fade behind each other. */
	aspect-ratio: 2.2 / 1;
}

@media (max-width: 559px) { .banner__track { border-radius: 12px; } }

/* Slides are pinned to the track, not sized by their image, so a taller
   image can never push past the box and get clipped. */
.banner__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.025);
	transition: opacity 0.7s var(--ease), transform 1s var(--ease), visibility 0.7s;
	pointer-events: none;
}

.banner__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.banner__link { display: block; height: 100%; }

.banner__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Optional overlay text, only rendered when a title or caption is set. */
.banner__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	gap: 2px;
	padding: clamp(1rem, 0.6rem + 1.5vw, 1.75rem) clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
	background: linear-gradient(to top, rgba(11, 26, 59, 0.84), rgba(11, 26, 59, 0));
	color: #fff;
	pointer-events: none;
}

.banner__title {
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 1rem + 0.8vw, 1.625rem);
	font-weight: 500;
	line-height: 1.2;
}

.banner__text {
	max-width: 60ch;
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.85);
}

.banner__controls { justify-content: center; margin-top: var(--sp-4); }

@media (max-width: 559px) {
	.banner__controls .carousel__arrow { display: none; }
	.banner__text { display: none; }
}

@media (prefers-reduced-motion: reduce) { .banner__slide { transition: none; } }

/* ---------------------------------------------------------
   Leadership message
   Message left, portrait right and flush with the bottom edge,
   the way the "Engineering Excellence" section sits on
   tmtplus.co.in. Stacks to centred text over the portrait on
   phones.
   --------------------------------------------------------- */

.md { padding-bottom: 0; }

.md__grid {
	display: grid;
	gap: var(--sp-6);
	align-items: end;
}

@media (min-width: 900px) {
	.md__grid {
		grid-template-columns: 1.15fr 0.85fr;
		gap: clamp(2rem, 1rem + 4vw, 5rem);
	}
}

.md__body {
	max-width: 64ch;
	padding-bottom: var(--section-y);
}

.md__lead {
	margin: 0 0 var(--sp-4);
	font-size: var(--fs-lg);
	font-weight: 500;
	line-height: 1.65;
	color: #fff;
}

.md__text {
	margin: 0 0 var(--sp-4);
	font-size: var(--fs-base);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
}

.md__sign {
	display: grid;
	gap: 2px;
	margin: var(--sp-5) 0 0;
}

.md__sign strong {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: var(--fs-h3);
	color: #fff;
}

.md__sign span {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--teal-400);
}

.md__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-5);
}

/* Portrait */
.md__figure {
	position: relative;
	margin: 0;
	width: min(100%, 470px);
	justify-self: center;
	align-self: end;
}

/* A warm glow behind the shoulders lifts a cut-out off the navy. */
.md__figure::before {
	content: "";
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: 0;
	height: 75%;
	z-index: -1;
	background: radial-gradient(58% 62% at 50% 82%, rgba(53, 208, 222, 0.2), transparent 70%);
	pointer-events: none;
}

.md__frame {
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	overflow: hidden;
}

.md__photo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 640px;
	object-fit: contain;
	object-position: bottom center;
}

@media (max-width: 899px) {
	.md__body {
		padding-bottom: 0;
		margin-inline: auto;
		text-align: center;
	}
	.md__actions { justify-content: center; }
	.md__figure { width: min(78%, 360px); margin-top: var(--sp-2); }
}

/* ---------------------------------------------------------
   Stats: four white counter cards riding up over the hero
   --------------------------------------------------------- */

.stats {
	position: relative;
	z-index: 2;
}

/* Only on the landing page does the strip ride up over the hero. */
.is-landing .stats {
	margin-top: clamp(-4.5rem, -4vw - 1.5rem, -2.5rem);
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 760px) {
	.stats__grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
}

.stat {
	display: grid;
	justify-items: center;
	gap: var(--sp-2);
	padding: var(--sp-6) var(--sp-4) var(--sp-5);
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	text-align: center;
}

.stat__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--sp-1);
	border-radius: 50%;
	background: var(--teal-050);
	color: var(--teal-700);
}

.stat__value {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 3rem);
	font-weight: 500;
	line-height: 1;
	color: var(--brand);
}

.stat__label {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ink-700);
}

@media (max-width: 479px) {
	.stat { padding: var(--sp-5) var(--sp-3) var(--sp-4); }
	.stat__icon { width: 46px; height: 46px; }
}

/* ---------------------------------------------------------
   Intro (About): artwork left, copy right
   --------------------------------------------------------- */

.intro__grid {
	display: grid;
	gap: var(--sp-7);
	align-items: center;
}

@media (min-width: 900px) {
	.intro__grid {
		grid-template-columns: 0.95fr 1.05fr;
		gap: var(--sp-9);
	}
}

.intro__art {
	order: -1;
	display: grid;
	place-items: center;
	padding: var(--sp-5);
	border-radius: var(--radius-lg);
	border: 1px solid var(--line-soft);
	background: linear-gradient(150deg, var(--navy-050), #fff 55%, var(--teal-050));
}

.intro__copy p { color: var(--ink-700); line-height: 1.7; }

/* ---------------------------------------------------------
   Mission band (kept for pages that still call it)
   --------------------------------------------------------- */

.band {
	position: relative;
	isolation: isolate;
	padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem);
	background: var(--grad-navy);
	color: #fff;
}

.band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../img/pattern-pipes.svg") center / 480px auto repeat;
	opacity: 0.08;
}

.band__inner {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-5);
	max-width: 900px;
	margin-inline: auto;
}

.band__mark {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--teal-500);
	color: var(--navy-900);
}

.band__quote {
	margin: 0;
	padding: 0;
	border: 0;
	color: #fff;
}

.band__quote p {
	margin: 0;
	font-size: clamp(1.0625rem, 0.95rem + 0.75vw, 1.5rem);
	font-weight: 500;
	line-height: 1.5;
}

.band__body { max-width: 62ch; }

.band__note {
	margin-top: var(--sp-4);
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.8);
}

.band__quote { margin-top: var(--sp-3); }

@media (max-width: 639px) {
	.band__mark { display: none; }
}

/* ---------------------------------------------------------
   Rewards (white tiles on navy)
   --------------------------------------------------------- */

.card-grid--reward {
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-3);
}

@media (min-width: 640px) { .card-grid--reward { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid--reward { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); } }
@media (min-width: 1100px) { .card-grid--reward { grid-template-columns: repeat(5, 1fr); } }

.reward {
	position: relative;
	display: grid;
	justify-items: center;
	gap: var(--sp-2);
	padding: var(--sp-4) var(--sp-3) var(--sp-5);
	text-align: center;
	background: #fff;
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.reward:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.reward__icon {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--navy-050);
	color: var(--brand);
}

.reward:hover .reward__icon {
	background: var(--teal-050);
	color: var(--teal-700);
}

.reward__name {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--brand);
}

/* The tiles are white even when the section is navy, so the name link
   must not pick up the dark-section link colour. */
.section--dark .reward__name .reward__link,
.section--dark .reward__name .reward__link:hover { color: inherit; }

.reward__points {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	padding: 0.2rem 0.7rem;
	border-radius: var(--radius-pill);
	background: var(--teal-050);
	color: var(--teal-700);
	font-weight: 700;
	font-size: var(--fs-sm);
}

.reward__points small { font-weight: 600; font-size: 0.6875rem; }

.reward--featured {
	border-color: var(--teal-100);
	background: linear-gradient(180deg, var(--teal-050), #fff 55%);
	box-shadow: var(--shadow-card), 0 0 0 4px rgba(53, 208, 222, 0.16);
}

.reward__flag {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.18rem 0.65rem;
	border-radius: var(--radius-pill);
	background: var(--grad-accent);
	color: var(--navy-900);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------------------------------------------------------
   App band: phone left, copy + badges + QR right, on white
   --------------------------------------------------------- */

.app-band { color: var(--text); }

.app-band__grid {
	display: grid;
	gap: var(--sp-7);
	align-items: center;
}

@media (min-width: 900px) {
	.app-band__grid {
		grid-template-columns: 0.9fr 1.1fr;
		gap: var(--sp-9);
	}
	.app-band__side { order: -1; }
}

.app-band__text {
	max-width: 54ch;
	font-size: var(--fs-base);
	line-height: 1.7;
	margin-bottom: var(--sp-5);
	color: var(--ink-700);
}

.app-band .feature-row { color: var(--ink-700); }

.app-band__sub {
	margin: var(--sp-5) 0 var(--sp-3);
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brand);
}

.app-band__side {
	display: grid;
	gap: var(--sp-5);
	justify-items: center;
	align-items: center;
}

@media (min-width: 1100px) {
	.app-band__side {
		grid-template-columns: auto auto;
		gap: var(--sp-6);
	}
}

.app-band__art {
	width: min(100%, 300px);
	filter: drop-shadow(0 24px 40px rgba(20, 25, 35, 0.28));
}

.qr-card {
	padding: var(--sp-5);
	border-radius: var(--radius-lg);
	background: #fff;
	border: 1px solid var(--line);
	text-align: center;
	box-shadow: var(--shadow-card);
	max-width: 260px;
}

.qr-card__title {
	margin-bottom: var(--sp-3);
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brand);
}

.qr-card__code {
	display: grid;
	place-items: center;
	padding: var(--sp-2);
	background: #fff;
	border-radius: var(--radius-sm);
}

.qr-card__code img {
	display: block;
	width: 100%;
	max-width: 200px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	margin-inline: auto;
}

.qr-card__code .img-missing { max-width: 200px; aspect-ratio: 1 / 1; }

.qr-card__note {
	margin: var(--sp-3) 0 0;
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

/* ---------------------------------------------------------
   Winners (legacy name cards; the marquee lives in images.css)
   --------------------------------------------------------- */

.winner {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-4);
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.winner:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.winner__photo {
	display: grid;
	place-items: center;
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--grad-navy);
	color: var(--teal-400);
}

.winner__initial {
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 500;
}

.winner__name {
	margin: 0;
	font-size: var(--fs-h4);
}

.winner__city {
	margin: 0 0 var(--sp-2);
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

/* ---------------------------------------------------------
   Certifications
   --------------------------------------------------------- */

.cert-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 720px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cert-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); } }

.cert {
	display: grid;
	justify-items: center;
	gap: var(--sp-2);
	padding: var(--sp-4) var(--sp-3) var(--sp-5);
	text-align: center;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cert:hover {
	border-color: var(--teal-100);
	box-shadow: var(--shadow-md);
}

.cert__code {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 2px solid var(--brand);
	color: var(--brand);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
}

.cert__title {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.cert__text {
	margin: 0;
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

@media (min-width: 1000px) {
	.cert__text { display: none; }
}

/* ---------------------------------------------------------
   Closing CTA: a rounded navy panel, like "Join Our Legacy"
   --------------------------------------------------------- */

.cta-final {
	padding-block: var(--section-y);
}

.cta-final__inner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	gap: var(--sp-6);
	align-items: center;
	padding: clamp(2rem, 1.5rem + 3vw, 4rem);
	border-radius: var(--radius-xl);
	background: var(--grad-navy);
	color: #fff;
	box-shadow: var(--shadow-lg);
}

.cta-final__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../img/pattern-pipes.svg") center / 480px auto repeat;
	opacity: 0.07;
	pointer-events: none;
}

.cta-final__inner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(640px 420px at 90% 10%, rgba(53, 208, 222, 0.18), transparent 60%);
	pointer-events: none;
}

@media (min-width: 900px) {
	.cta-final__inner { grid-template-columns: 1.2fr 0.8fr; }
}

.cta-final__title {
	margin-bottom: var(--sp-3);
	color: #fff;
	font-size: var(--fs-h2);
	max-width: 22ch;
}

.cta-final__text {
	margin: 0 0 var(--sp-6);
	max-width: 54ch;
	font-size: var(--fs-base);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
}

.cta-final__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

.cta-final__art { display: none; }

@media (min-width: 900px) {
	.cta-final__art { display: grid; justify-items: end; }
	.cta-final__art img {
		width: min(100%, 400px);
		filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
	}
}

@media (max-width: 599px) {
	.cta-final__inner { text-align: center; }
	.cta-final__title, .cta-final__text { margin-inline: auto; }
	.cta-final__actions { justify-content: center; }
}

/* ---------------------------------------------------------
   Inner pages: page hero, prose, blog
   --------------------------------------------------------- */

.page-hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
	background: var(--grad-navy);
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../img/pattern-pipes.svg") center / 480px auto repeat;
	opacity: 0.07;
	pointer-events: none;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(700px 420px at 85% 20%, rgba(53, 208, 222, 0.16), transparent 62%);
	pointer-events: none;
}

.page-hero__title {
	margin: 0;
	color: #fff;
}

.page-hero .entry__meta {
	margin: var(--sp-3) 0 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--fs-sm);
}

.page-hero .search-form { margin-top: var(--sp-5); }

.entry__media {
	margin: 0 0 var(--sp-6);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.prose {
	font-size: var(--fs-lg);
	line-height: 1.75;
	color: var(--ink-700);
}

.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose img { border-radius: var(--radius); }

.prose ul,
.prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: var(--sp-2); }

.entry__meta {
	margin: 0 0 var(--sp-2);
	font-size: var(--fs-xs);
	color: var(--text-muted);
	display: flex;
	gap: var(--sp-2);
	align-items: center;
}

.post-grid {
	display: grid;
	gap: var(--sp-5);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* Post card: white, inset rounded image, navy title, underlined "Read more". */
.post-card {
	padding: var(--sp-3);
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.post-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.post-card__media {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-2);
}

.post-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card__body { padding: var(--sp-4) var(--sp-3) var(--sp-3); }

.post-card__title {
	margin: 0 0 var(--sp-2);
	font-size: var(--fs-h4);
	color: var(--brand);
}

.post-card__excerpt {
	margin: 0 0 var(--sp-4);
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--teal-700);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.pagination,
.post-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	justify-content: center;
	margin-top: var(--sp-7);
}

.post-nav { justify-content: space-between; }

.pagination .page-numbers,
.post-nav a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	text-decoration: none;
	color: var(--ink-700);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.post-nav a:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.empty-state {
	max-width: 560px;
	margin-inline: auto;
	text-align: center;
}

.error-404__code {
	margin: 0;
	font-size: clamp(4rem, 3rem + 8vw, 8rem);
	font-weight: 500;
	line-height: 1;
	background: linear-gradient(135deg, var(--navy-700), var(--teal-500));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------------------------------------------------------
   Comments
   --------------------------------------------------------- */

.comments {
	margin-top: var(--sp-9);
	padding-top: var(--sp-7);
	border-top: 1px solid var(--line);
}

.comment-list {
	list-style: none;
	margin: 0 0 var(--sp-7);
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin-top: var(--sp-4);
	padding-left: var(--sp-5);
	border-left: 2px solid var(--line-soft);
}

.comment-body {
	padding: var(--sp-4) 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: var(--fs-sm);
}

/* ---------------------------------------------------------
   Benefits: a soft rounded panel holding four white cards,
   after the "Our Presence in Different Sectors" block
   --------------------------------------------------------- */

.benefit-panel {
	padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	border-radius: var(--radius-xl);
	border: 1px solid var(--line-soft);
	background: linear-gradient(135deg, var(--navy-050) 0%, #ffffff 48%, var(--teal-050) 100%);
}

.benefit-panel .section-head {
	margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.benefit-row {
	display: grid;
	gap: var(--sp-4);
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) { .benefit-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefit-row { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }

.benefit {
	display: grid;
	justify-items: center;
	padding: var(--sp-5) var(--sp-4);
	background: #fff;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	text-align: center;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.benefit:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.benefit__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--sp-3);
	border-radius: 50%;
	background: var(--teal-050);
	color: var(--teal-700);
}

.benefit__title {
	font-size: var(--fs-h4);
	margin-bottom: var(--sp-2);
}

.benefit__text {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.benefit-panel + .section-more { margin-top: var(--sp-6); }

/* ---------------------------------------------------------
   Product categories with subcategory panels
   White cards, inset rounded image, Cal Sans navy title
   --------------------------------------------------------- */

.product-grid {
	display: grid;
	gap: var(--sp-4);
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }

.product {
	padding: 0;
	background: #fff;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.product:hover { box-shadow: var(--shadow-md); border-color: var(--teal-100); }

.product__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: var(--sp-4);
	border-radius: 50%;
	background: var(--teal-500);
	color: var(--navy-900);
}

.product__title {
	font-size: var(--fs-h4);
	margin-bottom: var(--sp-2);
}

.product__text {
	margin: 0 0 var(--sp-4);
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.product__toggle {
	width: 100%;
	padding: var(--sp-3) 0 0;
	border-top: 1px solid var(--line-soft);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--brand);
}

.product__toggle:hover { background: transparent; color: var(--teal-700); }

.product__panel { padding: var(--sp-3) 0 0; }

.product__list {
	display: grid;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.product__list li {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-2);
	font-size: var(--fs-sm);
	color: var(--ink-700);
}

.product__list .icon {
	margin-top: 4px;
	color: var(--teal-600);
}

/* ---------------------------------------------------------
   DMS upgrade (on navy)
   --------------------------------------------------------- */

.dms__grid {
	display: grid;
	gap: var(--sp-7);
	align-items: center;
}

@media (min-width: 900px) {
	.dms__grid {
		grid-template-columns: 1.15fr 0.85fr;
		gap: var(--sp-9);
	}
}

.dms__steps {
	display: grid;
	gap: var(--sp-3);
	margin: var(--sp-6) 0 0;
	padding: 0;
	list-style: none;
}

.dms__step {
	display: flex;
	gap: var(--sp-4);
	padding: var(--sp-4);
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	color: var(--text);
}

.dms__num {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--teal-500);
	color: var(--navy-900);
	font-weight: 700;
	font-size: var(--fs-sm);
}

.dms__title {
	margin: 0 0 var(--sp-1);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	font-weight: 600;
}

.dms__text {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.dms__art { display: grid; place-items: center; }
.dms__art img { width: min(100%, 340px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)); }

/* ---------------------------------------------------------
   Client feedback
   --------------------------------------------------------- */

.quote-card {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	padding: var(--sp-5);
	background: #fff;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.quote-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.quote-card__mark { color: var(--teal-500); }

.quote-card__text {
	flex: 1;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--fs-base);
	line-height: 1.7;
	color: var(--ink-700);
}

.quote-card__who {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--line-soft);
}

.quote-card__who span { display: flex; flex-direction: column; line-height: 1.3; }
.quote-card__who strong { color: var(--brand); }
.quote-card__who small { font-size: var(--fs-xs); color: var(--text-muted); }

.quote-card__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--grad-navy);
	color: var(--teal-400);
	font-family: var(--font-display);
	font-weight: 500;
}

/* ---------------------------------------------------------
   Contact (on navy, like the "Download Brochure" strip)
   --------------------------------------------------------- */

.contact-grid {
	display: grid;
	gap: var(--sp-6);
	align-items: start;
}

@media (min-width: 900px) {
	.contact-grid {
		grid-template-columns: 0.85fr 1.15fr;
		gap: var(--sp-8);
	}
}

.contact-cards {
	display: grid;
	gap: var(--sp-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-card {
	padding: var(--sp-5);
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	color: var(--text);
}

.contact-card__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: var(--sp-3);
	border-radius: 50%;
	background: var(--teal-050);
	color: var(--teal-700);
}

.contact-card__title {
	margin-bottom: var(--sp-2);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	font-weight: 600;
}

.contact-card p {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.section--dark .contact-card a { color: var(--teal-700); text-decoration: none; }
.section--dark .contact-card a:hover { color: var(--navy-700); text-decoration: underline; }

.contact-grid__form {
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	color: var(--text);
}

/* =========================================================
   Inner pages: breadcrumbs, chips, section links
   ========================================================= */

.crumbs {
	margin-bottom: var(--sp-3);
	font-size: var(--fs-xs);
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crumbs li + li::before {
	content: "/";
	margin-right: var(--sp-2);
	color: rgba(255, 255, 255, 0.4);
}

.crumbs a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.crumbs a:hover { color: var(--teal-400); }
.crumbs [aria-current] { color: rgba(255, 255, 255, 0.6); }

.page-hero__lede {
	max-width: 62ch;
	margin: var(--sp-3) auto 0;
	font-size: var(--fs-base);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.85);
}

.page-hero--post { text-align: center; }

.post-hero__cats {
	display: flex;
	justify-content: center;
	gap: var(--sp-2);
	margin: 0 0 var(--sp-4);
}

.post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-2);
	margin: var(--sp-4) 0 0;
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.75);
}

.section--slim { padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem); }

.section-more {
	margin-top: var(--sp-6);
	text-align: center;
}

/* ---------------------------------------------------------
   Category chips
   --------------------------------------------------------- */

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	justify-content: center;
	margin-bottom: var(--sp-6);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--ink-700);
	font-size: var(--fs-xs);
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.chip:hover {
	border-color: var(--teal-500);
	color: var(--teal-700);
}

.chip.is-current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.chip__count {
	font-size: 0.6875rem;
	opacity: 0.65;
}

.chip--light {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.chip--light:hover {
	background: var(--teal-500);
	border-color: var(--teal-500);
	color: var(--navy-900);
}

.chip--tag {
	background: var(--surface-2);
	cursor: default;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-top: var(--sp-6);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   Programme link cards + long-form SEO pages
   --------------------------------------------------------- */

.card--link { position: relative; padding-bottom: calc(var(--sp-5) + 20px); }
.card__stretch { color: inherit; text-decoration: none; }
.card__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg); }
.card--link:hover .card__title { color: var(--teal-700); }
.card__cue {
	position: absolute; right: var(--sp-5); bottom: var(--sp-5);
	color: var(--brand); transition: transform var(--dur) var(--ease);
}
.card--link:hover .card__cue { transform: translateX(4px); }

.prose--seo h2 { margin-top: var(--sp-8); font-size: var(--fs-h2); }
.prose--seo h3 { margin-top: var(--sp-6); }
.prose--seo ul li::marker { color: var(--teal-600); }
.prose--seo .wp-block-table td, .prose--seo .wp-block-table th { padding: 0.6rem 0.8rem; border: 1px solid var(--line); font-size: var(--fs-sm); }
.prose--seo .wp-block-table th { background: var(--navy-050); color: var(--brand); text-align: left; }
.prose--seo .wp-block-buttons { margin-top: var(--sp-6); }
.prose--seo .wp-block-button__link { display: inline-flex; padding: 0.85rem 1.6rem; border-radius: var(--radius-pill); background: var(--grad-accent); color: var(--navy-900); font-weight: 600; text-decoration: none; }
.prose--seo .wp-block-button__link:hover { background: var(--brand); color: #fff; }
.prose--seo .is-style-outline .wp-block-button__link { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }

/* ---------------------------------------------------------
   Winners gallery tiles + lightbox
   --------------------------------------------------------- */

.gallery__tile {
	position: relative;
	display: grid;
	justify-items: center;
	gap: var(--sp-3);
	width: 100%;
	padding: var(--sp-5) var(--sp-3);
	border: 0;
	border-radius: var(--radius-lg);
	background: #fff;
	text-align: center;
	box-shadow: var(--shadow-card);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gallery__tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.gallery__zoom {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--brand);
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}

.gallery__tile:hover .gallery__zoom,
.gallery__tile:focus-visible .gallery__zoom { opacity: 1; }

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: var(--gutter);
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}

.lightbox.is-open { opacity: 1; }

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 26, 59, 0.8);
	backdrop-filter: blur(3px);
}

.lightbox__panel {
	position: relative;
	display: grid;
	justify-items: center;
	gap: var(--sp-3);
	width: min(420px, 100%);
	padding: var(--sp-7) var(--sp-6) var(--sp-6);
	border-radius: var(--radius-lg);
	background: #fff;
	text-align: center;
	box-shadow: var(--shadow-lg);
}

.lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--ink-500);
}

.lightbox__close:hover { background: var(--surface-3); color: var(--teal-700); }

.lightbox__photo {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--grad-navy);
	color: var(--teal-400);
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 500;
}

.lightbox__name { margin: 0; }

.lightbox__city {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.lightbox__nav {
	display: flex;
	gap: var(--sp-3);
	margin-top: var(--sp-3);
}

/* =========================================================
   Scroll story
   One sticky phone, four scenes, driven by data-scene on the
   section. Every layer below reacts to that one attribute.
   ========================================================= */

/* No overflow:hidden here: it would make the section a scroll container
   and break the sticky stage. The .orbs wrapper clips its own decor. */
.story {
	position: relative;
	padding-block: var(--section-y);
}

.story__head {
	margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}

/* The lift: a teal wash that strengthens scene by scene, so the
   section visibly brightens as the story moves forward. */
.story__lift {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(900px 640px at 50% 55%, rgba(53, 208, 222, 0.3), transparent 66%);
	opacity: 0.08;
	transition: opacity 1.2s var(--m-out);
	pointer-events: none;
}

.story[data-scene="1"] .story__lift { opacity: 0.2; }
.story[data-scene="2"] .story__lift { opacity: 0.34; }
.story[data-scene="3"] .story__lift { opacity: 0.5; }

.story__grid { position: relative; }

@media (min-width: 900px) {
	.story__grid {
		display: grid;
		grid-template-columns: 0.85fr 1.15fr;
		gap: clamp(2rem, 1rem + 4vw, 5rem);
		align-items: start;
	}
}

/* ---------------------------------------------------------
   Sticky stage
   --------------------------------------------------------- */

.story__stage {
	position: sticky;
	display: grid;
	place-items: center;
	z-index: 2;
}

@media (max-width: 899px) {
	.story__stage {
		top: calc(var(--header-stack) + var(--sp-2));
		height: 34vh;
		margin-bottom: var(--sp-6);
	}

	/* Step text rises past the pinned handset. This backdrop is opaque
	   under the phone and fades out well below it, so the text dissolves
	   instead of being sliced by the phone's edge. */
	.story__stage::before {
		content: "";
		position: absolute;
		left: -50vw;
		right: -50vw;
		top: calc(var(--sp-7) * -1);
		bottom: -14vh;
		z-index: -1;
		background: linear-gradient(
			180deg,
			var(--navy-900) 0%,
			var(--navy-900) 82%,
			rgba(11, 26, 59, 0) 100%
		);
	}

	/* Sit the copy low in its box so it enters below the handset. */
	.story__step {
		justify-content: flex-end;
		min-height: 46vh;
		padding-bottom: 10vh;
	}

	.story__step:last-child { min-height: 38vh; }
}

@media (min-width: 900px) {
	.story__stage {
		top: calc(var(--header-stack) + var(--sp-5));
		height: min(76vh, 640px);
	}
}

.story__device {
	position: relative;
	height: 100%;
	aspect-ratio: 9 / 18;
	max-width: 100%;
	perspective: 1000px;
}

/* Glow behind the handset, brightening with the story. */
.story__aura {
	position: absolute;
	inset: -22% -46%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(53, 208, 222, 0.4), transparent 66%);
	opacity: 0.25;
	transition: opacity 1s var(--m-out);
	pointer-events: none;
}

.story[data-scene="2"] .story__aura { opacity: 0.6; }
.story[data-scene="3"] .story__aura { opacity: 1; }

/* ---------------------------------------------------------
   The handset
   --------------------------------------------------------- */

.story__phone {
	position: relative;
	height: 100%;
	padding: 9px;
	border-radius: clamp(24px, 3.4vw, 36px);
	background: linear-gradient(155deg, #33456f 0%, #16224a 45%, #0a1330 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.08),
		0 46px 80px -34px rgba(0, 0, 0, 0.9);
	/* Turns to face the reader as the story progresses. */
	transform: rotateY(-11deg) rotateX(5deg);
	transition: transform 1.1s var(--m-out);
}

.story[data-scene="2"] .story__phone,
.story[data-scene="3"] .story__phone { transform: rotateY(0deg) rotateX(0deg) scale(1.03); }

.story__notch {
	position: absolute;
	top: 15px;
	left: 50%;
	transform: translateX(-50%);
	width: 34%;
	height: 7px;
	border-radius: 999px;
	background: rgba(4, 10, 26, 0.9);
	z-index: 4;
}

.story__screen {
	position: relative;
	height: 100%;
	border-radius: inherit;
	overflow: hidden;
	background: #050c1c;
	transition: background 1s var(--m-out);
}

.story[data-scene="1"] .story__screen { background: linear-gradient(180deg, #0d2050, #091634); }
.story[data-scene="2"] .story__screen { background: linear-gradient(180deg, #10305f, #0a1a3c); }
.story[data-scene="3"] .story__screen { background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); }

/* Glass reflection across the dark screen; fades once it lights up. */
.story__sheen {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: linear-gradient(148deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 34%, transparent 52%);
	transition: opacity 1s var(--m-out);
	pointer-events: none;
}

.story[data-scene="2"] .story__sheen { opacity: 0.5; }
.story[data-scene="3"] .story__sheen { opacity: 0.28; }

/* ---------------------------------------------------------
   Scenes on the screen
   --------------------------------------------------------- */

.story__scene {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--sp-3);
	padding: var(--sp-4);
	text-align: center;
	opacity: 0;
	transform: translateY(14px) scale(0.95);
	transition: opacity 0.6s var(--m-out), transform 0.6s var(--m-out);
}

.story[data-scene="1"] .story__scene--lock,
.story[data-scene="2"] .story__scene--scan,
.story[data-scene="3"] .story__scene--reward {
	opacity: 1;
	transform: none;
}

.story__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

/* Unlock */
.story__ring {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba(53, 208, 222, 0.16);
	border: 1px solid rgba(53, 208, 222, 0.4);
	color: var(--teal-400);
}

.story__dots {
	display: flex;
	gap: 10px;
}

.story__dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
}

.story[data-scene="1"] .story__dots i {
	animation: story-dot 1.6s var(--m-out) infinite;
}

.story__dots i:nth-child(2) { animation-delay: 0.18s; }
.story__dots i:nth-child(3) { animation-delay: 0.36s; }
.story__dots i:nth-child(4) { animation-delay: 0.54s; }

@keyframes story-dot {
	0%, 60%, 100% { background: rgba(255, 255, 255, 0.22); }
	30%           { background: var(--teal-400); }
}

/* Scan: corner brackets, the code, and a sweeping beam */
.story__frame {
	position: relative;
	display: grid;
	place-items: center;
	width: 68%;
	aspect-ratio: 1;
	border-radius: 14px;
	background:
		linear-gradient(var(--teal-400) 0 0) 0 0 / 20px 2px no-repeat,
		linear-gradient(var(--teal-400) 0 0) 0 0 / 2px 20px no-repeat,
		linear-gradient(var(--teal-400) 0 0) 100% 0 / 20px 2px no-repeat,
		linear-gradient(var(--teal-400) 0 0) 100% 0 / 2px 20px no-repeat,
		linear-gradient(var(--teal-400) 0 0) 0 100% / 20px 2px no-repeat,
		linear-gradient(var(--teal-400) 0 0) 0 100% / 2px 20px no-repeat,
		linear-gradient(var(--teal-400) 0 0) 100% 100% / 20px 2px no-repeat,
		linear-gradient(var(--teal-400) 0 0) 100% 100% / 2px 20px no-repeat;
}

.story__qr { color: rgba(255, 255, 255, 0.88); }

.story__beam {
	position: absolute;
	left: 6%;
	right: 6%;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
	box-shadow: 0 0 18px 3px rgba(53, 208, 222, 0.6);
	opacity: 0;
}

.story[data-scene="2"] .story__beam {
	opacity: 1;
	animation: story-beam 2.4s ease-in-out infinite;
}

@keyframes story-beam {
	0%, 100% { transform: translateY(-38px); }
	50%      { transform: translateY(38px); }
}

/* Points */
.story__points {
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
	font-weight: 500;
	line-height: 1;
	color: var(--teal-400);
	text-shadow: 0 0 30px rgba(53, 208, 222, 0.6);
}

.story__balance {
	padding: 0.35rem 0.85rem;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
}

/* ---------------------------------------------------------
   Hand and sparks
   --------------------------------------------------------- */

.story__hand {
	position: absolute;
	right: -30%;
	bottom: -6%;
	width: 74%;
	height: auto;
	z-index: 3;
	filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.55));
	opacity: 0;
	transform: translate3d(26px, 96px, 0) rotate(9deg);
	transition: opacity 0.8s var(--m-out), transform 0.9s var(--m-out);
	pointer-events: none;
}

.story[data-scene="1"] .story__hand,
.story[data-scene="2"] .story__hand {
	opacity: 1;
	transform: translate3d(0, 22px, 0) rotate(0deg);
}

.story[data-scene="2"] .story__hand {
	transform: translate3d(6px, 46px, 0) rotate(-3deg);
}

.story[data-scene="3"] .story__hand {
	opacity: 0;
	transform: translate3d(22px, 104px, 0) rotate(7deg);
}

.story__spark {
	position: absolute;
	left: 50%;
	top: 4%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--teal-400);
	box-shadow: 0 0 14px 3px rgba(53, 208, 222, 0.7);
	opacity: 0;
	pointer-events: none;
}

.story[data-scene="3"] .story__spark {
	animation: story-spark 2.6s ease-out infinite;
}

.story__spark--1 { margin-left: -60px; animation-delay: 0.1s; }
.story__spark--2 { margin-left: 10px;  animation-delay: 0.7s; }
.story__spark--3 { margin-left: 52px;  animation-delay: 1.3s; }

@keyframes story-spark {
	0%   { opacity: 0; transform: translate3d(0, 20px, 0) scale(0.5); }
	25%  { opacity: 1; }
	100% { opacity: 0; transform: translate3d(0, -90px, 0) scale(1.1); }
}

/* ---------------------------------------------------------
   Steps
   --------------------------------------------------------- */

.story__steps {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.story__steps { padding-left: 76px; }

	/* Rail that connects the four moments. */
	.story__steps::before {
		content: "";
		position: absolute;
		left: 23px;
		top: 12%;
		bottom: 12%;
		width: 2px;
		border-radius: 2px;
		background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16) 12%, rgba(255, 255, 255, 0.16) 88%, transparent);
	}
}

.story__step {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 58vh;
	padding-block: var(--sp-6);
}

@media (min-width: 900px) {
	.story__step { min-height: 56vh; }
}

.story__step:last-child { min-height: 40vh; }

/* Without JS every step stays fully legible. */
.js .story__step {
	opacity: 0.32;
	transform: translateY(8px);
	transition: opacity 0.6s var(--m-out), transform 0.6s var(--m-out);
}

.js .story__step.is-active,
.js .story.is-static .story__step {
	opacity: 1;
	transform: none;
}

.story__no {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: var(--sp-4);
	border-radius: 14px;
	border: 1px solid rgba(53, 208, 222, 0.35);
	background: rgba(53, 208, 222, 0.12);
	color: var(--teal-400);
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 500;
	transition: background 0.5s var(--m-out), color 0.5s var(--m-out), box-shadow 0.5s var(--m-out), border-color 0.5s var(--m-out);
}

@media (min-width: 900px) {
	.story__no {
		position: absolute;
		left: -76px;
		top: 50%;
		margin: 0;
		transform: translateY(-50%);
	}
}

.story__step.is-active .story__no {
	background: var(--grad-accent);
	border-color: transparent;
	color: var(--navy-900);
	box-shadow: 0 12px 26px -10px rgba(20, 184, 201, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.story__title {
	margin: 0 0 var(--sp-3);
	font-size: var(--fs-h2);
	color: #fff;
}

.story__text {
	margin: 0;
	max-width: 34ch;
	font-size: var(--fs-lg);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
}

/* ---------------------------------------------------------
   Reduced motion: the last scene, no loops, no dimming
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.story__phone,
	.story__screen,
	.story__scene,
	.story__hand,
	.story__aura,
	.story__lift,
	.story__no,
	.js .story__step { transition: none; }

	.story__beam,
	.story__spark,
	.story__dots i { animation: none; }

	.js .story__step { opacity: 1; transform: none; }
	.story__phone { transform: none; }
}

/* =========================================================
   Client Feedbacks: video slider and player dialog
   Cards are portrait (9:16, like the YouTube Shorts they
   show). The track is a native scroll-snap row, so touch
   swipe, trackpads and keyboard scrolling all work for free;
   JS only adds the arrows and the progress bar.
   ========================================================= */

.vslider { position: relative; }

.vslider__track {
	--vcard-w: 72%;
	display: flex;
	gap: var(--sp-4);
	margin: 0 calc(var(--gutter) * -1);
	padding: var(--sp-3) var(--gutter) var(--sp-5);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.vslider__track::-webkit-scrollbar { display: none; }

.vslider__track:focus-visible {
	outline: 3px solid var(--teal-600);
	outline-offset: 4px;
	border-radius: var(--radius-lg);
}

@media (min-width: 600px)  { .vslider__track { --vcard-w: 42%; } }
@media (min-width: 900px)  { .vslider__track { --vcard-w: calc((100% - var(--sp-5) * 3) / 4); gap: var(--sp-5); } }
/* Four across on desktop, never wider than 290px; when that leaves room,
   the row centres instead of hugging the left edge. */
@media (min-width: 1200px) { .vslider__track { --vcard-w: min(290px, calc((100% - var(--sp-5) * 3) / 4)); } }

.vslider.is-static .vslider__track { justify-content: center; }

.vslider__item {
	flex: 0 0 var(--vcard-w);
	min-width: 0;
	scroll-snap-align: start;
}

/* ---------------------------------------------------------
   The card
   --------------------------------------------------------- */

.vcard {
	display: grid;
	gap: var(--sp-3);
}

.vcard__media {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	border-radius: 20px;
	overflow: hidden;
	background: var(--navy-900);
	box-shadow: var(--edge-dark), var(--elev-2);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
	transition: transform var(--m-base) var(--m-out), box-shadow var(--m-base) var(--m-out);
}

.vcard__media:hover,
.vcard__media:focus-visible {
	color: #fff;
	transform: translateY(-6px);
	box-shadow: var(--edge-dark), var(--elev-3), 0 0 0 1px rgba(53, 208, 222, 0.45);
}

.vcard__media:focus-visible {
	outline: 3px solid var(--teal-400);
	outline-offset: 3px;
}

/* The thumbnail fills the portrait frame. For a Short's landscape fallback
   thumbnail, centre-cropping lands exactly on the vertical video frame. */
.vcard__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.02);
	transition: transform var(--m-slow) var(--m-out);
}

.vcard__media:hover .vcard__img { transform: scale(1.07); }

.vcard__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(13, 20, 32, 0.45) 0%, rgba(13, 20, 32, 0) 22%),
		linear-gradient(0deg, rgba(13, 20, 32, 0.92) 0%, rgba(13, 20, 32, 0.55) 30%, rgba(13, 20, 32, 0) 58%);
}

.vcard__chip {
	position: absolute;
	top: var(--sp-3);
	left: var(--sp-3);
	z-index: 2;
	padding: 0.28rem 0.7rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(13, 20, 32, 0.45);
	backdrop-filter: blur(8px);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

/* Play button: a teal disc with a soft pulse ring. */
.vcard__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: var(--grad-accent);
	color: var(--navy-900);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 30px -8px rgba(20, 184, 201, 0.75);
	transition: transform var(--m-base) var(--m-spring);
}

.vcard__play .icon { margin-left: 3px; }

.vcard__play::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid rgba(53, 208, 222, 0.55);
	animation: vpulse 2.4s var(--m-out) infinite;
}

@keyframes vpulse {
	0%   { transform: scale(0.85); opacity: 0.9; }
	100% { transform: scale(1.35); opacity: 0; }
}

.vcard__media:hover .vcard__play,
.vcard__media:focus-visible .vcard__play { transform: scale(1.1); }

.vcard__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: grid;
	gap: 4px;
	padding: var(--sp-5) var(--sp-4) var(--sp-4);
}

.vcard__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.25;
	color: #fff;
}

.vcard__who {
	font-size: var(--fs-xs);
	font-weight: 500;
	color: var(--teal-400);
}

.vcard__text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	padding-inline: var(--sp-1);
	font-size: var(--fs-sm);
	line-height: 1.55;
	color: var(--text-muted);
}

/* ---------------------------------------------------------
   Controls: arrows either side of a progress bar
   --------------------------------------------------------- */

.vslider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-4);
	margin-top: var(--sp-2);
}

/* When every card already fits, there is nothing to scroll to. */
.vslider.is-static .vslider__controls { display: none; }

.vslider__arrow {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1.5px solid var(--navy-100);
	background: #fff;
	color: var(--brand);
	box-shadow: var(--edge), var(--elev-1);
	transition: background var(--m-base) var(--m-out), color var(--m-base) var(--m-out), border-color var(--m-base) var(--m-out), transform var(--m-fast) var(--m-out), opacity var(--m-base);
}

.vslider__arrow:hover {
	background: var(--teal-500);
	border-color: var(--teal-500);
	color: var(--navy-900);
	transform: scale(1.06);
}

.vslider__arrow[disabled] {
	opacity: 0.35;
	pointer-events: none;
}

.vslider__progress {
	position: relative;
	width: min(240px, 40vw);
	height: 4px;
	border-radius: var(--radius-pill);
	background: var(--navy-050);
	overflow: hidden;
}

.vslider__progress i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--vw, 40%);
	border-radius: inherit;
	background: var(--grad-accent);
	transform: translateX(var(--vx, 0%));
	transition: transform 0.2s linear;
}

/* ---------------------------------------------------------
   Player dialog
   --------------------------------------------------------- */

.vmodal {
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
	max-width: none;
	max-height: none;
}

.vmodal::backdrop {
	background: rgba(13, 20, 32, 0.82);
	backdrop-filter: blur(6px);
}

.vmodal[open] { animation: vmodal-in 0.32s var(--m-out) both; }

@keyframes vmodal-in {
	from { opacity: 0; transform: translateY(14px) scale(0.97); }
	to   { opacity: 1; transform: none; }
}

.vmodal__frame {
	position: relative;
	width: min(92vw, calc(84vh * 9 / 16));
	aspect-ratio: 9 / 16;
	border-radius: 20px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.vmodal.is-horizontal .vmodal__frame {
	width: min(92vw, 1040px, calc(80vh * 16 / 9));
	aspect-ratio: 16 / 9;
}

.vmodal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.vmodal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--navy-900);
	box-shadow: var(--elev-2);
	transition: background var(--m-base) var(--m-out), transform var(--m-fast) var(--m-out);
}

.vmodal__close:hover { background: var(--teal-500); transform: rotate(90deg); }

@media (max-width: 599px) {
	.vmodal__close { top: -54px; right: 0; }
}

body.vmodal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.vcard__play::before,
	.vmodal[open] { animation: none; }
	.vcard__media,
	.vcard__img,
	.vcard__play { transition: none; }
	.vcard__media:hover,
	.vcard__media:focus-visible { transform: none; }
	.vcard__media:hover .vcard__img { transform: scale(1.02); }
}
