/* -----------------------------------------------------------------------
   Stats page (page-stats.php) — a full dark "numbers experience".
   RTL-first, logical properties only. One design system for the whole
   page: deep-ink canvas, glass surfaces, hairline borders, gradient
   display numerals, staggered reveal on scroll. Data colors (violet /
   orange / pink) appear ONLY inside data visualizations; everything else
   stays in the brand-blue family.
   ----------------------------------------------------------------------- */

.stats-page {
	--stats-bg: #0b1022;
	--stats-bg-deep: #070a1a;
	--stats-ink: #10142b;            /* dark ink for text on light/yellow cards */
	--stats-text: #eef1f8;
	--stats-muted: rgba(238, 241, 248, 0.64);   /* lifted for legibility on the dark canvas */
	--stats-surface: rgba(255, 255, 255, 0.05);
	--stats-surface-hover: rgba(255, 255, 255, 0.08);
	--stats-border: rgba(255, 255, 255, 0.1);
	--stats-border-hover: rgba(110, 187, 233, 0.45);
	--stats-accent: var(--shivuk-color-accent);
	--stats-accent-tint: #6ebbe9;    /* light tint for accents on the dark canvas */
	--stats-violet: #7c4dff;
	--stats-orange: #ff8a3d;
	--stats-pink: #ff5c8a;
	--stats-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--stats-dur: 0.3s;

	/* One depth language for the whole page. Before this, each section set its
	   own radius, surface fill and shadow by hand — the tokens below let every
	   card (headline / platform / engagement / panels) share the exact same
	   frosted-glass treatment and elevation, which is what reads as "one
	   system" rather than a stack of similar-but-not-quite sections. */
	--stats-radius: 20px;
	--stats-radius-lg: 24px;
	--stats-radius-icon: 14px;
	--stats-surface-grad: linear-gradient(168deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
	--stats-blur: blur(7px) saturate(118%);
	--stats-shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 22px 48px -30px rgba(0, 0, 0, 0.8);
	--stats-shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 30px 62px -26px rgba(26, 125, 190, 0.5);
	--stats-icon-surface: linear-gradient(160deg, rgba(26, 125, 190, 0.32), rgba(110, 187, 233, 0.12));
	--stats-icon-ring: 0 0 0 1px rgba(110, 187, 233, 0.28), 0 8px 18px -10px rgba(26, 125, 190, 0.7);
	--stats-gap: clamp(3rem, 5.5vw, 5.5rem);
	/* How far the headline bento floats up into the hero. */
	--stats-overlap: 4.5rem;

	display: grid;
	gap: var(--stats-gap);
	/* Swallow .site-content's white padding on both ends so the dark canvas
	   runs edge-to-edge from the header to the footer. */
	margin-block: calc(-1 * var(--shivuk-space));
	padding-block-end: var(--stats-gap);
	background: var(--stats-bg);
	color: var(--stats-text);
}

/* A numbers page earns a wider canvas than the reading pages. */
.stats-page .container {
	inline-size: 100%;
	max-inline-size: min(1320px, calc(100% - 2 * var(--shivuk-space)));
}

/* The theme's accent focus ring vanishes on the dark canvas. */
.stats-page *:focus-visible {
	outline-color: #ffffff;
}

/* -----------------------------------------------------------------------
   Reveal-on-scroll. An animation (not a transition) so it never fights the
   hover transitions on the same elements. Hidden state only applies when
   motion is allowed — reduced-motion users always see everything, and
   stats.js adds .is-visible immediately when IntersectionObserver is out.
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.stats-page .js-reveal {
		opacity: 0;
	}

	.stats-page .js-reveal.is-visible {
		animation: stats-rise 0.65s var(--stats-ease) both;
	}

	/* Stagger — each sibling tile enters a beat after the previous one. */
	.stats-page .js-reveal.is-visible:nth-child(2) { animation-delay: 70ms; }
	.stats-page .js-reveal.is-visible:nth-child(3) { animation-delay: 140ms; }
	.stats-page .js-reveal.is-visible:nth-child(4) { animation-delay: 210ms; }
	.stats-page .js-reveal.is-visible:nth-child(5) { animation-delay: 280ms; }
	.stats-page .js-reveal.is-visible:nth-child(6) { animation-delay: 350ms; }
	.stats-page .js-reveal.is-visible:nth-child(7) { animation-delay: 420ms; }
	.stats-page .js-reveal.is-visible:nth-child(8) { animation-delay: 490ms; }
	.stats-page .js-reveal.is-visible:nth-child(9) { animation-delay: 560ms; }
}

@keyframes stats-rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -----------------------------------------------------------------------
   1. Hero — seamless with the page canvas; depth comes from layered
   glows, a faint dot matrix, and a display-size gradient title.
   ----------------------------------------------------------------------- */
.stats-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4.5rem, 10vw, 7.5rem) calc(clamp(3rem, 7vw, 5rem) + var(--stats-overlap));
	background:
		radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.6px) 0 0 / 18px 18px,
		radial-gradient(55% 75% at 82% -5%, rgba(124, 77, 255, 0.28), transparent 60%),
		radial-gradient(65% 80% at 12% 15%, rgba(26, 125, 190, 0.38), transparent 62%),
		linear-gradient(178deg, var(--stats-bg-deep), var(--stats-bg) 85%);
	text-align: center;
}

/* Thin light seam where the hero meets the header — grounds the dark
   canvas against the light chrome above it. */
.stats-hero::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.stats-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
}

.stats-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.35em 1.1em;
	border-radius: 999px;
	border: 1px solid rgba(110, 187, 233, 0.35);
	background: rgba(26, 125, 190, 0.16);
	color: var(--stats-accent-tint);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* Live-dot pulse in front of the kicker — "these numbers breathe". */
.stats-hero__kicker::before {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	border-radius: 50%;
	background: var(--stats-accent-tint);
	box-shadow: 0 0 0 0 rgba(110, 187, 233, 0.55);
	animation: stats-pulse 2.4s infinite;
}

@keyframes stats-pulse {
	70% { box-shadow: 0 0 0 9px rgba(110, 187, 233, 0); }
	100% { box-shadow: 0 0 0 0 rgba(110, 187, 233, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.stats-hero__kicker::before {
		animation: none;
	}
}

.stats-hero__title {
	margin: 0;
	max-inline-size: 20ch;
	font-size: clamp(2.4rem, 5.5vw, 4rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
	background: linear-gradient(175deg, #ffffff 55%, var(--stats-accent-tint));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--stats-text); /* fallback when background-clip:text is unsupported */
	/* Own compositor layer — clip-to-text flashes during repaints without it. */
	transform: translateZ(0);
}

/* -----------------------------------------------------------------------
   Shared section title — a small letterspaced tinted dash-label above a
   confident title. Panels re-align it to their own start edge.
   ----------------------------------------------------------------------- */
.stats-section-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 2rem;
	color: var(--stats-text);
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
	font-weight: 800;
	text-align: center;
	letter-spacing: -0.01em;
}

.stats-section-title::before {
	content: "";
	inline-size: 38px;
	block-size: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--stats-accent), var(--stats-accent-tint));
	box-shadow: 0 0 12px rgba(110, 187, 233, 0.45);
}

.stats-section-title--light {
	color: var(--stats-text);
}

/* -----------------------------------------------------------------------
   2. Headline bento — 4-column grid, first stat is a 2×2 hero cell.
   Floats up over the hero's bottom edge.
   ----------------------------------------------------------------------- */
.stats-grid-section {
	position: relative;
	z-index: 1;
}

/* Whatever section directly follows the hero floats up over its bottom
   edge — the timeline when it's shown, the headline bento when the
   timeline is toggled off in the settings. */
.stats-hero + .stats-grid-section,
.stats-hero + .stats-timeline {
	margin-block-start: calc(-1 * var(--stats-gap) - var(--stats-overlap));
	position: relative;
	z-index: 1;
}

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

.stat-tile {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: clamp(1.5rem, 2.6vw, 2rem) 1.25rem;
	border-radius: var(--stats-radius);
	background: var(--stats-surface-grad);
	border: 1px solid var(--stats-border);
	box-shadow: var(--stats-shadow-card);
	backdrop-filter: var(--stats-blur);
	-webkit-backdrop-filter: var(--stats-blur);
	text-align: center;
	transition: transform var(--stats-dur) var(--stats-ease), border-color var(--stats-dur) var(--stats-ease), background-color var(--stats-dur) var(--stats-ease), box-shadow var(--stats-dur) var(--stats-ease);
}

.stat-tile:hover {
	transform: translateY(-5px);
	border-color: var(--stats-border-hover);
	box-shadow: var(--stats-shadow-card-hover);
}

/* Soft accent bloom inside each tile's top corner. */
.stat-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 55% at 85% -10%, rgba(26, 125, 190, 0.22), transparent 65%);
	pointer-events: none;
}

/* The 2×2 bento hero cell: display-size number, bigger icon. */
.stat-tile--featured {
	grid-column: span 2;
	grid-row: span 2;
	gap: 0.8rem;
	padding: clamp(2rem, 3.5vw, 3rem);
}

.stat-tile--featured::before {
	background:
		radial-gradient(55% 50% at 85% -8%, rgba(124, 77, 255, 0.2), transparent 65%),
		radial-gradient(60% 55% at 10% 110%, rgba(26, 125, 190, 0.28), transparent 65%);
}

.stat-tile__icon {
	position: relative;
	display: grid;
	place-items: center;
	inline-size: 48px;
	block-size: 48px;
	border-radius: var(--stats-radius-icon);
	background: var(--stats-icon-surface);
	border: 1px solid rgba(110, 187, 233, 0.3);
	box-shadow: var(--stats-icon-ring);
	color: var(--stats-accent-tint);
}

.stat-tile__icon svg {
	inline-size: 24px;
	block-size: 24px;
}

.stat-tile--featured .stat-tile__icon {
	inline-size: 60px;
	block-size: 60px;
	border-radius: 18px;
}

.stat-tile--featured .stat-tile__icon svg {
	inline-size: 30px;
	block-size: 30px;
}

.stat-tile__value {
	position: relative;
	margin: 0;
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(170deg, #ffffff 45%, var(--stats-accent-tint));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--stats-text); /* fallback */
	transform: translateZ(0);
}

.stat-tile--featured .stat-tile__value {
	font-size: clamp(3.2rem, 6vw, 4.8rem);
}

.stat-tile__label {
	position: relative;
	margin: 0;
	color: var(--stats-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.stat-tile--featured .stat-tile__label {
	font-size: 1.05rem;
	color: rgba(238, 241, 248, 0.75);
}

.stats-grid-section__caption {
	margin: 1.5rem 0 0;
	color: var(--stats-muted);
	font-size: 0.88rem;
	text-align: center;
}

/* -----------------------------------------------------------------------
   Shared segmented bar (roles + content mix + gender split)
   ----------------------------------------------------------------------- */
.stat-bar {
	display: flex;
	overflow: hidden;
	inline-size: 100%;
	block-size: 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid var(--stats-border);
}

.stat-bar__segment {
	flex: 0 0 0%;
	block-size: 100%;
	transition: flex-basis 1.1s var(--stats-ease);
}

.stat-bar__segment--1 { background: linear-gradient(90deg, var(--stats-accent), var(--stats-accent-tint)); }
.stat-bar__segment--2 { background: var(--stats-violet); }
.stat-bar__segment--3 { background: var(--stats-orange); }

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

/* -----------------------------------------------------------------------
   3. Platform reach — a row of glass tiles right under the bento.
   ----------------------------------------------------------------------- */
.stats-platforms__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.platform-tile {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: clamp(1.4rem, 2.4vw, 1.9rem) 1rem;
	border-radius: var(--stats-radius);
	background: var(--stats-surface-grad);
	border: 1px solid var(--stats-border);
	box-shadow: var(--stats-shadow-card);
	backdrop-filter: var(--stats-blur);
	-webkit-backdrop-filter: var(--stats-blur);
	text-align: center;
	transition: transform var(--stats-dur) var(--stats-ease), border-color var(--stats-dur) var(--stats-ease), background-color var(--stats-dur) var(--stats-ease), box-shadow var(--stats-dur) var(--stats-ease);
}

.platform-tile:hover {
	transform: translateY(-5px);
	border-color: var(--stats-border-hover);
	box-shadow: var(--stats-shadow-card-hover);
}

.platform-tile__icon {
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: var(--stats-radius-icon);
	background: var(--stats-icon-surface);
	border: 1px solid rgba(110, 187, 233, 0.28);
	box-shadow: var(--stats-icon-ring);
	color: var(--stats-accent-tint);
}

.platform-tile__icon svg {
	inline-size: 22px;
	block-size: 22px;
}

.platform-tile__value {
	margin: 0;
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
	font-weight: 800;
	line-height: 1;
	color: var(--stats-text);
	font-variant-numeric: tabular-nums;
}

.platform-tile__label {
	margin: 0;
	color: var(--stats-muted);
	font-size: 0.84rem;
	font-weight: 600;
}

/* -----------------------------------------------------------------------
   4. Monthly engagement — a bounded band on the canvas: hairlines above
   and below plus its own inner glow, so the rhythm of the page changes
   without breaking the dark world.
   ----------------------------------------------------------------------- */
.stats-engagement {
	padding-block: clamp(3rem, 6vw, 4.5rem);
	background: radial-gradient(60% 100% at 50% 0%, rgba(26, 125, 190, 0.14), transparent 70%);
	border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.stats-engagement__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.engage-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: clamp(1.5rem, 2.5vw, 2rem) 1.25rem;
	border-radius: var(--stats-radius);
	background: var(--stats-surface-grad);
	border: 1px solid var(--stats-border);
	box-shadow: var(--stats-shadow-card);
	backdrop-filter: var(--stats-blur);
	-webkit-backdrop-filter: var(--stats-blur);
	text-align: center;
	transition: transform var(--stats-dur) var(--stats-ease), border-color var(--stats-dur) var(--stats-ease), background-color var(--stats-dur) var(--stats-ease), box-shadow var(--stats-dur) var(--stats-ease);
}

.engage-tile:hover {
	transform: translateY(-5px);
	border-color: var(--stats-border-hover);
	box-shadow: var(--stats-shadow-card-hover);
}

.engage-tile__icon {
	display: grid;
	place-items: center;
	inline-size: 42px;
	block-size: 42px;
	margin-block-end: 0.25rem;
	border-radius: var(--stats-radius-icon);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px -12px rgba(0, 0, 0, 0.6);
	color: var(--stats-text);
}

.engage-tile__icon svg {
	inline-size: 21px;
	block-size: 21px;
}

.engage-tile__value {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	font-weight: 800;
	line-height: 1;
	color: var(--stats-text);
	font-variant-numeric: tabular-nums;
}

.engage-tile__label {
	margin: 0;
	font-weight: 700;
	color: var(--stats-text);
}

.engage-tile__note {
	margin: 0;
	color: var(--stats-muted);
	font-size: 0.82rem;
}

/* -----------------------------------------------------------------------
   5. "Who we are" panels — roles + content mix side by side, sharing the
   wide container.
   ----------------------------------------------------------------------- */
.stats-panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

.stats-panel {
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	border-radius: var(--stats-radius);
	background: var(--stats-surface-grad);
	border: 1px solid var(--stats-border);
	box-shadow: var(--stats-shadow-card);
	backdrop-filter: var(--stats-blur);
	-webkit-backdrop-filter: var(--stats-blur);
}

/* Inside a panel the section title aligns to the panel, not the page. */
.stats-panel .stats-section-title {
	align-items: flex-start;
	text-align: start;
	font-size: 1.2rem;
	margin-block-end: 1.5rem;
}

.stats-roles__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.4rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.stats-roles__legend-item {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.92rem;
}

.stats-roles__dot {
	display: inline-block;
	inline-size: 10px;
	block-size: 10px;
	border-radius: 50%;
}

.stats-roles__dot--1 { background: var(--stats-accent-tint); }
.stats-roles__dot--2 { background: var(--stats-violet); }
.stats-roles__dot--3 { background: var(--stats-orange); }

.stats-roles__legend-percent {
	font-weight: 800;
	color: var(--stats-text);
	font-variant-numeric: tabular-nums;
}

.stats-roles__legend-label {
	color: var(--stats-muted);
}

.stats-roles__caption {
	margin: auto 0 0;
	padding-block-start: 1.25rem;
	color: var(--stats-muted);
	font-size: 0.83rem;
}

.stats-mix__list {
	display: grid;
	gap: 1.05rem;
}

.stats-mix__row {
	display: grid;
	grid-template-columns: 9ch 1fr 9ch;
	align-items: center;
	gap: 1rem;
}

.stats-mix__label {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--stats-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stats-mix__bar {
	block-size: 10px;
}

.stats-mix__percent {
	text-align: end;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--stats-text);
	font-size: 0.9rem;
}

.stats-mix__count {
	font-weight: 500;
	color: var(--stats-muted);
}

/* -----------------------------------------------------------------------
   6. Gender split — the one loud card on the page, and it earns it.
   ----------------------------------------------------------------------- */
.stats-gender__inner {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	max-inline-size: 560px;
	margin-inline: auto;
	padding: clamp(2.25rem, 4.5vw, 3.25rem);
	border-radius: var(--stats-radius-lg);
	background:
		radial-gradient(70% 90% at 90% -10%, rgba(255, 255, 255, 0.22), transparent 60%),
		linear-gradient(155deg, var(--stats-pink), var(--stats-violet) 100%);
	color: #ffffff;
	text-align: center;
	box-shadow: 0 30px 70px -30px rgba(255, 92, 138, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.stats-gender__kicker {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.stats-gender__value {
	margin: 0;
	font-size: clamp(3.5rem, 9vw, 5.5rem);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.stats-gender__text {
	margin: 0 0 0.5rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

.stat-bar--duo {
	max-inline-size: 280px;
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.25);
}

.stat-bar__segment--gender-a { background: #ffffff; }
.stat-bar__segment--gender-b { background: rgba(255, 255, 255, 0.35); }

/* -----------------------------------------------------------------------
   7. Community timeline — vertical line, accent year badges, items fade
   and slide in as they scroll into view.
   ----------------------------------------------------------------------- */
/* A narrow, centered column. .stats-page .container widens every section
   to 1320px with equal specificity — this must out-rank it (two classes +
   later in the file), or the list sits start-aligned in a wide container
   instead of centered in the section. margin-inline: auto comes from the
   base .container rule. */
.stats-page .stats-timeline {
	max-inline-size: min(860px, calc(100% - 2 * var(--shivuk-space)));
}

/* Soft glowing hairline closing the timeline — a visible beat between the
   story (timeline) and the numbers (counter grid) that follow. */
.stats-timeline::after {
	content: "";
	display: block;
	inline-size: min(320px, 60%);
	block-size: 1px;
	margin: clamp(2.75rem, 5vw, 4.25rem) auto 0;
	background: linear-gradient(90deg, transparent, rgba(110, 187, 233, 0.55), transparent);
	box-shadow: 0 0 14px rgba(110, 187, 233, 0.35);
}

.stats-timeline__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.75rem;
}

.stats-timeline__list::before {
	content: "";
	position: absolute;
	inset-inline-start: 27px;
	inset-block: 6px;
	inline-size: 2px;
	background: linear-gradient(180deg, rgba(110, 187, 233, 0.5), rgba(255, 255, 255, 0.08));
}

.stats-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 1.1rem;
	align-items: start;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s var(--stats-ease), transform 0.6s var(--stats-ease);
}

.stats-timeline__item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.stats-timeline__year {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 50%;
	background: linear-gradient(160deg, var(--stats-accent), #2a94d8);
	color: #ffffff;
	font-weight: 800;
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 0 0 4px var(--stats-bg), 0 8px 22px -8px rgba(26, 125, 190, 0.6);
}

.stats-timeline__text {
	margin: 0;
	padding-block-start: 0.9rem;
	color: rgba(238, 241, 248, 0.85);
	font-size: 0.98rem;
	line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
	.stats-timeline__item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Desktop: a true centered timeline — the spine runs down the middle of
   the section, year badges sit on it, and milestone texts alternate
   sides, each aligned toward the center line. Narrow screens keep the
   single-side layout above. */
@media (min-width: 761px) {
	.stats-timeline__list::before {
		inset-inline-start: calc(50% - 1px);
	}

	.stats-timeline__item {
		grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
		gap: 1.4rem;
		align-items: center;
	}

	.stats-timeline__year {
		grid-column: 2;
		grid-row: 1;
	}

	.stats-timeline__text {
		grid-row: 1;
		padding-block-start: 0;
	}

	.stats-timeline__item:nth-child(odd) .stats-timeline__text {
		grid-column: 1;
		text-align: end;
	}

	.stats-timeline__item:nth-child(even) .stats-timeline__text {
		grid-column: 3;
		text-align: start;
	}
}

/* -----------------------------------------------------------------------
   8. Dream Job promo — the warm closing card.
   ----------------------------------------------------------------------- */
.stats-dreamjob__inner {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
	border-radius: var(--stats-radius-lg);
	background:
		radial-gradient(320px 220px at 90% 105%, rgba(255, 255, 255, 0.3), transparent 65%),
		radial-gradient(280px 190px at 10% -5%, rgba(255, 255, 255, 0.35), transparent 65%),
		linear-gradient(155deg, #ffe17a 0%, #f5c343 40%, #f5a623 100%);
	color: var(--stats-ink);
	text-align: center;
	box-shadow: 0 30px 70px -30px rgba(245, 166, 35, 0.45);
}

.stats-dreamjob__kicker {
	padding: 0.25em 0.9em;
	border-radius: 999px;
	background: var(--stats-ink);
	color: #ffd43b;
	font-size: 0.8rem;
	font-weight: 700;
}

.stats-dreamjob__title {
	margin: 0;
	max-inline-size: 26ch;
	font-size: clamp(1.6rem, 3.2vw, 2.3rem);
	font-weight: 800;
	line-height: 1.15;
	text-wrap: balance;
}

.stats-dreamjob__text {
	margin: 0 0 0.5rem;
	max-inline-size: 52ch;
	font-weight: 600;
}

.stats-dreamjob__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.75em 1.75em;
	border-radius: 999px;
	background: var(--stats-ink);
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	transition: transform var(--stats-dur) var(--stats-ease), box-shadow var(--stats-dur) var(--stats-ease);
}

.stats-dreamjob__cta:hover,
.stats-dreamjob__cta:focus {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -10px rgba(16, 20, 43, 0.55);
	color: #ffd43b;
}

.stats-dreamjob__arrow {
	display: inline-block;
	transition: transform var(--stats-dur) var(--stats-ease);
}

.stats-dreamjob__cta:hover .stats-dreamjob__arrow,
.stats-dreamjob__cta:focus .stats-dreamjob__arrow {
	/* Inline-forward nudge (leftwards in RTL). */
	transform: translateX(-4px);
}

@media (prefers-reduced-motion: reduce) {
	.stat-tile:hover,
	.platform-tile:hover,
	.engage-tile:hover,
	.stats-dreamjob__cta:hover,
	.stats-dreamjob__cta:focus {
		transform: none;
	}
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Featured cell becomes a full-width banner row above the pairs. */
	.stat-tile--featured {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.stats-engagement__grid,
	.stats-platforms__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.stats-engagement__grid,
	.stats-platforms__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.stat-tile__value {
		font-size: 1.6rem;
	}

	.stat-tile--featured .stat-tile__value {
		font-size: 2.8rem;
	}

	.stats-mix__row {
		grid-template-columns: 1fr;
		gap: 0.4rem;
	}

	.stats-mix__percent {
		text-align: start;
	}

	.stats-timeline__list::before {
		inset-inline-start: 19px;
	}

	.stats-timeline__item {
		grid-template-columns: 40px 1fr;
	}

	.stats-timeline__year {
		inline-size: 40px;
		block-size: 40px;
		font-size: 0.72rem;
	}
}
