/* =========================================================
   HOLDER — design system
   Obsidian + editorial white foundation, diamond blue signature,
   olive from the helmet, red only for broken incentives.
   ========================================================= */
:root {
  --obsidian: #08090B;
  --graphite: #202329;
  --graphite-2: #15171B;
  --paper: #F4F3EF;
  --paper-2: #E7E5DE;
  --ink: #0E0F12;
  --blue: #2979FF;
  --ice: #80CFFF;
  --olive: #55583D;
  --olive-2: #7B7F55;
  --red: #C83C3C;
  --muted-d: #A3A7AF;   /* secondary on dark: 7.6:1 on obsidian */
  --muted-l: #55565B;   /* secondary on paper: 6.9:1 */
  --line-d: rgba(244,243,239,.14);
  --line-l: rgba(14,15,18,.16);

  --f-display: 'Big Shoulders Display', 'Anton', sans-serif;
  --f-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --pad: clamp(20px, 4.5vw, 72px);
  --nav-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
html[data-theme="mono"] { --blue: #E9E9E9; --ice: #FFFFFF; --olive: #6A6A6A; --olive-2: #8a8a8a; --red: #9A9A9A; }
html[data-theme="mono"] img, html[data-theme="mono"] .stage { filter: grayscale(1) contrast(1.08); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html:not(.reduced) { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--obsidian); color: var(--paper);
  font: 400 17px/1.55 var(--f-body); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #3a3e46 var(--obsidian); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: #33363d; border-radius: 10px; border: 2px solid var(--obsidian); }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
.display {
  font: 900 clamp(3rem, 9.2vw, 9.5rem)/.86 var(--f-display);
  letter-spacing: -0.012em; text-transform: uppercase; margin: 0; text-wrap: balance;
}
.display-s { font: 800 clamp(2.4rem, 5.4vw, 4.8rem)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 .35em; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; max-width: 44ch; color: var(--muted-d); margin: 1.4em 0 0; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 700 15px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .16s var(--ease-out), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--primary { --bg: var(--paper); --fg: var(--ink); box-shadow: 0 10px 30px -12px rgba(41,121,255,.6); }
.btn--ghost { border-color: rgba(244,243,239,.35); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --bg: #fff; box-shadow: 0 14px 40px -10px rgba(41,121,255,.85); }
  .btn--ghost:hover { border-color: var(--paper); background: rgba(244,243,239,.06); }
}
.on-paper .btn--primary, .btn--ink { --bg: var(--ink); --fg: var(--paper); }
.on-paper .btn--ghost { --fg: var(--ink); border-color: rgba(14,15,18,.35); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-d); background: transparent; color: var(--paper); transition: background-color .2s, transform .16s var(--ease-out); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { transform: scale(.94); }
@media (hover:hover) { .icon-btn:hover { background: rgba(244,243,239,.08); } }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 90; background: #000; pointer-events: none; display: none; }
.js .intro { display: block; }
.js .intro.is-done { display: none; }
.intro__noise, .intro__rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__words { position: absolute; inset: 0; display: grid; place-items: center; }
.intro__words span { grid-area: 1/1; font: 900 clamp(3.5rem, 13vw, 12rem)/1 var(--f-display); letter-spacing: -0.01em; color: var(--paper); opacity: 0; }
.intro__disclaimer { position: absolute; left: 20px; bottom: calc(18px + var(--safe-b)); margin: 0; font: 500 11px/1 var(--f-mono); color: rgba(244,243,239,.45); letter-spacing: .08em; text-transform: uppercase; }
/* inside the diamond: hard-edged facet wedges, a white core, then it dissolves into the hero */
.intro__refract { position: fixed; inset: -20%; z-index: 93; opacity: 0; pointer-events: none; display: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.95) 0, rgba(214,238,255,.6) 6%, rgba(128,207,255,0) 26%),
    conic-gradient(from 12deg at 50% 50%,
      #0b2a72 0 11%, #2979FF 11% 19%, #cfeaff 19% 22%, #1747b8 22% 33%, #80CFFF 33% 40%, #08183f 40% 48%,
      #3d86ff 48% 57%, #eaf7ff 57% 60%, #1240a6 60% 71%, #6fc2ff 71% 79%, #0a1f52 79% 88%, #2f7bff 88% 100%); }
.js .intro__refract.is-on { display: block; }
.stage.is-intro { z-index: 92; }
/* FACET CUT navigation transition (js/shatter.js) */
.facet-cut { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 85; pointer-events: none; display: none; }
.facet-cut.is-on { display: block; pointer-events: auto; cursor: progress; }
.intro-skip { position: fixed; z-index: 95; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + var(--safe-b)); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(244,243,239,.3); background: rgba(8,9,11,.6); color: var(--paper); font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- stage + grain ---------- */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); }
.stage.is-on { opacity: 1; }
.grain { position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
main, .footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: calc(var(--nav-h) + var(--safe-t)); padding: var(--safe-t) var(--pad) 0;
  display: flex; align-items: center; gap: 24px;
  transition: background-color .35s var(--ease-out), transform .45s var(--ease-out), color .3s;
}
.nav.is-solid { background: rgba(8,9,11,.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line-d); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 26px/1 var(--f-display); letter-spacing: .02em; }
.nav__logo svg { width: 26px; height: 26px; color: var(--ice); transition: transform .6s var(--ease-out); }
.nav__logo:hover svg { transform: rotate(180deg); }
.nav__links { position: relative; display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; z-index: 1; padding: 9px 13px; text-decoration: none; font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(244,243,239,.72); transition: color .2s; border-radius: 999px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--paper); }
.nav__ink { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: rgba(244,243,239,.09); box-shadow: inset 0 -2px 0 var(--blue); opacity: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s; }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__ca { display: inline-flex; gap: 6px; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-d); background: transparent; font: 500 12px/1 var(--f-mono); }
.nav__ca-label { color: var(--ice); }
.dex-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font: 700 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; transition: transform .16s var(--ease-out), background-color .2s; }
.dex-btn svg { width: 20px; height: 20px; }
.dex-btn:active { transform: scale(.97); }
.dex-btn[aria-disabled="true"] { background: transparent; color: rgba(244,243,239,.6); border: 1px dashed rgba(244,243,239,.3); cursor: help; }
.snd-wave { stroke-dasharray: 2 3; transition: stroke-dasharray .4s var(--ease-out); }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-d); background: transparent; position: relative; }
.nav__menu span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease-out); }
.nav__menu span:nth-child(1) { top: 18px; } .nav__menu span:nth-child(2) { top: 25px; }
.nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 65; background: var(--obsidian); padding: calc(var(--nav-h) + var(--safe-t) + 24px) var(--pad) calc(24px + var(--safe-b)); display: flex; flex-direction: column; justify-content: flex-end; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu a { font: 900 clamp(2.6rem, 13vw, 4.5rem)/1 var(--f-display); text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-d); }
.mobile-menu.is-open a { animation: menuIn .5s var(--ease-out) both; }
.mobile-menu.is-open a:nth-child(2){animation-delay:.03s}.mobile-menu.is-open a:nth-child(3){animation-delay:.06s}.mobile-menu.is-open a:nth-child(4){animation-delay:.09s}.mobile-menu.is-open a:nth-child(5){animation-delay:.12s}.mobile-menu.is-open a:nth-child(6){animation-delay:.15s}
@keyframes menuIn { from { opacity: 0; transform: translateY(18px); } }

/* ---------- film rail ---------- */
.rail { position: fixed; z-index: 60; right: 18px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; opacity: 0; transition: opacity .4s; }
.rail.is-on { opacity: 1; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 14px; text-decoration: none; }
.rail a::after { content: ""; width: 14px; height: 2px; background: currentColor; opacity: .35; transition: width .35s var(--ease-out), opacity .3s, background-color .3s; }
.rail a span { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .35s var(--ease-out); white-space: nowrap; }
.rail a.is-active::after { width: 28px; opacity: 1; background: var(--blue); }
.rail:hover a span, .rail a:focus-visible span, .rail a.is-active span { opacity: .9; transform: none; }
.rail:not(:hover) a.is-active span { opacity: .75; }
.rail.on-paper { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; padding: calc(var(--nav-h) + var(--safe-t)) var(--pad) 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 72% 40%, #1b1d22 0%, #0d0e11 55%, var(--obsidian) 100%); }
.hero__light { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at var(--lx, 70%) var(--ly, 35%), rgba(128,207,255,.16), transparent 70%),
    radial-gradient(900px 600px at 78% 70%, rgba(41,121,255,.14), transparent 70%),
    linear-gradient(115deg, transparent 40%, rgba(244,243,239,.035) 48%, transparent 56%);
  background-size: 100% 100%, 100% 100%, 300% 100%; animation: sweep 9s var(--ease-in-out) infinite; }
@keyframes sweep { 0% { background-position: 0 0, 0 0, 100% 0; } 100% { background-position: 0 0, 0 0, -100% 0; } }
.hero__copy { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 110px); }
.hero__title { font: 900 clamp(4.2rem, 10.2vw, 12rem)/.82 var(--f-display); letter-spacing: -0.015em; margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero__title .line > span { display: block; }
.hero__title .line:last-child > span { color: var(--paper); -webkit-text-stroke: 0; }
.hero__sub { margin: 28px 0 0; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.5; color: var(--muted-d); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__dex { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font: 500 13px/1 var(--f-mono); letter-spacing: .04em; color: var(--muted-d); text-decoration: none; }
.hero__dex svg { width: 18px; height: 18px; color: var(--ice); }
.hero__dex:hover { color: var(--paper); }
.hero__dex[aria-disabled="true"] { cursor: help; }
.hero__mascot { position: relative; z-index: 1; margin: 0 calc(var(--pad) * -1) 0 -8%; align-self: end; aspect-ratio: 1; width: min(108%, 118vh); justify-self: end;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 16%); mask-image: linear-gradient(to top, transparent 0, #000 16%); }
.hero__mascot img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.glint { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: .0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 40%), rgba(255,255,255,.95) 0 2%, rgba(190,230,255,.55) 6%, rgba(128,207,255,.18) 18%, transparent 40%);
  transition: opacity .4s; }
.glint--l { left: 17.5%; top: 69.5%; }
.glint--r { left: 59%; top: 70%; }
.hero:hover .glint, .glint.is-lit { opacity: 1; }
.hero__mark { position: absolute; z-index: 0; right: -.04em; top: calc(var(--nav-h) + 2vh); font: 900 clamp(5rem, 22vw, 24rem)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1px rgba(244,243,239,.07); letter-spacing: -0.02em; pointer-events: none; user-select: none; }
.hero__scroll { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); margin: 0; z-index: 3; display: grid; justify-items: center; gap: 8px; font: 500 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(244,243,239,.5); }
.hero__scroll span { width: 1px; height: 36px; background: linear-gradient(var(--paper), transparent); transform-origin: top; animation: drip 2.4s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- chapter shell ---------- */
.ch { position: relative; }

/* culture (paper) */
.ch-culture { background: var(--paper); color: var(--ink); padding: clamp(110px, 16vh, 180px) var(--pad) clamp(90px, 14vh, 160px); overflow: hidden;
  background-image: radial-gradient(rgba(14,15,18,.05) 1px, transparent 1px); background-size: 4px 4px; }
.ch-culture .lede { color: var(--muted-l); }
.culture__head { position: relative; z-index: 2; max-width: 1000px; }
.culture__collage { position: relative; margin-top: clamp(40px, 8vh, 90px); height: clamp(620px, 92vh, 900px); }
.post { position: absolute; background: #fff; color: #111; border: 1px solid rgba(0,0,0,.12); box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); font: 400 14px/1.45 var(--f-body); padding: 12px; width: clamp(220px, 24vw, 330px); will-change: transform; }
.post header { display: flex; gap: 10px; font: 500 11px/1.2 var(--f-mono); color: #2d6b2d; margin-bottom: 8px; flex-wrap: wrap; }
.post__board { color: #8a1f1f; font-weight: 700; } .post__no { color: #555; }
.post p { margin: 8px 0 0; }
.post__img { aspect-ratio: 1.2; background: #ddd center/cover no-repeat; border: 1px solid rgba(0,0,0,.08); }
.post__img--kitten { background-image: url(../assets/img/holder-original.webp); background-position: 50% 30%; filter: saturate(.8) contrast(1.05) sepia(.08); }
.post__img--diamond { background: #f7f6f1; position: relative; }
.post__img--diamond::after { content: ""; position: absolute; inset: 18% 24%; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M8 5h16l6 8-14 15L2 13z M2 13h28 M12 5l-2 8 6 15 6-15-2-8' fill='none' stroke='%232979FF' stroke-width='1' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.post--chat { background: #e9eef6; border-radius: 18px; padding: 14px; width: clamp(220px, 22vw, 300px); }
.bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 8px 12px; margin: 6px 0 0 !important; width: fit-content; max-width: 90%; }
.bubble--me { margin-left: auto !important; background: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; }
.post--forum { background: #f2f0e6; font-family: Georgia, 'Times New Roman', serif; }
.post--forum h3 { font: 700 15px/1.3 var(--f-body); margin: 0; color: #1d3a8a; text-decoration: underline; }
.post--forum footer { margin-top: 10px; font: 400 11px/1 var(--f-mono); color: #666; }
.post--note { background: #fff4a8; transform: rotate(-3deg); font: 400 22px/1.2 'Caveat Brush', cursive; width: 220px; padding: 18px; }
.p1 { left: 2%; top: 6%; } .p2 { left: 30%; top: 0%; } .p3 { right: 4%; top: 8%; } .p4 { left: 50%; top: 52%; } .p5 { left: 14%; top: 60%; } .p6 { right: 10%; top: 44%; }
.culture__note { position: absolute; left: 0; bottom: 0; margin: 0; font: 500 11px/1 var(--f-mono); color: var(--muted-l); letter-spacing: .06em; text-transform: uppercase; }

/* rotation machine */
.ch-rotation { height: 420vh; background: #0b0d10; }
.rotation__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rotation__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rotation__title { position: absolute; left: var(--pad); top: calc(var(--nav-h) + 6vh); color: var(--paper); font-size: clamp(2.6rem, 7vw, 7rem); }
.rotation__words { position: absolute; left: var(--pad); bottom: 12vh; display: grid; }
.rotation__words span { grid-area: 1/1; font: 900 clamp(2rem, 6vw, 5.5rem)/1 var(--f-display); color: var(--red); opacity: 0; }
.rotation__end { position: absolute; left: 0; right: 0; bottom: 10vh; text-align: center; font-size: clamp(2.2rem, 6.4vw, 6.4rem); opacity: 0; padding: 0 var(--pad); }
.rotation__label { position: absolute; right: var(--pad); bottom: calc(18px + var(--safe-b)); margin: 0; color: rgba(244,243,239,.5); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* pressure chamber */
.ch-pressure { height: 340vh; }
.pressure__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: end; padding: 0 var(--pad) 10vh; overflow: hidden; }
.pressure__title { display: flex; flex-wrap: wrap; gap: 0 .22em; font-size: clamp(3rem, 10vw, 10rem); }
.pressure__title span { display: inline-block; }
.pressure__caption { max-width: 34ch; color: var(--muted-d); font-size: 1.1rem; margin: 18px 0 0; }
.pressure__fallback { position: absolute; inset: 0; z-index: -1; display: none; place-items: center; }
.no-webgl .pressure__fallback, .reduced .pressure__fallback { display: grid; }
.reduced .pressure__pin { min-height: 100vh; }
.no-webgl .pressure__fallback::before, .reduced .pressure__fallback::before { content: ""; width: min(60vw, 420px); aspect-ratio: 1.1; background: url(../assets/img/diamond.svg) center/contain no-repeat; filter: drop-shadow(0 0 60px rgba(41,121,255,.5)); }

/* the holder */
.ch-holder { height: 220vh; background: var(--obsidian); }
.holder__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.holder__portrait { position: absolute; inset: 0; display: grid; place-items: end center; clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%); }
.holder__portrait::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 60%, #22252b 0%, #0c0d10 70%, var(--obsidian) 100%); }
.holder__portrait img { position: relative; height: min(94vh, 94svh); width: auto; max-width: none; object-fit: contain;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 14%); mask-image: linear-gradient(to top, transparent 0, #000 14%); }
.holder__title { position: absolute; left: var(--pad); top: calc(var(--nav-h) + 8vh); font-size: clamp(2.6rem, 7.4vw, 7.6rem); z-index: 2; }
.holder__legend { position: absolute; right: var(--pad); bottom: 10vh; margin: 0; display: grid; gap: 18px; width: min(300px, 40vw); z-index: 2; }
.holder__legend div { border-top: 1px solid var(--line-d); padding-top: 10px; }
.holder__legend dt { font: 800 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ice); }
.holder__legend dt:nth-of-type(1) {}
.holder__legend div:nth-child(2) dt { color: var(--olive-2); }
.holder__legend dd { margin: 6px 0 0; color: var(--muted-d); font-size: 15px; }

/* manifesto */
.manifesto { position: relative; background: var(--paper); color: var(--ink); padding: clamp(120px, 18vh, 200px) var(--pad); }
.manifesto__title { font: 900 clamp(1.4rem, 2.2vw, 2rem)/1 var(--f-display); letter-spacing: .08em; margin: 0 0 clamp(40px, 8vh, 90px); display: flex; align-items: center; gap: 16px; }
.manifesto__title::before { content: ""; width: 36px; height: 36px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M8 5h16l6 8-14 15L2 13z M2 13h28 M12 5l-2 8 6 15 6-15-2-8' fill='none' stroke='%230E0F12' stroke-width='1.6' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.manifesto__body { max-width: 1180px; }
.manifesto__body p { font: 700 clamp(1.9rem, 4.1vw, 4rem)/1.08 var(--f-display); text-transform: none; letter-spacing: -0.005em; margin: 0 0 .9em; color: var(--ink); text-wrap: balance; }
.js .manifesto__body p { color: rgba(14,15,18,.16); transition: color .6s var(--ease-out); }
.js .manifesto__body p.is-lit { color: var(--ink); }
.manifesto__big { font-weight: 900 !important; font-size: clamp(2.4rem, 6vw, 6rem) !important; line-height: .95 !important; text-transform: uppercase !important; }
.manifesto__big.is-lit { color: var(--blue) !important; }
.manifesto__sign { text-transform: uppercase !important; font-weight: 900 !important; }
.manifesto__note { margin: 40px 0 0; font: 500 12px/1.4 var(--f-mono); color: var(--muted-l); }

/* people / mosaic */
.people { position: relative; padding: clamp(110px, 16vh, 180px) var(--pad); background: var(--obsidian); overflow: hidden; }
.people__head { max-width: 900px; }
.mosaic { position: relative; margin: clamp(40px, 8vh, 80px) auto 0; width: min(100%, 1100px); aspect-ratio: 1.55; }
.mosaic__list { display: none; }
.no-js .mosaic__list { display: block; }
.mosaic svg { width: 100%; height: 100%; overflow: visible; }
.facet { cursor: pointer; transition: filter .3s; outline: none; }
.facet path { transition: fill .35s var(--ease-out), stroke .35s; }
.facet:hover path, .facet:focus-visible path, .facet.is-open path { stroke: var(--ice); }
.facet text { pointer-events: none; font: 800 17px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; fill: var(--paper); paint-order: stroke; stroke: rgba(8,9,11,.65); stroke-width: 4px; }
.mosaic__card { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: min(520px, 92%); background: var(--graphite); border: 1px solid var(--line-d); border-radius: 14px; padding: 18px 20px; box-shadow: 0 30px 60px -30px #000; }
.mosaic__card h4 { margin: 0; font: 800 24px/1 var(--f-display); text-transform: uppercase; color: var(--ice); }
.mosaic__card p { margin: 8px 0 0; color: var(--muted-d); font-size: 15px; }
.people__together { text-align: center; margin-top: clamp(110px, 16vh, 160px); font-size: clamp(2.4rem, 7vw, 7rem); }

.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); padding: 0; margin-bottom: 6px; }
.field input:not([type=color]):not([type=range]):not([type=file]), .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(244,243,239,.18); background: rgba(8,9,11,.6); color: var(--paper); font-size: 16px; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(128,207,255,.18); }
.field input::placeholder, .field textarea::placeholder { color: #7d828b; }
.field input[type=color] { width: 100%; height: 44px; border-radius: 10px; border: 1px solid rgba(244,243,239,.18); background: transparent; padding: 4px; }
.field input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 36px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.file-btn { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px dashed rgba(244,243,239,.3); color: var(--paper); cursor: pointer; font-size: 15px; overflow: hidden; transition: border-color .2s, background-color .2s; }
.file-btn:hover { border-color: var(--ice); background: rgba(128,207,255,.05); }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--ice); outline-offset: 2px; }
.file-btn--block { display: flex; width: 100%; justify-content: center; margin: 14px 0 6px; }
.swatches { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.swatches legend { width: 100%; }
.swatch { position: relative; width: 36px; height: 36px; border-radius: 999px; border: 2px solid transparent; outline-offset: 2px; background: var(--c); cursor: pointer; transition: transform .16s var(--ease-out); }
.swatch:active { transform: scale(.92); }
.swatch[aria-checked="true"] { border-color: var(--paper); box-shadow: 0 0 0 2px var(--obsidian) inset; }
.chips { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.chips legend { width: 100%; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(244,243,239,.22); background: transparent; font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s; }
.chip[aria-checked="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form-error { color: #ff9b9b; font-size: 14px; margin: 0 0 12px; }

/* lab */
.lab { position: relative; padding: clamp(110px, 16vh, 180px) var(--pad) clamp(90px, 12vh, 140px); background: var(--obsidian); }
.lab__portal { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 50% at 50% 0%, rgba(41,121,255,.22), transparent 70%); }
.lab__head { position: relative; margin-bottom: 40px; }
.studio { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; gap: 0; border: 1px solid var(--line-d); border-radius: 16px; background: #0f1114; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.studio__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line-d); overflow-x: auto; scrollbar-width: none; }
.studio__bar button { flex: none; height: 40px; min-width: 40px; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--paper); transition: background-color .15s, transform .12s var(--ease-out); }
.studio__bar button:active { transform: scale(.94); }
.studio__bar button:hover { background: rgba(244,243,239,.08); }
.studio__bar button:disabled { opacity: .35; pointer-events: none; }
.studio__bar svg { width: 19px; height: 19px; }
.studio__bar .txt { padding: 0 14px; font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.studio__bar .txt--primary { background: var(--blue); color: #fff; }
.studio__bar .txt--primary:hover { background: #4a8fff; }
.studio__sep { width: 1px; height: 22px; background: var(--line-d); margin: 0 6px; flex: none; }
.studio__spacer { flex: 1; }
.studio__stagewrap { display: grid; place-items: center; padding: clamp(12px, 3vw, 36px); background:
  linear-gradient(45deg, #15171b 25%, transparent 25%, transparent 75%, #15171b 75%) 0 0/24px 24px,
  linear-gradient(45deg, #15171b 25%, transparent 25%, transparent 75%, #15171b 75%) 12px 12px/24px 24px, #101215; min-width: 0; }
.studio__canvas { width: 100%; max-width: 640px; aspect-ratio: 1; height: auto; border-radius: 6px; box-shadow: 0 20px 50px -20px #000; touch-action: none; background: #000; cursor: default; }
.studio__canvas:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.studio__panel { border-left: 1px solid var(--line-d); padding: 14px 16px 20px; max-height: 760px; overflow-y: auto; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 10px; background: rgba(244,243,239,.06); margin-bottom: 16px; }
.tabs button { min-height: 36px; border: 0; border-radius: 7px; background: transparent; font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.panel-label { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); margin: 16px 0 10px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs button { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; padding: 0; overflow: hidden; background: #000; transition: border-color .2s, transform .12s var(--ease-out); }
.thumbs button:active { transform: scale(.96); }
.thumbs button[aria-pressed="true"] { border-color: var(--ice); }
.thumbs img, .thumbs canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.captions { display: grid; gap: 6px; }
.captions button { text-align: left; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-d); background: transparent; font: 700 13px/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; transition: border-color .2s, background-color .2s; }
.captions button:hover { border-color: var(--ice); background: rgba(128,207,255,.05); }
.text-controls { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-d); }
.text-controls.is-disabled { opacity: .4; pointer-events: none; }
.text-controls output { color: var(--paper); margin-left: 6px; }
.stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stickers button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line-d); background: #16181c; padding: 8px; display: grid; place-items: center; transition: border-color .2s, transform .12s var(--ease-out); }
.stickers button:hover { border-color: var(--ice); }
.stickers button:active { transform: scale(.95); }
.stickers canvas { width: 100%; height: 100%; }
.lab__hint { margin: 16px 0 0; color: var(--muted-d); font-size: 14px; }

/* card generator (paper) */
.cardgen { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(110px, 16vh, 180px) var(--pad); background: var(--paper); color: var(--ink); align-items: center; }
.cardgen p { color: var(--muted-l); max-width: 46ch; }
.cardgen .field > span, .cardgen .field legend { color: var(--muted-l); }
.cardgen .field input:not([type=color]):not([type=range]):not([type=file]) { background: #fff; color: var(--ink); border-color: rgba(14,15,18,.22); }
.cardgen .field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41,121,255,.18); }
.cardgen .chip { border-color: rgba(14,15,18,.25); color: var(--ink); }
.cardgen .chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cardgen .file-btn { color: var(--ink); border-color: rgba(14,15,18,.3); }
.cardgen .swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper) inset; }
.cardgen .btn--primary { --bg: var(--ink); --fg: var(--paper); }
.cardgen__stage { perspective: 1200px; display: grid; justify-items: center; gap: 18px; }
.holo-card { position: relative; width: min(100%, 620px); aspect-ratio: 1050/660; border-radius: 22px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 10px 20px -10px rgba(0,0,0,.3); }
.holo-card.is-tracking { transition: transform .08s linear; }
.holo-card canvas { width: 100%; height: 100%; border-radius: 22px; display: block; }
.holo-card__sheen { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background: linear-gradient(115deg, transparent 20%, rgba(128,207,255,.45) calc(var(--sx, 50%) - 10%), rgba(255,255,255,.6) var(--sx, 50%), rgba(41,121,255,.35) calc(var(--sx, 50%) + 10%), transparent 80%); }
.cardgen__note { font: 500 11px/1.4 var(--f-mono); color: var(--muted-l) !important; text-align: center; }

/* rebuild */
.rebuild { padding: clamp(110px, 16vh, 180px) var(--pad); background: var(--obsidian); text-align: center; }
.rebuild__head p { color: var(--muted-d); max-width: 52ch; margin: 0 auto; }
.rebuild__board { position: relative; margin: 30px auto 0; width: min(100%, 900px); }
.rebuild__svg { width: 100%; height: auto; touch-action: none; user-select: none; }
.frag { cursor: grab; outline: none; }
.frag:active { cursor: grabbing; }
.frag.is-placed { cursor: default; }
.frag:focus-visible .frag__shape { stroke: var(--ice); stroke-width: 3; }
.frag.is-picked .frag__shape { stroke: #fff; stroke-width: 3; }
.frag text { font: 800 15px/1 var(--f-display); letter-spacing: .08em; fill: #fff; pointer-events: none; }
.slot { fill: rgba(244,243,239,.03); stroke: rgba(244,243,239,.25); stroke-dasharray: 5 6; }
.rebuild__status { min-height: 1.5em; color: var(--muted-d); margin: 8px 0 0; }
.rebuild__done { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; max-width: 760px; margin: 30px auto 0; text-align: left; animation: riseIn .8s var(--ease-out) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.rebuild__done img { width: 180px; height: 180px; }

/* gallery */
.gallery { padding: clamp(110px, 16vh, 180px) var(--pad); background: var(--paper); color: var(--ink); }
.gallery__lede { color: var(--muted-l); max-width: 52ch; }
.gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 36px; }
.g-item { position: relative; border-radius: 14px; overflow: hidden; background: #111; border: 0; padding: 0; text-align: left; color: var(--paper); transition: transform .3s var(--ease-out); }
.g-item:active { transform: scale(.985); }
.g-item canvas, .g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }
@media (hover:hover) { .g-item:hover canvas, .g-item:hover img { transform: scale(1.035); } }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.g-item figcaption b { font: 800 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.g-item figcaption span { font: 500 11px/1 var(--f-mono); opacity: .8; }
.g-a { grid-column: span 5; grid-row: span 2; aspect-ratio: 5/6; }
.g-b { grid-column: span 7; aspect-ratio: 3/1; }
.g-c { grid-column: span 3; aspect-ratio: 1; }
.g-d { grid-column: span 4; aspect-ratio: 4/3; }
.g-e { grid-column: span 4; aspect-ratio: 9/14; }
.g-f { grid-column: span 4; aspect-ratio: 9/14; }
.g-g { grid-column: span 4; aspect-ratio: 9/14; }
.g-h, .g-i { grid-column: span 6; aspect-ratio: 16/9; }
.viewer { width: min(96vw, 1200px); max-height: 92vh; padding: 0; border: 1px solid var(--line-d); border-radius: 16px; background: var(--obsidian); color: var(--paper); overflow: hidden; }
.viewer::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.viewer[open] { animation: viewerIn .35s var(--ease-out); }
@keyframes viewerIn { from { opacity: 0; transform: scale(.96); } }
.viewer img { width: 100%; max-height: calc(92vh - 70px); object-fit: contain; background: #000; }
.viewer__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.viewer__bar p { margin: 0 auto 0 0; font: 800 20px/1 var(--f-display); text-transform: uppercase; }

/* open file (paper dossier) */
.openfile { padding: clamp(110px, 16vh, 180px) var(--pad); background: var(--paper-2); color: var(--ink);
  background-image: linear-gradient(rgba(14,15,18,.04) 1px, transparent 1px); background-size: 100% 32px; }
.openfile .lede { color: var(--muted-l); }
.openfile__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 50px; align-items: start; }
.dossier { background: #fbfaf6; border: 1px solid var(--line-l); border-radius: 4px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); position: relative; }
.dossier::before { content: "FILE / $HOLDER"; position: absolute; top: -12px; left: 22px; background: var(--ink); color: var(--paper); font: 500 11px/1 var(--f-mono); letter-spacing: .1em; padding: 6px 10px; }
.drow { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line-l); align-items: baseline; }
.drow:last-child { border-bottom: 0; }
.drow dt { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-l); }
.drow dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; word-break: break-all; }
.drow dd.is-pending { color: var(--muted-l); font-style: normal; }
.drow dd.is-pending::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 999px; border: 1.5px solid var(--red); margin-right: 8px; vertical-align: 1px; }
.drow .copy-inline { margin-left: 10px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-l); background: transparent; font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.dossier__first { padding: 34px 22px 10px; }
.dossier__first p { margin: 0; font: 900 clamp(2.6rem, 5vw, 4rem)/.9 var(--f-display); }
.dossier__first span { font: 500 12px/1.4 var(--f-mono); color: var(--muted-l); }
.sources__title { font: 800 28px/1 var(--f-display); text-transform: uppercase; margin: 0 0 18px; }
.sources__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: src; }
.sources__list li { border-top: 1px solid var(--line-l); padding: 18px 0; }
.src__kind { display: inline-block; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: rgba(14,15,18,.07); color: var(--ink); }
.src__kind[data-k="court"] { background: rgba(200,60,60,.12); color: #8f2626; }
.src__kind[data-k="paper"] { background: rgba(41,121,255,.12); color: #1347a8; }
.sources__list h4 { margin: 10px 0 4px; font: 600 18px/1.3 var(--f-body); }
.sources__list h4 a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease-out); }
.sources__list h4 a:hover { background-size: 100% 1px; }
.sources__list .who { font: 400 13px/1.4 var(--f-mono); color: var(--muted-l); margin: 0; }
.sources__list .note { margin: 8px 0 0; color: #2d2e33; font-size: 15px; }
.sources__note { font-size: 14px; color: var(--muted-l); }
.risk { margin-top: 50px; padding: 22px 24px; border: 1.5px solid var(--ink); border-radius: 4px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: #fbfaf6; }
.risk h3 { margin: 0; font: 900 26px/1 var(--f-display); text-transform: uppercase; color: var(--red); }
.risk p { margin: 0; max-width: 80ch; }

/* final */
.final { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: radial-gradient(80% 60% at 50% 80%, #102654 0%, #0a1226 40%, var(--obsidian) 80%); display: grid; isolation: isolate; }
/* the facet light from the opening returns, quieter: the film closes where it began */
.final::before { content: ""; position: absolute; inset: -30%; z-index: -1; opacity: .22; transform: rotate(var(--fr, 0deg));
  background: conic-gradient(from 12deg at 72% 62%, #0b2a72 0 11%, #2979FF 11% 19%, #cfeaff 19% 22%, #1747b8 22% 33%, #80CFFF 33% 40%, #08183f 40% 48%, #3d86ff 48% 57%, #eaf7ff 57% 60%, #1240a6 60% 71%, #6fc2ff 71% 79%, #0a1f52 79% 88%, #2f7bff 88% 100%);
  -webkit-mask-image: radial-gradient(55% 55% at 72% 62%, #000, transparent 75%); mask-image: radial-gradient(55% 55% at 72% 62%, #000, transparent 75%); }
.final__frame { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 6vh) var(--pad) 9vh; min-height: inherit; }
.final__frame > :not(.final__kitten) { position: relative; z-index: 1; max-width: 52%; }
.final__kitten { position: absolute; right: calc(var(--pad) * .5); bottom: 0; height: min(94vh, 94svh, 62vw); width: auto; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 14%); mask-image: linear-gradient(to top, transparent 0, #000 14%); }
.final__title { font-size: clamp(3rem, 8vw, 8.5rem); }
.final__sub { color: var(--muted-d); font-size: 1.15rem; margin: 22px 0 0; }
.final__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.final__links { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.final__links a, .final__links span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-d); text-decoration: none; font: 600 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.final__links span { color: var(--muted-d); border-style: dashed; }
.final__links svg { width: 16px; height: 16px; }

.footer { background: var(--obsidian); border-top: 1px solid var(--line-d); padding: 50px var(--pad) calc(40px + var(--safe-b)); display: grid; grid-template-columns: auto 1fr; gap: 6px 40px; align-items: baseline; }
.footer__mark { font: 900 44px/1 var(--f-display); margin: 0; grid-row: span 2; }
.footer p { margin: 0; color: var(--muted-d); }
.footer__fine { font-size: 13px; max-width: 80ch; }
.footer__secret { grid-column: 2; justify-self: start; margin-top: 12px; background: none; border: 0; padding: 4px 0; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #6c7079; text-decoration: underline dotted; text-underline-offset: 4px; }
.footer__secret:hover { color: var(--paper); }

/* toast */
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 999px; font: 600 14px/1.2 var(--f-body); box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); animation: toastIn .35s var(--ease-out); max-width: calc(100vw - 32px); text-align: center; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* hidden mascot easter egg */
.tiny-holder { position: fixed; z-index: 75; width: 64px; height: 64px; left: 0; top: 0; opacity: 0; pointer-events: none; transition: opacity .4s; }
.tiny-holder.is-peeking { opacity: 1; pointer-events: auto; cursor: pointer; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-block; }
  .nav__tools { margin-left: auto; }
  .rail { display: none; }
  .studio { grid-template-columns: 1fr; }
  .studio__panel { border-left: 0; border-top: 1px solid var(--line-d); max-height: none; }
}
@media (max-width: 820px) {
  :root { --nav-h: 58px; }
  body { font-size: 16px; }
  .dex-btn span { display: none; }
  .dex-btn { padding: 0; width: 40px; justify-content: center; }
  .nav__ca { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: start; padding-top: calc(var(--nav-h) + var(--safe-t)); }
  .hero__mascot { grid-row: 1; width: 100%; margin: 0 0 -9%; justify-self: center; align-self: end; }
  .hero__copy { grid-row: 2; padding-bottom: calc(64px + var(--safe-b)); margin-top: 0; }
  .hero__title { font-size: clamp(3.4rem, 17.5vw, 7rem); }
  .hero__sub { margin-top: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__mark { display: none; }
  .hero__scroll { display: none; }
  .culture__collage { height: auto; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
  .post { position: relative; inset: auto !important; width: auto; transform: none; }
  .post--note { transform: rotate(-2deg); width: auto; }
  .p1 { grid-column: span 2; }
  .culture__note { position: static; grid-column: span 2; margin-top: 8px; }
  .rotation__title { font-size: clamp(2.4rem, 11vw, 4rem); }
  .holder__title { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .holder__legend { left: var(--pad); right: var(--pad); width: auto; bottom: calc(5vh + var(--safe-b)); grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .holder__legend dt { font-size: 15px; }
  .holder__legend dd { font-size: 12px; }
  .holder__portrait img { height: auto; width: min(112vw, 74svh); margin-bottom: 18vh; }
  .mosaic { aspect-ratio: auto; margin-left: calc(var(--pad) * -.6); margin-right: calc(var(--pad) * -.6); width: auto; }
  .mosaic svg { height: auto; }
  .facet text { display: none; }
  .mosaic__card { position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: 18px calc(var(--pad) * .6) 0; }
  .cardgen { grid-template-columns: 1fr; }
  .cardgen__stage { order: -1; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .g-a, .g-b, .g-c, .g-d, .g-e, .g-f, .g-g, .g-h, .g-i { grid-column: span 1; grid-row: auto; aspect-ratio: 1; }
  .g-a, .g-b, .g-h, .g-i { grid-column: span 2; }
  .g-h, .g-i { aspect-ratio: 16/9; }
  .g-e, .g-f, .g-g { aspect-ratio: 9/14; }
  .g-g { grid-column: span 2; aspect-ratio: 16/10; }
  .g-item figcaption { flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px 12px 10px; }
  .g-item figcaption b { font-size: 17px; }
  .g-a { aspect-ratio: 5/6; } .g-b { aspect-ratio: 3/1; }
  .openfile__grid { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 1fr; gap: 4px; }
  .risk { grid-template-columns: 1fr; }
  .final__frame { padding-bottom: calc(40px + var(--safe-b)); justify-content: flex-start; }
  .final__frame > :not(.final__kitten) { max-width: none; }
  .final__kitten { position: relative; right: auto; order: -1; height: auto; width: 108%; margin: 0 -4% -16%; }
  .final__actions .btn { flex: 1 1 100%; }
  .footer { grid-template-columns: 1fr; }
  .footer__secret { grid-column: 1; }
  .rebuild__done { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .studio__bar .txt { padding: 0 10px; }
}
@media (max-width: 420px) {
  .culture__collage { grid-template-columns: 1fr; }
  .p1, .culture__note { grid-column: span 1; }
}

/* =========================================================
   Reduced motion: keep state and meaning, drop travel.
   ========================================================= */
/* html.reduced is set by JS from the OS setting (and can be overridden with ?motion=full for QA). */
html.reduced *, html.reduced *::before, html.reduced *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
html.reduced .hero__light { animation: none; }
html.reduced .ch-rotation, html.reduced .ch-pressure, html.reduced .ch-holder { height: auto; }
html.reduced .rotation__pin, html.reduced .pressure__pin, html.reduced .holder__pin { position: relative; }
html.reduced .holder__portrait { clip-path: none !important; }
html.reduced .rotation__end { opacity: 1; }
