/* P1 concept site v3 · Navy & Beige (deck v3 p59)
   Tokens below are the defaults; the Design controls (p1-controls.js) override them through <style id="p1-dyn">.
   Visual language: "the ball on the line" (progress line, track nodes, routes, the intro arc). */

@font-face { font-family: 'Big Shoulders Display'; src: url('fonts/BigShouldersDisplay.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/HankenGrotesk.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('fonts/MartianMono.ttf') format('truetype'); font-weight: 100 800; font-display: swap; }

:root {
  /* owner settings, 2 Oct 2026: v2 Night & Bronze palette, accent #b28b62 */
  --bg: #0B1019;        /* Night */
  --surface: #1A2230;   /* Hull */
  --accent: #b28b62;    /* Bronze (owner-tuned) */
  --fg: #EFE8DB;        /* Bone */
  --muted: #8C8578;
  --hs: .9;             /* headline scale */
  --dw: 800;            /* headline weight */
  --bw: 400;            /* body weight */
  --shade: .55;         /* image shade behind overlay copy */
  --tex-o: .7;          /* title-card court texture */
  --sp: 1.1;            /* section spacing */
  --bar: 64px;
  --g: clamp(16px, 4vw, 64px);   /* side gutter */
  --rail-w: 64px;                /* room kept for the progress line on wide screens */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-anchor: none; }   /* no scroll anchoring: it fights the glide engine */
body { overflow-anchor: none; }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--bw) 17px/1.5 'Hanken Grotesk', system-ui, sans-serif; overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--bg); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.disp { font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; font-weight: var(--dw); text-transform: uppercase; line-height: .9; letter-spacing: .004em; margin: 0; text-wrap: balance; }
.mono { font-family: 'Martian Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.eyebrow { color: var(--accent); margin: 0 0 18px; }
p { margin: 0; }

/* ------------------------------------------------------------------ top bar: logo · chapter · design · index */
.bar { position: fixed; inset: 0 0 auto; height: var(--bar); z-index: 40; display: flex; align-items: center; gap: 18px; padding: 0 var(--g); pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent), transparent); }
.bar > * { pointer-events: auto; }
.bar-logo { display: flex; align-items: center; min-height: 44px; min-width: 44px; }
.bar-logo img { height: 17px; width: auto; display: block; }
.chapter { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; transition: opacity .22s, transform .22s var(--ease); }
.chapter.swap { opacity: 0; transform: translateY(-6px); }
.ch-num { color: var(--accent); }
.ch-name { color: color-mix(in srgb, var(--fg) 80%, transparent); }
.ch-sub { color: color-mix(in srgb, var(--fg) 50%, transparent); overflow: hidden; text-overflow: ellipsis; }
.ch-sub:not(:empty)::before { content: ''; display: inline-block; width: 18px; height: 1px; margin: 0 10px 4px 0; vertical-align: middle; background: color-mix(in srgb, var(--fg) 35%, transparent); }
.bar-btn { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--bg) 35%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: var(--br, 40px); color: var(--fg); font: 400 11px 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .3s, background .3s, color .3s; }
.bar-btn:hover { border-color: var(--accent); }
.bar-btn[aria-expanded="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.menu-ball { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .5s var(--spring); }
.bar-menu:hover .menu-ball { transform: translateX(3px) scale(1.25); }
.bar-menu[aria-expanded="true"] .menu-ball { background: var(--bg); box-shadow: none; }

/* ------------------------------------------------------------------ progress line: the ball travels the line */
.pline { position: fixed; z-index: 38; right: 22px; top: 50%; height: min(58vh, 560px); width: 24px; transform: translateY(-50%); }
.pl-track { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--fg) 16%, transparent); }
.pl-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.pl-nodes { list-style: none; margin: 0; padding: 0; }
.pl-nodes li { position: absolute; left: 50%; top: calc(var(--f, 0) * 100%); transform: translate(-50%, -50%); }
.pl-nodes a { display: grid; place-items: center; width: 36px; height: 36px; text-decoration: none; position: relative; }
.pl-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent); background: var(--bg); transition: transform .45s var(--spring), background .3s, border-color .3s; }
.pl-nodes li.on .pl-dot { border-color: var(--accent); transform: scale(1.35); }
.pl-label { position: absolute; right: 34px; top: 50%; transform: translate(8px, -50%); opacity: 0; white-space: nowrap; font-size: 12px; color: var(--fg); pointer-events: none; transition: opacity .3s, transform .45s var(--spring); padding: 4px 10px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.pl-label b { color: var(--accent); margin-right: 6px; font-weight: 400; }
.pline:hover .pl-label, .pl-nodes a:focus-visible .pl-label { opacity: .9; transform: translate(0, -50%); }
.pl-nodes a:hover .pl-label { opacity: 1; }
.pl-ticks i { position: absolute; left: 50%; top: calc(var(--f) * 100%); width: 7px; height: 1px; margin-left: -3px; background: color-mix(in srgb, var(--fg) 40%, transparent); }
.pl-ball { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--accent) 45%, color-mix(in srgb, var(--accent) 60%, #000) 100%); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 65%, transparent); }

/* ------------------------------------------------------------------ index takeover */
.index-panel { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow: auto; padding: calc(var(--bar) + 4vh) var(--g) 8vh;
  clip-path: circle(0 at calc(100% - 70px) 32px); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.ix-open .index-panel { clip-path: circle(150% at calc(100% - 70px) 32px); }
.ix-close { position: fixed; top: 12px; right: var(--g); }
.ix-court { position: absolute; inset: 6vh 4vw; width: 92vw; height: 88vh; fill: none; stroke: color-mix(in srgb, var(--fg) 7%, transparent); stroke-width: 1; pointer-events: none; }
.ix-court * { vector-effect: non-scaling-stroke; }
.ix-court g { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.6s .2s var(--ease); }
.ix-open .ix-court g { stroke-dashoffset: 0; }
.ix, .ix ol { list-style: none; margin: 0; padding: 0; }
.ix { position: relative; display: grid; gap: clamp(10px, 2.4vh, 26px); max-width: 1200px; }
.ix > li { opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .8s var(--spring); }
.ix-open .ix > li { opacity: 1; transform: none; }
.ix-open .ix > li:nth-child(2) { transition-delay: .06s; } .ix-open .ix > li:nth-child(3) { transition-delay: .12s; }
.ix-open .ix > li:nth-child(4) { transition-delay: .18s; } .ix-open .ix > li:nth-child(5) { transition-delay: .24s; }
.ix-sec { display: flex; align-items: baseline; gap: clamp(12px, 2vw, 28px); text-decoration: none; }
.ix-sec .mono { color: var(--accent); min-width: 28px; }
.ix-sec b { font-size: calc(clamp(40px, min(7.5vw, 10vh), 120px) * var(--hs)); color: color-mix(in srgb, var(--fg) 88%, transparent); transition: color .3s, transform .5s var(--spring); display: inline-block; }
.ix-sec:hover b, .ix-sec:focus-visible b { color: var(--accent); transform: translateX(10px); }
.ix li.cur > .ix-sec b { color: var(--fg); }
.ix li.cur > .ix-sec .mono::after { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.ix ol { display: flex; flex-wrap: wrap; gap: 2px 22px; padding: 6px 0 0 calc(28px + clamp(12px, 2vw, 28px)); }
.ix ol a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: 15px; color: color-mix(in srgb, var(--fg) 62%, transparent); }
.ix ol a:hover, .ix ol a:focus-visible { color: var(--accent); }

/* ------------------------------------------------------------------ 01 intro: opening sequence + ball journey (p1-opening.js) */
.intro { position: relative; }
.op-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; pointer-events: none; z-index: 0;
  background: radial-gradient(70% 80% at var(--bx, 75%) 40%, color-mix(in srgb, var(--surface) 38%, transparent), transparent 70%); }
#op-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: var(--ball-alpha, 1); }
.op-beam { position: absolute; left: var(--bx, 75%); top: -4%; width: calc(var(--bd, 300px) * 2.8); height: calc(var(--by, 50vh) + var(--bd, 300px) * .75 + 4%);
  transform: translateX(-50%) rotate(calc(var(--mx, 0) * -5deg)); transform-origin: 50% 0;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); filter: blur(22px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 0%, transparent), color-mix(in srgb, var(--accent) calc(var(--glow-a, .4) * 30%), transparent) 75%, transparent);
  opacity: var(--beam, 0); mix-blend-mode: screen; }
.op-pool { position: absolute; left: var(--bx, 75%); top: var(--floor-y, 70%); width: calc(var(--bd, 300px) * 1.9); height: calc(var(--bd, 300px) * .26); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) calc(var(--glow-a, .4) * 60%), transparent), transparent); opacity: var(--pool, 0); filter: blur(4px); }
.op-3d .op-beam, .op-3d .op-pool { display: none; }   /* real Three.js spotlight, pool and shaft take over */
.op-guides { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: color-mix(in srgb, var(--accent) 75%, transparent); stroke-width: 1.2; }
.op-guides [pathLength] { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 1)); }
.g-floor line { stroke: color-mix(in srgb, var(--accent) 55%, transparent); }
.g-orbit .faint { opacity: .3; }
.op-guides .node { fill: var(--accent); stroke: none; }
.g-court .net { stroke-dasharray: .012 .012; stroke-dashoffset: 0; opacity: var(--draw); }
.g-court .shadow { fill: rgba(0, 0, 0, .55); stroke: none; filter: blur(3px); }
.ripple { fill: none; stroke: var(--accent); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ripple 1.2s var(--ease) forwards; }
@keyframes ripple { from { transform: scale(1); opacity: calc(.9 * var(--s, 1)); } to { transform: scale(calc(1.6 + var(--s, 1) * 1.6)); opacity: 0; } }
.arc-node circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; transition: fill .4s, r .5s var(--spring); }
.arc-node.on circle { fill: var(--accent); r: 9; }
.arc-node text { fill: color-mix(in srgb, var(--fg) 60%, transparent); stroke: none; font: 400 11px 'Martian Mono', monospace; letter-spacing: .08em; }
.arc-node.on text { fill: var(--accent); }
.op-ball-fallback { display: none; position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a3a3c, #1c1c1e 55%, #000 120%); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 30%, transparent), inset -8px -10px 30px rgba(0,0,0,.5); opacity: var(--ball-alpha, 1); }
.op-ball-fallback svg { position: absolute; inset: 0; fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2.4; }
.op-ball-fallback img { position: absolute; left: 22%; top: 43%; width: 56%; opacity: .9; }
.op-css .op-ball-fallback { display: block; }
.op-css #op-canvas { display: none; }

.op-beats { position: relative; z-index: 1; margin-top: -100svh; }
.op-beat { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--bar) + 24px) var(--g) 48px; max-width: min(54vw, 940px); }
.op-agency { width: 112px; height: auto; margin-bottom: 40px; opacity: .9; }
.no-agency .op-agency { display: none; }
.op-h1 { font-size: calc(clamp(56px, min(9vw, 16vh), 168px) * var(--hs)); }
.op-h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.op-h1 .ln > span { display: inline-block; }
.op-x { color: var(--accent); font-weight: 400; }
.op-h2 { font-size: calc(clamp(46px, min(7vw, 13vh), 128px) * var(--hs) * 1.15); max-width: 11ch; letter-spacing: -.02em; line-height: .86; }   /* owner: 115%, -0.02em, .86 */
.op-soft { color: color-mix(in srgb, var(--fg) 55%, transparent); }
.op-body { margin-top: 24px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; max-width: 36ch; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.op-clock { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: color-mix(in srgb, var(--fg) 70%, transparent); }
.op-count { color: var(--accent); }
.no-clock .op-clock { display: none; }
.op-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; max-width: 520px; }
.op-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; font-size: 14px; line-height: 1.4; color: color-mix(in srgb, var(--fg) 62%, transparent); opacity: .3; transform: translateX(-8px); transition: opacity .5s, transform .6s var(--spring); }
.op-steps li.on { opacity: 1; transform: none; }
.op-steps .mono { grid-row: span 2; color: var(--accent); padding-top: 6px; }
.op-steps b { font-size: calc(26px * var(--hs)); color: var(--fg); }

/* beat entrance (--in set from p1-opening.js) */
.js .op-beat:not(.op-title) > * { opacity: var(--in, 1); transform: translateY(calc((1 - var(--in, 1)) * 34px)); }
/* opening sequence: title lines rise after the ball lands */
.js .intro:not(.seq-title) .op-h1 .ln > span { transform: translateY(108%); }
.js .op-h1 .ln > span { transition: transform 1.1s var(--ease); }
.js .op-h1 .ln:nth-child(2) > span { transition-delay: .09s; }
.js .op-h1 .ln:nth-child(3) > span { transition-delay: .18s; }
.js .intro:not(.seq-title) .op-title .seq { opacity: 0; transform: translateY(14px); }
.js .op-title .seq { transition: opacity .9s .45s, transform .9s .45s var(--ease); }
.js .op-title .op-agency.seq { transition-delay: .2s; }

/* ------------------------------------------------------------------ line-and-node routes ([data-route], p1-scroll.js sets --p and .on) */
.stop-node { position: absolute; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); transition: background .4s, box-shadow .4s, transform .6s var(--spring); }
.stop.on .stop-node { background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent); transform: scale(1.15); }
.js .stop { opacity: .14; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--spring); }
.js .stop.on { opacity: 1; transform: none; }
.route-row .stops { list-style: none; margin: 34px 0 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; position: relative; max-width: 980px; }
.route-row .stops::before, .route-row .stops::after { content: ''; position: absolute; left: 6px; right: 0; top: 6px; height: 1px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.route-row .stops::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
.route-row .stop { position: relative; display: grid; gap: 6px; align-content: start; font-size: 14px; line-height: 1.4; color: color-mix(in srgb, var(--fg) 72%, transparent); }
.route-row .stop-node { left: 0; top: -30px; }
.route-row .stop b, .route-row .stop-a { font-size: calc(26px * var(--hs)); color: var(--fg); text-decoration: none; }
.route-row .stop-a:hover { color: var(--accent); }
.route-row .stop-n { color: var(--accent); }
.route-row .stop-k { font: 400 11px 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.route-days { --cols: 5; }
.route-days .stops { max-width: 760px; gap: 12px; }
.route-days .stop b { font-size: calc(40px * var(--hs)); }
.route-days .stop:last-child b { color: var(--accent); }
.route-dest .stop-a { font-size: calc(clamp(28px, 2.8vw, 44px) * var(--hs)); }

/* ------------------------------------------------------------------ section openers (02, 03, 04) */
.sec-open { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--bar) + 40px) calc(var(--g) + var(--rail-w)) 64px var(--g); position: relative; overflow: hidden; }
.sec-open::after { content: ''; position: absolute; right: -10vw; top: 50%; width: 60vw; height: 1px; background: color-mix(in srgb, var(--accent) 40%, transparent); transform: rotate(-24deg) scaleX(var(--sl, 0)); transform-origin: 100% 50%; transition: transform 1.4s var(--ease); }
.sec-open.in::after { --sl: 1; }
.so-num { color: var(--accent); margin-bottom: 28px; }
.so-title { font-size: calc(clamp(56px, min(11vw, 15vh), 230px) * var(--hs)); max-width: 12ch; }
.so-title span { display: block; }
.so-l2 { color: color-mix(in srgb, var(--fg) 42%, transparent); }
.so-sub { margin-top: 36px; display: grid; gap: 18px; max-width: 64ch; font-size: clamp(17px, 1.5vw, 22px); color: color-mix(in srgb, var(--fg) 82%, transparent); }
.so-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--accent); }
.js .sec-open .so-title span { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); }
.js .sec-open .so-title .so-l2 { transition-delay: .12s; }
.js .sec-open.in .so-title span { clip-path: inset(-20% -5% -20% -5%); transform: none; }
.js .sec-open .so-sub > :not(.route), .js .sec-open .so-num { opacity: 0; transition: opacity 1s .35s; }
.js .sec-open.in .so-sub > :not(.route), .js .sec-open.in .so-num { opacity: 1; }

/* ------------------------------------------------------------------ concept title cards */
.title-card { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: var(--bar) var(--g); overflow: hidden; isolation: isolate; }
.tc-tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: var(--tex-o, .5); filter: saturate(.4); transform: scale(calc(1.14 - var(--tp, 0) * .14)) rotate(calc((var(--tp, 0) - .5) * -3deg)); }
.title-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, transparent, var(--bg) 92%); }
.tc-num { color: var(--accent); margin-bottom: 22px; }
.tc-name { font-size: calc(clamp(56px, min(11.5vw, 19vh), 220px) * var(--hs)); max-width: 14ch; }
.tc-sub { margin-top: 28px; max-width: 40ch; font-size: clamp(16px, 1.5vw, 21px); color: color-mix(in srgb, var(--fg) 80%, transparent); }
.js .title-card .tc-name { clip-path: inset(0 0 100% 0); transform: translateY(24%) scale(1.04); transition: clip-path 1.2s var(--ease), transform 1.4s var(--spring); }
.js .title-card.in .tc-name { clip-path: inset(-20% -5% -20% -5%); transform: none; }
.js .title-card .tc-num, .js .title-card .tc-sub { opacity: 0; transition: opacity 1s .4s; }
.js .title-card.in .tc-num, .js .title-card.in .tc-sub { opacity: 1; }

/* ------------------------------------------------------------------ overview + location blocks */
.overview { padding: calc(16svh * var(--sp, 1)) calc(var(--g) + var(--rail-w)) calc(14svh * var(--sp, 1)) var(--g); max-width: 1260px; }
.ov-head { font-size: calc(clamp(40px, min(6vw, 11vh), 108px) * var(--hs)); max-width: 15ch; }
.ov-body { margin-top: 28px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; max-width: 48ch; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.location { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; padding: calc(14svh * var(--sp, 1)) calc(var(--g) + var(--rail-w)) 0 var(--g); }
.loc-map { position: relative; background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.loc-map img { display: block; width: 100%; height: auto; opacity: .75; }
.loc-dot { position: absolute; z-index: 1; left: calc(var(--dx) * 100%); top: calc(var(--dy) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.loc-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.loc-lead { position: absolute; left: calc(var(--dx) * 100%); top: calc(var(--dy) * 100%); width: var(--lead, 0); height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.3s .35s var(--ease); }
.loc-lead::after { content: ''; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.location.in .loc-lead { transform: scaleX(1); }
.loc-place { font-size: calc(clamp(52px, min(8vw, 14vh), 150px) * var(--hs)); }
.loc-sub { margin-top: 18px; color: color-mix(in srgb, var(--fg) 70%, transparent); }

.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ lateral tracks (renders)
   Default (no JS / reduced motion / "Stacked"): slides stack vertically, every image full width at its natural ratio.
   .h-on (p1-scroll.js): the track pins; the rail follows scroll through a spring. */
.track { position: relative; }
.rail { margin: 0; }
.slide { position: relative; margin: 0; }
.s-media { position: relative; overflow: hidden; }
.s-media img { display: block; width: 100%; height: auto; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.s-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--bg) calc(var(--shade) * 100%), transparent) 0%, transparent 55%), linear-gradient(to right, color-mix(in srgb, var(--bg) calc(var(--shade) * 55%), transparent), transparent 55%); }
.s-copy { position: absolute; left: var(--g); right: var(--g); bottom: clamp(28px, 9vh, 120px); max-width: min(62vw, 1000px); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.s-head { font-size: calc(clamp(44px, min(6.6vw, 12vh), 132px) * var(--hs)); max-width: 13ch; }
.s-body { margin-top: 18px; font-size: clamp(16px, 1.45vw, 22px); line-height: 1.4; max-width: 38ch; color: color-mix(in srgb, var(--fg) 88%, transparent); }
.track-ui { display: none; }

.h-on { height: calc(var(--n) * 100svh + 10svh); }
.h-on .track-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.h-on .rail { display: flex; height: 100%; width: calc(var(--n) * 100%); transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.h-on .slide { flex: 0 0 calc(100% / var(--n)); height: 100%; display: flex; align-items: center; }
.h-on .s-media { width: 100%; }
.h-on .s-media img { max-height: 100svh; transform: translateX(calc(var(--o, 0) * -7% * var(--plx, 1))) scale(calc((1.07 + var(--vel, 0) * .03) * var(--z, 1))); transform-origin: center; }
.h-on .s-copy { translate: calc(var(--o, 0) * -16vw * var(--plx, 1)) 0; }
.fit-fill .h-on .s-media { height: 100%; }
.fit-fill .h-on .s-media img { height: 100%; max-height: none; }
.h-on .s-copy > * { --r: clamp(0, (var(--v, 1) - var(--d, 0)) * 2.4, 1); opacity: var(--r); transform: translateY(calc((1 - var(--r)) * 46px)); }
.h-on .s-head { --d: .25; }
.h-on .s-body { --d: .45; }
.no-copy-motion .h-on .s-copy > * { opacity: 1; transform: none; }

/* track controls: arrows · node line with a springy ball · count */
.h-on .track-ui { position: absolute; right: calc(var(--g) + var(--rail-w)); bottom: 26px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.t-btn { width: 44px; height: 44px; border-radius: var(--br-c, 50%); border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--fg); font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: border-color .3s, color .3s, transform .4s var(--spring); }
.t-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.t-btn:disabled { opacity: .25; cursor: default; }
.t-line { position: relative; display: flex; justify-content: space-between; align-items: center; width: calc(var(--n) * 32px + (var(--n) - 1) * 18px); height: 44px; }
.t-rule { position: absolute; left: 16px; right: 16px; top: 50%; height: 1px; background: color-mix(in srgb, var(--fg) 28%, transparent); }
.t-node { position: relative; width: 32px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.t-node::before { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg) 60%, transparent); background: var(--bg); transition: transform .3s; }
.t-node:hover::before { transform: scale(1.4); border-color: var(--accent); }
.t-dot { position: absolute; top: 50%; left: calc(16px + var(--tp, 0) * (100% - 32px)); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--accent) 45%, color-mix(in srgb, var(--accent) 60%, #000) 100%); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); }
.t-count { color: color-mix(in srgb, var(--fg) 70%, transparent); min-width: 58px; text-align: right; }
.t-count b { color: var(--accent); font-weight: 400; }

/* ------------------------------------------------------------------ strategy overview (02.4) */
.strategy { padding: calc(18svh * var(--sp, 1)) calc(var(--g) + var(--rail-w)) calc(16svh * var(--sp, 1)) var(--g); }
.st-head { font-size: calc(clamp(44px, min(6.4vw, 12vh), 120px) * var(--hs)); max-width: 13ch; }
.strategy .route { margin-top: 12svh; }
.route-label { color: var(--accent); }
.route-lede { margin-top: 18px; max-width: 52ch; font-size: clamp(17px, 1.4vw, 21px); color: color-mix(in srgb, var(--fg) 82%, transparent); }
.route-map { position: relative; margin-top: 56px; }
.route-line { display: block; width: 100%; height: 120px; overflow: visible; }
.route-line path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.route-map .stops { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.route-map .stop { position: relative; display: grid; gap: 8px; align-content: start; border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); padding-top: 22px; }
.route-map .stop-node { left: 0; top: -7px; }
.stop-n { color: var(--accent); }
.route-map .stop b { font-size: calc(clamp(40px, 4.6vw, 84px) * var(--hs)); }
.route-map .stop-k { font: 500 12px 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 70%, transparent); }
.route-map .stop-d { font-size: 16px; line-height: 1.45; color: color-mix(in srgb, var(--fg) 80%, transparent); max-width: 30ch; }

/* ------------------------------------------------------------------ 05 identity close */
.identity { padding: calc(18svh * var(--sp, 1)) calc(var(--g) + var(--rail-w)) 10svh var(--g); overflow: hidden; }
.id-stage { display: grid; justify-items: start; }
.id-mark { width: min(78vw, 980px); margin: 40px 0 56px; }
.id-mark img { display: block; width: 100%; height: auto; }
.js .id-mark { opacity: 1; transform: none; }
.js .id-mark img { clip-path: inset(0 100% 0 0); transform: translateX(-4%); transition: clip-path 1.6s var(--ease), transform 1.8s var(--spring); }
.js .id-mark.in img { clip-path: inset(0 -2% 0 0); transform: none; }
.id-line { font-size: calc(clamp(48px, min(7vw, 13vh), 132px) * var(--hs)); }
.id-sub { margin-top: 18px; font-size: clamp(18px, 1.8vw, 26px); color: var(--accent); }
.id-name { margin-top: 12svh; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0; font-size: calc(clamp(40px, 5.4vw, 96px) * var(--hs)); }
.id-name .disp { line-height: 1; }
.id-p { color: var(--accent); }
.id-words { display: inline-block; min-width: 11ch; }
.id-words i { font-style: normal; display: none; white-space: nowrap; }
.id-words i.on { display: inline-block; animation: wordIn .55s var(--ease); }
@keyframes wordIn { from { opacity: 0; transform: translateY(35%); } to { opacity: 1; transform: none; } }
.id-one { flex-basis: 100%; margin-top: .12em; color: color-mix(in srgb, var(--fg) 42%, transparent); }
.id-system { margin-top: 16svh; }
.id-system .stops { max-width: none; }
.id-system svg { width: 100%; max-width: 240px; height: auto; fill: none; stroke: color-mix(in srgb, var(--fg) 55%, transparent); stroke-width: 1; margin-bottom: 8px; }
.id-system .stop b { font-size: calc(32px * var(--hs)); }
.g-grid .hl { stroke: var(--accent); stroke-width: 3; }
.g-trace path { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.4s .2s var(--ease); }
.stop.on .g-trace path { stroke-dashoffset: 0; }
.g-perf circle { fill: var(--accent); stroke: none; }
.id-swatches { display: flex; margin-top: 14svh; height: 160px; }
.id-swatches span { flex: 1; background: var(--c); display: flex; flex-direction: column; justify-content: space-between; padding: 14px; color: var(--fg); min-width: 0; outline: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
.id-swatches span.lt { color: #191E26; }
.id-swatches b { font: 500 12px 'Martian Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.id-swatches i { font-style: normal; font-size: 10px; }
.js .id-swatches span { transform: scaleY(.02); transform-origin: bottom; transition: transform 1s var(--spring); }
.js .id-swatches.in span { transform: none; }
.id-swatches.in span:nth-child(2) { transition-delay: .08s; } .id-swatches.in span:nth-child(3) { transition-delay: .16s; }
.id-swatches.in span:nth-child(4) { transition-delay: .24s; } .id-swatches.in span:nth-child(5) { transition-delay: .32s; }
.id-score { display: flex; gap: .5em; margin-top: 10svh; font-size: calc(clamp(80px, min(12vw, 22vh), 220px) * var(--hs)); }
.id-score span { line-height: .8; }
.id-score span:last-child { color: var(--accent); }
.thanks { margin-top: 22svh; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.thanks-h { font-size: calc(clamp(64px, min(10vw, 18vh), 200px) * var(--hs)); }
.thanks-ag { width: 120px; height: auto; opacity: .85; }
.foot { padding: 28px calc(var(--g) + var(--rail-w)) 96px var(--g); border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); color: color-mix(in srgb, var(--fg) 60%, transparent); }
.foot .mono { font-size: 10px; line-height: 1.8; }

[data-hidden] { display: none !important; }

/* squish: blocks lean with scroll velocity (--skew from p1-scroll.js); pinned renders lean sideways with the rail */
.sec-open, .title-card, .overview, .location, .strategy, .id-stage, .id-system, .op-beat, .slide { transform: skewY(var(--skew, 0deg)); }
.h-on .slide { transform: none; }
.h-on .s-media, .h-on .s-copy { transform: skewX(var(--rskew, 0deg)); }

/* ------------------------------------------------------------------ intro on narrow / portrait screens (p1-opening.js adds .op-narrow) */
.op-narrow .op-beat { max-width: none; justify-content: flex-end; padding-bottom: 76px; }
.op-narrow .op-agency { width: 92px; margin-bottom: 22px; }
.op-narrow .op-stage { background: radial-gradient(90% 45% at 55% 26%, color-mix(in srgb, var(--surface) 40%, transparent), transparent 70%); }

/* ------------------------------------------------------------------ tablets / small laptops */
@media (max-width: 1100px) {
  .chapter .ch-name { display: none; }
  .chapter:not(.has-sub) .ch-name { display: inline; }
  .ch-sub:not(:empty)::before { display: none; }
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 760px) {
  :root { --bar: 58px; --rail-w: 0px; }
  body { font-size: 16px; }
  .bar { gap: 8px; padding-right: 12px; }
  .bar-logo img { height: 15px; }
  .chapter { font-size: 12px; gap: 8px; }
  .bar-btn { min-height: 38px; padding: 0 12px; }
  .dp-toggle { padding: 0 10px; }
  /* progress line runs along the bottom edge */
  .pline { right: 16px; left: 16px; top: auto; bottom: max(8px, env(safe-area-inset-bottom)); height: 22px; width: auto; transform: none; }
  .pl-track { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .pl-fill { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .pl-nodes li { left: calc(var(--f, 0) * 100%); top: 50%; }
  .pl-nodes a { width: 30px; height: 30px; }
  .pl-label { display: none; }
  .pl-ticks i { left: calc(var(--f) * 100%); top: 50%; width: 1px; height: 7px; margin: -3px 0 0; }
  .pl-ball { left: calc(var(--p, 0) * 100%); top: 50%; }
  .op-beat { padding-bottom: 80px; }
  .route-row .stops { grid-template-columns: 1fr; gap: 18px; padding: 0 0 0 30px; margin-top: 26px; }
  .route-row .stops::before, .route-row .stops::after { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .route-row .stops::after { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .route-row .stop-node { left: -30px; top: 3px; }
  .route-row .stop b, .route-row .stop-a { font-size: calc(22px * var(--hs)); }
  .route-days .stops { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 30px 0 0; gap: 4px; }
  .route-days .stops::before, .route-days .stops::after { left: 6px; right: 0; top: 6px; bottom: auto; height: 1px; width: auto; }
  .route-days .stops::after { transform-origin: left; transform: scaleX(var(--p, 1)); }
  .route-days .stop-node { left: 0; top: -30px; }
  .route-days .stop b { font-size: calc(28px * var(--hs)); }
  .route-days .stop-n { font-size: 9px; letter-spacing: .02em; }
  .location { grid-template-columns: 1fr; padding-top: 10svh; }
  .loc-map { max-width: 320px; }
  .loc-lead { display: none; }
  .overview { padding: 12svh var(--g); }
  .route-map .stops { grid-template-columns: 1fr; gap: 28px; }
  .route-line { display: none; }
  .route-map { border-left: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); padding-left: 24px; }
  .route-map::before { content: ''; position: absolute; left: -1px; top: 0; width: 2px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 1)); }
  .route-map .stop { border-top: 0; padding-top: 0; }
  .route-map .stop-node { left: -31px; top: 4px; }
  .id-swatches { flex-direction: column; height: auto; }
  .id-swatches span { flex-direction: row; align-items: center; min-height: 52px; }
  .js .id-swatches span { transform: scaleX(.02); transform-origin: left; }
  .ix ol { padding-left: 0; }

  /* renders: never cropped on phones; copy sits below the image */
  .s-media img, .h-on .s-media img { transform: none !important; height: auto !important; max-height: none !important; object-fit: contain; }
  .fit-fill .h-on .s-media { height: auto; }
  .s-media::after { display: none; }
  .s-copy { position: static; max-width: none; padding: 20px var(--g) 44px; text-shadow: none; }
  .s-head { font-size: calc(clamp(36px, 10.5vw, 64px) * var(--hs)); }
  .s-body { margin-top: 12px; font-size: 16px; }
  .h-on .slide { flex-direction: column; justify-content: center; align-items: stretch; padding-bottom: 70px; }
  .h-on .s-copy { padding-bottom: 0; }
  .h-on .track-ui { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(max(8px, env(safe-area-inset-bottom)) + 30px); gap: 8px; }
  .t-count { display: none; }
}

/* portrait tablets: renders stay whole (no parallax zoom), copy sits below the image */
@media (min-width: 761px) and (orientation: portrait) {
  .h-on .s-media img { transform: none; }
  .s-media::after { display: none; }
  .h-on .slide { flex-direction: column; justify-content: center; align-items: stretch; }
  .s-copy { position: static; max-width: none; padding: 36px calc(var(--g) + var(--rail-w)) 0 var(--g); text-shadow: none; }
}

/* short landscape screens (phones on their side): whole image, copy overlaid */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --bar: 52px; }
  .h-on .slide { justify-content: center; }
  .h-on .s-media { width: auto; height: 100svh; display: flex; justify-content: center; margin: 0 auto; }
  .h-on .s-media img { width: auto; height: 100svh; max-height: 100svh; max-width: 100%; object-fit: contain; transform: none; }
  .s-copy { bottom: 18px; }
  .s-head { font-size: calc(clamp(30px, 9vh, 56px) * var(--hs)); }
  .s-body { font-size: 14px; margin-top: 8px; }
  .h-on .track-ui { bottom: 10px; }
  .op-beat { padding-top: calc(var(--bar) + 8px); padding-bottom: 24px; }
  .op-agency { display: none; }
  .op-body { margin-top: 12px; font-size: 15px; }
  .route-row .stops { margin-top: 16px; }
  .route-row .stop-d { display: none; }
  .pline { height: 70vh; }
}

/* ------------------------------------------------------------------ reduced motion: no pinning, no travel, content shown */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .stop, .js .id-mark img, .js .id-swatches span, .js .title-card .tc-name, .js .sec-open .so-title span, .js .op-h1 .ln > span, .js .op-title .seq, .op-steps li { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .title-card .tc-num, .js .title-card .tc-sub, .js .sec-open .so-sub > *, .js .sec-open .so-num { opacity: 1 !important; }
  .tc-tex { transform: none; }
  .index-panel { clip-path: none; }
}

/* ------------------------------------------------------------------ Design controls (temporary) */
.dp { position: fixed; right: var(--g); top: calc(var(--bar) + 6px); z-index: 60; width: min(380px, calc(100vw - 32px)); max-height: min(80svh, 720px); overflow: auto; background: #12161c; color: #F5F1E8; border: 1px solid rgba(245,241,232,.14); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); font: 400 13px/1.4 'Hanken Grotesk', sans-serif; overscroll-behavior: contain; }
.dp-tabs { position: sticky; top: 0; display: flex; flex-wrap: wrap; background: #12161c; border-bottom: 1px solid rgba(245,241,232,.12); z-index: 1; }
.dp-tab { flex: 1 0 auto; min-height: 40px; padding: 0 10px; background: none; border: 0; color: rgba(245,241,232,.6); font: 400 10px 'Martian Mono', monospace; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.dp-tab[aria-selected="true"] { color: #F5F1E8; box-shadow: inset 0 -2px #E0D8CB; }
.dp-pane { padding: 16px; display: grid; gap: 16px; }
.dp-pane[hidden], .t-node[hidden] { display: none; }
.dp-g { display: grid; gap: 8px; }
.dp-l { font: 400 10px 'Martian Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: rgba(245,241,232,.66); }
.dp-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-b { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(245,241,232,.2); border-radius: 30px; background: none; color: #F5F1E8; font: 400 12px 'Hanken Grotesk', sans-serif; cursor: pointer; }
.dp-b.on { border-color: #E0D8CB; background: rgba(224,216,203,.14); }
.dp-b:hover { border-color: rgba(224,216,203,.7); }
.dp-sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.dp input[type="range"] { width: 100%; accent-color: #E0D8CB; }
.dp input[type="color"] { width: 44px; height: 30px; border: 0; padding: 0; background: none; }
.dp-note { color: rgba(245,241,232,.6); font-size: 12px; }
.dp-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; padding-top: 12px; border-top: 1px solid rgba(245,241,232,.1); }
.dp-row img { width: 64px; height: 40px; object-fit: cover; display: block; }
.dp-row .dp-l { text-transform: none; letter-spacing: 0; font-size: 11px; }
.dp-check { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.dp-check.sub { padding-left: 22px; color: rgba(245,241,232,.75); }
.dp textarea { width: 100%; min-height: 160px; background: #0b0e12; color: #F5F1E8; border: 1px solid rgba(245,241,232,.2); font: 11px/1.4 'Martian Mono', monospace; padding: 8px; }
.dp-reset { color: rgba(245,241,232,.7); }
[data-et][contenteditable="true"] { outline: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 4px; cursor: text; }
[data-et].edited { box-shadow: inset 3px 0 0 var(--accent); }

/* ------------------------------------------------------------------ page-element options (Design controls → Elements) */
.no-pline .pline, .no-chapter .chapter { visibility: hidden; }
.pline-left .pline { right: auto; left: 22px; }
.pline-left .pl-label { right: auto; left: 34px; transform: translate(-8px, -50%); }
.pline-left .pline:hover .pl-label { transform: translate(0, -50%); }
.tui-centre .h-on .track-ui { right: auto; left: 50%; transform: translateX(-50%); }
.tui-left .h-on .track-ui { right: auto; left: var(--g); bottom: 26px; transform: none; }
@media (max-width: 760px) { .tui-left .h-on .track-ui { bottom: calc(max(8px, env(safe-area-inset-bottom)) + 30px); } }
.tui-left .s-copy { bottom: clamp(96px, 14vh, 160px); }
.tui-hidden .h-on .track-ui { display: none; }
.tc-left .title-card { align-items: flex-start; text-align: left; padding-left: var(--g); }
.dp-select { width: 100%; min-height: 36px; background: #0b0e12; color: #F5F1E8; border: 1px solid rgba(245,241,232,.25); border-radius: 8px; padding: 0 10px; font: 13px 'Hanken Grotesk', sans-serif; }
.dp-sub { padding: 0; }

/* the intro ball can be clicked or dragged to spin it (p1-opening.js) */
.ball-hover, .ball-hover body { cursor: grab; }
.ball-drag, .ball-drag body, .ball-drag * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

/* deck update (Oct 2026): Thank-you beat, location notes, placeholder-brand note, exploratory note */
.op-thanks .op-body + .op-body { margin-top: 14px; }
.op-thanks .op-body { max-width: 48ch; }
.loc-note { margin-top: 22px; max-width: 38ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.id-note { margin-top: 26px; max-width: 58ch; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--fg) 66%, transparent); }
.explore { flex-basis: 100%; max-width: 62ch; margin-bottom: 10svh; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: color-mix(in srgb, var(--fg) 72%, transparent); }

/* ------------------------------------------------------------------ performance (mobile smoothness, 2 Oct 2026) */
.op-3d .op-stage { background: radial-gradient(70% 80% at 74% 40%, color-mix(in srgb, var(--surface) 38%, transparent), transparent 70%); }   /* static: no full-screen repaint per frame */
.op-3d.op-narrow .op-stage { background: radial-gradient(90% 45% at 55% 26%, color-mix(in srgb, var(--surface) 40%, transparent), transparent 70%); }
.tc-tex, .h-on .s-media img { will-change: transform; }
#op-canvas { will-change: opacity; }
@media (max-width: 900px), (pointer: coarse) {
  .bar::before { display: none; }
  .bar { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent), transparent); }
  .bar-btn, .t-btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 78%, transparent); }
  .tc-tex { filter: none; opacity: calc(var(--tex-o, .5) * .8); }
}
/* Design controls are off on the live site; add ?design to the URL to open them */
.dp-toggle { display: none; }
.design-on .dp-toggle { display: inline-flex; }
/* intro: beat copy and the guide drawings live on their own compositor layers, so scroll-driven fades/lifts don't repaint text */
.js .op-beat > * { will-change: transform, opacity; }
.op-guides { will-change: transform; contain: strict; }
.op-stage { contain: strict; }

/* touch screens: each gallery is a native sideways swipe that snaps to whole images (.h-swipe from p1-scroll.js).
   The page scrolls normally past it; the browser does all the motion, so it is smooth and always aligned. */
.h-on.h-swipe { height: auto; }
.h-swipe .track-pin { position: relative; }
.h-swipe .rail { width: 100%; transform: none; will-change: auto; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.h-swipe .rail::-webkit-scrollbar { display: none; }
.h-swipe .slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.h-swipe .s-media, .h-swipe .s-copy { transform: none; }
.h-swipe .s-copy { translate: none; }
.h-swipe .s-copy > * { opacity: 1; transform: none; }
.h-swipe .s-media img { transform: none; }
