/* Jatajoot website.
   Layout: two worlds. The night (home hero, the book born from a nebula, and the short band atop inner pages) is
   always dark. Below a soft merge, the zone is the book site in the viewer's theme: a faint night in dark, moon paper
   and indigo ink in light, switchable. Every painting fades out at a watercolour edge (assets/wash.png); only the book
   itself is a solid object. Cinzel for display, EB Garamond for reading. */
:root {
  /* night: in every theme */
  --night: #03040d;
  --night-ink: #f6efe0;
  --night-muted: #c9c0dc;
  --gold: #e8c06a;
  --gold-hi: #f6d998;
  --halo: 0 0 1px rgba(3, 4, 13, .95), 0 1px 3px rgba(3, 4, 13, .9), 0 0 18px rgba(3, 4, 13, .85), 0 0 42px rgba(3, 4, 13, .6);
  /* zone: light values */
  --z-bg: #ebe4d6;
  --z-solid: #ebe4d6;
  --z-card: rgba(255, 252, 244, .55);
  --z-ink: #1f2340;
  --z-muted: #5a576f;
  --z-accent: #2f3a7a;
  --z-on-accent: #f7f3ea;
  --z-gold: #8a6214;
  --z-line: rgba(31, 35, 64, .16);
  --z-shadow: rgba(52, 38, 20, .32);
  --z-ph: rgba(47, 58, 122, .1);
  --z-sky-op: 0;
  /* the band from the night into the page: a dawn into paper */
  --merge: linear-gradient(rgba(6, 7, 26, 0), rgba(44, 34, 92, .45) 28%, rgba(126, 92, 132, .55) 50%, rgba(212, 170, 150, .75) 72%, #ebe4d6 100%);
  --z-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .34 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --vh: 100vh;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --z-bg: rgba(5, 6, 18, .88); --z-solid: #06071a; --z-card: rgba(255, 255, 255, .04); --z-ink: #f1eadb; --z-muted: #b9b1cc;
  --z-accent: #e8c06a; --z-on-accent: #0b0c1a; --z-gold: #e8c06a; --z-line: rgba(241, 234, 219, .16); --z-shadow: rgba(0, 0, 0, .6);
  --z-ph: rgba(232, 192, 106, .08); --z-sky-op: .16; --z-grain: none;
  --merge: linear-gradient(rgba(5, 6, 18, 0), rgba(5, 6, 18, .88)); color-scheme: dark } }
:root[data-theme="dark"] {
  --z-bg: rgba(5, 6, 18, .88); --z-solid: #06071a; --z-card: rgba(255, 255, 255, .04); --z-ink: #f1eadb; --z-muted: #b9b1cc;
  --z-accent: #e8c06a; --z-on-accent: #0b0c1a; --z-gold: #e8c06a; --z-line: rgba(241, 234, 219, .16); --z-shadow: rgba(0, 0, 0, .6);
  --z-ph: rgba(232, 192, 106, .08); --z-sky-op: .16; --z-grain: none;
  --merge: linear-gradient(rgba(5, 6, 18, 0), rgba(5, 6, 18, .88)); color-scheme: dark }
@supports (height: 100svh) { :root { --vh: 100svh; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--night-ink); font-family: var(--serif); font-weight: 500;
  font-size: clamp(18px, 0.5vw + 14px, 21px); line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- the night sky (fixed) ---------- */
.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.nebula i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.n1 { width: 80vmax; height: 60vmax; left: -30vmax; top: -10vmax; background: radial-gradient(closest-side, #2a2478, transparent); }
.n2 { width: 70vmax; height: 70vmax; right: -30vmax; top: 10vmax; background: radial-gradient(closest-side, #3b1d5e, transparent); }
.n3 { width: 60vmax; height: 50vmax; left: 10vmax; bottom: -25vmax; background: radial-gradient(closest-side, #0f2c4d, transparent); }
.n4 { width: 40vmax; height: 30vmax; left: 35vmax; top: 30vmax; background: radial-gradient(closest-side, rgba(120, 86, 30, .55), transparent); }
.n5 { width: 50vmax; height: 40vmax; right: 5vmax; bottom: -10vmax; background: radial-gradient(closest-side, #1b1b55, transparent); }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
main { position: relative; z-index: 2; overflow-x: clip; }
section, header { position: relative; }
.deep { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sky { position: absolute; height: auto; max-width: none; pointer-events: none; will-change: transform;
  transform: translate(var(--tx, 0), var(--py, 0px)) rotate(var(--rot, 0deg)); }
:where(.night) > :where(:not(.deep, .stage, .converge)) { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.top { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));
  font-family: var(--display); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 12px;
  color: var(--night-ink); background: linear-gradient(rgba(3, 4, 13, .75), transparent); text-shadow: var(--halo);
  transition: color .6s, background .6s, opacity .5s; }
.top.in-zone { color: var(--z-ink); text-shadow: none; background: linear-gradient(var(--z-solid) 60%, transparent); }
.top.away { opacity: 0; pointer-events: none; }
.top .mark { font-weight: 900; font-size: 15px; letter-spacing: .3em; text-decoration: none; }
.top .links { display: flex; gap: 26px; }
.top .links a { text-decoration: none; opacity: .85; }
.top .links a:hover, .top .links a[aria-current] { opacity: 1; color: var(--gold); }
.top.in-zone .links a:hover, .top.in-zone .links a[aria-current] { color: var(--z-gold); }
.top .tools { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: inherit; font-size: 16px; line-height: 1;
  background: transparent; border: 1px solid currentColor; opacity: .8; text-shadow: none; }
.theme-toggle:hover { opacity: 1; }

/* ---------- buttons, labels ---------- */
.btn { display: inline-block; padding: 14px 26px; border-radius: 2px; text-decoration: none; font-family: var(--display); font-weight: 600;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; background: var(--z-accent); color: var(--z-on-accent);
  border: 1px solid var(--z-accent); text-shadow: none; transition: transform .2s, background-color 1.2s, color 1.2s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--z-accent); }
.btn.small { padding: 9px 16px; font-size: 11px; background: var(--gold); border-color: var(--gold); color: #0b0c1a; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.eyebrow { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--z-gold); }
.more { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; text-decoration: none; color: var(--z-accent); }
.pill { display: inline-block; margin: 6px 0 18px; padding: 6px 14px; border: 1px solid var(--z-gold); color: var(--z-gold);
  font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
/* placeholders: visible, quiet, clearly not final */
.ph { font-style: italic; color: var(--z-muted); }
.ph-tag { font-family: var(--display); font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  border: 1px dashed var(--z-muted); padding: 1px 6px; margin-left: 6px; color: var(--z-muted); }
.ph-art { aspect-ratio: 4 / 3; display: grid; place-items: center; background:
  radial-gradient(60% 55% at 40% 45%, var(--z-ph), transparent 70%), radial-gradient(50% 45% at 65% 60%, var(--z-ph), transparent 70%);
  -webkit-mask: url(assets/wash.png) center / 100% 100%; mask: url(assets/wash.png) center / 100% 100%; }
.ph-art span { font-family: var(--display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--z-muted); }

/* every painting washes out at its edge */
.wash { -webkit-mask: url(assets/wash.png) center / 100% 100% no-repeat; mask: url(assets/wash.png) center / 100% 100% no-repeat; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; filter: blur(8px); transform: translateY(18px); transition: opacity 1.6s ease, filter 1.6s ease, transform 1.6s ease; }
.reveal.in { opacity: 1; filter: blur(0); transform: none; }

/* ---------- 1. hero ---------- */
.hero { height: var(--vh); min-height: 560px; }
.hero > .vista, .hero > .gather, .hero > .tagline, .hero > .title, .hero > .scroll-hint { position: absolute; }
.vista { opacity: 0; transition: opacity 2.6s ease; }
.vista.on { opacity: 1; }
.shiva { left: 50%; top: 50%; height: min(96%, 150vw); width: auto; max-width: none; transform: translate(-50%, -50%); }
.gather { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.converge { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cloud { position: absolute; left: 50%; top: 46%; width: min(60vw, 70vh); height: auto; max-width: none; opacity: 0;
  transform: translate(-50%, -50%); will-change: transform, opacity; }
.tagline { top: 12%; left: 0; right: 0; text-align: center; margin: 0; padding: 0 16px;
  font-style: italic; font-size: clamp(19px, 2.2vw, 27px); text-shadow: var(--halo); }
.title { bottom: calc(6% + 44px); left: 0; right: 0; text-align: center; padding: 0 16px; }
h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin: 0;
  font-size: clamp(54px, 10vw, 128px); line-height: 1; color: var(--gold);
  text-shadow: 0 0 30px rgba(232, 192, 106, .3), 0 2px 24px rgba(3, 4, 13, .95), 0 0 60px rgba(3, 4, 13, .7); }
.subtitle { margin: 14px 0 0; font-family: var(--display); font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  font-size: clamp(12px, 1.3vw, 16px); text-shadow: var(--halo); }
.scroll-hint { bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--display);
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--night-muted); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(var(--night-muted), transparent); }

/* ---------- 2. the book reveal ---------- */
.book-stage { height: calc(var(--vh) * 2.4); }
.stage { position: sticky; top: 0; z-index: 1; height: var(--vh); display: grid; place-items: center; overflow-x: clip; }
.stage > * { grid-area: 1 / 1; }
.birth { position: absolute; left: 50%; top: 50%; width: min(110vw, 76vh); height: auto; max-width: none; opacity: 0;
  transform: translate(-50%, -45%) scale(.8); pointer-events: none; will-change: transform, opacity; }
.glow { position: absolute; left: 50%; top: 50%; width: 120vmin; height: 90vmin; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .22), rgba(150, 120, 255, .08) 55%, transparent); opacity: 0; pointer-events: none; }
.book-wrap { perspective: 2200px; opacity: 0; }
.book { position: relative; width: calc(var(--pw) * 2); height: var(--ph); transform-style: preserve-3d; will-change: transform; }
.leaf { position: absolute; left: var(--pw); top: 0; width: var(--pw); height: var(--ph); transform-origin: left center;
  transform-style: preserve-3d; transition: transform 1s cubic-bezier(.45, .05, .2, 1); cursor: pointer; }
.leaf.noanim { transition: none; }
.face-p { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #f3eee4 center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.face-p::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face-p.front { border-radius: 0 3px 3px 0; }
.face-p.front::after { background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 7%); }
.face-p.back { transform: rotateY(180deg); border-radius: 3px 0 0 3px; }
.face-p.back::after { background: linear-gradient(270deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 7%); }
.face-p.endpaper { background: #1b1f4a radial-gradient(circle at 50% 45%, #2b2f6e, #141638); }
.face-p.cover::after, .face-p.backcover::after { background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .25) 2%, transparent 6%); }
.controls { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center;
  align-items: center; gap: 18px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  text-shadow: var(--halo); opacity: 0; transition: opacity .8s; pointer-events: none; }
.controls.on { opacity: 1; pointer-events: auto; }
.controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(232, 192, 106, .4); background: rgba(3, 4, 13, .55);
  color: var(--gold); font-size: 22px; line-height: 1; cursor: pointer; }
.controls button:disabled { opacity: .3; cursor: default; }
#pageLabel { min-width: 16ch; text-align: center; }

/* ---------- inner pages: a short night band ---------- */
.page-head { min-height: 52vh; display: grid; align-items: end; padding: 140px 0 40px; overflow: hidden; }
.page-head .eyebrow { color: var(--gold); text-shadow: var(--halo); }
.page-title { font-size: clamp(40px, 6vw, 76px); font-weight: 900; letter-spacing: .04em; text-transform: none; color: var(--gold-hi); }
.page-lede { font-style: italic; font-size: 1.15em; margin: 12px 0 0; max-width: 40ch; text-shadow: var(--halo); }

/* ---------- the merge: night into the zone ---------- */
.merge { height: calc(var(--vh) * .45); margin-bottom: -2px; background: var(--merge); }
.merge.short { height: 22vh; }

/* ---------- 3. the zone ---------- */
.zone { position: relative; background-color: var(--z-bg); background-image: var(--z-grain); color: var(--z-ink);
  transition: background-color 1.2s ease, color 1.2s ease; }
.zone section { padding-block: clamp(56px, 10vh, 120px); }
.zone .sky.faint { opacity: var(--z-sky-op); transition: opacity 1.2s; }
.wrap { position: relative; max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > figure { order: 2; }
.zone h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15; letter-spacing: .03em; color: var(--z-ink); }
.zone h3 { font-family: var(--display); font-weight: 600; letter-spacing: .06em; margin: 0; }
.zone p { margin: 0 0 1em; max-width: 38em; text-wrap: pretty; }
.lede { font-style: italic; color: var(--z-muted); }
.section-head { margin-bottom: 36px; }
.center, .center-row { text-align: center; }
.center { display: grid; justify-items: center; }
.center-row { margin-top: 32px; }
.center p { margin-left: auto; margin-right: auto; }

/* product: the book as a 3D object (front, spine, page edges), turned to show its spine */
.book3d { margin: 0; justify-self: center; width: min(330px, 74%); perspective: 1600px; position: relative; --t: clamp(28px, 3.4vw, 40px); }
.book3d::before { content: ""; position: absolute; left: 4%; right: -10%; bottom: -5%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--z-shadow), transparent); filter: blur(6px); }
.book3d::after { content: ""; position: absolute; inset: 6% -14% -2% 22%; z-index: -1; border-radius: 6px;
  background: var(--z-shadow); filter: blur(28px); opacity: .7; transform: skewX(-6deg); }
.b3d { position: relative; aspect-ratio: 663 / 1000; transform-style: preserve-3d;
  transform: rotateY(calc(36deg + var(--tilt-y, 0deg))) rotateX(calc(4deg + var(--tilt-x, 0deg)));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.b3d > div { position: absolute; }
.b-front { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; }
.b-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b-front::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .18) 1.6%, rgba(0, 0, 0, .08) 3.5%, transparent 9%),
              linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 35%); }
.b-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #0d0f2a; border-radius: 5px 2px 2px 5px; }
.b-spine { top: 0; bottom: 0; left: calc(var(--t) / -2); width: var(--t); transform: rotateY(-90deg);
  background: linear-gradient(90deg, #070818, #1a1e4c 30%, #232862 55%, #11143a 85%, #070818);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18% 0 8%; overflow: hidden; }
.b-spine span { writing-mode: vertical-rl; font-family: var(--display); color: #e8c06a; white-space: nowrap; }
.s-title { font-weight: 900; font-size: calc(var(--t) * .56); letter-spacing: .12em; }
.s-author { font-weight: 600; font-size: calc(var(--t) * .3); letter-spacing: .2em; text-transform: uppercase; }
.b-pages { top: 1.2%; bottom: 1.2%; right: calc(var(--t) / -2); width: var(--t); transform: rotateY(90deg) translateZ(-3px);
  background: repeating-linear-gradient(90deg, #f3eee2 0 1px, #ddd5c3 1px 2px), #ece5d6;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .18); }
.b-top { left: 0; right: 3px; top: calc(var(--t) / -2); height: var(--t); transform: rotateX(90deg) translateZ(-1px);
  background: repeating-linear-gradient(0deg, #f3eee2 0 1px, #ddd5c3 1px 2px); }

/* story cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 40px 28px; }
.story-card { display: grid; gap: 6px; align-content: start; }
.story-card .card-pic { display: block; margin-bottom: 8px; text-decoration: none; }
.story-card img { display: block; }
.story-card img, .story-card .ph-art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-card .num, .story-row .num { margin: 0; font-family: var(--display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--z-gold); }
.story-card h3 { font-size: 1.15em; }
.story-card h3 a { text-decoration: none; }
.story-card .hook { margin: 2px 0 6px; font-size: .95em; }
.story-card.ready h3 a { color: var(--z-accent); }

/* characters */
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 36px 24px; }
.char { display: grid; justify-items: center; text-align: center; gap: 4px; align-content: start; }
.face { width: min(170px, 100%); aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: 8px; }
.ph-face { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, var(--z-ph), transparent);
  font-family: var(--display); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--z-muted); }
.char h3 { font-size: 1.05em; letter-spacing: .14em; text-transform: uppercase; }
.char .line, .char .ph { font-size: .92em; margin: 0; }
.char .in { font-size: .8em; color: var(--z-muted); margin: 4px 0 0; }
.char .in a { color: var(--z-accent); text-decoration: none; }

/* feature */
.print { margin: 0; }
.enlarge { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.enlarge img { display: block; width: 100%; height: auto; }
.pull { margin: 0 0 18px; font-style: italic; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; color: var(--z-ink); }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.why-card { background: var(--z-card); border: 1px solid var(--z-line); padding: 26px 24px; }
.why-card h3 { font-size: 1em; letter-spacing: .1em; margin-bottom: 10px; color: var(--z-gold); }
.why-card p { margin: 0; font-size: .95em; }

/* closing */
.closing { overflow: hidden; }
.close-line { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; line-height: 1.3;
  font-size: clamp(24px, 3.2vw, 40px); max-width: 22ch; margin: 4vh 0 18px; color: var(--z-ink); }

/* stories page */
.story-rows { display: grid; gap: 56px; }
.story-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.story-row h2 a { text-decoration: none; }
.witness { color: var(--z-muted); font-style: italic; }
.row-pic img, .row-pic .ph-art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* a story page */
.story-page > .wrap + .wrap, .story-page .split + .wrap { margin-top: 64px; }
.hero-art { margin: 0 0 56px; }
.hero-art img { max-height: 78vh; object-fit: cover; }
.hook.big { font-size: 1.35em; font-style: italic; line-height: 1.4; }
.story-text .first::first-letter { font-family: var(--display); font-weight: 900; float: left; font-size: 3.4em; line-height: .82;
  margin: .06em .1em 0 0; color: var(--z-gold); }
.paint-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; align-items: start; }
.paint-row figure { margin: 0; display: grid; gap: 8px; }
figcaption { font-style: italic; font-size: .85em; color: var(--z-muted); }
.prevnext { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--z-line);
  font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.prevnext a { text-decoration: none; color: var(--z-accent); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 40px 0 0; }
.specs div { border-top: 1px solid var(--z-line); padding-top: 10px; }
.specs dt { font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--z-gold); }
.specs dd { margin: 4px 0 0; }

/* footer */
.site-foot { position: relative; z-index: 2; padding: 56px 0 40px; border-top: 1px solid var(--z-line); font-size: 15px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-mark { font-family: var(--display); font-weight: 900; letter-spacing: .3em; text-transform: uppercase; margin: 0; }
.foot-sub { font-style: italic; margin: 4px 0; }
.muted { color: var(--z-muted); }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; align-content: start; }
.foot-links a { text-decoration: none; color: var(--z-accent); }
.foot-small { margin-top: 32px; color: var(--z-muted); font-size: 13px; }
.credits summary { cursor: pointer; font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.credits ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 12.5px; columns: 2 22em; column-gap: 2em; }
.credits li { break-inside: avoid; margin: 0 0 6px; }
.credits b { font-weight: 600; color: var(--z-ink); }

.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(3, 4, 13, .92); display: grid; place-items: center; cursor: zoom-out;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 94vh; box-shadow: 0 20px 80px #000; }

@media (max-width: 900px) {
  .top .links { display: none; }
  .split, .story-row { grid-template-columns: minmax(0, 1fr); }
  .split.rev > figure { order: 0; }
  .book3d { width: min(260px, 66%); }
}
@media (max-width: 640px) {
  .title { bottom: calc(3% + 30px); }
  .scroll-hint { display: none; }
  .top .btn.small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; filter: none; transform: none; }
  .vista, .zone, .merge, .btn { transition: none; }
}
