/* ── Opposite for nxzen ───────────────────────────────────────────────────────
   Night, near-black, one accent: the nxzen green taken from the city reference.
   The 3D view is context; every word and control stays ordinary HTML on top. */
@font-face{font-family:Eudoxus;src:url('./fonts/eudoxus-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Eudoxus;src:url('./fonts/eudoxus-bold.ttf') format('truetype');font-weight:700;font-display:swap}

:root{
  --bg:#05080c; --bg-2:#0a0f15; --glass:#0a1017e8; --glass-2:#0d151dd9;
  --line:#ffffff14; --line-2:#ffffff24;
  --text:#e9eff1; --body:#c5d0d5; --muted:#8f9da5; --dim:#62717a;
  --green:#55e27c; --green-soft:#4ebc6b; --green-deep:#173d27; --green-glow:#55e27c40;
  --ease-out:cubic-bezier(.16,1,.3,1); --ease-in-out:cubic-bezier(.65,0,.35,1);
  font-family:Eudoxus,"Helvetica Neue",Arial,sans-serif; color:var(--text); background:var(--bg);
  font-synthesis:none; -webkit-font-smoothing:antialiased;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg)}
button{font:inherit;color:inherit}
[hidden]{display:none!important}
.nx{text-transform:none!important;letter-spacing:0}
.skip-link{position:absolute;left:16px;top:-60px;z-index:20;background:var(--green);color:#04120a;padding:10px 14px;border-radius:3px;font-weight:700;text-decoration:none}
.skip-link:focus{top:16px}
:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* ── Stage ─────────────────────────────────────────────────────────────────── */
#experience{position:relative;width:100%;height:100svh;min-height:560px;overflow:hidden;background:var(--bg)}
#scene,#scene canvas,#veil,#shade{position:absolute;inset:0;width:100%;height:100%;display:block}
#scene canvas{touch-action:none;outline:none}
#scene canvas:focus-visible{outline:2px solid var(--green);outline-offset:-4px}
#veil{background:radial-gradient(120% 90% at 50% 55%,#0c1520 0%,#060a10 55%,#04070b 100%);opacity:0;z-index:4;pointer-events:none}
/* A quiet pool of dark behind the words, so they read over any scene. */
#shade{z-index:2;pointer-events:none;opacity:1;transition:opacity .8s var(--ease-out);
  background:radial-gradient(120% 90% at 0% 100%,#03060ad9 0%,#03060a8c 32%,#03060a00 62%),
             linear-gradient(180deg,#03060a99 0%,#03060a00 18%)}
body.step-work #shade{background:linear-gradient(180deg,#03060aa6 0%,#03060a00 20%),linear-gradient(0deg,#03060ab3 0%,#03060a00 22%)}
body.step-about #shade{background:radial-gradient(110% 120% at 0% 60%,#03060af0 0%,#03060ab8 40%,#03060a00 70%),linear-gradient(180deg,#03060a99 0%,#03060a00 18%)}

header.topbar,footer.footline,.caption,.actions{position:absolute;z-index:5}
header.topbar{top:28px;left:40px;right:40px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.brand{display:flex;align-items:center}
.brand-logo{height:24px;width:auto;display:block}
.brand-divider{height:22px;width:1px;background:var(--line-2);margin:0 18px}
.client{font-size:16px;color:var(--body)}
.client .nx{color:var(--text);font-weight:700}

/* Chapter rail: where you are, and the way to anywhere else. */
#chapter-rail{display:flex;gap:4px;flex-wrap:wrap}
.chapter-button{display:flex;align-items:baseline;gap:9px;background:none;border:0;padding:10px 12px 12px;cursor:pointer;color:var(--muted);font-size:14.5px;letter-spacing:.02em;position:relative;border-radius:3px;min-height:40px}
.chapter-button::after{content:"";position:absolute;left:12px;right:12px;bottom:6px;height:1px;background:var(--green);transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease-out)}
.chapter-number{font-size:12px;letter-spacing:.12em;color:var(--dim);transition:color .3s}
.chapter-button:hover:enabled{color:var(--text);background:#ffffff08}
.chapter-button[aria-current="step"]{color:var(--text)}
.chapter-button[aria-current="step"] .chapter-number{color:var(--green)}
.chapter-button[aria-current="step"]::after{transform:scaleX(1)}
.chapter-button.is-done .chapter-number{color:var(--green-soft)}
.chapter-button:disabled{cursor:default;opacity:.45}

/* ── Caption ───────────────────────────────────────────────────────────────── */
.caption{left:40px;bottom:112px;max-width:min(560px,46vw);pointer-events:none}
.caption>*{pointer-events:auto}
.eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:var(--green)}
.eyebrow::before{content:"";width:22px;height:1px;background:currentColor;opacity:.8}
.stage-title{font-weight:400;font-size:clamp(38px,4.1vw,64px);letter-spacing:-.035em;line-height:1.03;margin:0 0 18px;color:var(--text);text-wrap:balance}
.stage-lead{font-size:clamp(19px,1.6vw,23px);line-height:1.45;color:var(--body);margin:0 0 10px;max-width:34ch}
.stage-body{font-size:18px;line-height:1.62;color:var(--body);margin:0;max-width:52ch}
.stage-note{font-size:15.5px;line-height:1.55;color:var(--muted);margin:14px 0 0;max-width:46ch}
.stage-row{display:flex;align-items:center;gap:22px;margin-top:26px;flex-wrap:wrap}
.beats{display:flex;gap:8px}
.beat{width:30px;height:24px;padding:0;border:0;background:none;cursor:pointer;position:relative;min-height:0}
.beat::before{content:"";position:absolute;left:0;right:0;top:11px;height:2px;background:#ffffff2e;transition:background .3s}
.beat[aria-current="true"]::before{background:var(--green)}
.beat:hover::before{background:#ffffff70}
.stage-link{background:none;border:0;padding:6px 0;color:var(--muted);font-size:15.5px;cursor:pointer;text-decoration:underline;text-decoration-color:#ffffff30;text-underline-offset:5px;min-height:0}
.stage-link:hover{color:var(--text);text-decoration-color:var(--green)}

/* Entrances: one orchestrated rise, each block just after the one above. */
.caption.is-entering>*{animation:rise .9s var(--ease-out) both;animation-delay:calc(var(--i,0) * 90ms + 80ms)}
.caption.is-leaving{opacity:0;transform:translateY(-6px);transition:opacity .35s ease,transform .35s ease}
@keyframes rise{from{opacity:0;transform:translateY(18px)}}

/* About: words left, the four practice areas beneath, customers along the foot. */
body.step-about .caption{bottom:178px;max-width:min(620px,52vw)}
.area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;margin-top:26px}
.area{border-top:1px solid var(--line-2);padding-top:14px}
.area-title{display:flex;gap:10px;align-items:baseline;font-size:16.5px;font-weight:700;margin:0 0 6px;color:var(--text);letter-spacing:-.01em}
.area-title span{font-weight:400;font-size:12px;letter-spacing:.14em;color:var(--green)}
.area-body{font-size:15px;line-height:1.55;color:var(--muted);margin:0}

/* Work: a compact heading, the city carries the rest. */
body.step-work .caption{bottom:auto;top:96px;max-width:min(430px,38vw)}
body.step-work .stage-title{font-size:clamp(32px,3vw,46px)}
body.step-work .stage-body{font-size:17px;color:var(--muted)}

/* ── Actions & footer ──────────────────────────────────────────────────────── */
.actions{right:40px;bottom:40px;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.action-row{display:flex;align-items:center;gap:10px}
#status{font-size:14px;color:var(--muted);margin:0 0 6px;max-width:300px;line-height:1.45;text-align:right}
#status:empty{display:none}
button.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:26px;min-width:168px;min-height:50px;padding:15px 22px;border:0;border-radius:3px;background:var(--green);color:#04120a;font-size:16.5px;font-weight:700;cursor:pointer;transition:background .2s,box-shadow .3s,transform .2s}
button.primary:hover:enabled{background:#7cf09b;box-shadow:0 0 0 6px #55e27c1f}
button.primary:disabled{cursor:progress;background:#1d2a24;color:#8fb59c}
button.primary .arrow{font-weight:400}
.text-button{background:transparent;border:1px solid transparent;color:var(--body);padding:10px 14px;min-height:44px;font-size:15.5px;border-radius:3px;cursor:pointer;display:inline-flex;align-items:center;gap:10px}
.text-button:hover:enabled{background:#ffffff0d;color:var(--text)}
footer.footline{left:40px;right:40px;bottom:24px;display:flex;justify-content:space-between;gap:20px;font-size:12px;letter-spacing:.16em;color:var(--dim);pointer-events:none}
#location{color:var(--muted)}

/* ── Things anchored in the scene ──────────────────────────────────────────── */
#anchors{position:absolute;inset:0;z-index:3;pointer-events:none}
#anchors>*{position:absolute;inset:0}
.anchor{position:absolute;left:0;top:0;pointer-events:auto;will-change:transform}

/* Helipad points: a light on the horizon you can open. */
.hotspot{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:none;border:0;padding:0;cursor:pointer;color:var(--text);text-align:left;transform:translate(-9px,-9px);min-height:0}
.hotspot-dot{position:relative;width:18px;height:18px;border-radius:50%;flex:0 0 auto}
.hotspot-dot::before{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--green);box-shadow:0 0 12px 2px var(--green-glow)}
.hotspot-dot::after{content:"";position:absolute;inset:0;border-radius:50%;border:1px solid var(--green);opacity:.7;animation:ping 2.6s var(--ease-out) infinite}
.hotspot-head{display:flex;align-items:center;gap:10px}
.hotspot-label{font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--text);background:#060b10c7;border:1px solid var(--line);padding:6px 10px;border-radius:2px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.hotspot-text{max-width:220px;font-size:16.5px;line-height:1.45;color:var(--text);background:#060b10e0;border-left:2px solid var(--green);padding:10px 14px;border-radius:0 2px 2px 0;opacity:0;transform:translateY(-4px);transition:opacity .35s,transform .35s var(--ease-out);pointer-events:none}
.hotspot[aria-expanded="true"] .hotspot-text,.hotspot:hover .hotspot-text,.hotspot:focus-visible .hotspot-text{opacity:1;transform:none}
.hotspot[aria-expanded="true"] .hotspot-label{border-color:#55e27c66;color:var(--green)}
@keyframes ping{0%{transform:scale(.5);opacity:.9}70%,100%{transform:scale(1.9);opacity:0}}

/* City destinations: a pin rising from the roof of each building. The button
   itself is a generous target; the dot pulses slowly so it reads as a place to go. */
.dest{display:block;background:none;border:0;padding:0;width:44px;height:66px;margin:0;transform:translate(-22px,-66px);cursor:pointer;min-height:0}
.dest::before{content:"";position:absolute;left:21.5px;top:26px;width:1px;height:40px;background:linear-gradient(#55e27ce6,#55e27c14)}
.dest-dot{position:absolute;left:11px;top:3px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11.5px;font-weight:700;line-height:1;color:#04120a;background:var(--green);border:2px solid #06100b;box-shadow:0 0 0 1.5px var(--green),0 0 0 0 #55e27c66;transition:transform .3s var(--ease-out),background .3s;animation:dest-pulse 3.2s ease-out infinite;animation-delay:calc(var(--i,0) * 200ms)}
.dest:hover .dest-dot,.dest:focus-visible .dest-dot,.dest.is-active .dest-dot{transform:scale(1.3);background:#8af0a6}
.dest:focus-visible{outline:none}
.dest:focus-visible .dest-dot{box-shadow:0 0 0 3px #04070b,0 0 0 5px var(--green);animation:none}
.dest.is-dim{opacity:.35}
.dest{transition:opacity .25s ease}
.dest.is-faded{opacity:.25}
@keyframes dest-pulse{0%{box-shadow:0 0 0 1.5px var(--green),0 0 0 1.5px #55e27c59}70%,100%{box-shadow:0 0 0 1.5px var(--green),0 0 0 13px #55e27c00}}
.district{position:absolute;transform:translate(-50%,0);font-size:12.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);white-space:nowrap;background:none;border:0;padding:6px 8px;cursor:pointer;min-height:0;pointer-events:auto}
.district span{color:var(--green);margin-right:8px}
.district:hover,.district.is-active{color:var(--text)}
#dest-hint{position:absolute;z-index:6;left:0;top:0;transform:translate(-50%,calc(-100% - 76px));pointer-events:none;max-width:340px;background:#060b10ee;border:1px solid var(--line-2);border-top:2px solid var(--green);padding:14px 16px;border-radius:2px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#dest-hint .dh-district{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--green);margin:0 0 6px}
#dest-hint .dh-client{font-size:14px;color:var(--muted);margin:0 0 3px}
#dest-hint .dh-title{font-size:17.5px;line-height:1.3;color:var(--text);margin:0}

/* ── Customers strip (About) ───────────────────────────────────────────────── */
#proof{position:absolute;left:40px;right:40px;bottom:96px;z-index:5;display:flex;align-items:center;gap:28px}
.proof-label{flex:0 0 auto;max-width:220px;margin:0;font-size:12px;letter-spacing:.16em;line-height:1.55;color:var(--green)}
.proof-window{flex:1 1 auto;overflow:hidden;display:flex;flex-direction:column;gap:14px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 72%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 72%,transparent)}
.proof-track{display:flex;width:max-content;animation:drift 90s linear infinite}
.proof-track+.proof-track{animation-duration:110s;animation-direction:reverse}
.proof-list{display:flex;align-items:center;list-style:none;margin:0;padding:0}
.proof-list li{flex:0 0 auto;display:flex;align-items:center;margin-right:30px}
.proof-logo{display:block;height:28px;width:128px;object-fit:contain;filter:brightness(0) invert(1);opacity:.62}
.proof-logo-plain{filter:grayscale(1) brightness(1.4);opacity:.7}
.proof-logo-invert{filter:invert(1) grayscale(1);opacity:.7}
#proof .stage-link{flex:0 0 auto}
@keyframes drift{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ── Reading panel ─────────────────────────────────────────────────────────── */
#reading-panel{position:fixed;inset:0 0 0 auto;margin:0;width:min(640px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid var(--line);background:var(--glass);color:var(--text);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);display:flex;flex-direction:column;overflow:hidden}
#reading-panel:not([open]){display:none}
#reading-panel::backdrop{background:#02050880}
#reading-panel[open]{animation:panel-in .55s var(--ease-out)}
#reading-panel.is-closing{animation:panel-out .32s ease forwards}
@keyframes panel-in{from{transform:translateX(40px);opacity:0}}
@keyframes panel-out{to{transform:translateX(30px);opacity:0}}
.panel-toolbar{display:flex;justify-content:flex-end;gap:8px;padding:16px 18px;border-bottom:1px solid var(--line)}
.button-cross{display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid var(--line-2);border-radius:50%;font-size:15px;line-height:1}
#panel-content{flex:1 1 auto;overflow:auto;padding:36px 44px 56px;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}
#panel-content h2{font-weight:400;font-size:clamp(31px,2.7vw,43px);letter-spacing:-.03em;line-height:1.1;margin:0 0 18px;outline:none}
#panel-content h3{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--green);font-weight:400;margin:0 0 10px}
#panel-content p{color:var(--body);font-size:17.5px;line-height:1.66;margin:0 0 12px}
.panel-lead{font-size:19.5px!important;color:var(--text)!important;line-height:1.55!important;margin-bottom:26px!important}
.panel-message{font-size:24px!important;color:var(--text)!important;line-height:1.35!important;letter-spacing:-.01em;margin-bottom:30px!important}
.case-section,.about-area,.directory-group{padding:22px 0;border-top:1px solid var(--line)}
.case-section h3{color:var(--text)!important;text-transform:none!important;letter-spacing:-.01em!important;font-size:21px!important}
.customer-list{columns:2;column-gap:28px;padding:0;margin:8px 0 0;list-style:none}
.customer-list li{color:var(--body);font-size:16px;line-height:1.9;break-inside:avoid}
.case-button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);padding:14px 0;cursor:pointer;min-height:0}
.case-button:hover .case-name,.case-button:focus-visible .case-name{color:var(--green)}
.case-client{font-size:14px;color:var(--muted)}
.case-name{font-size:18px;color:var(--text);transition:color .2s}
.case-state{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--green-soft);margin-top:4px}

/* A case study: a wide tile, words left, artefacts right. */
#reading-panel.is-wide{inset:0;margin:auto;width:min(1240px,calc(100vw - 64px));height:min(780px,calc(100dvh - 64px));border:1px solid #55e27c2e;border-radius:4px;background:#070c11f2;box-shadow:0 40px 120px #000c,0 0 0 1px #00000080;transform-origin:var(--origin-x,50%) var(--origin-y,50%)}
#reading-panel.is-wide[open]{animation:tile-in .7s var(--ease-out)}
#reading-panel.is-wide.is-closing{animation:tile-out .34s ease forwards}
@keyframes tile-in{0%{opacity:0;transform:scale(.18);filter:brightness(2.2)}45%{opacity:1}100%{transform:none;filter:none}}
@keyframes tile-out{to{opacity:0;transform:scale(.94)}}
#reading-panel.is-wide::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,var(--green),#55e27c00 70%);z-index:3}
#reading-panel.is-wide .panel-toolbar{position:absolute;inset:0 0 auto auto;z-index:4;border:0;padding:16px}
#reading-panel.is-wide .panel-toolbar .text-button{background:#070c11cc;border-color:var(--line-2);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#reading-panel.is-wide .panel-toolbar .text-button:hover{border-color:#55e27c80;color:var(--green)}
#reading-panel.is-wide #panel-content{padding:0;height:100%;overflow:hidden;position:relative}
.case-tile{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:"body figure";height:100%}
.is-text-only .case-tile{grid-template-columns:minmax(0,1fr);grid-template-areas:"body"}
#reading-panel.is-wide.is-text-only{width:min(820px,calc(100vw - 48px))}
.case-tile-body{grid-area:body;overflow:auto;padding:64px 44px 48px;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}
.case-tile-body>*{animation:rise .7s var(--ease-out) both;animation-delay:calc(var(--i,0) * 60ms + 200ms)}
.panel-client{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.client-chip,.panel-badge{display:inline-flex;align-items:center;border-radius:100px;padding:6px 13px;font-size:14px;border:1px solid var(--line-2);color:var(--text)}
.panel-badge{border-color:#55e27c55;color:var(--green)}
.case-part{margin:0 0 24px}
.case-part h3,.case-outcome h3{display:flex;align-items:baseline;gap:10px}
.part-number{color:var(--dim);font-size:12px}
.case-outcome{margin:30px 0 26px;padding:20px 22px;background:#55e27c0d;border-left:2px solid var(--green);border-radius:0 3px 3px 0}
.case-outcome p{color:var(--text)!important}
#panel-content blockquote{margin:26px 0;padding-left:20px;border-left:2px solid #ffffff30;color:var(--body);font-size:17.5px;line-height:1.6;font-style:italic}
.case-link{display:inline-flex;align-items:center;gap:8px;margin-top:6px;padding:11px 16px;border:1px solid var(--line-2);border-radius:3px;color:var(--text);text-decoration:none;font-size:15px}
.case-link:hover{border-color:var(--green);color:var(--green)}
.case-figure{grid-area:figure;position:relative;display:flex;align-items:center;justify-content:center;padding:64px 40px 40px;background:radial-gradient(90% 80% at 50% 45%,#0f1a22 0%,#060a0e 100%);border-left:1px solid var(--line);overflow:hidden}
.case-figure::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#55e27c08 1px,transparent 1px),linear-gradient(90deg,#55e27c08 1px,transparent 1px);background-size:32px 32px;mask-image:radial-gradient(70% 70% at 50% 50%,#000,transparent)}
.figure-slot{position:relative;z-index:1;width:100%;aspect-ratio:var(--figure-ratio,16/10);max-height:100%;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:none;cursor:zoom-in;min-height:0}
.figure-image{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:2px;filter:drop-shadow(0 20px 40px #000a)}
.figure-image.is-cover{width:100%;height:100%;object-fit:cover}
.figure-image.is-missing{display:none}
.figure-missing{color:var(--dim);font-size:13px;letter-spacing:.08em}
.figure-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:8px;width:100%;height:100%}
.figure-tiles .figure-image{width:100%;height:100%;object-fit:cover;object-position:center var(--figure-crop,center);filter:none}
.figure-slot.is-tiled[data-count="4"]{aspect-ratio:2.4}
.figure-tiles[data-count="4"]{grid-template-columns:repeat(4,1fr)}
.figure-tiles[data-count="5"]{grid-template-columns:repeat(6,1fr);grid-template-rows:minmax(0,1.12fr) minmax(0,1fr)}
.figure-tiles[data-count="5"] :nth-child(1){grid-area:1/1/2/4}
.figure-tiles[data-count="5"] :nth-child(2){grid-area:1/4/2/7}
.figure-tiles[data-count="5"] :nth-child(3){grid-area:2/1/3/3}
.figure-tiles[data-count="5"] :nth-child(4){grid-area:2/3/3/5}
.figure-tiles[data-count="5"] :nth-child(5){grid-area:2/5/3/7}
.figure-action{position:absolute;right:10px;bottom:10px;font-size:13px;letter-spacing:.08em;background:#060b10dd;border:1px solid var(--line-2);padding:7px 11px;border-radius:2px;opacity:0;transform:translateY(4px);transition:opacity .25s,transform .25s}
.figure-slot:hover .figure-action,.figure-slot:focus-visible .figure-action{opacity:1;transform:none}
.case-expand{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;background:#05090d;animation:rise .3s var(--ease-out)}
.expand-bar{display:flex;align-items:center;gap:18px;padding:14px 18px;border-bottom:1px solid var(--line)}
.expand-caption{margin:0!important;font-size:14px!important;color:var(--muted)!important}
.expand-stage{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:22px;overflow:auto}
.expand-stage>.figure-image{max-width:100%;max-height:100%}
.expand-stage.is-tiled{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px;align-content:start}
.expand-stage.is-tiled .figure-image{width:100%;height:auto;max-height:none}

/* ── Errors ────────────────────────────────────────────────────────────────── */
.error{position:absolute;top:40%;left:40px;right:40px;padding:20px;background:var(--bg-2);border:1px solid var(--line);z-index:9}

/* ── Simple version: a readable document for small screens and no-3D cases ── */
body.simple{background:var(--bg)}
#simple{max-width:760px;margin:0 auto;padding:28px 22px 80px;color:var(--body)}
.simple-note{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line);border-left:2px solid var(--green);font-size:14px;margin-bottom:34px;background:var(--bg-2)}
.simple-note strong{color:var(--text)}
.simple-detail{margin-top:6px;font-size:12px;color:var(--dim);font-family:ui-monospace,Menlo,monospace;word-break:break-word}
.simple-head{margin-bottom:40px}
.simple-hero h1{font-weight:400;font-size:clamp(34px,8vw,52px);letter-spacing:-.03em;line-height:1.05;color:var(--text);margin:0 0 16px}
.simple-lead{font-size:18px;line-height:1.55;color:var(--body)}
.simple-section{padding:44px 0 10px;border-top:1px solid var(--line);margin-top:40px}
.simple-section h2{font-weight:400;font-size:30px;letter-spacing:-.02em;color:var(--text);margin:0 0 18px}
.simple-section h3{font-size:20px;color:var(--text);margin:28px 0 8px;font-weight:700;letter-spacing:-.01em}
.simple-section p{line-height:1.65;font-size:17px}
.simple-case{padding:22px 0;border-top:1px solid var(--line)}
.simple-client{font-size:14px;color:var(--muted);margin:0 0 4px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.simple-badge{font-size:11px;color:var(--green);border:1px solid #55e27c55;border-radius:99px;padding:2px 9px}
.simple-case h4{font-size:20px;color:var(--text);margin:0 0 12px;font-weight:700}
.simple-part h5{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--green);margin:16px 0 6px;font-weight:400}
.simple-part p{margin:0 0 10px}
.simple-customers{columns:2;padding:0;list-style:none}
.simple-customers li{line-height:1.9}
#simple a{color:var(--green)}
.simple-foot{margin-top:60px;color:var(--dim);font-size:13px}

/* ── Smaller screens (the full journey still runs above 760px) ───────────── */
@media (max-width:1100px){
  .caption{max-width:min(520px,60vw)}
  body.step-about .caption{max-width:min(560px,70vw)}
  .area-grid{gap:12px 20px}
  .area-body{display:none}
}
@media (max-width:900px), (max-height:700px){
  header.topbar{top:20px;left:24px;right:24px}
  .chapter-label{display:none}
  .caption{left:24px;bottom:104px}
  .actions{right:24px;bottom:30px}
  footer.footline{left:24px;right:24px;bottom:14px}
  #proof{left:24px;right:24px;bottom:88px}
  .proof-label{display:none}
  body.step-about .caption{bottom:150px}
  .stage-body{font-size:16.5px}
  #reading-panel.is-wide{width:calc(100vw - 24px);height:calc(100dvh - 24px)}
  .case-tile{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,38%) minmax(0,1fr);grid-template-areas:"figure" "body"}
  .case-figure{padding:56px 22px 16px;border-left:0;border-bottom:1px solid var(--line)}
  .case-tile-body{padding:30px 26px 40px}
}
@media (max-height:760px){ body.step-about .area-grid{display:none} }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .proof-track{animation:none}
  .proof-window{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
}

/* Anchored controls step aside while the camera is moving. */
#anchors{transition:opacity .3s ease}
body.is-moving #anchors{opacity:0;pointer-events:none}
body.is-moving #anchors *{pointer-events:none!important}

.brand-word{font-weight:700;font-size:22px;letter-spacing:-.03em;color:var(--text)}
.hotspot.flip{align-items:flex-end;transform:translate(calc(-100% + 9px),-9px)}
.hotspot.flip .hotspot-head{flex-direction:row-reverse}
.hotspot.flip .hotspot-text{border-left:0;border-right:2px solid var(--green);border-radius:2px 0 0 2px;text-align:right}
.district{background:#060b10b3;border:1px solid var(--line);border-radius:2px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
/* Keep the words clear of the scene on shorter or squarer windows. */
body.step-why .caption{max-width:min(540px,42vw)}
body.step-work .caption{max-width:min(400px,32vw)}
@media (max-height:880px){ body.step-about .area-body{display:none} body.step-about .area-grid{gap:10px 24px;margin-top:20px} }
@media (max-height:700px){ body.step-about .area-grid{display:none} }
