/* ==========================================================================
   FarawayFound - site stylesheet (vanilla CSS, no framework).
   One file for the hub, the story index and the story pages.
   Palette, fonts and the peach accent are the owner's; everything else is layout.

   1 tokens - 2 base - 3 chrome (header, footer, buttons, chips) - 4 hero - 5 landing - 6 map
   7 story index - 8 about / contact - 9 story page - 10 lightbox - 11 motion - 12 very wide screens
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
	--bg: #0f051e;
	--bg-mid: #1e0d3c;
	--bg-card: #2a1555;
	--bg-light: #4a2d7a;
	--bg-softest: #6b47a8;
	--text: #c8b8e8;
	--heading: #f0e6ff;
	--accent: #f9ad81;
	--accent-hover: #f67d38;
	--accent-soft: rgba(249, 173, 129, 0.18);
	--accent-ink: #b4531f;          /* peach TEXT on white (5.0:1); --accent is for dark backgrounds only */
	--ink: #1a0a35;
	--white: #fff;
	--muted: rgba(200, 184, 232, 0.76);
	--line: rgba(200, 184, 232, 0.16);
	--line-strong: rgba(200, 184, 232, 0.32);
	--shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	/* small white words straight on a photo: a tight edge plus a short glow that follows the letters (no patches behind them) */
	--ts: 0 1px 2px rgba(5, 4, 8, 0.7), 0 0 4px rgba(5, 4, 8, 0.5), 0 0 14px rgba(5, 4, 8, 0.45);

	--slab: "Roboto Slab", Georgia, "Times New Roman", serif;
	--sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Share Tech Mono", "Courier New", monospace;

	--gutter: clamp(1.25rem, 4.4vw, 3rem);
	--max: 1240px;
	--bar-h: 64px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-io: cubic-bezier(0.65, 0, 0.35, 1);
	color-scheme: dark;
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); background: var(--bg); }
html.lb-open { overflow: hidden; }
body {
	margin: 0; min-height: 100vh;
	font-family: var(--sans); font-size: 1.125rem; font-weight: 300; line-height: 1.65;
	color: var(--text); background: var(--bg);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { position: relative; z-index: 1; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--accent); }
a { color: var(--accent); text-decoration: none; transition: color 0.35s ease; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 400; padding: 0.65rem 1rem; border-radius: 4px; background: var(--accent); color: var(--ink); font: 700 0.85rem var(--slab); transition: top 0.2s ease; }
.skip:focus { top: 1rem; color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--md { max-width: 1080px; }
.wrap--narrow { max-width: 820px; }
.wrap--wide { max-width: 1480px; }

.mono { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.eyebrow { font: 700 0.72rem/1.2 var(--slab); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.dotsep { display: inline-block; width: 4px; height: 4px; margin: 0 0.9em 0.18em; border-radius: 50%; background: var(--accent); opacity: 0.85; vertical-align: middle; }
.title { font: 700 clamp(1.9rem, 3.4vw, 2.7rem)/1.12 var(--slab); color: var(--heading); letter-spacing: -0.005em; }
.title--sm { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.display { font: 700 clamp(3.4rem, 1rem + 11.5vw, 12.5rem)/0.9 var(--slab); letter-spacing: -0.035em; color: var(--heading); }
.lead { font: 300 clamp(1.15rem, 1rem + 0.7vw, 1.55rem)/1.65 var(--sans); color: var(--text); }

/* star texture: static, faint, only in the map panel, About, Contact and the footer */
.has-stars { position: relative; isolation: isolate; }
.has-stars::before, .atlas::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("stars.svg") 0 0 / 1100px 1100px repeat; opacity: 0.5; }
.atlas::before { opacity: 0.38; }

/* ---------- 3. chrome ---------- */
.bar {
	position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h);
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--gutter);
	border-bottom: 1px solid transparent; transition: background 0.4s, border-color 0.4s;
}
.bar::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(8, 3, 16, 0.5), transparent); transition: opacity 0.4s; }
.bar.is-scrolled, .bar.is-open { background: rgba(15, 5, 30, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.bar.is-scrolled::before, .bar.is-open::before { opacity: 0; }
.bar__brand { position: relative; font: 700 1.2rem/1 var(--slab); letter-spacing: 0.015em; color: var(--white); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.bar__brand span { color: var(--accent); }
.bar__brand::after, .bar__nav a::after { content: ""; position: absolute; inset: -12px -4px; }  /* hit area only (44px tall) */
.tagchip::after { content: ""; position: absolute; inset: -8px -3px; }
.bar__brand:hover { color: var(--white); }
.bar__nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); }
.bar__nav a { position: relative; padding: 0.45rem 0; border-bottom: 2px solid transparent; font: 700 0.72rem/1 var(--slab); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.bar__nav a:hover, .bar__nav a.is-active { color: var(--accent); border-bottom-color: currentColor; }
.bar__toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; }
.bar__toggle i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.bar__toggle i:first-child { top: 18px; }
.bar__toggle i:last-child { top: 25px; }
.bar.is-open .bar__toggle i:first-child { top: 21px; transform: rotate(45deg); }
.bar.is-open .bar__toggle i:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 760px) {
	.js .page-blog .bar__toggle { display: block; }
	.js .page-blog .bar__nav {
		position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1rem;
		background: rgba(15, 5, 30, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
	}
	.js .page-blog .bar.is-open .bar__nav { transform: none; opacity: 1; visibility: visible; }
	.js .page-blog .bar__nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
	/* no JavaScript: no menu button, so the links stay in the header (a second row under the brand) */
	.no-js .page-blog .bar { height: auto; flex-wrap: wrap; row-gap: 0.1rem; padding-block: 0.6rem 0.5rem; }
	.no-js .page-blog .bar__nav { flex: 1 1 100%; justify-content: space-between; flex-wrap: wrap; gap: 0 0.9rem; }
}
@media (max-width: 480px) { .bar__nav { gap: 1rem; } .bar__nav a { font-size: 0.68rem; letter-spacing: 0.14em; } }
@media (max-width: 400px) { .bar { gap: 0.6rem; } .bar__brand { font-size: 1.05rem; } .bar__nav { gap: 0.8rem; } .bar__nav a { font-size: 0.62rem; letter-spacing: 0.1em; } }

.btn {
	display: inline-flex; align-items: center; gap: 0.7rem; padding: 1rem 1.9rem; border: 0; border-radius: 100px; cursor: pointer;
	background: var(--accent); color: var(--ink); font: 700 0.78rem/1 var(--slab); letter-spacing: 0.18em; text-transform: uppercase;
	box-shadow: 0 10px 30px rgba(249, 173, 129, 0.22); transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.btn:focus-visible { background: var(--accent-hover); color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(246, 125, 56, 0.3); }
@media (hover: hover) {
	.btn:hover { background: var(--accent-hover); color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(246, 125, 56, 0.3); }
	.btn:hover::after { transform: translateX(4px); }
}
.link-arrow { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; font: 700 0.74rem/1 var(--slab); letter-spacing: 0.18em; text-transform: uppercase; }
.link-arrow::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.link-arrow::before, .tick__link::before { content: ""; position: absolute; inset: -16px -4px; }  /* hit area only */
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--sm { font-size: 0.68rem; margin-top: 1.1rem; }

.chip {
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 34px; padding: 0.42rem 0.9rem; border-radius: 100px; cursor: pointer; white-space: nowrap;
	background: transparent; border: 1px solid var(--line-strong); color: var(--text); font: 400 0.74rem/1.1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
	transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
}
.chip .n { color: var(--muted); font-size: 0.7rem; }
@media (hover: hover) { .chip:hover { border-color: var(--accent); color: var(--heading); } }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] .n { color: var(--accent); }
.chip.is-zero { opacity: 0.38; }
@media (pointer: coarse) { .chip { min-height: 44px; padding-inline: 1.1rem; } }

.foot { position: relative; isolation: isolate; text-align: center; padding: 1.9rem var(--gutter) 2.6rem; font-size: 0.9rem; color: var(--text); background: var(--bg-mid); border-top: 1px solid rgba(74, 45, 122, 0.45); }
.foot p + p { margin-top: 0.3rem; }
.foot a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(200, 184, 232, 0.4); text-underline-offset: 3px; }
.foot a:hover { color: var(--accent); }
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("stars.svg") 300px 120px / 1100px 1100px repeat; opacity: 0.4; }

/* ---------- 4. hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center; background: var(--bg-light); }
.hero--home { height: clamp(620px, 94vh, 980px); height: clamp(620px, 94svh, 980px); }
.hero--blog { height: clamp(600px, 94vh, 980px); height: clamp(600px, 94svh, 980px); }
.hero--post { height: clamp(540px, 88vh, 920px); height: clamp(540px, 88svh, 920px); }
.hero__stage { position: absolute; inset: 0; z-index: -3; background: var(--bg-card); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease-in-out; will-change: opacity, transform; transform-origin: 50% 50%; }
.slide.is-active { opacity: 1; }
.slide.is-active, .slide.is-leaving { animation: kb 16s ease-out forwards; }
.slide.is-single { animation-duration: 28s; }
@keyframes kb { from { transform: scale(1.001); } to { transform: scale(1.09); } }
/* a neutral scrim, kept light on purpose (the owner removed the purple wash so the photos can breathe): a short fade for the
   nav, a fade into the page below, and - only on photos that are bright where the words sit - one flat, neutral tone layer
   (.hero__stage::after, under the fades so the hero still ends exactly on the page colour; --shade is set on .hero, measured at
   build time by scripts/lib/tone.js, and is 0 for dark and mid photos). No patches behind words. */
.hero__scrim {
	position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(8, 3, 18, 0.44) 0, rgba(8, 3, 18, 0) 12%),
		linear-gradient(to top, var(--bg) 0, rgba(15, 5, 30, 0.56) 7%, rgba(15, 5, 30, 0) 25%);
}
.hero--post .hero__scrim { background:
	linear-gradient(to bottom, rgba(8, 3, 18, 0.44) 0, rgba(8, 3, 18, 0) 12%),
	linear-gradient(to top, var(--bg) 0, rgba(15, 5, 30, 0.56) 7%, rgba(15, 5, 30, 0) 27%); }
.hero__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: #050408; opacity: var(--shade, 0); transition: opacity 1.8s ease-in-out; }
@media (max-width: 560px) { .hero__stage::after { opacity: var(--shade-m, 0); } }  /* a phone shows another part of the photo: it has its own measured value */
/* fine static film grain (never a colour wash) */
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__inner {
	--pb: 9.5rem;
	position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 3.4vw, 2.6rem);
	width: 100%; max-width: 1500px; padding: calc(var(--bar-h) + 2rem) var(--gutter) var(--pb);
}
.hero--home .hero__inner { --pb: 12rem; }
.hero__badge {
	display: inline-block; padding: 0.72em clamp(1rem, 6vw, 2.1em); border-radius: 100px; background: var(--white); color: var(--accent-ink); white-space: nowrap;
	font: 700 clamp(0.6rem, 3.05vw, 0.82rem)/1.2 var(--slab); letter-spacing: clamp(0.08em, 1.2vw, 0.24em); text-transform: uppercase;
	box-shadow: 0 4px 28px rgba(0, 0, 0, 0.3); animation: fade-up 1.1s var(--ease) 0.15s both;
}
.hero__badge .sep { margin: 0 0.1em; }
@media (min-width: 560px) { .hero__badge { font-size: clamp(0.82rem, 0.7rem + 0.55vw, 1.12rem); letter-spacing: 0.24em; padding-inline: 2.1em; } }
.hero__tagline { max-width: 48rem; text-wrap: balance; font: 300 clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem)/1.5 var(--sans); color: rgba(255, 255, 255, 0.96); text-shadow: var(--ts); animation: fade-up 1.2s var(--ease) 0.4s both; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.9rem 1.1rem; font: 700 0.74rem/1.3 var(--slab); letter-spacing: 0.26em; text-transform: uppercase; color: var(--white); text-shadow: var(--ts); animation: fade-up 1.2s var(--ease) 0.3s both; }
.hero__meta i { display: block; width: 34px; height: 1px; background: var(--accent); }
.hero__sub { max-width: 36rem; font: 300 1.2rem/1.5 var(--sans); color: var(--white); text-shadow: var(--ts); animation: fade-up 1.2s var(--ease) 1.6s both; }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

/* the boxed, white-bordered title: it draws itself clockwise, its words rise in */
.frame { --bw: 3px; position: relative; display: inline-block; padding: clamp(1.15rem, 3.2vw, 2.9rem) clamp(1.5rem, 4.8vw, 4.6rem); }
.frame__l { position: absolute; display: block; background: var(--white); pointer-events: none; }
/* a dark hairline + soft edge on the OUTER side of each white line keeps the frame visible on snow and sky (outer only, so a line's shadow never lands on its neighbour at a corner) */
.frame__l--t { box-shadow: 0 -1px 0 rgba(5, 4, 8, 0.34), 0 -2px 7px rgba(5, 4, 8, 0.24); left: 0; right: 0; top: 0; height: var(--bw); transform-origin: 0 50%; animation: draw-x 0.7s var(--ease-io) 0.15s both; }
.frame__l--r { box-shadow: 1px 0 0 rgba(5, 4, 8, 0.34), 2px 0 7px rgba(5, 4, 8, 0.24); top: 0; bottom: 0; right: 0; width: var(--bw); transform-origin: 50% 0; animation: draw-y 0.7s var(--ease-io) 0.75s both; }
.frame__l--b { box-shadow: 0 1px 0 rgba(5, 4, 8, 0.34), 0 2px 7px rgba(5, 4, 8, 0.24); left: 0; right: 0; bottom: 0; height: var(--bw); transform-origin: 100% 50%; animation: draw-x 0.7s var(--ease-io) 1.3s both; }
.frame__l--l { box-shadow: -1px 0 0 rgba(5, 4, 8, 0.34), -2px 0 7px rgba(5, 4, 8, 0.24); top: 0; bottom: 0; left: 0; width: var(--bw); transform-origin: 50% 100%; animation: draw-y 0.7s var(--ease-io) 1.85s both; }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.statement { font: 600 clamp(2.6rem, 0.5rem + 5.6vw, 7.4rem)/1.06 var(--slab); letter-spacing: -0.018em; color: var(--white); }
.statement__text { display: block; filter: drop-shadow(0 1px 2px rgba(5, 4, 8, 0.55)) drop-shadow(0 3px 10px rgba(5, 4, 8, 0.4)); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.06em 0.12em; margin: -0.04em -0.06em -0.12em; }
.w > span { display: inline-block; animation: rise 1.15s var(--ease) both; animation-delay: calc(0.55s + var(--i, 0) * 0.17s); }
@keyframes rise { from { transform: translate3d(0, 112%, 0); } to { transform: none; } }
.sep { color: var(--accent); }
.hero--blog .hero__inner { max-width: 1800px; }
@media (min-width: 861px) { .hero--blog .statement__text { white-space: nowrap; } }  /* "Live - Explore - Wander" stays one line on any wide screen */
.frame--post { max-width: min(100%, 64rem); }
.frame--post .statement__text { text-wrap: balance; animation: fade-up 1.4s var(--ease) 0.5s both; }
.frame--post.statement { font-size: clamp(2.3rem, 0.5rem + 5.2vw, 6.6rem); line-height: 1.07; }

.cue { display: inline-flex; flex-direction: column; align-items: center; gap: 0.9rem; font: 500 0.8rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--white); text-shadow: var(--ts), 0 0 2px rgba(5, 4, 8, 0.55); animation: fade-up 1.2s var(--ease) 2.1s both; }  /* small letters on snow or fog: one more tight edge */
.hero--home .cue { animation-delay: 0.8s; }
.cue:hover, .cue:focus-visible { color: var(--accent); }
.cue__arrow { animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.7)); }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(8px); opacity: 1; } }

/* foot of every hero: totals / story teaser on the left, slideshow controls on the right */
.hero__foot { position: absolute; left: 0; right: 0; bottom: clamp(1.2rem, 2.4vw, 2rem); z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding-inline: var(--gutter); animation: fade-up 1.2s var(--ease) 2.2s both; }
.hero--home .hero__foot { bottom: 7.4rem; }
.counts { display: flex; gap: clamp(1.4rem, 4vw, 3.6rem); }
.counts > div { display: flex; flex-direction: column-reverse; gap: 0.3rem; text-align: left; }
.counts dt { font: 700 0.66rem/1 var(--slab); letter-spacing: 0.24em; text-transform: uppercase; color: var(--white); text-shadow: var(--ts); }
.counts dd { font: 700 clamp(1.5rem, 1.1rem + 1.2vw, 2.3rem)/1 var(--slab); color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; text-shadow: 0 1px 2px rgba(5, 4, 8, 0.6), 0 2px 14px rgba(5, 4, 8, 0.45); }
.ticker { display: flex; align-items: center; gap: 0.9rem 1.1rem; color: rgba(255, 255, 255, 0.95); text-shadow: var(--ts); min-width: 0; }
.hero--blog .ticker { flex: 1; }
.ticker__cap { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; flex: 1 1 auto; min-width: 0; }
.tick__idx { color: var(--white); }
.tick__idx::after { content: ""; display: inline-block; width: 4px; height: 4px; margin-left: 0.7rem; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.tick__link { position: relative; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; color: inherit; }
.tick__link:hover { color: var(--accent); }
.tick__t { color: var(--white); } .tick__link:hover .tick__t { color: inherit; }
.tick__c { opacity: 0.82; }
.ticks { display: flex; align-items: center; gap: 0.45rem; }
.ticks i { position: relative; display: block; width: clamp(14px, 2vw, 28px); height: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; border-radius: 2px; }
.ticks i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: 0 50%; }
.ticks i.is-done::after { transform: scaleX(1); }
.ticks i.is-active::after { animation: tick var(--iv, 7s) linear forwards; }
.ticker.is-paused .ticks i.is-active::after { animation-play-state: paused; }
.ticks--single i { width: clamp(70px, 9vw, 140px); }
.ticks--single i::after { background: var(--accent); }
@keyframes tick { to { transform: scaleX(1); } }
.ticker__pause { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer; border-radius: 50%; color: var(--white); background: rgba(15, 5, 30, 0.5); border: 1px solid rgba(255, 255, 255, 0.4); transition: border-color 0.25s, color 0.25s, background 0.25s; }
@media (hover: hover) { .ticker__pause:hover { border-color: var(--accent); color: var(--accent); } }
.ticker__pause .i-play { display: none; }
.ticker__pause[aria-pressed="true"] .i-play { display: block; }
.ticker__pause[aria-pressed="true"] .i-pause { display: none; }
@media (pointer: coarse) { .ticker__pause { width: 44px; height: 44px; } }
.no-js .ticker__pause, .no-js .ticks, .no-js [data-strip] { display: none; }
.is-static .ticker__pause, .is-static .ticks, .is-static .tick__idx { display: none; }  /* a still hero has no "01 / 30" counter */

@media (max-width: 860px) {
	.statement { font-size: clamp(2.7rem, 1.4rem + 8.6vw, 4.6rem); }
	.statement__text .w { display: block; text-align: center; }
	.statement__text .sep { display: none; }
	.frame--post.statement { font-size: clamp(2rem, 1rem + 5.8vw, 3.6rem); }
	.hero__inner { --pb: 11rem; }
	.hero--home .hero__inner { --pb: 13rem; }
	.hero__foot { flex-direction: column; align-items: flex-start; }
	.hero--blog .ticker { width: 100%; }
}
@media (max-width: 560px) {
	.hero__meta { flex-direction: column; gap: 0.55rem; }
	.hero__meta i { display: none; }
	.counts { gap: 1.3rem; }
	.counts dd { font-size: 1.35rem; }
	.hero--home .hero__foot { bottom: 6.6rem; }
	.hero--home { height: clamp(640px, 100vh, 860px); height: clamp(640px, 100svh, 860px); }
	.ticker { flex-wrap: wrap; }
	.tick__c { display: none; }
}

/* ---------- 5. landing ---------- */
.dest { position: relative; z-index: 3; margin-top: -5.6rem; padding: 0 var(--gutter); }
.cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the owner's two white cards: white, rounded 6px, peach label, dark title, hover lift */
.card {
	display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid rgba(74, 45, 122, 0.2); border-radius: 6px; box-shadow: var(--shadow);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover, .card:focus-within { transform: translateY(-5px); box-shadow: 0 24px 64px rgba(74, 45, 122, 0.38); border-color: var(--accent-soft); }
.card a { display: flex; flex-direction: column; height: 100%; color: inherit; outline: none; }
.card a:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: -3px; border-radius: 6px; }
.card__media { position: relative; height: clamp(190px, 19vw, 232px); overflow: hidden; background: #0a0414; }
.card__media--blog video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card__media--blog video { transform: scale(1.05); }
.card__media--terminal {
	display: flex; flex-direction: column; padding: 2.6rem 1.2rem 0.6rem; background: #0c0c14; color: #a8ff78; font-family: var(--mono); font-size: clamp(0.68rem, 0.52rem + 0.4vw, 0.8rem);
	pointer-events: none; user-select: none;
}
@media (max-width: 420px) { .card__media--terminal { padding-inline: 0.9rem; font-size: 0.62rem; } }
.card__media--terminal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.05rem; background: linear-gradient(#14141f, #10101a); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.card__media--terminal::after { content: ""; position: absolute; left: 0.95rem; top: 0.7rem; width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840; }
.js .t-static { display: none; }
.t-line { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.52; min-height: 1em; }
.t-prompt { color: #bd93f9; } .t-path { color: #ffb86c; } .t-cmd { color: #f8f8f2; } .t-out { color: #6272a4; } .t-ok { color: #50fa7b; } .t-warn { color: #f1fa8c; }
.t-cursor { display: inline-block; width: 7px; height: 0.85em; background: #f8f8f2; vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.75rem; }
.card__label { margin-bottom: 0.35rem; font: 700 0.72rem/1.2 var(--slab); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-ink); }
.card h2 { margin: 0 0 0.7rem; font: 700 1.4rem/1.2 var(--slab); color: var(--ink); transition: color 0.3s; }
.card p { margin: 0 0 1.25rem; flex: 1; font-size: 0.97rem; line-height: 1.6; color: #5a4e72; }
.card__cta { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; font: 700 0.76rem/1 var(--slab); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.card__cta::after { content: "\2192"; transition: transform 0.3s ease; }
.card a:hover .card__cta::after, .card a:focus-visible .card__cta::after { transform: translateX(4px); }
.card a:hover h2, .card a:focus-visible h2 { color: var(--accent-ink); }

.latest { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.row-head__ctl { display: flex; align-items: center; gap: 0.6rem; }
.row-head__ctl .link-arrow { margin-left: 0.9rem; }
.round { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer; border-radius: 50%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); color: var(--text); transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s; }
.round:focus-visible { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
@media (hover: hover) { .round:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); } }
.round[disabled] { opacity: 0.3; cursor: default; pointer-events: none; }
.strip {
	display: flex; gap: clamp(0.7rem, 1.4vw, 1.25rem); padding-block: 0.4rem 1.4rem;
	--edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	padding-inline: var(--edge); scroll-padding-inline: var(--edge);
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -4px;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.poster { flex: 0 0 clamp(230px, 23vw, 350px); scroll-snap-align: start; }
.poster a { position: relative; display: block; aspect-ratio: 3 / 4.15; overflow: hidden; border-radius: 4px; background: var(--bg-mid); color: var(--white); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); -webkit-user-drag: none; }
.poster a:hover img, .poster a:focus-visible img { transform: scale(1.07); }
.poster__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 3, 18, 0.86) 0, rgba(8, 3, 18, 0.12) 46%, rgba(8, 3, 18, 0) 66%); }
.poster__text { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.poster__meta { font: 700 0.7rem/1 var(--slab); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.poster__title { font: 700 clamp(1.25rem, 1.05rem + 0.5vw, 1.55rem)/1.15 var(--slab); color: var(--white); }
@media (max-width: 560px) {
	.poster { flex-basis: 62vw; }
	.row-head { flex-wrap: wrap; row-gap: 0.7rem; }
	.row-head__ctl { margin-left: auto; }
	.row-head__ctl .link-arrow { margin-left: 0; white-space: nowrap; }
}
@media (hover: none) and (max-width: 900px) { .row-head__ctl .round { display: none; } }

.atlas-sec { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.atlas-sec--blog { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.atlas-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 1.6rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.2rem clamp(1.5rem, 4vw, 3.2rem); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 0.15rem; }
.stats dt { font: 400 0.7rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stats dd { font: 400 clamp(1.5rem, 2.8vw, 2.2rem)/1.1 var(--mono); color: var(--heading); letter-spacing: 0.04em; }
.atlas-foot { margin-top: 2rem; text-align: center; }
.no-js .atlas, .no-map .atlas, .no-map .dock, .no-js .dock { display: none; }
.noscript { margin-top: 1rem; text-align: center; }
@media (max-width: 560px) { .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .stats dd { font-size: 1.35rem; } }

/* ---------- 6. map (the dot-matrix atlas; assets/js/ff-map.js) ---------- */
.atlas {
	position: relative; isolation: isolate; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden;
	background: radial-gradient(80% 90% at 50% 40%, rgba(74, 45, 122, 0.3), transparent 75%), linear-gradient(180deg, rgba(30, 13, 60, 0.7), rgba(15, 5, 30, 0.82)), var(--bg);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.atlas__top { display: flex; align-items: center; min-height: 0; border-bottom: 1px solid var(--line); background: rgba(15, 5, 30, 0.45); }
.atlas__top:has(> [hidden]) { display: none; }
.atlas__regions { display: flex; flex-wrap: wrap; flex: 1; min-width: 0; gap: 0.45rem; padding: 0.8rem 1rem; }
@media (max-width: 700px) {
	.atlas__regions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0.6rem 0.8rem; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
	.atlas__regions::-webkit-scrollbar { display: none; }
	.atlas__regions .chip { flex: none; }
}
.atlas__view { position: relative; aspect-ratio: 2.45 / 1; overflow: hidden; touch-action: pan-y; }
.atlas__view::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 90px 10px rgba(15, 5, 30, 0.75); }
.atlas__dots, .atlas__grid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atlas__dots path, .dock__dots path, .loc__dots path { fill: none; stroke-linecap: round; }
.atlas__dots .d0, .dock__dots .d0, .loc__dots .d0 { stroke: rgba(200, 184, 232, 0.42); }
.atlas__dots .d1, .dock__dots .d1, .loc__dots .d1 { stroke: rgba(236, 224, 255, 0.78); }
.atlas__dots .d2, .dock__dots .d2, .loc__dots .d2 { stroke: var(--accent); }
.atlas__dots .d2 { filter: drop-shadow(0 0 6px rgba(249, 173, 129, 0.7)); }
.atlas__grid line { stroke: rgba(200, 184, 232, 0.1); stroke-width: 1; shape-rendering: crispEdges; }
.atlas__grid line.eq { stroke: rgba(249, 173, 129, 0.2); stroke-dasharray: 3 5; }
.atlas__grid text { font: 10px var(--mono); letter-spacing: 0.08em; fill: rgba(200, 184, 232, 0.62); }
.atlas__pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: auto; transition: opacity 0.35s; font-style: normal; }
/* a soft peach glow under every pin; its radius is capped so large clusters never wash over the panel */
.atlas .pin::before { content: ""; position: absolute; border-radius: 50%; pointer-events: none; width: var(--halo, 60px); height: var(--halo, 60px); left: calc(var(--halo, 60px) / -2); top: calc(var(--halo, 60px) / -2); background: radial-gradient(closest-side, rgba(249, 173, 129, 0.3), rgba(249, 173, 129, 0.08) 60%, transparent); }
.pin__hit { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.pin__core { position: relative; z-index: 1; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(15, 5, 30, 0.85), 0 0 14px 2px rgba(249, 173, 129, 0.7); transition: transform 0.3s var(--ease); }
.pin__ring { position: absolute; inset: 7px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: ping 3.4s ease-out infinite; animation-delay: var(--pd, 0s); }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.85; } 70%, 100% { transform: scale(2.7); opacity: 0; } }
.pin:hover .pin__core, .pin:focus-visible .pin__core, .pin.is-hot .pin__core { transform: scale(1.7); background: #fff; box-shadow: 0 0 0 2px rgba(249, 173, 129, 0.9), 0 0 22px 5px rgba(249, 173, 129, 0.85); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin__hit { outline: 2px solid var(--accent); outline-offset: 2px; }
.pin.is-dim { opacity: 0.22; }
.pin--cluster { appearance: none; background: none; border: 0; padding: 0; }
.pin--cluster .pin__hit { left: calc(var(--s, 34px) / -2); top: calc(var(--s, 34px) / -2); width: var(--s, 34px); height: var(--s, 34px); border: 1.5px solid var(--accent); background: rgba(15, 5, 30, 0.8); box-shadow: 0 0 18px rgba(249, 173, 129, 0.4); transition: transform 0.3s var(--ease), background 0.3s; }
.pin--cluster b { font: 400 0.82rem/1 var(--mono); color: var(--heading); }
.pin--cluster:hover .pin__hit, .pin--cluster:focus-visible .pin__hit, .pin--cluster.is-hot .pin__hit { transform: scale(1.14); background: rgba(249, 173, 129, 0.24); }
.atlas.is-compact .pin--cluster b { font-size: 0.68rem; }
.atlas.is-compact .pin__core { width: 7px; height: 7px; }
@media (pointer: coarse) { .pin__hit { left: -22px; top: -22px; width: 44px; height: 44px; } .pin--cluster .pin__hit { min-width: 44px; min-height: 44px; left: calc(max(var(--s, 34px), 44px) / -2); top: calc(max(var(--s, 34px), 44px) / -2); width: max(var(--s, 34px), 44px); height: max(var(--s, 34px), 44px); } }

.atlas__pop {
	position: absolute; z-index: 5; width: 256px; left: 0; top: 0; border-radius: 10px; overflow: hidden;
	background: rgb(22, 9, 46); border: 1px solid var(--line-strong); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
	opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none; transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.atlas__pop.is-open { opacity: 1; visibility: visible; transform: none; }
.atlas__pop.is-live { pointer-events: auto; }
.pop__card { display: block; color: inherit; }
.pop__card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pop__body { display: block; padding: 0.75rem 0.95rem 0.9rem; }
.pop__meta { display: block; margin-bottom: 0.35rem; font: 400 0.66rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pop__title { display: block; font: 700 1.05rem/1.25 var(--slab); color: var(--heading); }
.pop__go { display: block; margin-top: 0.55rem; font: 700 0.66rem/1 var(--slab); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.pop__go::after { content: " \2192"; }
.pop__list-h { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.5rem 0.5rem 0.4rem 0.95rem; font: 400 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.pop__x { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; cursor: pointer; border-radius: 50%; background: none; border: 0; color: var(--text); font-size: 1.3rem; line-height: 1; }
.pop__x:focus-visible { outline: 2px solid var(--accent); }
@media (hover: hover) { .pop__x:hover { background: var(--accent-soft); color: var(--accent); } }
@media (pointer: coarse) { .pop__x { width: 44px; height: 44px; margin-block: -0.4rem; } }
.pop__list { max-height: 252px; overflow-y: auto; overscroll-behavior: contain; }
/* phones: the photo card is a small horizontal card (the map panel is only ~190px tall) and a cluster's list is a bottom sheet
   that lives outside the clipping panel (ff-map.js moves it to <body>) */
.atlas.is-compact .atlas__pop { width: min(300px, calc(100% - 20px)); }
.atlas.is-compact .pop__card { display: flex; align-items: stretch; }
.atlas.is-compact .pop__card img { flex: none; width: 96px; height: auto; aspect-ratio: 3 / 2; align-self: center; margin: 8px 0 8px 8px; border-radius: 4px; }
.atlas.is-compact .pop__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0.55rem 0.8rem 0.6rem; }
.atlas.is-compact .pop__meta { margin-bottom: 0.2rem; font-size: 0.6rem; }
.atlas.is-compact .pop__title { font-size: 0.95rem; }
.atlas.is-compact .pop__go { margin-top: 0.4rem; }
.atlas__pop.is-sheet { position: fixed; z-index: 90; left: 10px; right: 10px; top: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; max-height: min(62vh, 30rem); display: flex; flex-direction: column; border-radius: 14px; }
.atlas__pop.is-sheet .pop__list { flex: 1; min-height: 0; max-height: none !important; }
.pop__row { display: grid; grid-template-columns: 56px 1fr; gap: 0.7rem; align-items: center; padding: 0.55rem 0.95rem; color: inherit; }
.pop__row:focus-visible { background: rgba(249, 173, 129, 0.12); }
@media (hover: hover) { .pop__row:hover { background: rgba(249, 173, 129, 0.12); } }
.pop__row img { width: 56px; height: 38px; object-fit: cover; border-radius: 3px; display: block; }
.pop__row .pop__title { font-size: 0.88rem; }
.pop__row .pop__meta { margin: 0.1rem 0 0; font-size: 0.62rem; }

/* minimap that follows the year / the hovered tile (desktop rail only) */
.dock { position: relative; aspect-ratio: 1.7 / 1; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(15, 5, 30, 0.55); }
.dock::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 26px 4px rgba(15, 5, 30, 0.85); }
.dock__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.dock__pins { position: absolute; inset: 0; pointer-events: none; }
.dock .pin { transition: opacity 0.35s; }
.dock .pin__core { width: 4px; height: 4px; box-shadow: 0 0 7px 1px rgba(249, 173, 129, 0.85); }
.dock .pin.is-hot .pin__core { width: 8px; height: 8px; background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 14px 3px rgba(249, 173, 129, 0.9); }
.dock .pin.is-dim { opacity: 0.22; }

/* ---------- 7. story index ---------- */
.intro { padding: clamp(4.5rem, 10vw, 9rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(1.5rem, 6vw, 6rem); }
.intro .eyebrow { font: 400 0.78rem/1.4 var(--mono); letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1.2rem; }
.intro .lead { padding-bottom: 0.6rem; }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }

.explorer-sec { padding: 0 0 clamp(3rem, 7vw, 6rem); }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (min-width: 1100px) { .explorer { grid-template-columns: minmax(150px, 178px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.2rem); } }
.rail { position: sticky; top: var(--bar-h); z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 0.6rem var(--gutter); background: rgba(15, 5, 30, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.rail__title, .rail__map { display: none; }
.rail__list { position: relative; display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.rail__list.at-end { -webkit-mask-image: none; mask-image: none; }
.rail__list::-webkit-scrollbar { display: none; }
.rail__row { display: inline-flex; align-items: center; gap: 0.45rem; width: auto; min-height: 36px; padding: 0.38rem 0.85rem; cursor: pointer; white-space: nowrap; color: var(--text); background: none; border: 1px solid var(--line-strong); border-radius: 100px; text-align: left; transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s; }
.rail__dot, .rail__bar { display: none; }
.rail__y { font-size: 0.82rem; color: var(--heading); letter-spacing: 0.06em; }
.rail__n { font-size: 0.7rem; color: var(--muted); }
@media (hover: hover) { .rail__row:hover { border-color: var(--accent); } }
.rail__row[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.rail__row[aria-pressed="true"] .rail__y, .rail__row[aria-pressed="true"] .rail__n { color: var(--accent); }
.rail__row.is-current:not([aria-pressed="true"]) { border-color: var(--accent); }
.rail__row.is-zero { opacity: 0.38; }
@media (pointer: coarse) { .rail__row { min-height: 44px; } }
@media (min-width: 1100px) {
	.rail { top: calc(var(--bar-h) + 1.6rem); z-index: 1; margin: 0; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; max-height: calc(100vh - var(--bar-h) - 3rem); overflow-y: auto; scrollbar-width: none; }
	.rail::-webkit-scrollbar { display: none; }
	.rail__title { display: block; margin-bottom: 0.9rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.2em; }
	.rail__map { display: block; margin-top: 1.6rem; }
	.rail__list { display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; }
	.rail__list::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 1px; background: var(--line-strong); }
	.rail__row { display: grid; grid-template-columns: 11px 2.9rem minmax(0, 1fr) 1.7rem; gap: 0.6rem; width: 100%; min-height: 0; padding: 0.42rem 0; border: 0; border-radius: 0; background: none !important; }
	.rail__dot, .rail__bar { display: block; }
	.rail__dot { position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--bg-softest); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
	.rail__bar { height: 4px; border-radius: 2px; background: rgba(200, 184, 232, 0.1); overflow: hidden; }
	.rail__bar b { display: block; height: 100%; width: var(--w); background: var(--bg-softest); border-radius: 2px; transition: background 0.3s; }
	.rail__y { font-size: 0.86rem; }
	.rail__n { text-align: right; }
	.rail__row.is-current .rail__dot { border-color: var(--accent); }
	@media (hover: hover) { .rail__row:hover .rail__dot { border-color: var(--accent); } }
	.rail__row.is-current .rail__bar b, .rail__row[aria-pressed="true"] .rail__bar b { background: var(--accent); }
	.rail__row[aria-pressed="true"] .rail__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
}

.filters { display: block; }
.filters__toggle { display: none; }
.filters__panel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-width: 0; }
.filters__label { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.2em; margin-right: 0.4rem; }
.summary { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.2rem; margin: 1.1rem 0 0.4rem; color: var(--muted); font-size: 0.72rem; }
.summary b { color: var(--heading); font-weight: 400; }
.summary__clear { padding: 0.6rem 0; background: none; border: 0; cursor: pointer; font: 400 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 3rem 0; color: var(--muted); }
.no-js .filters, .no-js .rail, .no-js .summary { display: none; }

.ygroup { padding-top: clamp(2rem, 4vw, 3.4rem); scroll-margin-top: calc(var(--bar-h) + 70px); }
.ygroup__head { display: flex; align-items: flex-end; gap: 1.2rem; padding-bottom: 1rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--line-strong); }
.ygroup__year { font: 800 clamp(4rem, 1rem + 9vw, 9.5rem)/0.8 var(--slab); letter-spacing: -0.045em; color: transparent; -webkit-text-stroke: 1.5px rgba(240, 230, 255, 0.55); }
.ygroup__rule { display: none; }
.ygroup__meta { margin-left: auto; padding-bottom: 0.2rem; color: var(--accent); font: 700 0.72rem/1 var(--slab); letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.ygroup__meta b { font-weight: 700; }

.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1.1rem); }
.tile { position: relative; grid-column: span 2; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--line); transition: border-color 0.35s, box-shadow 0.35s; }
.tile.c3 { grid-column: span 3; }
.tile.c4 { grid-column: span 4; }
.tile.c6 { grid-column: span 6; aspect-ratio: 21 / 9; }
.tile.is-feature { grid-row: span 2; aspect-ratio: auto; }
.tile__a { position: absolute; inset: 0; display: block; color: var(--white); outline-offset: -4px; }
.tile__a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover img, .tile__a:focus-visible img, .tile.is-hot img { transform: scale(1.06); }
.tile:hover, .tile.is-hot { border-color: rgba(249, 173, 129, 0.55); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 173, 129, 0.25); }
.tile__a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile__coord { position: absolute; left: 0.7rem; top: 0.6rem; z-index: 2; padding: 0.18rem 0.45rem; border-radius: 3px; font-size: 0.64rem; color: rgba(255, 255, 255, 0.94); background: rgba(15, 5, 30, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: opacity 0.3s; }
.tile:hover .tile__coord, .tile__a:focus-visible .tile__coord { opacity: 0; }
/* hover: a dark veil with month-year and the title */
.tile__over { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; padding: 1.2rem 1rem; text-align: center; background: rgba(15, 5, 30, 0.8); opacity: 0; transition: opacity 0.5s; }
.tile__over > * { transform: translateY(16px); transition: transform 0.7s var(--ease); }
.tile:hover .tile__over, .tile__a:focus-visible .tile__over { opacity: 1; }
.tile:hover .tile__over > *, .tile__a:focus-visible .tile__over > * { transform: none; }
.tile__meta { font: 400 0.7rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.tile__meta::after { content: ""; display: block; width: 22px; height: 2px; margin: 0.6rem auto 0.7rem; background: var(--accent); }
.tile__title { font: 400 clamp(1.2rem, 1rem + 0.5vw, 1.45rem)/1.25 var(--slab); color: var(--white); }
@media (min-width: 901px) { .tile.c4 .tile__title, .tile.c6 .tile__title { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem); } }
.tile__sub { margin-top: 0.5rem; font-size: 0.66rem; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 900px) {
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile, .tile.c2, .tile.c3, .tile.c4, .tile.c6 { grid-column: span 1; grid-row: auto; aspect-ratio: 3 / 2; }
	.tile.m2 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
/* touch + small screens: no hover, so the title and date sit at the bottom edge on a soft gradient and the photo stays visible */
@media (hover: none), (max-width: 560px) {
	.tile__coord { display: none; }
	.tile__over { opacity: 1; justify-content: flex-end; align-items: flex-start; gap: 0.1rem; padding: 2.4rem 0.8rem 0.75rem; text-align: left; background: linear-gradient(to top, rgba(8, 3, 18, 0.9), rgba(8, 3, 18, 0.45) 55%, transparent); }
	.tile__over > * { transform: none; }
	.tile__meta::after, .tile__sub { display: none; }
	.tile__meta { font: 400 0.62rem/1.2 var(--mono); letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.9); }
	.tile__title { font-size: 1rem; }
	.tile__meta, .tile__title { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }
	.tile.m2 .tile__title { font-size: 1.3rem; }
	.tile:hover { box-shadow: none; border-color: var(--line); }
	.tile:hover img { transform: none; }
}
@media (max-width: 700px) {
	.filters__toggle { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 1.1rem; cursor: pointer; border-radius: 100px; background: transparent; border: 1px solid var(--line-strong); color: var(--text); font: 400 0.76rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
	.filters__toggle::after { content: ""; width: 7px; height: 7px; margin-left: 0.2rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease); }
	.filters__toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
	.filters__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--ink); font: 700 0.68rem/1 var(--sans); }
	.js .filters__panel { display: none; margin-top: 0.8rem; }
	.js .filters.is-open .filters__panel { display: block; }
	.js .filters__label { display: none; }
	.js .filters__row { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0.15rem var(--gutter); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 36px), transparent); }
	.js .filters__row::-webkit-scrollbar { display: none; }
	.js .filters__row .chip { flex: none; }
	.ygroup__year { font-size: clamp(3.4rem, 22vw, 5rem); }
}

/* ---------- 8. about / contact ---------- */
.about { padding: clamp(4rem, 9vw, 8rem) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(30, 13, 60, 0.9), rgba(15, 5, 30, 0.4)), var(--bg); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__meta { margin-top: 0.7rem; color: var(--heading); font-weight: 400; font-size: 1rem; line-height: 1.5; }
.about__meta + .about__meta { font-weight: 300; color: var(--text); }
.about__text { font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem); line-height: 1.75; color: var(--heading); }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }
.contact { padding: clamp(4.5rem, 9vw, 8rem) 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(70% 100% at 50% 100%, rgba(74, 45, 122, 0.4), rgba(15, 5, 30, 0) 72%), var(--bg); }
.contact__lead { margin-bottom: 0.8rem; font: 700 clamp(1.8rem, 3.6vw, 2.8rem)/1.2 var(--slab); color: var(--heading); }
.contact__p { margin-bottom: 2rem; }

/* ---------- 9. story page ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 150; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

.story { padding: clamp(4rem, 9vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); }
.story__body {
	--measure: 41rem;
	display: grid;
	grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [aside-start] minmax(0, 17.5rem) [aside-end] clamp(1.5rem, 4.5vw, 4.5rem) [text-start] minmax(0, var(--measure)) [text-end] minmax(var(--gutter), 1.4fr) [full-end];
}
.story__body > * { grid-column: text; min-width: 0; }
.story__title { margin-bottom: clamp(1.6rem, 3.4vw, 2.8rem); font: 700 clamp(2.3rem, 1.2rem + 3.8vw, 4.8rem)/1.03 var(--slab); letter-spacing: -0.025em; color: var(--heading); text-wrap: balance; }
.story__title::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: 1.5rem; background: var(--accent); }
.story__body > p { margin-bottom: 1.6em; font-size: clamp(1.1rem, 1.03rem + 0.28vw, 1.24rem); line-height: 1.84; color: var(--text); }
.story__body > p.is-lead { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.68rem); line-height: 1.6; color: var(--heading); }
.story__body > p.is-lead::first-letter { float: left; padding: 0.07em 0.1em 0 0; font: 700 4.1em/0.8 var(--slab); color: var(--accent); }
.story__body > p.is-drop::first-letter { float: left; padding: 0.07em 0.1em 0 0; font: 700 4.7em/0.78 var(--slab); color: var(--accent); }

.locator { grid-column: aside; grid-row: 1 / span 60; align-self: start; position: sticky; top: calc(var(--bar-h) + 1.6rem); padding-top: 0.5rem; transition: opacity 0.4s ease, visibility 0.4s; }
.locator.is-faded { opacity: 0; visibility: hidden; }
.loc__map { position: relative; container-type: inline-size; aspect-ratio: 1.55 / 1; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: radial-gradient(80% 90% at 50% 40%, rgba(74, 45, 122, 0.3), transparent 75%), rgba(15, 5, 30, 0.7); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4); }
.loc__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 50px 6px rgba(15, 5, 30, 0.7); }
.loc__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc__dots .d0 { stroke-width: 1.05; } .loc__dots .d1 { stroke-width: 1.15; } .loc__dots .d2 { stroke-width: 1.3; filter: drop-shadow(0 0 3px rgba(249, 173, 129, 0.7)); }
.loc__pin { position: absolute; z-index: 2; width: 0; height: 0; }
.loc__pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 0 24px 6px rgba(249, 173, 129, 0.8); }
/* the pin is always horizontally centred, so the name sits centred under it (never cut off by the card edge) */
.loc__label { position: absolute; left: 0; top: 14px; transform: translateX(-50%); max-width: 88cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.62rem; color: var(--white); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9); }
.facts { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 5.9rem 1fr; gap: 0.8rem; align-items: baseline; padding: 0.62rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.66rem; letter-spacing: 0.16em; color: var(--muted); }
.facts dd { font-size: 0.95rem; font-weight: 400; line-height: 1.4; color: var(--heading); }
.facts dd.mono { font-size: 0.78rem; }
.tagrow { display: flex; flex-wrap: wrap; gap: 0.7rem 0.4rem; }
.tagchip { position: relative; display: inline-flex; align-items: center; min-height: 28px; padding: 0.2rem 0.65rem; border: 1px solid var(--line-strong); border-radius: 100px; font: 400 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
@media (hover: hover) { .tagchip:hover { border-color: var(--accent); color: var(--accent); } }

/* full-bleed photo break */
.full { grid-column: full; margin: clamp(2.2rem, 5.5vw, 4.5rem) 0; }
.full a { display: block; width: 100%; overflow: hidden; aspect-ratio: var(--ar, 2.333); background: var(--bg-mid); }  /* --ar is the photo's own ratio: it is never cropped */
.full img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
@media (hover: hover) { .full a:hover img { transform: scale(1.03); } }
.full figcaption { padding: 0.85rem var(--gutter) 0; font: 400 0.82rem/1.3 var(--sans); letter-spacing: 0.08em; color: var(--muted); }
.js .full.reveal { opacity: 1; transform: none; transition: none; }
.js .full a { clip-path: inset(9% 7% 9% 7%); transition: clip-path 1.8s var(--ease); }
.js .full img { transform: scale(1.14); transition: transform 2.4s var(--ease); }
.js .full.in a { clip-path: inset(0 0 0 0); }
.js .full.in img { transform: none; }
@media (hover: hover) { .js .full.in a:hover img { transform: scale(1.03); transition-duration: 1.6s; } }

@media (max-width: 999px) {
	.story__body { grid-template-columns: [full-start] var(--gutter) [text-start aside-start] minmax(0, 1fr) [text-end aside-end] var(--gutter) [full-end]; }
	.locator { grid-row: auto; position: static; margin: 0.4rem 0 2rem; padding: 0; transition: none; }
	.locator.is-faded { opacity: 1; visibility: visible; }
	.loc__map { aspect-ratio: 2.7 / 1; box-shadow: none; }
	.facts { margin-top: 0.7rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.4rem; }
	.facts > div { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.55rem 0; }
	.facts > div:last-child { grid-column: 1 / -1; }
	.link-arrow--sm { display: none; }
}
@media (max-width: 420px) { .loc__map { display: none; } }

.gallery-sec { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); }
.gallery-sec .row-head { padding-top: 1.6rem; border-top: 1px solid var(--line); margin-bottom: 1.2rem; }
/* justified rows. Without JavaScript this is plain CSS: every item grows in proportion to its aspect ratio (--r = w/h), so each row
   has one height and nothing is cropped or shifts when the images load. --row-h is the target row height: a third of the gallery
   width on phones (so two landscape photos always fit side by side, even at 320px), up to 270px on desktop. With JavaScript
   (ff.js, "gallery") the rows are planned together instead, so the last row is never a lone photo. */
.jg-wrap { container-type: inline-size; }
.jg { --gap: 8px; --row-h: clamp(84px, 27vw, 220px); display: flex; flex-wrap: wrap; gap: var(--gap); }
@supports (width: 1cqw) { .jg { --row-h: clamp(84px, calc((100cqw - var(--gap)) / 3 - 2px), 270px); } }
.jg::after { content: ""; flex-grow: 1000000000; }
.jg__item { position: relative; overflow: hidden; border-radius: 3px; background: var(--bg-card); flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row-h)); }
.jg__item::before { content: ""; display: block; padding-top: calc(100% / var(--r)); }
.jg__item a { position: absolute; inset: 0; display: block; overflow: hidden; color: var(--white); cursor: zoom-in; outline-offset: -3px; }
.jg__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.5s; }
.jg__item a:focus-visible img { transform: scale(1.05); filter: brightness(0.82); }
@media (hover: hover) { .jg__item a:hover img { transform: scale(1.05); filter: brightness(0.82); } }
.jg__item a:focus-visible { outline: 3px solid var(--accent); }
.jg__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem 0.9rem 0.75rem; font: 400 0.92rem/1.3 var(--slab); color: var(--white); background: linear-gradient(to top, rgba(10, 4, 20, 0.88), transparent); opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.jg__item a:hover .jg__cap, .jg__item a:focus-visible .jg__cap { opacity: 1; transform: none; }
@media (hover: none) { .jg__cap { display: none; } }
@media (max-width: 700px) { .jg { --gap: 6px; } }
/* assets/js/ff.js plans the rows (width + height per photo) so every row, the last one included, is full and close to one height */
.jg.is-laid { justify-content: center; }
.jg.is-laid::after, .jg.is-laid .jg__item::before { display: none; }
.jg.is-laid .jg__item { flex: none; }

.storynav { padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.storynav__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: stretch; }
.storynav__grid--two { grid-template-columns: 1fr 1fr; }
.snav { position: relative; isolation: isolate; display: flex; min-height: 210px; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-card); color: var(--heading); }
.snav img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.snav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15, 5, 30, 0.95) 0, rgba(15, 5, 30, 0.78) 45%, rgba(15, 5, 30, 0.3) 100%); }
@media (hover: hover) {
	.snav:hover img { transform: scale(1.06); }
	.snav:hover { border-color: rgba(249, 173, 129, 0.5); color: var(--heading); }
}
.snav__body { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 1.2rem 1.3rem; }
.snav--next .snav__body { align-items: flex-end; text-align: right; }
.snav__dir { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--accent); text-shadow: 0 1px 6px rgba(5, 4, 8, 0.8); }
.snav--prev .snav__dir::before { content: "\2190\00a0"; }
.snav--next .snav__dir::after { content: "\00a0\2192"; }
.snav__title { margin-top: 0.3rem; font: 700 clamp(1.2rem, 2vw, 1.6rem)/1.2 var(--slab); color: var(--heading); transition: color 0.3s; }
@media (hover: hover) { .snav:hover .snav__title { color: var(--accent); } }
.snav__meta { margin-top: 0.3rem; font-size: 0.68rem; color: rgba(255, 255, 255, 0.78); }
.snav--all { flex-direction: column; justify-content: center; align-items: center; gap: 0.35rem; padding: 1.2rem 2.2rem; text-align: center; background: linear-gradient(180deg, rgba(42, 21, 85, 0.7), rgba(30, 13, 60, 0.7)); }
.snav--all::before { display: none; }
.snav--all .snav__title { margin: 0; font-size: 1.1rem; }
.snav--all .snav__title::after { content: " \2192"; color: var(--accent); }
.snav__all { color: var(--muted); font-size: 0.7rem; }
@media (max-width: 820px) {
	.storynav__grid { grid-template-columns: 1fr 1fr; }
	.snav--all { grid-column: 1 / -1; grid-row: 2; min-height: 90px; }
	.snav { min-height: 180px; }
	.storynav__grid--two .snav--all { grid-column: auto; grid-row: auto; min-height: 180px; }
}
@media (max-width: 460px) { .storynav__grid, .storynav__grid--two { grid-template-columns: 1fr; } .snav--all { grid-row: auto; } .snav--next .snav__body { align-items: flex-start; text-align: left; } }

/* ---------- 10. lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 500; display: none; grid-template-rows: auto minmax(0, 1fr) auto; background: rgb(8, 3, 17); color: var(--white); -webkit-user-select: none; user-select: none; overscroll-behavior: contain; }
.lb.is-open { display: grid; animation: lb-in 0.35s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(0.9rem, 2.4vw, 1.6rem); position: relative; z-index: 3; }
.lb__count { color: var(--accent); font-variant-numeric: tabular-nums; }
.lb__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 0.7rem; color: var(--muted); }
.lb__btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer; border-radius: 50%; color: var(--white); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.25s, border-color 0.25s, color 0.25s; }
.lb__btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (hover: hover) { .lb__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); } }
.lb :focus-visible { outline-color: #fff; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; margin: 0; padding: 0 clamp(0.5rem, 6.5vw, 6.5rem); touch-action: pinch-zoom; overflow: hidden; }
.lb__img { display: block; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); transition: opacity 0.25s, transform 0.3s var(--ease); -webkit-user-drag: none; cursor: grab; }
.lb__img.is-loading { opacity: 0.15; }
.lb__stage.is-drag .lb__img { transition: none; cursor: grabbing; }
.lb__spin { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: var(--accent); animation: spin 0.8s linear infinite; opacity: 0; transition: opacity 0.2s 0.25s; pointer-events: none; }
.lb.is-busy .lb__spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb__nav { position: absolute; top: 50%; z-index: 3; margin-top: -23px; }
.lb__nav--prev { left: clamp(0.5rem, 1.8vw, 1.6rem); }
.lb__nav--next { right: clamp(0.5rem, 1.8vw, 1.6rem); }
.lb__cap { padding: 0.9rem clamp(1rem, 8vw, 8rem) 1.4rem; text-align: center; font: 400 clamp(1rem, 0.95rem + 0.3vw, 1.2rem)/1.4 var(--slab); color: var(--heading); min-height: 3.4rem; }
.lb__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); z-index: 3; }
.lb__progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width 0.35s var(--ease); }
@media (max-width: 700px) {
	.lb__stage { padding-inline: 0; }
	.lb__nav { top: auto; bottom: 1.1rem; margin-top: 0; width: 44px; height: 44px; }
	.lb__nav--prev { left: 1rem; }
	.lb__nav--next { right: 1rem; }
	.lb__cap { padding-bottom: 4.6rem; }
	.lb__title { display: none; }
}
@media (max-height: 480px) {
	.lb__top { padding-block: 0.4rem; }
	.lb__cap { padding-top: 0.4rem; padding-bottom: 0.8rem; min-height: 0; }
	.lb__nav { top: 50%; bottom: auto; margin-top: -22px; }
}

/* ---------- 11. motion ---------- */
/* scroll reveals only run when JavaScript is on; the script drops the classes again once they have settled */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s), box-shadow 0.35s ease, border-color 0.35s ease; }

@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
	.js .reveal { opacity: 1; transform: none; }
	.js .full a { clip-path: none; }
	.js .full img { transform: none; }
	.frame__l { transform: none; }
	.slide.is-active { transform: none; }
	.cue__arrow { opacity: 1; }
	.pin__ring { display: none; }
	.hero__badge, .hero__tagline, .hero__meta, .hero__sub, .cue, .hero__foot, .w > span, .frame--post .statement__text { opacity: 1; transform: none; }
}

/* ---------- 12. very wide screens ---------- */
/* the layout is rem-based, so one step up in the root size scales it all, and the columns open up */
@media (min-width: 1900px) {
	:root { --max: 1480px; --bar-h: 72px; }
	html { font-size: 112.5%; }
	.wrap--md { max-width: 1240px; } .wrap--wide { max-width: 1700px; }
	.hero__inner { max-width: 1800px; }
}
@media (min-width: 2400px) {
	:root { --max: 1680px; --bar-h: 80px; }
	html { font-size: 125%; }
	.wrap--md { max-width: 1400px; } .wrap--wide { max-width: 1920px; }
	.hero__inner, .hero--blog .hero__inner { max-width: 2200px; }
}
