/* =========================================================================
   13 DEGREE EAST — Logo & Identity presentation
   ========================================================================= */
:root {
  --serif: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --night: #0f0b09;
  --cream: #efe6d8;
  --gold: #c9a271;
  --ui: #efe6d8;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(20px, 7vw, 120px);
  --vh: 1vh;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@supports (height: 1svh) { :root { --vh: 1svh; } } /* the small viewport: phone toolbars never hide content */

[data-theme="horizon"]    { --bg:#481716; --fg:#DCD3C2; --ink:#f1e7da; --muted:rgba(241,231,218,.66); --accent:#de9358; --line:rgba(220,211,194,.2);  --card:rgba(255,240,225,.035); --deep:#360f0e; }
[data-theme="needle"]     { --bg:#DDD4C3; --fg:#54321C; --ink:#2b1a0f; --muted:rgba(43,26,15,.68);    --accent:#a8641f; --line:rgba(84,50,28,.2);    --card:rgba(255,255,255,.32);  --deep:#cfc4ae; }
[data-theme="silhouette"] { --bg:#F8E2BE; --fg:#A05528; --ink:#3a1e0e; --muted:rgba(58,30,14,.68);    --accent:#c8692a; --line:rgba(160,85,40,.24);  --card:rgba(255,255,255,.38);  --deep:#f0d3a4; }
[data-theme="pathways"]   { --bg:#141423; --fg:#B66E4C; --ink:#f3e9df; --muted:rgba(243,233,223,.62); --accent:#f0a867; --line:rgba(182,110,76,.26);  --card:rgba(255,255,255,.03);  --deep:#0c0c18; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body::after { /* film grain: a static composited layer (no blend mode, so it costs nothing per frame) */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--grain); opacity: .035; transform: translateZ(0);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: rgba(201, 162, 113, .35); }

.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 11.5px; line-height: 1.4;
  letter-spacing: .34em; text-transform: uppercase; color: var(--accent, var(--gold));
}
.art svg, .art-logo svg { width: 100%; height: 100%; overflow: visible; }

/* ---------------------------------------------------------------- preloader */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: #0d0907; color: var(--cream);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
body.is-ready .preloader { opacity: 0; visibility: hidden; }
.pl-compass svg { width: 92px; height: 92px; }
.pl-ring { fill: none; stroke: rgba(201, 162, 113, .18); stroke-width: 1; }
.pl-arc { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 327; stroke-dashoffset: calc(327 - 327 * var(--p, 0)); transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset .3s; }
.pl-needle { fill: var(--gold); transform-origin: 60px 60px; animation: pl-spin 2.4s var(--ease-io) infinite; }
.pl-needle circle { fill: #0d0907; }
@keyframes pl-spin { 0% { transform: rotate(-120deg); } 55% { transform: rotate(98deg); } 75% { transform: rotate(84deg); } 100% { transform: rotate(240deg); } }
.pl-word { font-family: var(--serif); font-size: 26px; letter-spacing: .08em; }
.pl-count { font-size: 11px; letter-spacing: .3em; color: rgba(239, 230, 216, .5); }

/* ---------------------------------------------------------------- fixed ui */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 74px;
  padding: 0 clamp(18px, 3.2vw, 56px); display: flex; align-items: center; justify-content: space-between;
  color: var(--ui); pointer-events: none; transition: color .6s var(--ease), opacity .6s, transform .6s var(--ease);
}
.topbar > * { pointer-events: auto; }
body.ui-light { --ui: #2a1b12; }
body.ui-hide .topbar, body.at-intro .topbar { opacity: 0; transform: translateY(-14px); }
body.ui-hide .topbar > *, body.at-intro .topbar > * { pointer-events: none; }
.tb-brand { display: block; width: 40px; height: 37px; color: inherit; }
.tb-brand .art path { fill: currentColor; }
.tb-now { display: flex; align-items: center; gap: 14px; }
.tb-label { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; transition: opacity .4s; white-space: nowrap; }
.tb-compass svg { width: 34px; height: 34px; }
.tb-compass circle { fill: none; stroke: currentColor; stroke-opacity: .45; stroke-width: 1; }
.tb-n { stroke: currentColor; stroke-width: 1.4; }
.tb-needle { fill: currentColor; transform-origin: 20px 20px; transform: rotate(var(--bearing, 0deg)); transition: transform 1.4s cubic-bezier(.3, 1.6, .4, 1); }

.journey {
  position: fixed; right: clamp(12px, 1.6vw, 26px); top: 50%; z-index: 55; height: 46vh; width: 24px;
  transform: translateY(-50%); color: var(--ui); transition: color .6s, opacity .6s;
}
.journey { opacity: 0; pointer-events: none; }
body.in-chapter .journey { opacity: 1; pointer-events: auto; }
body.ui-hide .journey { opacity: 0; pointer-events: none; }
.jr-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .25; }
.jr-fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: currentColor; transform-origin: top; transform: scaleY(var(--jp, 0)); }
.jr-dot { position: absolute; left: -3px; top: calc(var(--jp, 0) * 100%); width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.jr-stop { position: absolute; left: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; border: 1px solid currentColor; background: transparent; transition: background .3s, transform .3s; }
.jr-stop:nth-of-type(1) { top: 0%; } .jr-stop:nth-of-type(2) { top: 33.33%; } .jr-stop:nth-of-type(3) { top: 66.66%; } .jr-stop:nth-of-type(4) { top: 100%; }
.jr-stop span, .jr-stop em { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-style: normal; font-weight: 500; }
.jr-stop em { opacity: 0; right: 46px; transition: opacity .3s, right .3s; }
.jr-stop span { opacity: 0; transition: opacity .3s; }
.jr-stop:hover span { opacity: .7; }
.jr-stop:hover em { opacity: 1; right: 40px; }
.jr-stop.is-on { background: currentColor; transform: scale(1.15); }
.jr-stop.is-on span { opacity: 1; }

.keyhint {
  position: fixed; left: clamp(18px, 3.2vw, 56px); bottom: 22px; z-index: 55; font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ui); opacity: 0; transition: opacity .8s, color .6s; pointer-events: none;
}
body.is-ready.at-intro .keyhint { opacity: .55; }
body.hint-off .keyhint { opacity: 0; }
.keyhint kbd { font: inherit; display: inline-block; border: 1px solid currentColor; border-radius: 3px; padding: 1px 6px; margin-right: 4px; opacity: .8; }

/* ---------------------------------------------------------------- reveal system */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
/* image reveal: a curtain that slides away (transform only, so it runs on the compositor) */
[data-reveal="mask"] { opacity: 1; transform: none; isolation: isolate; }
[data-reveal="mask"]::after { content: ""; position: absolute; inset: -1px; z-index: 3; background: var(--bg, #0f0b09); transform-origin: 50% 0; transition: transform 1.5s var(--ease); pointer-events: none; }
[data-reveal="mask"].in::after { transform: scaleY(0); }
[data-reveal="mask"] img { transform: scale(1.18); transition: transform 2.2s var(--ease); }
[data-reveal="mask"].in img { transform: scale(1.0001); }
[data-parallax] { will-change: translate; }
[data-reveal="lines"], [data-reveal="chars"] { opacity: 1; transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > * { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.ln:nth-child(2) > * { transition-delay: .12s; }
.ln:nth-child(3) > * { transition-delay: .24s; }
[data-reveal="lines"].in .ln > * { transform: none; }
.ch { display: inline-block; transform: translateY(105%) rotate(4deg); opacity: 0; transition: transform 1.2s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
[data-reveal="chars"] .chs { display: inline-block; overflow: hidden; padding: 0 .02em .08em; vertical-align: top; }
[data-reveal="chars"].in .ch { transform: none; opacity: 1; }

/* ---------------------------------------------------------------- 01 intro */
.intro { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #f3ebe0; isolation: isolate; }
.intro-bg { position: absolute; inset: -4%; z-index: -3; will-change: translate; }
.intro-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); opacity: .62; transition: transform 4s var(--ease), opacity 3s var(--ease); }
body.is-ready .intro-bg img { transform: scale(1.02); opacity: .9; }
.intro { background: #070403; }
.intro-shade { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 58% 46% at 50% 52%, rgba(12, 6, 4, .58), rgba(12, 6, 4, 0) 70%),
    linear-gradient(180deg, rgba(10, 6, 4, .55) 0%, rgba(10, 6, 4, 0) 26%, rgba(10, 6, 4, 0) 70%, rgba(10, 6, 4, .7) 100%); }
.intro-horizon { position: absolute; left: 0; right: 0; top: 76.5%; height: 1px; z-index: -1; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 140, .65) 35%, rgba(255, 230, 200, .95) 50%, rgba(255, 196, 140, .65) 65%, transparent);
  transform: scaleX(0); transition: transform 2.6s var(--ease) 1.4s, opacity 1.2s 1.4s; }
body.is-ready .intro-horizon { opacity: .7; transform: none; }
.intro-top { position: absolute; top: clamp(24px, 9vh, 96px); left: 0; right: 0; padding: 0 clamp(24px, 7vw, 120px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.intro-gf { width: 48px; height: 44px; color: #f3ebe0; opacity: 0; transition: opacity 1.4s .8s; }
.intro-gf path { fill: currentColor; }
.intro-brand { text-align: center; font-weight: 600; font-size: clamp(18px, 2.1vw, 30px); letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateY(-10px); transition: opacity 1.2s .6s, transform 1.4s var(--ease) .6s; }
.intro-brand i { display: block; height: 1px; background: currentColor; opacity: .7; margin-top: 12px; transform: scaleX(0); transition: transform 1.6s var(--ease) 1.1s; }
body.is-ready .intro-gf { opacity: .92; }
body.is-ready .intro-brand { opacity: 1; transform: none; }
body.is-ready .intro-brand i { transform: none; }
.intro-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%); text-align: center;
  font-family: var(--serif); font-weight: 600; letter-spacing: -.005em;
  font-variation-settings: "opsz" 48; /* the heading cut of the serif (as in the section headings), so its fine strokes stay visible this large */
  font-size: clamp(44px, min(8.4vw, 16.5vh), 150px); line-height: 1.02; }
.it-line { display: block; overflow: hidden; padding: .04em 0 .02em; }
.it-w { display: inline-block; transform: translateY(108%); transition: transform 1.7s var(--ease); }
.it-line:nth-child(1) .it-w { transition-delay: .35s; }
.it-line:nth-child(2) .it-w { transition-delay: .5s; }
.it-line:nth-child(3) .it-w { transition-delay: .65s; }
body.is-ready .it-w { transform: none; }
.intro-words { position: absolute; left: 0; right: 0; bottom: clamp(108px, 14vh, 130px); padding: 0 clamp(24px, 7vw, 120px); /* clear of the "Begin the journey" cue */
  display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; }
.intro-words li { opacity: 0; transform: translateY(12px); transition: opacity 1s, transform 1.2s var(--ease); transition-delay: calc(1.3s + var(--i) * .12s); }
body.is-ready .intro-words li { opacity: .88; transform: none; }
.intro-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; opacity: 0; transition: opacity 1s 2.2s; }
body.is-ready .intro-cue { opacity: .7; }
.intro-cue i { width: 1px; height: 34px; background: linear-gradient(currentColor, transparent); animation: cue 2.4s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------------------------------------------------------------- 02 brief */
.brief { position: relative; padding: clamp(90px, 18vh, 200px) var(--pad) clamp(90px, 16vh, 180px);
  background: radial-gradient(ellipse 80% 60% at 20% 10%, #2a1610 0%, rgba(42, 22, 16, 0) 60%), #120c0a; color: var(--cream); --accent: var(--gold); }
.brief-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 7vw, 130px); align-items: start; max-width: 1500px; margin: 0 auto; }
.brief-h { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5.3vw, 88px); line-height: 1.04; margin: 22px 0 28px; letter-spacing: -.005em; }
.brief-h em { color: var(--gold); }
.brief-p { font-size: clamp(17px, 1.35vw, 21px); color: rgba(239, 230, 216, .78); max-width: 33em; }
.brief-img { position: relative; margin-top: clamp(36px, 8vh, 80px); aspect-ratio: 1800 / 995; overflow: hidden; border-radius: 3px; }
.brief-img img { width: 100%; height: 118%; object-fit: cover; margin-top: -4%; }
.brief-coord { position: absolute; left: 20px; bottom: 16px; font-size: 10.5px; letter-spacing: .3em; color: rgba(239, 230, 216, .75); }
.brief-cols { padding-top: clamp(8px, 4vh, 60px); }
.brief-block { border-top: 1px solid rgba(201, 162, 113, .3); padding: clamp(22px, 3.6vh, 38px) 0 clamp(30px, 5vh, 54px); }
.brief-block:nth-child(2) { --d: .12s; } .brief-block:nth-child(3) { --d: .24s; }
.brief-block h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.25vw, 36px); line-height: 1.18; margin: 14px 0 14px; }
.brief-block h3 em { color: var(--gold); }
.brief-block p:not(.eyebrow) { color: rgba(239, 230, 216, .72); font-size: 16.5px; max-width: 32em; }

/* ---------------------------------------------------------------- 03 hub: the deck's own page, made interactive */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #e3d5c0 url(../img/hub-paper.webp) center / auto 100% repeat-x; } /* the deck's own paper, at the page's grain */
.deck-frame { position: relative; aspect-ratio: 16 / 9; }
.deck-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
/* the deck page fills the whole screen (its paper runs edge to edge); only plain paper is ever cropped, since the
   drawing sits between 13-88% across and 8-87% down. The needle and the direction links scale with it. */
.hub-frame { position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(max(100%, 100vh * 16 / 9), 125%, 100vh * 2.08); width: min(max(100%, 100svh * 16 / 9), 125%, 100svh * 2.08); } /* the caps keep the drawing whole on 4:3 and ultra-wide screens; the paper fills any gap */
[data-reveal="page"] { opacity: 0; transform: scale(1.04); transition: opacity 1.3s var(--ease), transform 2.4s var(--ease); }
[data-reveal="page"].in { opacity: 1; transform: none; }
.hub-glint { position: absolute; left: 49.9%; top: 47.97%; width: 25.4%; aspect-ratio: 1; pointer-events: none; mix-blend-mode: screen; opacity: .9;
  transform: translate(-50%, -50%) rotate(var(--ga, 0deg)); transition: transform 1.3s cubic-bezier(.3, 1.5, .4, 1);
  background: conic-gradient(from -14deg, rgba(255, 236, 196, 0) 0deg, rgba(255, 246, 220, .95) 14deg, rgba(255, 210, 140, .35) 26deg, rgba(255, 236, 196, 0) 44deg, rgba(255, 236, 196, 0) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent 0 87%, #000 89.5% 97.5%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 0 87%, #000 89.5% 97.5%, transparent 100%); }
.hub-frame.in .hub-glint { animation: glint-once 3.2s var(--ease-io) .6s 1 both; }
.hub-frame.aim .hub-glint { animation: none; }
@keyframes glint-once { from { transform: translate(-50%, -50%) rotate(-360deg); } to { transform: translate(-50%, -50%) rotate(0deg); } }
.hub-hot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 12px; outline-offset: 4px; }
.hub-hot::before { content: ""; position: absolute; inset: -10% -5%; border-radius: 16px; background: radial-gradient(closest-side, rgba(168, 96, 44, .2), rgba(168, 96, 44, 0)); opacity: 0; transition: opacity .45s; }
.hub-hot::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 4%; height: 2px; background: #8a3a1e; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.hub-hot:hover::before, .hub-hot:focus-visible::before { opacity: 1; }
.hub-hot:hover::after, .hub-hot:focus-visible::after { transform: scaleX(1); }
/* the compass needle: pivots on the dial's centre, finds north when the page appears and turns to the
   direction you point at (main.js). The shadow sits on the wrapper so the light stays put as it swings. */
.hub-needle { position: absolute; left: 49.97%; top: 47.92%; width: 15.6%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  filter: drop-shadow(0 .8vmin .6vmin rgba(20, 9, 3, .6)) drop-shadow(0 .15vmin .1vmin rgba(20, 9, 3, .45)); }
.hub-needle svg { width: 100%; height: 100%; overflow: visible; }

/* ---------------------------------------------------------------- chapters */
.chapter { background: var(--bg); color: var(--ink); position: relative; }
.chapter .eyebrow { color: var(--accent); }
/* chapter opener: just the direction's name, with its bearing on a small compass */
.ch-intro { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 120px var(--pad); overflow: hidden; }
.ch-intro .eyebrow { --d: .1s; }
.ch-num { position: absolute; top: 50%; left: 50%; translate: -50% -54%; font-family: var(--serif); font-size: clamp(200px, min(44vw, 92vh), 720px); line-height: 1; color: var(--fg); opacity: .06 !important; pointer-events: none; font-weight: 400; }
.ch-title { font-family: var(--serif); font-weight: 600; font-variation-settings: "opsz" 48; /* the heading cut: fine strokes stay visible at this size */
  font-size: clamp(56px, min(13.5vw, 27vh), 220px); line-height: .95; margin: clamp(12px, 2.6vh, 20px) 0 clamp(16px, 3.4vh, 26px); letter-spacing: -.01em; color: var(--fg); }
.ch-line { font-family: var(--serif); font-style: italic; font-size: clamp(20px, min(2.2vw, 4vh), 34px); color: var(--ink); --d: .5s; }
.ch-compass { position: absolute; left: 50%; bottom: 9vh; width: 58px; height: 58px; margin-left: -29px; border: 1px solid var(--line); border-radius: 50%; }
.ch-compass::before { content: "N"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: .2em; opacity: .6; }
.ch-compass i { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 8px; margin-left: -4px; transform: rotate(0deg); transition: transform 2s cubic-bezier(.3, 1.8, .4, 1) .6s; }
.ch-compass i::before { content: ""; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ch-compass i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--fg); opacity: .5; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ch-intro.in .ch-compass i { transform: rotate(var(--b)); }

/* ---------------------------------------------------------------- story (pinned explainer) */
.story { position: relative; height: var(--len, 500vh); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(320px, 35vw) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.story-stage { position: relative; grid-column: 2; grid-row: 1; min-height: 0; min-width: 0; padding: clamp(80px, 12vh, 136px) 6vw clamp(80px, 12vh, 136px) 2vw; }
.story-stage svg { display: block; width: 100%; height: 100%; overflow: visible; }
.story-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 0 2vw 0 var(--pad); }
.story-kicker { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.story-count { color: var(--muted); letter-spacing: .2em; font-weight: 400; }
.story-count b { color: var(--ink); font-weight: 500; }
.story-steps { position: relative; min-height: clamp(260px, 38vh, 380px); margin-top: 34px; }
.story-steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.story-steps li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.story-steps li.is-past { transform: translateY(-20px); }
.story-steps h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.3vw, 56px); line-height: 1.04; margin-bottom: 20px; color: var(--ink); }
.story-steps p { font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); max-width: 25em; }
.story-steps p em { font-family: var(--serif); font-size: 1.12em; color: var(--ink); }
.story-rail { height: 1px; background: var(--line); position: relative; margin-top: 10px; }
.story-rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); }

.story-svg .guide { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; opacity: .55; }
.story-svg .label { font-family: var(--sans); font-weight: 500; letter-spacing: .3em; fill: var(--fg); }

/* ---------------------------------------------------------------- film */
.film { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: #050302; overflow: hidden; color: #f3e6d6; }
.film-view { position: absolute; inset: 0; overflow: hidden; }
.film-cam { position: absolute; inset: 0; }
.film-plate { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.film.has-canvas .film-cam { visibility: hidden; }
.film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* films fill the screen edge to edge (no black bars): the picture is cropped a little instead */
.film-mov { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; background: #050302; }
.film-end { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
.film.is-done .film-end { opacity: 1; }
/* GL build films: poster = the exact deck page (shown for reduced motion / no WebGL) */
.film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #050302; } /* main.js aims the crop at the film's subject */
.film-gl .film-canvas { z-index: 0; opacity: 0; transition: opacity .35s; }
.film-gl.gl-on .film-canvas { opacity: 1; }
/* the film's captions: one line of meaning per beat (timed in main.js from data-in / data-out) */
.film-caps { position: absolute; left: 0; right: 0; bottom: clamp(34px, 10vh, 110px); z-index: 3; pointer-events: none; }
.film-caps .cap { position: absolute; left: 6vw; right: 6vw; bottom: 0; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, min(2.7vw, 4.8vh), 46px); line-height: 1.2; color: #f7ecdc; text-shadow: 0 2px 30px rgba(0, 0, 0, .75);
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.film-caps .cap.on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.has-gsap .film-caps .cap { transition: none; }
.film:not(.gl-on) .film-caps { display: none; } /* no WebGL / reduced motion: the photograph stands on its own */
.film-gl .film-view::after { display: none; }
@media (min-aspect-ratio: 5/4) { .film-gl .film-frame, .film-gl .film-hud { display: none; } }
/* with GSAP the film type is driven by the film's own timeline, not CSS transitions */
.has-gsap .film-tag .w, .has-gsap .film-label, .has-gsap .film-foot, .has-gsap .film-foot i,
.has-gsap .film-route, .has-gsap .rt-line, .has-gsap .rt > * { transition: none !important; }
.film-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 85% 85% at 50% 50%, transparent 55%, rgba(0, 0, 0, .5) 100%); }
.film-frame { position: absolute; pointer-events: none; z-index: 2; --fh: 720px; }
.film-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.film-label { position: absolute; left: clamp(18px, 3.2vw, 56px); top: clamp(20px, 4.6vh, 44px); font-size: max(10px, calc(var(--vh, 800px) * .0165)); letter-spacing: .36em; text-transform: uppercase; color: rgba(243, 230, 214, .8); font-weight: 400; opacity: 0; transition: opacity 1.4s; }
.film-label.on { opacity: 1; }
.film-tag { position: absolute; font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -.005em; }
.film-tag .w { display: block; opacity: 0; transform: translateY(.3em); filter: blur(10px); transition: opacity 1.5s var(--ease), transform 1.7s var(--ease), filter 1.5s var(--ease); white-space: nowrap; }
.film-tag .w.on { opacity: 1; transform: none; filter: blur(0); }
.tag-h { left: 61.6%; top: 24.6%; }
.tag-h .w { font-size: calc(var(--fh) * .088); }
.tag-h .big { font-size: calc(var(--fh) * .132); line-height: 1.08; }
.tag-h .accent { color: #d47c45; }
.tag-n { left: 64.3%; top: 27%; color: #efe2cd; }
.tag-n .w { font-size: calc(var(--fh) * .082); }
.tag-n .big { font-size: calc(var(--fh) * .14); line-height: 1.04; }
.tag-s { left: 66%; width: 26%; top: 24.5%; text-align: center; color: #c9733e; }
.tag-s .w { font-size: calc(var(--fh) * .074); line-height: 1.12; }
.tag-s .big { font-size: calc(var(--fh) * .13); line-height: 1; }
.film-foot, .film-route { position: absolute; left: clamp(18px, 3.2vw, 56px); right: clamp(18px, 3.6vw, 64px); bottom: clamp(20px, 6.4vh, 70px); display: flex; align-items: center; gap: 2.2%; opacity: 0; transition: opacity 1.2s; }
.film-foot span { font-size: max(10px, calc(var(--vh, 800px) * .019)); letter-spacing: .42em; text-transform: uppercase; color: rgba(243, 230, 214, .88); white-space: nowrap; }
.film-foot i, .rt-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(222, 190, 150, .75), rgba(222, 190, 150, .35)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) .3s; }
.film-foot.on, .film-route.on { opacity: 1; }
.film-foot.on i, .film-route.on .rt-line { transform: none; }
.film-route { color: #c9733e; font-size: max(11px, calc(var(--vh, 800px) * .022)); letter-spacing: .14em; }
.rt { display: flex; align-items: center; gap: .9em; white-space: nowrap; }
.rt b, .rt i { font-weight: 400; font-style: normal; opacity: 0; transform: translateX(-8px); transition: opacity .6s, transform .8s var(--ease); }
.film-route.on .rt > * { opacity: 1; transform: none; }
.film-route.on .rt > *:nth-child(2) { transition-delay: .25s; } .film-route.on .rt > *:nth-child(3) { transition-delay: .5s; }
.film-route.on .rt > *:nth-child(4) { transition-delay: .75s; } .film-route.on .rt > *:nth-child(5) { transition-delay: 1s; }
.film-route.on .rt > *:nth-child(6) { transition-delay: 1.25s; } .film-route.on .rt > *:nth-child(7) { transition-delay: 1.5s; }
.rt-coord { white-space: nowrap; font-variant-numeric: tabular-nums; }
.film-ui { position: absolute; right: clamp(18px, 3.2vw, 56px); top: clamp(14px, 3.6vh, 36px); z-index: 4; display: flex; align-items: center; gap: 14px; color: rgba(243, 230, 214, .82); }
.film-kicker { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.film-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(243, 230, 214, .4); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.film-btn:hover { background: rgba(243, 230, 214, .12); border-color: rgba(243, 230, 214, .8); }
.film-btn svg { width: 15px; height: 15px; fill: currentColor; }
.film-btn .ic-replay, .film.is-done .film-btn .ic-play, .film.is-playing .film-btn .ic-play { display: none; }
.film.is-done .film-btn .ic-replay, .film.is-playing .film-btn .ic-replay { display: block; }
/* sound on/off: the films start muted (browsers require it); one tap turns sound on for every film */
.film-snd { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(243, 230, 214, .4); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.film-snd:hover, .film.snd-on .film-snd { background: rgba(243, 230, 214, .12); border-color: rgba(243, 230, 214, .8); }
.film-snd svg { width: 18px; height: 18px; overflow: visible; }
.film-snd .spk { fill: currentColor; }
.film-snd .snd-x, .film-snd .snd-w { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.film-snd .snd-w, .film.snd-on .film-snd .snd-x { display: none; }
.film.snd-on .film-snd .snd-w { display: block; }
.film-bar { width: clamp(80px, 12vw, 180px); height: 1px; background: rgba(243, 230, 214, .22); position: relative; }
.film-bar i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--fp, 0)); }

/* ---------------------------------------------------------------- system: the deck's own system page */
.system { padding: clamp(80px, 13vh, 150px) var(--pad) clamp(50px, 8vh, 100px); }
.sys-head { margin-bottom: clamp(26px, 5vh, 56px); }
.sys-head h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.8vw, 60px); line-height: 1.05; margin-top: 14px; color: var(--ink); }
.deck-scroll { position: relative; }
.deck-card { width: min(100%, calc((100vh - 130px) * 16 / 9)); margin: 0 auto; border-radius: 6px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.deck-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 50px 22px 16px; background: linear-gradient(0deg, rgba(8, 5, 3, .6), rgba(8, 5, 3, 0));
  color: #f3e9dc; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; opacity: 0; transition: opacity .5s; }
.deck-card:hover figcaption, .deck-card:focus-visible figcaption { opacity: 1; }
.deck-hint { display: none; }

/* ---------------------------------------------------------------- world gallery: the mock-ups ride a horizontal track
   The section is as tall as the track is long; while it scrolls past, its pinned screen slides the track sideways and
   each photo drifts inside its frame (main.js sets the height and drives the motion). */
.world { position: relative; height: 400vh; }
.w-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center;
  --fh: min((100 * var(--vh) - 190px) * .9, 78vw * 9 / 16); }
.w-track { display: flex; align-items: center; gap: clamp(16px, 3vw, 56px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.w-intro { flex: 0 0 auto; width: clamp(250px, 28vw, 500px); }
.w-intro h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, min(4.2vw, 7.6vh), 70px); line-height: 1.05; margin-top: 16px; color: var(--ink); }
.w-hint { margin-top: clamp(18px, 4vh, 40px); font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.w-hint i { display: inline-block; font-style: normal; margin-left: 6px; animation: hint-nudge 2.4s var(--ease-io) infinite; }
@keyframes hint-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }
.w-item { position: relative; flex: 0 0 auto; height: var(--fh); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; cursor: zoom-in; background: var(--deep);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .7); }
.w-item img { position: absolute; top: 0; left: -6%; width: 112%; max-width: none; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.w-item:hover img { scale: 1.03; }
.w-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; } /* photos away from the centre sink back */
.w-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 60px clamp(16px, 2.2vw, 32px) clamp(14px, 2vw, 26px);
  background: linear-gradient(0deg, rgba(8, 5, 3, .72), rgba(8, 5, 3, 0)); color: #f3e9dc; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
  opacity: calc(1 - var(--dim, 0) * 3); }
.w-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(14px, 3.6vh, 38px); display: flex; align-items: center; gap: 18px;
  font-size: 11px; letter-spacing: .26em; color: var(--muted); }
.w-count b { color: var(--ink); font-weight: 500; }
.w-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.w-bar b { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--wp, 0)); }
body.in-world .journey { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- outro */
.outro { min-height: 100vh; padding: clamp(110px, 18vh, 200px) var(--pad) clamp(50px, 8vh, 90px); background: radial-gradient(ellipse 70% 60% at 50% 0%, #2a1610, rgba(42, 22, 16, 0) 70%), #0f0b09; color: var(--cream); --accent: var(--gold); }
.outro-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6.4vw, 108px); line-height: 1.02; margin-top: 18px; }
.outro-head h2 em { color: var(--gold); }
.outro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); margin-top: clamp(40px, 9vh, 100px); }
.o-card { position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4; padding: clamp(18px, 2vw, 30px); background: var(--bg); color: var(--fg); border-radius: 4px; overflow: hidden;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease), opacity 1.1s var(--ease); }
.o-card:nth-child(2) { --d: .1s; } .o-card:nth-child(3) { --d: .2s; } .o-card:nth-child(4) { --d: .3s; }
.o-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.o-card .art-logo { position: relative; flex: 1 1 0; min-height: 0; } /* the lockup is pinned inside this box, so it never runs into the name below */
.o-card .art-logo svg { position: absolute; left: 2%; top: 6%; width: 96%; height: 84%; } /* mark + wordmark, scaled to fit */
.o-card .art-logo path { fill: var(--fg); }
.o-card span { font-size: 11px; letter-spacing: .3em; opacity: .7; }
.o-card b { font-weight: 500; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 6px; }
.o-card em { font-family: var(--serif); font-size: 15px; color: var(--ink); opacity: .85; }
.outro-foot { margin-top: clamp(60px, 14vh, 150px); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; border-top: 1px solid rgba(201, 162, 113, .25); padding-top: 34px; }
.thanks { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 6vw, 96px); line-height: 1; }
.by { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(239, 230, 216, .7); }
.by .art { width: 40px; height: 37px; }
.by .art path { fill: var(--cream); }

/* ---------------------------------------------------------------- lightbox + toast */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 6, 5, .95); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 16px; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 2px; transform: scale(.96); transition: transform .7s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox figcaption { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(239, 230, 216, .75); }
.lb-close { position: absolute; top: 18px; right: 24px; font-size: 34px; color: var(--cream); line-height: 1; }
.lb-prev, .lb-next { font-size: 22px; color: var(--cream); opacity: .7; height: 70px; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; padding: 10px 20px; border-radius: 30px; background: #f3e9dc; color: #2a1b12;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- responsive
   tuned for: MacBook (1440 x ~820 visible), Windows 17" laptops at 125% (1536 x ~730) and 150% (1280 x ~600), iPhone 16 (393 x ~750) */
@media (max-width: 1100px) {
  .outro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 760px) and (min-width: 861px) {
  /* short laptop screens */
  .intro-title { font-size: min(8.4vw, 15.5vh); }
  .intro-top { top: clamp(20px, 6vh, 60px); }
  .intro-words { bottom: clamp(56px, 10vh, 90px); }
  .intro-cue span { display: none; }
  .intro-cue i { height: 24px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .brief-grid { grid-template-columns: 1fr; }
  .story-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: 54% 46%; }
  .story-stage { grid-column: 1; grid-row: 1; padding: 84px 7vw 6px; }
  .story-copy { grid-column: 1; grid-row: 2; justify-content: flex-start; padding: 6px 7vw 24px; }
  .story-steps { margin-top: 16px; min-height: 190px; }
  .story-steps h3 { margin-bottom: 10px; }
  .w-intro { width: 76vw; }
  .intro-title { font-size: 12vw; }
  .intro-words { flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 11px; }
  .journey, .keyhint, .tb-label { display: none; }
  .outro-grid { gap: 10px; }
  .o-card em { font-size: 13px; }
  .outro-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-aspect-ratio: 5/4) {
  /* portrait phones & tablets */
  .film-frame { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; --fh: 132vw !important; }
  .film-view::after, .film-gl .film-view::after { display: block; background: linear-gradient(0deg, rgba(4, 2, 1, .84) 0%, rgba(4, 2, 1, .35) 38%, transparent 62%); }
  .film-kicker, .film-bar { display: none; }
  .film-caps { bottom: 15vh; }
  .film-mov, .film-end { object-position: 64% 50%; }
  .film-tag { left: 7% !important; right: 7%; top: auto !important; bottom: 17%; width: auto !important; text-align: left; }
  .tag-s { text-align: left; }
  .film-foot, .film-route { flex-wrap: wrap; row-gap: 8px; }
  .rt-line { display: none; }
  .hub { height: auto; padding: 96px 0 48px; } /* phones: the whole page stays readable; the deck's own paper fills above and below */
  .hub-frame { position: relative; left: auto; top: auto; translate: none; width: 100vw; }
  .ch-title { font-size: clamp(48px, 16vw, 130px); }
  .w-pin { --fh: min(54svh, 88vw * 9 / 16); }
  .w-item figcaption { padding: 34px 12px 10px; font-size: 9.5px; letter-spacing: .2em; }
  .system { padding-left: 0; padding-right: 0; }
  .sys-head { padding: 0 var(--pad); }
  .deck-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 var(--pad) 8px; }
  .deck-scroll::-webkit-scrollbar { display: none; }
  .deck-card { width: 200vw; max-width: none; margin: 0; }
  .deck-hint { display: block; padding: 0 var(--pad); margin-top: 14px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-align: right; }
}
/* ---------------------------------------------------------------- one screen per stop (laptops & desktops)
   Every stop is exactly one screen tall and everything in it is sized by the screen's width AND height, so nothing
   runs off the bottom: MacBook Air/Pro 13-16" (about 1440 x 790 to 1728 x 1000 visible), 14" and 17" Windows laptops
   at 100-150% scaling (1280 x 590 to 1920 x 950), iMac and Studio Display (2240 x 1140 and up).
   [data-fit] blocks also step their type down (--fit, set by fitScreens() in main.js) if text still runs long. */
@media (min-width: 861px) and (min-aspect-ratio: 1251/1000) {
  :root {
    --scr: calc(100 * var(--vh));                    /* one screen */
    --top: clamp(78px, 11vh, 124px);                 /* clears the fixed top bar */
    --bot: clamp(22px, 5vh, 64px);
    --room: calc(var(--scr) - var(--top) - var(--bot));
    --side: calc(100vw - 2 * var(--pad));
    --head-fs: clamp(26px, min(3.8vw, 6.2vh), 60px);
    --head-gap: clamp(6px, 1.2vh, 14px);
    --head-mb: clamp(12px, 2.8vh, 36px);
    --head-h: calc(16px + var(--head-gap) + var(--head-fs) * 1.06 + var(--head-mb)); /* eyebrow + one line of heading */
  }
  [data-fit] { position: relative; overflow: hidden; }
  .intro, .film { min-height: 0; }

  /* brief: the copy on the left with the photo taking whatever height is left; the three notes on the right */
  .brief { height: var(--scr); padding: var(--top) var(--pad) var(--bot); display: flex; }
  .brief-grid { flex: 1; width: 100%; height: 100%; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .brief-lead, .brief-cols { min-height: 0; }
  .brief-lead { display: flex; flex-direction: column; }
  .brief-h { font-size: calc(var(--fit, 1) * clamp(34px, min(5.3vw, 9.2vh), 88px)); margin: calc(var(--fit, 1) * clamp(10px, 2vh, 22px)) 0 calc(var(--fit, 1) * clamp(12px, 2.8vh, 28px)); }
  .brief-p { font-size: calc(var(--fit, 1) * clamp(15px, min(1.35vw, 2.45vh), 21px)); }
  .brief-media { flex: 1 1 0; min-height: 110px; margin-top: calc(var(--fit, 1) * clamp(14px, 3.4vh, 44px)); container-type: size; }
  .brief-img { margin: 0; width: 100%; max-height: 100%; }
  .brief-cols { padding-top: clamp(4px, 1.4vh, 20px); }
  .brief-block { padding: calc(var(--fit, 1) * clamp(12px, 2.4vh, 34px)) 0 calc(var(--fit, 1) * clamp(14px, 3.2vh, 46px)); }
  .brief-block h3 { font-size: calc(var(--fit, 1) * clamp(20px, min(2.25vw, 4vh), 36px)); margin: calc(var(--fit, 1) * clamp(6px, 1.3vh, 14px)) 0; }
  .brief-block p:not(.eyebrow) { font-size: calc(var(--fit, 1) * clamp(14px, min(1.15vw, 2.15vh), 17px)); line-height: 1.55; }

  /* explainers: the copy clears the top bar, and its type follows the screen's height as well as its width */
  .story-copy { padding-top: var(--top); padding-bottom: var(--bot); }
  .story-kicker { padding-bottom: calc(var(--fit, 1) * 18px); }
  .story-steps { min-height: calc(var(--fit, 1) * clamp(190px, 36vh, 380px)); margin-top: calc(var(--fit, 1) * clamp(14px, 3.6vh, 34px)); }
  .story-steps h3 { font-size: calc(var(--fit, 1) * clamp(28px, min(3.3vw, 6.2vh), 56px)); margin-bottom: calc(var(--fit, 1) * clamp(10px, 2.2vh, 20px)); }
  .story-steps p { font-size: calc(var(--fit, 1) * clamp(15px, min(1.25vw, 2.35vh), 19px)); }

  /* direction title: exactly one screen, the compass sits below the name */
  .ch-intro { height: var(--scr); min-height: 0; padding: var(--top) var(--pad) calc(var(--bot) + 76px); }

  /* system page: a heading over the 16:9 deck page, sized by whichever runs out first, width or height */
  .sys-head { margin-bottom: var(--head-mb); padding: 0; }
  .sys-head h3 { font-size: var(--head-fs); margin-top: var(--head-gap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .system { height: var(--scr); padding: var(--top) 0 var(--bot); display: grid; justify-content: center; align-content: center;
    grid-template-columns: min(var(--side), (var(--room) - var(--head-h)) * 16 / 9); }
  .deck-scroll { min-width: 0; }
  .deck-card { width: 100%; margin: 0; }

  /* mock-up track: each photo as tall as the screen allows, between the top bar and the counter */
  .w-pin { padding: var(--top) 0 var(--bot); --fh: min(var(--room) * .86, 76vw * 9 / 16); }

  /* closing page: heading, the four cards (they take the height that is left) and the sign-off */
  .outro { height: var(--scr); min-height: 0; padding: var(--top) var(--pad) var(--bot); display: grid; grid-template-rows: auto minmax(150px, 1fr) auto; row-gap: calc(var(--fit, 1) * clamp(14px, 3.6vh, 50px)); }
  .outro-head h2 { font-size: calc(var(--fit, 1) * clamp(34px, min(6.4vw, 8.6vh), 108px)); margin-top: calc(var(--fit, 1) * clamp(8px, 1.6vh, 18px)); }
  .outro-grid { margin-top: 0; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  .o-card { aspect-ratio: auto; min-height: 0; padding: clamp(14px, min(2vw, 3vh), 30px); }
  .o-card b { font-size: calc(var(--fit, 1) * clamp(15px, min(1.6vw, 2.9vh), 26px)); }
  .o-card em { font-size: calc(var(--fit, 1) * clamp(12.5px, min(1.05vw, 1.9vh), 15px)); }
  .outro-foot { margin-top: 0; padding-top: calc(var(--fit, 1) * clamp(12px, 2.6vh, 34px)); }
  .thanks { font-size: calc(var(--fit, 1) * clamp(32px, min(6vw, 7.4vh), 96px)); }
}
@supports (width: 1cqh) {
  @media (min-width: 861px) and (min-aspect-ratio: 1251/1000) {
    .brief-img { width: min(100cqw, 100cqh * 1800 / 995); max-height: none; } /* the whole photo, as large as the space allows */
  }
}
/* ---------------------------------------------------------------- motion preference
   reduced = the device asks for it (or the Motion toggle): keep soft fades, drop movement */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
html.reduce-motion [data-reveal], html.reduce-motion .ln > *, html.reduce-motion .ch, html.reduce-motion .it-w,
html.reduce-motion .intro-bg img, html.reduce-motion [data-reveal="mask"] img, html.reduce-motion .story-steps li,
html.reduce-motion .intro-brand, html.reduce-motion .intro-words li, html.reduce-motion [data-reveal="page"] { transform: none !important; }
html.reduce-motion [data-reveal="mask"]::after { transform: none !important; transition: opacity .9s ease !important; }
html.reduce-motion [data-reveal="mask"].in::after { opacity: 0; }

.tb-motion { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid currentColor; border-radius: 30px;
  font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; opacity: .5; transition: opacity .3s; white-space: nowrap; }
.tb-motion:hover, .tb-motion:focus-visible { opacity: 1; }
.tb-motion i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tb-motion span::after { content: " · Full"; }
html.reduce-motion .tb-motion i { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
html.reduce-motion .tb-motion span::after { content: " · Reduced"; }
.motion-ask { position: fixed; left: 50%; bottom: 28px; z-index: 140; width: min(560px, calc(100% - 32px)); display: grid; gap: 14px;
  padding: 18px 20px; border-radius: 10px; background: rgba(20, 13, 10, .95); color: var(--cream); border: 1px solid rgba(201, 162, 113, .32);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .85); font-size: 14.5px; line-height: 1.5;
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px); transition: opacity .5s, transform .6s var(--ease), visibility 0s linear .6s; }
.motion-ask.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .5s, transform .6s var(--ease); }
html.reduce-motion .motion-ask { transform: translate(-50%, 0) !important; }
.motion-ask b { font-weight: 500; color: #fff; }
.ma-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ma-actions button { padding: 10px 16px; border-radius: 30px; border: 1px solid rgba(239, 230, 216, .35); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.ma-actions .ma-full { background: var(--gold); border-color: var(--gold); color: #1a0f0a; }
.ma-actions button:hover { filter: brightness(1.08); }
