/* ───────────────────────── tokens ───────────────────────── */
:root {
  --cobalt: #1d36d6;
  --deep: #1428b0;
  --navy: #0a1466;
  --ink: #05061a;
  --void: #030308;
  --cream: #efe4cc;
  --cream-2: #d8c7a1;
  --snow: #f6f2e6;
  --pale: #e8ecff;
  --violet: #4b3cff;
  --magenta: #ff3fd8;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --vh: 1vh;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@supports (height: 100dvh) { :root { --vh: 1dvh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* hide the scrollbar everywhere; scrolling itself is unchanged */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (pointer: coarse) { html { scroll-snap-type: y proximity; } }
.snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
html, body { margin: 0; background: var(--cobalt); color: var(--cream); }
html { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
.ico { display: inline-block; width: .78em; height: .78em; vertical-align: -.04em; margin-left: .15em; }
.ico-play { width: .7em; height: .7em; margin-left: .3em; vertical-align: .02em; }
html.loading { overflow: hidden; }
body { font-family: var(--f-wide); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 900; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--cream); color: var(--cobalt); }

/* text sitting on imagery gets a soft cobalt halo instead of a box */
.halo { text-shadow: 0 0 2px var(--cobalt), 0 0 10px var(--cobalt), 0 0 22px var(--cobalt); }

/* ───────────────────────── loader ───────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--cobalt); color: var(--cream);
  display: grid; place-items: center;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path .8s cubic-bezier(.7, 0, .2, 1);
}
.loader.out { clip-path: circle(0% at 50% 50%); }
.loader-name { position: absolute; top: 22px; left: var(--gutter); font-family: var(--f-wide); font-weight: 600; font-size: 14px; }
.loader-star {
  width: 60px; height: 60px; fill: var(--snow);
  filter: drop-shadow(0 0 12px #fff) drop-shadow(0 0 36px #a9b8ff);
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(.82) rotate(0deg); } 50% { transform: scale(1.08) rotate(45deg); } }
.loader-step {
  position: absolute; right: var(--gutter); bottom: 30px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; opacity: .8;
}
.loader-num {
  position: absolute; left: var(--gutter); bottom: 10px;
  font-family: var(--f-display); font-weight: 900; line-height: .78;
  font-size: clamp(96px, 20vw, 300px); font-variant-numeric: tabular-nums;
}

/* ───────────────────────── chrome ───────────────────────── */
.grain {
  position: fixed; inset: -100px; z-index: 900; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
}
.hq .grain { opacity: .16; mix-blend-mode: overlay; animation: grain .9s steps(5) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-30px, 18px); }
  40% { transform: translate(22px, -26px); } 60% { transform: translate(-12px, -40px); }
  80% { transform: translate(38px, 10px); } 100% { transform: translate(0, 0); }
}

.nav {
  position: fixed; z-index: 800; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 20px max(var(--gutter), env(safe-area-inset-left));
  pointer-events: none; color: var(--cream); transition: color .4s;
  text-shadow: 0 0 2px var(--cobalt), 0 0 4px var(--cobalt), 0 0 10px var(--cobalt), 0 0 18px var(--cobalt);
}
html[data-tone="dark"] .nav, html[data-tone="dark"] .rail { color: var(--navy); text-shadow: 0 0 2px var(--cream), 0 0 12px var(--cream); }
html[data-tone="dark"] .rail li { color: rgba(10, 20, 102, .5); }
html[data-tone="dark"] .rail li.on { color: var(--navy); }
html[data-tone="dark"] .rail::before { background: rgba(10, 20, 102, .35); }
.nav > * { pointer-events: auto; }
.nav-mark { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.nav-spark { width: 16px; height: 16px; fill: currentColor; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: clamp(16px, 2.6vw, 36px); align-items: baseline; }
.nav-link { position: relative; font-family: var(--f-wide); font-weight: 600; font-size: 14px; padding-bottom: 3px; }
.nav-link i { font-style: normal; font-family: var(--f-mono); font-size: 10px; opacity: .7; margin-right: 6px; vertical-align: 2px; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-link:hover::after, .nav-strong::after { transform: scaleX(1); transform-origin: left; }

.rail {
  position: fixed; z-index: 800; right: var(--gutter); top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0 0 0 14px;
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 0 2px var(--cobalt), 0 0 10px var(--cobalt);
}
.rail::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(239, 228, 204, .4); }
.rail li { position: relative; display: flex; gap: 8px; align-items: center; color: rgba(239, 228, 204, .55); transition: color .3s; }
.rail li::before { content: ""; position: absolute; left: -17px; width: 7px; height: 1px; background: currentColor; transition: width .3s; }
.rail li span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease); }
.rail li.on { color: var(--cream); }
.rail li.on::before { width: 12px; height: 2px; }
.rail li.on span { max-width: 90px; }

/* custom star cursor (fine pointers only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor [data-hover] { cursor: none; }
  .cursor { display: block; position: fixed; z-index: 1000; left: 0; top: 0; pointer-events: none; will-change: transform; }
  .cursor svg {
    width: 26px; height: 26px; margin: -13px 0 0 -13px;
    fill: var(--cream); stroke: var(--navy); stroke-width: 5;
    transition: transform .35s var(--ease);
  }
  .cursor.is-hover svg { transform: scale(1.9) rotate(45deg); }
  .cursor.is-down svg { transform: scale(.7); }
  .cursor-label {
    position: absolute; left: 24px; top: 8px; white-space: nowrap;
    font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em;
    color: var(--cream); text-shadow: 0 0 2px var(--navy), 0 0 8px var(--navy), 0 0 14px var(--navy);
    opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
  }
  .cursor.is-hover .cursor-label:not(:empty) { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.walker svg { width: 100%; height: 100%; overflow: visible; fill: #0b0d22; }
.w-leg { transform-box: fill-box; transform-origin: 50% 0; }
.walking .w-leg-a { animation: leg .7s ease-in-out infinite; }
.walking .w-leg-b { animation: leg .7s ease-in-out infinite reverse; }
.walking .w-body { animation: bob .35s ease-in-out infinite alternate; }
@keyframes leg { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(-16deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }

.city-stars i, .orbit-stars i, .sky-stars i {
  position: absolute; width: 2px; height: 2px; background: var(--snow); border-radius: 50%;
}
.tw { position: absolute; inset: 0; animation: twinkle-g 3.4s ease-in-out infinite; }
.tw1 { animation-duration: 4.6s; animation-delay: -1.5s; }
.tw2 { animation-duration: 5.9s; animation-delay: -3.1s; }
@keyframes twinkle-g { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
/* nothing animates in a section you cannot see */
[data-section].off *, [data-section].off *::before, [data-section].off *::after { animation-play-state: paused !important; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }

/* ───────────────────────── 01 CITY ───────────────────────── */
.city { position: relative; height: 330vh; background: var(--void); }
.city-stage { position: sticky; top: 0; height: calc(100 * var(--vh)); overflow: hidden; background: var(--sky, var(--cobalt)); }
.city-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-stars { position: absolute; inset: 0; opacity: var(--stars, .25); }
.city-star {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; fill: var(--snow);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .9)) drop-shadow(0 0 30px rgba(170, 190, 255, .8));
  transform: scale(var(--ss, 0)) rotate(var(--sr, 0deg));
  z-index: 6;
}
.runway {
  position: absolute; left: 50%; bottom: 0; z-index: 3;
  width: clamp(190px, 26vw, 420px); height: 36%;
  transform: translate(-50%, var(--runway-y, 0%)); opacity: var(--runway-o, 1);
}
.runway::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(33% 0, 67% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(circle at 30% 40%, rgba(29, 54, 214, .25) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(to bottom, #e6d8b8, var(--cream) 40%);
}
.walker-hero { position: absolute; left: 50%; top: 14%; width: 3.6vh; height: 8vh; transform: translateX(-50%); }
.walker-hero::after {
  content: ""; position: absolute; left: 10%; top: 96%; width: 80%; height: 13vh;
  background: linear-gradient(rgba(29, 54, 214, .75), rgba(29, 54, 214, 0));
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}
.city-copy { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.city-copy > p { opacity: var(--copy-o, 1); }
.city-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 4; pointer-events: none;
  background: linear-gradient(var(--sky, var(--cobalt)) 18%, transparent);
  opacity: var(--copy-o, 1);
}
.city-kicker {
  position: absolute; bottom: calc(50% + clamp(36px, 4.8vw, 104px)); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.city-kicker i { font-style: normal; opacity: .55; margin: 0 .4em; }
.name {
  position: absolute; left: 0; right: 0; top: 50%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transform: translateY(-50%) scale(var(--name-s, 1)); opacity: var(--name-o, 1);
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 9.6vw, 210px); line-height: .8; letter-spacing: -.005em;
  color: var(--cream);
  -webkit-text-stroke: .085em var(--cobalt); paint-order: stroke fill;
  text-shadow: .045em .05em 0 var(--navy);
}
.name-gap { width: clamp(70px, 9vw, 170px); }
.name-a { justify-self: end; }
.name-b { justify-self: start; }
.name-a, .name-b { display: inline-flex; letter-spacing: calc(var(--spread, 0) * 1em); }
.name .ch { display: inline-block; }
.intro .name .ch { animation: rise 1.2s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 45ms + 350ms); }
@keyframes rise { from { transform: translateY(70%) rotate(6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.city-role {
  position: absolute; left: 50%; top: calc(50% + clamp(30px, 4.4vw, 96px)); transform: translateX(-50%);
  width: max-content; max-width: min(560px, 90vw); text-align: center;
  font-family: var(--f-wide); font-weight: 500; font-size: 16px; line-height: 1.45;
}
.city-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  color: var(--navy); text-shadow: none;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hint-line { width: 1.5px; height: 30px; background: var(--navy); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.city-flash { position: absolute; inset: 0; z-index: 5; background: var(--void); opacity: var(--flash, 0); pointer-events: none; }

/* ───────────────────────── 02 ORBIT (VHS) ───────────────────────── */
.orbit { position: relative; overflow: hidden; background: var(--void); color: #e2e0ff; padding: 16vh var(--gutter) 0; }
.orbit::before {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .38) 2px 3px);
}
.orbit::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 14%; z-index: 6; pointer-events: none;
  background: linear-gradient(transparent, rgba(200, 200, 255, .05) 40%, rgba(255, 255, 255, .09) 50%, transparent);
  animation: track 9s linear infinite;
}
@keyframes track { to { transform: translateY(1000%); } }
.orbit-stars { position: absolute; inset: 0; }
.orbit-stars svg { position: absolute; fill: #fff; filter: drop-shadow(0 0 6px #fff); animation: twinkle 3.2s ease-in-out infinite; }
.vhs-osd {
  position: sticky; top: 14px; z-index: 7; height: 0;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: clamp(14px, 1.6vw, 22px); font-weight: 600; letter-spacing: .08em;
  color: #f0efff; text-shadow: 2px 0 rgba(255, 63, 216, .6), -2px 0 rgba(32, 227, 255, .5), 0 0 10px rgba(255, 255, 255, .4);
  pointer-events: none;
}
.vhs-osd span { transform: translateY(56px); }
.orbit-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 1fr; gap: 4vw; align-items: center; min-height: 78vh; }
.wordmark { width: 100%; height: auto; overflow: visible; transform: perspective(1300px) rotateY(17deg) rotateZ(-3deg) scale(1.08); transform-origin: 0% 50%; }
.wordmark text { font-family: var(--f-wide); font-weight: 900; font-stretch: 108%; letter-spacing: -2px; }
.wm-top { font-size: 124px; }
.wm-bot { font-size: 222px; }
.wm-face { fill: url(#vhsFill); stroke: #ff7be9; stroke-width: 1.4px; }
.wm-glow { fill: #3a2bff; opacity: .75; }
.wm-ca { mix-blend-mode: screen; }
.wm-ca-r { fill: #ff2bd6; opacity: .5; transform: translate(-4px, 0); animation: ca 4s steps(1) infinite; }
.wm-ca-c { fill: #20e3ff; opacity: .32; transform: translate(4px, 1px); animation: ca 4s steps(1) infinite reverse; }
@keyframes ca { 0%, 86%, 100% { transform: translate(-4px, 0); } 88% { transform: translate(-14px, 3px); } 90% { transform: translate(9px, -2px); } 92% { transform: translate(-4px, 0); } }
.wordmark .wm-face, .wordmark .wm-extrude { animation: jitter 4s steps(1) infinite; }
@keyframes jitter { 0%, 87%, 100% { transform: none; } 88% { transform: translateX(6px); } 90% { transform: translateX(-3px); } }
.rating { display: inline-grid; grid-template-columns: auto 1fr; margin: 1.2rem 0 0 8%; border: 2px solid #e6e4ff; color: #e6e4ff; background: rgba(3, 3, 8, .6); }
.rating-letter { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 64px; line-height: 1; padding: 6px 18px 2px; border-right: 2px solid #e6e4ff; display: grid; place-items: center; }
.rating-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-family: var(--f-wide); font-weight: 600; font-stretch: 125%; font-size: 17px; letter-spacing: .24em; padding: 8px 14px; border-bottom: 2px solid #e6e4ff; }
.rating-head svg { width: 18px; height: 18px; fill: #e6e4ff; }
.rating-small { font-family: var(--f-wide); font-stretch: 112%; font-size: 10.5px; letter-spacing: .08em; padding: 7px 14px; text-align: center; line-height: 1.35; }
.planet-wrap {
  position: relative; width: min(38vw, 540px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; touch-action: pan-y; cursor: grab;
  filter: drop-shadow(0 0 28px rgba(70, 90, 255, .55)) drop-shadow(0 0 80px rgba(70, 60, 255, .35));
}
.planet-wrap:active { cursor: grabbing; }
.planet { width: 100%; height: 100%; image-rendering: pixelated; }
.manifesto { position: relative; z-index: 2; max-width: 1180px; margin: 10vh auto 0; padding-bottom: 16vh; }
.m-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: #8d83ff; margin-bottom: 22px; }
.m-big { font-family: var(--f-wide); font-weight: 700; font-size: clamp(26px, 3.5vw, 54px); line-height: 1.08; letter-spacing: -.015em; color: #efeeff; }
.m-big em { font-style: normal; color: #8e83ff; text-shadow: 2px 0 rgba(255, 63, 216, .45); }
.m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; margin-top: 7vh; font-size: 17px; line-height: 1.65; color: #aeacd8; }
.m-motto { margin-top: 10vh; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(70px, 13vw, 220px); line-height: .8; color: #efeeff; }
.m-motto span { color: var(--violet); text-shadow: 4px 0 var(--magenta), -3px 0 rgba(32, 227, 255, .6); }
.now { margin-top: 6vh; font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; color: #cfcdf5; }
.now b { color: #fff; font-weight: 600; }
.rec { color: #ff4b4b; margin-right: 10px; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.reentry { position: relative; z-index: 1; height: 70vh; margin: 0 calc(var(--gutter) * -1); background: linear-gradient(var(--void) 0%, #0a0f45 35%, var(--deep) 70%, var(--cobalt) 100%); display: grid; place-items: center; }
.reentry span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .5em; color: rgba(239, 228, 204, .55); }

/* ───────────────────────── 03 WORK (street) ───────────────────────── */
.work { position: relative; height: 600vh; background: var(--cobalt); }
.work-stage { position: sticky; top: 0; height: calc(100 * var(--vh)); overflow: hidden; }
.work-sky { position: absolute; inset: 0; background: linear-gradient(#1830c6 0%, var(--cobalt) 55%, #2f4ee9 100%); }
.work-sun { position: absolute; right: 18%; top: 16%; width: 46px; height: 46px; fill: var(--snow); filter: drop-shadow(0 0 12px #fff) drop-shadow(0 0 36px #9fb0ff); transform: translate(var(--mx3, 0px), var(--my3, 0px)); }
.work-title {
  position: absolute; right: var(--gutter); top: 13vh; z-index: 1;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(80px, 15vw, 280px); line-height: .78;
  text-align: right; color: transparent; -webkit-text-stroke: 2px rgba(239, 228, 204, .28);
  transform: translateX(calc(var(--p, 0) * -14vw));
}
.skyline { position: absolute; left: 0; bottom: 9vh; will-change: transform; z-index: 1; }
.skyline svg { width: 100%; height: 100%; }
.skyline-far { width: 280vw; height: 58vh; transform: translate3d(calc(var(--tx-far, 0px) + var(--mx1, 0px)), var(--my1, 0px), 0); }
.skyline-mid { width: 330vw; height: 44vh; transform: translate3d(calc(var(--tx-mid, 0px) + var(--mx2, 0px)), var(--my2, 0px), 0); }
.street-track { position: absolute; left: 0; bottom: 9vh; z-index: 3; display: flex; align-items: flex-end; gap: clamp(28px, 5vw, 90px); padding: 0 50vw; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.street {
  position: absolute; left: 0; right: 0; bottom: 0; height: 9vh; z-index: 4;
  background: radial-gradient(circle at 40% 40%, rgba(29, 54, 214, .3) 0 1px, transparent 1.6px) 0 0 / 6px 6px, var(--cream);
  border-top: 3px solid var(--navy);
}
.street-line { position: absolute; left: 0; right: 0; top: 46%; height: 4px; background: repeating-linear-gradient(90deg, var(--cobalt) 0 46px, transparent 46px 92px); background-position-x: var(--tx, 0px); }
.walker-street { position: absolute; left: 50%; bottom: calc(9vh - 6px); z-index: 5; width: 3.3vh; height: 7.4vh; transform: translateX(-50%); }
.walker-street.flip svg { transform: scaleX(-1); }

.tower { --h: .7; position: relative; flex: none; width: clamp(150px, 14vw, 230px); display: flex; flex-direction: column; align-items: center; transition: transform .6s var(--ease), filter .6s; filter: saturate(.85) brightness(.93); }
.tower.is-active { transform: translateY(-1.6vh); filter: none; }
.t-crown { position: relative; width: 100%; display: flex; justify-content: center; align-items: flex-end; }
.t-crown i { display: block; background: var(--cream); }
.t-body { position: relative; width: 100%; height: calc(26vh + var(--h) * 34vh); background: var(--cream); overflow: hidden; }
.t-windows {
  position: absolute; inset: 12px calc(20% + 8px) 12px 12px; background-color: var(--cobalt);
  background-image: linear-gradient(90deg, var(--cream) 0 4px, transparent 4px), linear-gradient(var(--cream) 0 5px, transparent 5px);
  background-size: 16px 14px;
}
.t-side {
  position: absolute; top: 0; right: 0; bottom: 0; width: 20%; background-color: #1a2fb8;
  background-image: linear-gradient(90deg, var(--cream-2) 0 4px, transparent 4px), linear-gradient(var(--cream-2) 0 5px, transparent 5px);
  background-size: 12px 14px; border-left: 4px solid var(--cream-2);
}
.t-lit { position: absolute; inset: 12px calc(20% + 8px) 12px 12px; pointer-events: none; }
.t-lit b { position: absolute; width: 12px; height: 9px; background: #fff6d2; box-shadow: 0 0 10px 2px rgba(255, 236, 170, .7); opacity: 0; transition: opacity .25s; }
.tower.is-active .t-lit b { opacity: 1; transition-delay: var(--d, 0ms); }
.t-band { position: absolute; top: 8%; bottom: 8%; left: 26%; width: 34%; background: var(--cream); display: grid; place-items: center; overflow: hidden; border: 3px solid var(--cream); }
.t-name { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-display); font-weight: 900; line-height: .85; letter-spacing: .01em; color: var(--cobalt); white-space: nowrap; font-size: var(--fs, 48px); }
.tower.is-active .t-name { color: var(--navy); }
.t-num { position: absolute; top: 10px; left: 10px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; background: var(--navy); color: var(--cream); padding: 3px 5px; }
.t-base { width: 112%; height: 3.4vh; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.crown-spire, .crown-step, .crown-antenna, .crown-dome { flex-direction: column; align-items: center; }
.crown-spire i:nth-child(1) { width: 56%; height: 2.6vh; }
.crown-spire i:nth-child(2) { order: -1; width: 30%; height: 3vh; }
.crown-spire i:nth-child(3) { order: -2; width: 14%; height: 9vh; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.crown-step i:nth-child(1) { width: 80%; height: 3vh; }
.crown-step i:nth-child(2) { order: -1; width: 54%; height: 3vh; }
.crown-step i:nth-child(3) { order: -2; width: 26%; height: 3vh; }
.crown-antenna i:nth-child(1) { width: 64%; height: 2.4vh; }
.crown-antenna i:nth-child(2) { order: -1; width: 4px; height: 11vh; }
.crown-antenna i:nth-child(3) { order: -2; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: blink 1.6s steps(2) infinite; }
.crown-dome i:nth-child(1) { width: 82%; height: 2vh; }
.crown-dome i:nth-child(2) { order: -1; width: 66%; height: 7vh; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.crown-dome i:nth-child(3) { order: -2; width: 3px; height: 4vh; }
.crown-flat { align-items: flex-end; gap: 10%; }
.crown-flat i:nth-child(1) { width: 26%; height: 4.5vh; border-radius: 40% 40% 0 0; }
.crown-flat i:nth-child(2) { width: 12%; height: 2vh; }
.crown-flat i:nth-child(3) { width: 20%; height: 3vh; }
.tower-more .t-body { background: transparent; border: 3px dashed rgba(239, 228, 204, .7); display: grid; place-items: center; }
.tower-more .t-body span { font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: .9; text-align: center; color: var(--cream); }
.tower-more .t-base { background: var(--cream); color: var(--cobalt); }

.hud {
  position: absolute; z-index: 6; top: calc(70px + 3vh); left: var(--gutter); width: min(500px, 40vw);
  background: var(--cobalt); border: 2px solid var(--cream); box-shadow: 10px 10px 0 var(--navy);
  padding: 22px 24px 24px;
}
.hud > * { transition: opacity .25s, transform .25s; }
.hud.swap > * { opacity: 0; transform: translateX(-10px); transition: none; }
.hud-kicker { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(239, 228, 204, .75); }
.hud-kicker i { font-style: normal; margin: 0 .3em; }
.hud-title { margin-top: 8px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 3.8vw, 62px); line-height: .86; color: var(--cream); }
.hud-blurb { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: rgba(239, 228, 204, .92); }
.hud-why { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--cream); font-size: 13px; line-height: 1.45; color: var(--cream); font-style: italic; }
.hud-stack { margin-top: 16px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; color: rgba(239, 228, 204, .8); }
.hud-stack i { font-style: normal; opacity: .45; margin: 0 .5em; }
.hud-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; }
.hud-links a, .hud-links span { font-family: var(--f-wide); font-weight: 700; font-size: 14px; padding-bottom: 2px; }
.hud-links a { border-bottom: 1.5px solid var(--cream); transition: opacity .2s; }
.hud-links a:hover { opacity: .7; }
.hud-links span { font-weight: 500; opacity: .7; }

/* ───────────────────────── 04 HALLWAY ───────────────────────── */
.hallway { position: relative; height: 520vh; background: #e9ebf6; }
.hall-stage { position: sticky; top: 0; height: calc(100 * var(--vh)); overflow: hidden; background: #e9ebf6; }
.hall-canvas { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); }
.hall-haze {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(246, 245, 255, .95), rgba(232, 236, 255, .55) 45%, rgba(232, 236, 255, .25) 100%);
  opacity: var(--haze, 1);
}
.hall-read {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 6vh; width: min(520px, 86vw);
  color: var(--navy);
  opacity: var(--read-o, 0); transform: translateY(calc((1 - var(--read-o, 0)) * 20px));
  text-shadow: 0 0 2px var(--cream), 0 0 14px var(--cream), 0 0 28px var(--cream);
}
.hall-read > * { transition: opacity .3s, transform .3s; }
.hall-read.swap > * { opacity: 0; transform: translateY(8px); transition: none; }
.hall-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hall-kicker i { width: 28px; height: 1.5px; background: currentColor; }
.hall-big { margin-top: 10px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 9vw, 150px); line-height: .82; color: var(--cobalt); }
.hall-label { margin-top: 10px; font-family: var(--f-wide); font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); }
.hall-sub { margin-top: 6px; font-size: 15px; line-height: 1.5; max-width: 440px; }
.hall-steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 6px; }
.hall-steps li { width: 34px; height: 3px; background: rgba(10, 20, 102, .22); transition: background .4s; }
.hall-steps li.on { background: var(--navy); }
.hall-flash { position: absolute; inset: 0; background: var(--pale); opacity: var(--hflash, 0); pointer-events: none; z-index: 4; }

/* ───────────────────────── 05 SKY ───────────────────────── */
.sky { position: relative; height: 135vh; background: linear-gradient(var(--pale) 0%, #8fa1ec 12%, #3552dc 24%, var(--cobalt) 34%, #2140d8 70%, #4762e0 100%); overflow: hidden; }
.sky-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 100vh; }
.sky-hatch {
  position: absolute; inset: -10vh 0 0 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(239, 228, 204, .16) 0 1px, transparent 1px 8px);
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 45%, transparent 80%);
  mask-image: linear-gradient(transparent, #000 25%, #000 45%, transparent 80%);
}
.sky-stars { position: absolute; inset: 0 0 45% 0; }
.sky-back, .sky-front { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.sky-back { -webkit-mask-image: radial-gradient(ellipse 56% 62% at 22% 42%, transparent 62%, #000 100%); mask-image: radial-gradient(ellipse 56% 62% at 22% 42%, transparent 62%, #000 100%); }
.sky-front { z-index: 3; transform: translateY(var(--front-y, 0px)); }

.street-kit {
  position: absolute; z-index: 4; right: 6vw; bottom: 0; height: 92%; width: auto; aspect-ratio: 420 / 900;
  transform: translateY(var(--kit-y, 0px)); overflow: visible;
}
.lamp { fill: #121a5c; stroke: #3a4fc4; stroke-width: 3; transition: fill .4s, filter .4s; }
.lamp.on { fill: #fff3cf; filter: drop-shadow(0 0 10px #fff3cf) drop-shadow(0 0 26px #ffe9a8); }
.sign { cursor: pointer; outline: none; }
.sign-plate { transform-box: fill-box; transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.sign rect { fill: #1b2fb8; stroke: #efe4cc; stroke-width: 3; transition: fill .3s; }
.sign text { font-family: var(--f-wide); font-weight: 800; font-size: 19px; letter-spacing: .02em; fill: #efe4cc; transition: fill .3s; }
.sign path { fill: #efe4cc; transition: fill .3s; }
.sign:hover rect, .sign:focus-visible rect { fill: #efe4cc; }
.sign:hover text, .sign:hover path, .sign:focus-visible text, .sign:focus-visible path { fill: #1d36d6; }
.sign:hover .sign-plate, .sign:focus-visible .sign-plate { transform: rotate(4deg); }
.limit-num { font-family: var(--f-display); font-weight: 900; font-size: 48px; fill: #1d36d6; }
.limit-unit { font-family: var(--f-mono); font-weight: 600; font-size: 13px; fill: #1d36d6; }

.sky-ui { position: absolute; z-index: 5; left: var(--gutter); top: 12vh; width: min(640px, 52vw); }
.sky-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-wide); font-weight: 700; font-size: 16px; }
.sky-brand svg { width: 20px; height: 20px; fill: var(--cream); }
.sky-head { margin-top: 26px; font-family: var(--f-wide); font-weight: 700; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.04; letter-spacing: -.02em; }
.sky-sub { margin-top: 12px; font-size: 16px; line-height: 1.5; opacity: .88; max-width: 440px; }
.sky-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 26px 32px; margin: 40px 0 0; }
.sky-grid div { min-width: 0; }
.sky-grid dt { font-size: 13px; opacity: .72; }
.sky-grid dd { margin: 4px 0 0; font-family: var(--f-wide); font-weight: 500; font-size: clamp(16px, 1.35vw, 20px); letter-spacing: -.01em; overflow-wrap: anywhere; }
.sky-grid a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.sky-grid a:hover { background-size: 100% 1.5px; }
.sky-bar { margin-top: 40px; }
.sky-bar-track { display: flex; height: 44px; border: 1.5px solid rgba(239, 228, 204, .85); border-radius: 6px; overflow: hidden; }
.seg { position: relative; height: 100%; border-right: 1.5px solid rgba(239, 228, 204, .5); transition: filter .3s; }
.seg:last-child { border-right: 0; }
.seg-hatch { background: repeating-linear-gradient(135deg, rgba(239, 228, 204, .85) 0 1.5px, transparent 1.5px 6px), rgba(10, 20, 102, .45); }
.seg-grey { background: repeating-linear-gradient(90deg, #c9c7d6 0 9px, #a9a8bd 9px 10px); }
.seg-white { background: repeating-linear-gradient(90deg, #f6f2e6 0 13px, #d8d5e2 13px 14px); }
.seg-open { background: transparent; }
.seg:hover { filter: brightness(1.12); }
.sky-bar-labels { display: flex; margin-top: 8px; }
.sky-bar-labels span { font-size: 11px; line-height: 1.3; padding-right: 6px; }
.sky-bar-labels b { display: block; font-weight: 700; font-size: 12px; }
.sky-foot {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom)); background: var(--navy);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: rgba(239, 228, 204, .75);
}
.sky-foot a:hover { color: var(--cream); }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 860px) {
  .rail { display: none; }
  .orbit-grid { grid-template-columns: 1fr; min-height: 0; gap: 6vh; padding-top: 110px; }
  .planet-wrap { width: min(78vw, 420px); }
  .m-cols { grid-template-columns: 1fr; gap: 20px; }
  .rating { margin-left: 0; }
  .hud { left: 16px; right: 16px; width: auto; top: 64px; padding: 16px 16px 18px; box-shadow: 6px 6px 0 var(--navy); }
  .hud-why { display: none; }
  .hud-blurb { font-size: 13px; }
  .tower { width: 40vw; }
  .t-body { height: calc(16vh + var(--h) * 18vh); }
  .work-title { display: none; }
  .sky { height: auto; }
  .sky-scene { position: relative; height: auto; padding: 30vh 0 calc(58vh + 60px); }
  .sky-ui { position: relative; top: auto; left: auto; width: auto; padding: 0 16px; }
  .sky-back, .sky-front { top: auto; bottom: 0; height: 60vh; }
  .sky-back { -webkit-mask-image: none; mask-image: none; }
  .street-kit { height: 50vh; bottom: 44px; right: 0; }
  .sky-hatch { inset: 0; }
}
@media (max-width: 560px) {
  .nav-link:not(.nav-strong) { display: none; }
  .name { grid-template-columns: 1fr; justify-items: center; font-size: clamp(56px, 19vw, 120px); }
  .name-a, .name-b { justify-self: center; }
  .name-gap { height: 22vw; width: auto; }
  .city-role { top: 76px; max-width: 250px; font-size: 13.5px; }
  .city-kicker { display: none; }
  .city-hint { bottom: 18px; font-size: 10px; letter-spacing: .1em; }
  .sky-grid { grid-template-columns: 1fr; gap: 16px; }
  .nav::before {
    content: ""; position: absolute; inset: 0 0 -22px 0; z-index: -1; pointer-events: none;
    -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  }
  .nav-mark { font-size: 20px; }
  .nav-strong { font-size: 15px; }
  .hall-read { left: 0; right: 0; bottom: 0; width: auto; padding: 18vh 20px max(28px, env(safe-area-inset-bottom));
    background: linear-gradient(rgba(236, 238, 248, 0), rgba(236, 238, 248, .86) 38%, rgba(236, 238, 248, .96)); text-shadow: none; }
  .hall-big { font-size: 72px; }
  .hall-sub { font-size: 14.5px; }
  .hall-steps li { flex: 1; }
  .hud { padding: 18px 18px 20px; }
  .hud-title { font-size: 34px; }
  .hud-stack { font-size: 11px; }
  .sky-head { font-size: 32px; }
  /* shorter flight and no near-black strip between orbit and the street */
  .city { height: 255vh; }
  .reentry { height: 24vh; background: linear-gradient(var(--void) 0%, #0d1660 40%, var(--deep) 75%, var(--cobalt) 100%); }
  /* out of the hallway's white-out straight into the sky: a short pale band, not half a blank screen */
  .sky { background: linear-gradient(var(--pale) 0, #8fa1ec 40px, #3552dc 85px, var(--cobalt) 130px, #2140d8 70%, #4762e0 100%); }
  .sky-scene { padding-top: calc(130px + 3vh); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ───────────────────────── PATENT STACK + VIEWER ───────────────────────── */
.hall-row { display: flex; align-items: flex-end; gap: clamp(18px, 2.4vw, 34px); margin-top: 10px; }
.hall-row .hall-big { margin-top: 0; }
.docs { --sw: 78px; position: relative; display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; text-shadow: none; }
.docs[hidden] { display: none; }
.docs-stack { position: relative; width: calc(var(--sw) * 2.75); height: calc(var(--sw) * 1.415 + 16px); }
.sheet {
  --r: 0deg; --x: 0px; --fx: 0px; --fr: 0deg;
  position: absolute; left: 0; bottom: 0; width: var(--sw); aspect-ratio: 595 / 842; padding: 0; border: 0; border-radius: 0;
  background: none; color: var(--cobalt);
  transform: translate(var(--x), 0) rotate(var(--r)); transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.3, 1.45, .5, 1);
}
.sheet-face {
  position: absolute; inset: 0; z-index: 0; background: var(--cream) center / cover no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(10, 20, 102, .55);
}
/* hatched print shadow, like the footer drawings */
.sheet::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(5px, 6px);
  background: repeating-linear-gradient(135deg, rgba(10, 20, 102, .55) 0 1px, transparent 1px 4px);
  transition: transform .4s var(--ease);
}
.sheet:nth-child(1) { --r: -5deg; --x: 0px; --fx: 0px; --fr: -7deg; z-index: 3; }
.sheet:nth-child(2) { --r: 3deg; --x: 10px; --fx: calc(var(--sw) * .88); --fr: 0deg; z-index: 2; }
.sheet:nth-child(3) { --r: 9deg; --x: 20px; --fx: calc(var(--sw) * 1.76); --fr: 7deg; z-index: 1; }
.docs:hover .sheet, .docs:focus-within .sheet { transform: translate(var(--fx), 0) rotate(var(--fr)); }
.docs .sheet.live:hover, .docs .sheet.live:focus-visible { transform: translate(var(--fx), -14px) rotate(calc(var(--fr) * .4)); z-index: 4; }
.sheet.live:hover::after, .sheet.live:focus-visible::after { transform: translate(8px, 12px); }
.sheet:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.sheet:not(.live) .sheet-face {
  background-image: repeating-linear-gradient(transparent 0 6px, rgba(29, 54, 214, .2) 6px 7px);
  background-size: 74% 50%; background-position: 50% 58%;
}
.sheet-tag {
  position: absolute; left: 6px; right: 6px; top: 7px; text-align: left;
  font-family: var(--f-mono); font-size: 7.5px; font-weight: 600; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; color: var(--cobalt);
}
.sheet-stamp {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%) rotate(-8deg);
  font-family: var(--f-mono); font-size: 7px; font-weight: 600; letter-spacing: .14em; padding: 2px 4px;
  border: 1px solid currentColor; color: rgba(29, 54, 214, .75); white-space: nowrap; background: var(--cream);
}
.docs-cap { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.docs-cap i { width: 18px; height: 1.5px; background: currentColor; }
html.has-cursor button { cursor: none; }

.dossier { position: fixed; inset: 0; z-index: 850; color: var(--navy); }
/* the scroller sits above the veil, so the veil's blur still sees the hallway */
.dossier[hidden] { display: none; }
.dossier-veil {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 60% 50%, rgba(246, 245, 255, .9), rgba(228, 232, 252, .95));
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
}
html.low .dossier-veil { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(233, 235, 246, .97); }
.dossier-body {
  position: absolute; inset: 0; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  align-content: safe center;
  display: grid; grid-template-columns: minmax(280px, 420px) auto; justify-content: center; align-items: center;
  gap: clamp(36px, 6vw, 96px); padding: 64px var(--gutter) 36px;
}
.dossier-body::-webkit-scrollbar { display: none; }
.dossier-kicker { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dossier-kicker i { width: 28px; height: 1.5px; background: currentColor; }
.dossier-title {
  margin: 14px 0 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 2.9vw, 46px); line-height: .92; color: var(--cobalt); letter-spacing: .005em; text-wrap: balance;
}
.dossier-plain { margin: 18px 0 0; font-size: 15.5px; line-height: 1.55; }
.dossier-facts { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1.5px solid var(--navy); }
.dossier-facts li { padding: 9px 0; border-bottom: 1px solid rgba(10, 20, 102, .25); font-weight: 700; font-size: 14px; }
.dossier-facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: 1px; background: var(--cobalt); }
.dossier-record { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 20px 0 0; font-size: 13px; line-height: 1.45; }
.dossier-record dt { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; padding-top: 2px; }
.dossier-record dd { margin: 0; }
.dossier-orig { display: inline-block; margin-top: 24px; font-weight: 700; font-size: 15px; padding-bottom: 3px; border-bottom: 2px solid currentColor; }
.dossier-orig:hover { color: var(--cobalt); }

.dossier-sheet { --ph: min(calc(100 * var(--vh) - 210px), 1000px); position: relative; margin: 0; width: calc(var(--ph) * 595 / 842); }
.dossier-paper {
  position: relative; width: 100%; aspect-ratio: 595 / 842; background: #faf6ec;
  box-shadow: inset 0 0 0 2px var(--navy); touch-action: pan-y;
}
.dossier-paper::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(12px, 14px);
  background: repeating-linear-gradient(135deg, rgba(10, 20, 102, .5) 0 1px, transparent 1px 5px);
}
.dossier-paper img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; user-select: none; -webkit-user-drag: none; }
.reg { position: absolute; width: 16px; height: 16px; z-index: 1; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--cobalt); }
.reg::before { left: 7px; top: 0; width: 1.5px; height: 16px; }
.reg::after { top: 7px; left: 0; height: 1.5px; width: 16px; }
.reg-tl { left: -28px; top: -28px; } .reg-tr { right: -28px; top: -28px; }
.reg-bl { left: -28px; top: calc(var(--ph) + 12px); } .reg-br { right: -28px; top: calc(var(--ph) + 12px); }
.dossier-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.d-btn {
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--navy); border-radius: 0;
  background: transparent; color: var(--navy); transition: background .2s, color .2s;
}
.d-btn:hover:not(:disabled) { background: var(--navy); color: var(--cream); }
.d-btn:disabled { opacity: .3; }
.d-btn svg, .dossier-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; }
.d-count { min-width: 80px; text-align: center; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.d-ticks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 3px; }
.d-ticks li { flex: 1; height: 3px; background: rgba(10, 20, 102, .18); transition: background .25s; }
.d-ticks li.on { background: var(--navy); }
.dossier-x {
  position: fixed; z-index: 2; top: max(18px, env(safe-area-inset-top)); right: max(var(--gutter), env(safe-area-inset-right));
  width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  border: 1.5px solid var(--navy); border-radius: 0; background: var(--cream); color: var(--navy); transition: background .2s, color .2s;
}
.dossier-x:hover { background: var(--navy); color: var(--cream); }

@media (max-width: 900px) {
  /* phone: title, then the page right away, then the summary */
  .dossier-body {
    grid-template-columns: minmax(0, 560px); align-items: start; align-content: start; justify-content: center; gap: 0;
    padding: 74px 24px max(36px, env(safe-area-inset-bottom));
  }
  .dossier-meta { display: contents; }
  .dossier-kicker { order: 1; font-size: 10.5px; gap: 8px; white-space: nowrap; }
  .dossier-kicker i { width: 18px; }
  .dossier-title { order: 2; margin-top: 10px; }
  .dossier-sheet { order: 3; justify-self: center; margin-top: 22px; --ph: min(calc(min(100vw - 48px, 520px) * 842 / 595), calc(100 * var(--vh) - 270px)); }
  .dossier-plain { order: 4; font-size: 14.5px; margin-top: 26px; }
  .dossier-orig { order: 5; justify-self: start; margin-top: 14px; font-size: 14px; }
  .dossier-facts, .dossier-record { display: none; }
  .dossier-nav { margin-top: 18px; }
  .reg { display: none; }
  .dossier-paper::after { transform: translate(7px, 8px); }
}
@media (max-width: 560px) {
  .docs { --sw: 54px; gap: 10px; }
  .docs-stack { height: calc(var(--sw) * 1.415 + 12px); }
  .hall-row { gap: 16px; }
  .sheet-tag { font-size: 6px; left: 4px; top: 5px; }
  .sheet-stamp { font-size: 6px; bottom: 7px; }
  .dossier-title { font-size: 27px; }
  .dossier-x { width: 42px; height: 42px; }
}
@media (hover: none) {
  .docs .sheet { transform: translate(var(--fx), 0) rotate(var(--fr)); }
}
