/* ==========================================================================
   SID-Labs — R&D with AI, shipped
   Base: ink black, brand yellow. Each showcase section carries its own
   palette and type so every project feels like its own world.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

:root {
  --ink: #0A0A0B;
  --ink-2: #121215;
  --ink-3: #1B1B20;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F2F0EA;
  --muted: #A3A099;
  --sid: #FFE500;
  --hot: #FF2D78;

  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sid); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sid); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--sid); color: var(--ink); padding: 8px 14px; border-radius: 8px; }

/* ── type helpers ───────────────────────────────────────── */
.eyebrow, .kicker, .sc-kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.h-display {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 24px;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #CFCCC4; max-width: 62ch; margin: 0; }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sid { background: var(--sid); color: var(--ink); }
.btn-sid:hover { box-shadow: 0 10px 30px -10px rgba(255, 229, 0, .6); }
.btn-ghost { border-color: rgba(255, 255, 255, .25); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* ── reveal on scroll ───────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gut);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(10, 10, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { font-family: var(--f-display); font-weight: 900; font-size: 1.1rem; letter-spacing: -.03em; text-decoration: none; color: var(--text); }
.brand span { color: var(--sid); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #D6D3CB; transition: color .2s; }
.nav-links a:hover { color: var(--sid); }
.nav-cta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 229, 0, .5); color: var(--sid); transition: background .2s, color .2s; }
.nav-cta:hover { background: var(--sid); color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate;
  padding: 120px 0 0;
}
.hero-wall {
  position: absolute; inset: -10% -6%; z-index: -2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  transform: rotate(-8deg) scale(1.08);
  opacity: .55;
}
.wall-col { display: flex; flex-direction: column; gap: 14px; animation: wall var(--d, 80s) linear infinite; }
.wall-col.rev { animation-direction: reverse; }
.wall-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; filter: saturate(1.1); }
@keyframes wall { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(10,10,11,.92) 0%, rgba(10,10,11,.75) 45%, rgba(10,10,11,.35) 100%),
    linear-gradient(180deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 30%, rgba(10,10,11,0) 70%, var(--ink) 100%);
}
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) 60px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: #E8E5DD; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sid); box-shadow: 0 0 0 0 rgba(255,229,0,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,229,0,.6); } 70% { box-shadow: 0 0 0 12px rgba(255,229,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,229,0,0); } }
.hero-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.8rem, 7.6vw, 7.6rem);
  line-height: .9; letter-spacing: -.05em;
  margin: 0 0 32px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--text); }
.hero-title mark { background: none; color: var(--sid); }
.hero-lede { max-width: 58ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #DAD7CF; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(10,10,11,.65); backdrop-filter: blur(6px); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; padding: 16px 28px; color: #CFCCC4; white-space: nowrap; border-right: 1px solid var(--line); }
.ticker-track b { color: var(--sid); font-weight: 600; margin-left: 6px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   METHOD
   ========================================================================== */
.method { padding: clamp(90px, 12vw, 160px) 0; background: radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255,229,0,.06), transparent 70%), var(--ink); }
.method-head { max-width: 860px; margin-bottom: 64px; }
.crew { list-style: none; margin: 0 0 80px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.crew-card {
  position: relative; padding: 28px 26px 26px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.crew-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--a); opacity: .9; }
.crew-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%; background: var(--a); opacity: .07; filter: blur(10px); transition: opacity .3s; }
.crew-card:hover { border-color: color-mix(in srgb, var(--a) 50%, transparent); transform: translateY(-4px); }
.crew-card:hover::after { opacity: .16; }
.crew-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.crew-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; margin: 10px 0 8px; }
.crew-card p { margin: 0; color: #BDBAB2; font-size: 15.5px; }

.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.loop li { padding: 26px 18px 0 0; position: relative; }
.loop li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--sid); }
.loop span { font-family: var(--f-mono); font-size: 12px; color: var(--sid); }
.loop h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 6px; }
.loop p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

@media (max-width: 980px) {
  .crew { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
}
@media (max-width: 600px) {
  .crew { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   WORK INDEX
   ========================================================================== */
.work { padding: 40px 0 clamp(90px, 12vw, 150px); position: relative; }
.index { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 20px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative; z-index: 2;
  transition: padding .4s var(--ease), color .3s;
}
.index .n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.index .t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 4.4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.index .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.index a:hover { padding-left: 22px; color: var(--sid); }
.index a:hover .k { color: var(--text); }
.index-peek {
  position: fixed; left: 0; top: 0; width: 340px; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 14px; pointer-events: none; z-index: 1;
  opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg);
  transition: opacity .25s, transform .35s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.index-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
@media (max-width: 720px) {
  .index a { grid-template-columns: 40px 1fr; }
  .index .k { grid-column: 2; text-align: left; }
  .index-peek { display: none; }
}

/* ── shared showcase bits ──────────────────────────────── */
.sc { position: relative; overflow: hidden; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.labnote {
  position: relative; margin-top: 70px; margin-bottom: 0;
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start;
}
.labnote > * { position: relative; }
.labnote-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border: 1px solid currentColor; border-radius: 6px; justify-self: start; opacity: .8; }
.labnote p { margin: 0; max-width: 76ch; font-size: 15.5px; line-height: 1.65; opacity: .85; }
@media (max-width: 720px) { .labnote { grid-template-columns: 1fr; gap: 12px; } }

/* 3D viewers (shared) */
.viewer { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 22px; overflow: hidden; touch-action: pan-y; cursor: grab; }
.viewer:active { cursor: grabbing; }
.viewer canvas, .book-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewer-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; transition: opacity .4s; pointer-events: none; }
.viewer-load span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; }
.viewer.ready .viewer-load, .book-canvas.ready .viewer-load { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: inherit; transition: background .2s, border-color .2s, color .2s; }
.chip[aria-selected="true"] { background: var(--chip-on, #fff); color: var(--chip-on-text, #000); border-color: transparent; }

/* ==========================================================================
   01 LITHIFYTE — deep space, Geist, cool cyan/violet
   ========================================================================== */
.sc-lith {
  --l-bg: #050B1A; --l-cyan: #38BDF8; --l-violet: #8B5CF6; --l-green: #34D399;
  background: radial-gradient(ellipse 80% 60% at 75% 40%, rgba(139,92,246,.18), transparent 60%), radial-gradient(ellipse 60% 50% at 10% 90%, rgba(56,189,248,.12), transparent 60%), var(--l-bg);
  color: #E6ECF7; font-family: 'Geist', var(--f-body);
  padding: clamp(100px, 12vw, 160px) 0 clamp(80px, 10vw, 120px);
}
.lith-stars { position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 15%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 65%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, #b9c8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 45%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 60%, #fff 50%, transparent 51%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 300px 300px, 460px 460px, 350px 350px;
}
.lith-grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sc-lith .sc-kicker { color: #8FA3C7; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--l-green); box-shadow: 0 0 12px var(--l-green); }
.lith-title { font-family: 'Geist', var(--f-body); font-weight: 800; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 22px; }
.lith-title span { background: linear-gradient(90deg, var(--l-cyan), var(--l-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lith-lede { color: #B7C3DA; font-size: 1.1rem; margin: 0 0 30px; }
.lith-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.lith-facts li { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(143,163,199,.18); }
.lith-facts b { font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; color: #fff; }
.lith-facts span { color: #A9B6CF; font-size: 15px; }
.btn-lith { background: linear-gradient(135deg, #0EA5E9, #2563EB); color: #fff; box-shadow: 0 0 0 1px rgba(56,189,248,.4) inset, 0 12px 34px -12px rgba(56,189,248,.7); }
.sc-lith .btn-ghost { border-color: rgba(143,163,199,.35); }
.sc-lith .link-arrow { color: #9DB4DA; }
.lith-shot { margin: 0; position: relative; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.lith-shot img { border-radius: 18px; border: 1px solid rgba(143,163,199,.25); box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 120px -30px rgba(139,92,246,.55); }
.lith-shot figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6F80A3; margin-top: 14px; text-align: right; }
.sc-lith .labnote { color: #B7C3DA; }
@media (max-width: 900px) { .lith-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   02 ROADSWORN — royal blue & gold, Cinzel
   ========================================================================== */
.sc-rs {
  --r-gold: #F2C14E; --r-gold-2: #FFDF8A; --r-blue: #1E3A8A; --r-night: #0C1430;
  background: linear-gradient(180deg, #0C1430 0%, #111A3A 50%, #0B1126 100%);
  color: #F4EBD8;
  padding-bottom: clamp(80px, 10vw, 120px);
}
.rs-banner { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; }
.rs-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); will-change: transform; }
.rs-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,48,.2) 0%, rgba(12,20,48,0) 35%, rgba(12,20,48,.85) 85%, #0C1430 100%), linear-gradient(90deg, rgba(12,20,48,.75) 0%, rgba(12,20,48,0) 55%); }
.rs-banner-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(30px, 6vw, 70px); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sc-rs .sc-kicker { color: var(--r-gold-2); }
.rs-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(3rem, 11vw, 9rem); line-height: .9; letter-spacing: .02em; margin: 0; background: linear-gradient(180deg, #FFF3C4 0%, var(--r-gold) 55%, #B8822A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.rs-tag { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(.85rem, 1.4vw, 1.1rem); margin: 14px 0 0; color: #F4EBD8; }
.rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-top: clamp(40px, 6vw, 70px); }
.sc-rs .viewer { background: radial-gradient(circle at 50% 42%, rgba(242,193,78,.28), rgba(30,58,138,.35) 45%, rgba(12,20,48,0) 70%); border: 1px solid rgba(242,193,78,.25); color: var(--r-gold-2); }
.sc-rs .viewer::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 13%; height: 7%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%); pointer-events: none; }
.sc-rs .chips { --chip-on: var(--r-gold); --chip-on-text: #1A1405; }
.sc-rs .chip { border-color: rgba(242,193,78,.35); font-family: 'Cinzel', serif; letter-spacing: .04em; }
.rs-lede { font-size: 1.12rem; color: #E2D8C2; margin: 0 0 28px; }
.rs-stats { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rs-stats li { padding: 18px 16px; border-radius: 14px; background: rgba(242,193,78,.06); border: 1px solid rgba(242,193,78,.2); }
.rs-stats b { display: block; font-family: 'Cinzel', serif; font-weight: 900; font-size: 2.4rem; color: var(--r-gold); line-height: 1; }
.rs-stats span { font-size: 13.5px; color: #CFC4AC; display: block; margin-top: 8px; line-height: 1.4; }
.rs-note { font-size: 14.5px; color: #B8AE98; margin: 0; }
.rs-roads { margin-top: clamp(50px, 7vw, 80px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rs-roads-track { display: flex; gap: 16px; width: max-content; animation: ticker 70s linear infinite; padding: 0 16px; }
.rs-roads:hover .rs-roads-track { animation-play-state: paused; }
.rs-roads figure { margin: 0; width: 200px; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(242,193,78,.25); flex-shrink: 0; }
.rs-roads img { width: 100%; aspect-ratio: 4 / 7; object-fit: cover; transition: transform .6s var(--ease); }
.rs-roads figure:hover img { transform: scale(1.06); }
.rs-roads figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; font-family: 'Cinzel', serif; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-align: center; background: linear-gradient(transparent, rgba(8,10,24,.92)); color: var(--r-gold-2); }
.sc-rs .labnote { color: #E2D8C2; }
@media (max-width: 900px) { .rs-grid { grid-template-columns: 1fr; } .rs-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .rs-stats { grid-template-columns: 1fr; } }

/* ==========================================================================
   03 THE LAST THRESHOLD — charcoal & ember, Cormorant
   ========================================================================== */
.sc-lt {
  --t-ember: #E8743B; --t-ember-2: #F5A86B; --t-ash: #0E0D0C; --t-stone: #1A1816;
  background: var(--t-ash); color: #E9E2D6;
  padding-bottom: clamp(80px, 10vw, 120px);
}
.lt-hero { position: relative; height: min(92vh, 860px); min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; }
.lt-hero-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: saturate(.85) contrast(1.05) brightness(.8); will-change: transform; }
.lt-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 70% at 50% 40%, transparent 30%, rgba(14,13,12,.85) 100%), linear-gradient(180deg, rgba(14,13,12,.5), transparent 30%, rgba(14,13,12,.4) 60%, var(--t-ash) 100%); }
.lt-embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lt-embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--t-ember-2); box-shadow: 0 0 10px 2px rgba(232,116,59,.8); opacity: 0; animation: ember linear infinite; }
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--dx, 40px), -95vh); opacity: 0; }
}
.lt-hero-text { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vw, 90px); width: 100%; }
.sc-lt .sc-kicker { color: var(--t-ember-2); }
.lt-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(3.4rem, 10vw, 8.6rem); line-height: .86; letter-spacing: -.02em; margin: 0; color: #F3ECDF; text-shadow: 0 8px 40px rgba(0,0,0,.7); }
.lt-title i { font-weight: 500; color: var(--t-ember-2); }
.lt-tag { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 18px 0 0; color: #D9CFC0; }
.lt-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-top: clamp(30px, 5vw, 60px); }
.lt-copy p { font-size: 1.12rem; color: #D2C9BA; margin: 0 0 28px; }
.lt-copy b { color: var(--t-ember-2); font-weight: 600; }
.lt-stats { list-style: none; padding: 0; margin: 0; }
.lt-stats li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(232,116,59,.2); }
.lt-stats b { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--t-ember); }
.lt-stats span { color: #BDB3A3; font-size: 15px; }
.sc-lt .viewer { background: radial-gradient(circle at 50% 45%, rgba(232,116,59,.22), rgba(26,24,22,.9) 60%), var(--t-stone); border: 1px solid rgba(232,116,59,.22); color: var(--t-ember-2); }
.sc-lt .chips { --chip-on: var(--t-ember); --chip-on-text: #160A04; }
.sc-lt .chip { border-color: rgba(232,116,59,.35); font-family: 'Cormorant Garamond', serif; font-size: 16px; }
.lt-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(50px, 7vw, 80px); }
.lt-gallery figure { margin: 0; overflow: hidden; border-radius: 6px; position: relative; }
.lt-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.85); }
.lt-gallery figure:hover img { transform: scale(1.05); filter: saturate(1.05); }
.lt-gallery figcaption { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; color: #B3A895; padding: 10px 2px 0; }
.sc-lt .labnote { color: #D2C9BA; }
@media (max-width: 900px) { .lt-grid { grid-template-columns: 1fr; } .lt-gallery { grid-template-columns: 1fr; } }

/* ==========================================================================
   04 ARC BARRIAN ISLAND — sky, candy, Fredoka
   ========================================================================== */
.sc-ab {
  --b-sky: #6EC6FF; --b-sky-2: #BDE7FF; --b-grass: #4CD07D; --b-ink: #18324A; --b-sun: #FFD43B; --b-coral: #FF6B6B;
  background: linear-gradient(180deg, #8ED3FF 0%, #BDE7FF 40%, #E8F7FF 100%);
  color: var(--b-ink); font-family: 'Fredoka', var(--f-body);
  padding: clamp(90px, 11vw, 150px) 0 clamp(80px, 10vw, 120px);
}
.ab-clouds { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background:
    radial-gradient(60px 36px at 12% 14%, #fff 98%, transparent 100%),
    radial-gradient(90px 44px at 17% 12%, #fff 98%, transparent 100%),
    radial-gradient(70px 38px at 82% 8%, #fff 98%, transparent 100%),
    radial-gradient(110px 50px at 88% 10%, #fff 98%, transparent 100%),
    radial-gradient(80px 34px at 60% 4%, rgba(255,255,255,.8) 98%, transparent 100%);
  animation: clouds 60s linear infinite alternate;
}
@keyframes clouds { to { transform: translateX(-4%); } }
.ab-head { position: relative; max-width: 800px; }
.sc-ab .sc-kicker { color: #2D6A93; font-family: var(--f-mono); }
.ab-title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: .95; margin: 0 0 20px; color: #fff; letter-spacing: -.01em;
  text-shadow: 0 4px 0 #2D7FD0, 0 8px 0 #1F5E9E, 0 16px 30px rgba(31,94,158,.35); }
.ab-title span { color: var(--b-sun); text-shadow: 0 4px 0 #E09A00, 0 8px 0 #B37500, 0 16px 30px rgba(179,117,0,.3); }
.ab-lede { font-size: 1.15rem; line-height: 1.6; color: #24435E; margin: 0; font-weight: 500; }
.ab-grid { position: relative; display: grid; grid-template-columns: 8fr 4fr; gap: 26px; margin-top: 44px; align-items: center; }
.ab-shot { margin: 0; border-radius: 28px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 12px 0 #9FD3F5, 0 30px 60px -20px rgba(24,50,74,.45); transform: rotate(-1deg); }
.ab-cast { display: grid; gap: 22px; }
.ab-narr { display: flex; align-items: center; gap: 12px; }
.ab-narr img { width: 120px; height: 120px; border-radius: 28px; background: #fff; border: 5px solid #fff; box-shadow: 0 8px 0 #9FD3F5; object-fit: cover; flex-shrink: 0; animation: bob 3.6s ease-in-out infinite; }
.ab-narr:nth-child(2) img { animation-delay: -1.8s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(2deg); } }
.bubble { position: relative; margin: 0; background: #fff; border-radius: 18px; padding: 12px 16px; font-weight: 600; font-size: 1.02rem; box-shadow: 0 6px 0 #9FD3F5; }
.bubble::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.piano-wrap { margin-top: 56px; display: grid; grid-template-columns: 4fr 8fr; gap: 34px; align-items: center; background: #fff; border-radius: 30px; padding: clamp(20px, 3vw, 34px); box-shadow: 0 12px 0 #9FD3F5, 0 30px 60px -30px rgba(24,50,74,.4); }
.piano-head h3 { font-weight: 700; font-size: 1.9rem; margin: 0 0 8px; }
.piano-head p { margin: 0 0 18px; color: #3E5A73; font-weight: 500; }
kbd { font-family: var(--f-mono); font-size: .85em; background: #EEF6FC; border: 1px solid #C8DDED; border-bottom-width: 3px; border-radius: 6px; padding: 1px 6px; }
.btn-ab { background: var(--b-coral); color: #fff; font-family: 'Fredoka', sans-serif; font-size: 16px; box-shadow: 0 5px 0 #C94848; white-space: normal; text-align: center; }
.btn-ab:hover { box-shadow: 0 7px 0 #C94848; }
.btn-ab:active { transform: translateY(3px); box-shadow: 0 2px 0 #C94848; }
.piano { position: relative; display: flex; height: 200px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.key { flex: 1; position: relative; border: 0; cursor: pointer; border-radius: 0 0 14px 14px; margin: 0 2px; padding: 0 0 12px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; background: #fff; box-shadow: inset 0 0 0 2px #D7E6F2, 0 6px 0 #C4D7E6; transition: transform .08s, box-shadow .08s; font-family: 'Fredoka', sans-serif; }
.key .note { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--kc); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.key .hk { font-family: var(--f-mono); font-size: 11px; color: #7C93A8; }
.key.down, .key:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--kc), 0 2px 0 #C4D7E6; background: color-mix(in srgb, var(--kc) 18%, #fff); }
.key.hint { box-shadow: inset 0 0 0 3px var(--kc), 0 6px 0 #C4D7E6; }
.key.black { position: absolute; top: 0; z-index: 2; width: 9%; height: 58%; margin: 0; border-radius: 0 0 10px 10px; background: #1E2A38; box-shadow: 0 5px 0 #0D141C; color: #9FB3C6; padding-bottom: 8px; }
.key.black .hk { color: #8DA2B6; }
.key.black.down, .key.black:active { background: #33475C; box-shadow: 0 2px 0 #0D141C; }
.ab-stats { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ab-stats li { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 8px 0 #9FD3F5; text-align: center; }
.ab-stats li:nth-child(1) b { color: #2D7FD0; }
.ab-stats li:nth-child(2) b { color: #E04F7E; }
.ab-stats li:nth-child(3) b { color: #18A058; }
.ab-stats li:nth-child(4) b { color: #E08A00; }
.ab-stats b { display: block; font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; }
.ab-stats span { display: block; margin-top: 6px; font-weight: 500; color: #3E5A73; font-size: 15px; }
.sc-ab .labnote { color: var(--b-ink); }
.sc-ab .labnote p { opacity: 1; color: #2C4A64; font-family: var(--f-body); }
@media (max-width: 900px) {
  .ab-grid, .piano-wrap { grid-template-columns: 1fr; }
  .ab-cast { grid-template-columns: 1fr 1fr; }
  .ab-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ab-cast { grid-template-columns: 1fr; }
  .piano { height: 170px; }
  .key .note { width: 24px; height: 24px; font-size: 13px; }
  .key { margin: 0 1px; }
}

/* ==========================================================================
   05 THE BIBLE YOU MISSED — cinema black, gold, Playfair
   ========================================================================== */
.sc-bym {
  --g-gold: #C9A45C; --g-gold-2: #E7CC8F;
  background: #050505; color: #EDE6D8;
  padding: 0 0 clamp(80px, 10vw, 120px);
}
.letterbox { height: clamp(28px, 5vw, 56px); background: #000; position: relative; z-index: 2; }
.letterbox.top { box-shadow: 0 20px 40px #000; }
.bym-head { position: relative; padding-top: clamp(70px, 9vw, 120px); padding-bottom: 40px; max-width: 900px; margin-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); }
.sc-bym .sc-kicker { color: var(--g-gold); }
.bym-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(2.8rem, 8vw, 6.6rem); line-height: .95; margin: 0 0 26px; letter-spacing: -.01em; }
.bym-title i { font-weight: 600; color: var(--g-gold-2); }
.bym-title::after { content: ""; display: block; width: 90px; height: 3px; background: var(--g-gold); margin-top: 24px; }
.bym-lede { font-size: 1.12rem; color: #CFC6B5; margin: 0 0 30px; max-width: 64ch; }
.bym-lede b { color: #fff; font-weight: 600; }
.bym-stats { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.bym-stats b { display: block; font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--g-gold-2); }
.bym-stats span { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #A99F8B; }
.btn-bym { background: transparent; color: var(--g-gold-2); border: 1px solid var(--g-gold); font-family: 'Playfair Display', serif; font-size: 16px; letter-spacing: .04em; }
.btn-bym::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-bym:hover { background: var(--g-gold); color: #000; }
.reel { overflow: hidden; padding: 22px 0; background: #0B0A08; border-top: 1px solid #1d1a14; border-bottom: 1px solid #1d1a14; position: relative; }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 2;
  background: repeating-linear-gradient(90deg, transparent 0 14px, #1e1b15 14px 26px); }
.reel::before { top: 4px; } .reel::after { bottom: 4px; }
.reel-track { display: flex; gap: 14px; width: max-content; animation: ticker 80s linear infinite; padding: 10px 14px; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel figure { margin: 0; width: 380px; flex-shrink: 0; }
.reel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; filter: grayscale(.25) contrast(1.05); transition: filter .4s; }
.reel figure:hover img { filter: none; }
.reel figcaption { font-family: 'Playfair Display', serif; font-style: italic; font-size: 15px; color: #A99F8B; padding-top: 10px; }
.sc-bym .labnote { color: #CFC6B5; }
@media (max-width: 600px) { .reel figure { width: 280px; } }

/* ==========================================================================
   06 HAPPYLOG — cream, pastel tiles, hard ink borders (the app's own look)
   ========================================================================== */
.sc-hl {
  --h-bg: #FFF8DC; --h-ink: #1A1A1A; --h-soft: #4A4A4A;
  background: radial-gradient(circle at 1px 1px, rgba(26,26,26,.09) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--h-bg);
  color: var(--h-ink); font-family: 'Nunito', var(--f-body);
  padding: clamp(90px, 11vw, 150px) 0 clamp(80px, 10vw, 120px);
}
.hl-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sc-hl .sc-kicker { color: #6B6B6B; }
.hl-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(3rem, 8vw, 6.4rem); line-height: .9; margin: 0; letter-spacing: -.02em; }
.hl-title span { background: #FFF3A8; padding: 0 .12em; border: 3px solid var(--h-ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--h-ink); display: inline-block; transform: rotate(-2deg); margin-left: .06em; }
.hl-sub { font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 22px 0 14px; }
.hl-lede { font-size: 1.08rem; color: var(--h-soft); margin: 0 0 22px; font-weight: 500; }
.hl-chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.hl-chips li { background: var(--c); border: 2px solid var(--h-ink); border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: 14px; box-shadow: 2px 2px 0 var(--h-ink); }
.hl-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hl-stats li { background: #fff; border: 2px solid var(--h-ink); border-radius: 16px; padding: 14px; box-shadow: 4px 4px 0 var(--h-ink); }
.hl-stats b { display: block; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.hl-stats span { display: block; font-size: 13.5px; font-weight: 700; color: var(--h-soft); margin-top: 6px; line-height: 1.35; }
.hl-device { margin: 0; }
.hl-tablet { background: #FFF8DC; border: 3px solid var(--h-ink); border-radius: 30px; padding: 18px; box-shadow: 10px 10px 0 var(--h-ink); outline: 14px solid #2A2A35; outline-offset: 0; transform: rotate(1.2deg); }
.hl-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: var(--h-ink); color: #FFFDF2; border-radius: 14px; padding: 12px 16px; }
.hl-room { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.25rem; }
.hl-date { font-weight: 700; font-size: 13px; opacity: .8; }
.hl-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.hl-modes span { border: 2px solid var(--h-ink); border-radius: 999px; padding: 4px 11px; font-weight: 800; font-size: 13px; background: #fff; }
.hl-modes .on { background: var(--h-ink); color: #FFFDF2; }
.hl-kids { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hl-kids li { background: var(--c); border: 2px solid var(--h-ink); border-radius: 16px; padding: 12px 10px; box-shadow: 3px 3px 0 var(--h-ink); display: grid; justify-items: center; text-align: center; gap: 3px; }
.hl-kids i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--h-ink); background: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; }
.hl-kids b { font-weight: 800; font-size: 14.5px; }
.hl-kids em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--h-soft); }
.hl-kids li.due { animation: hl-due 2.4s ease-in-out infinite; }
.hl-kids li.due em { color: #9C6310; }
@keyframes hl-due { 50% { box-shadow: 3px 3px 0 var(--h-ink), 0 0 0 5px rgba(255, 176, 32, .55); } }
.hl-pin { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px dashed var(--h-ink); border-radius: 14px; padding: 9px; font-weight: 800; font-size: 13px; color: var(--h-soft); }
.hl-pin b { letter-spacing: .2em; color: var(--h-ink); }
.hl-device figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6B6B6B; margin-top: 30px; text-align: center; }
.sc-hl .labnote { color: var(--h-ink); }
.sc-hl .labnote p { opacity: 1; color: var(--h-soft); }
@media (max-width: 900px) { .hl-grid { grid-template-columns: 1fr; } .hl-tablet { transform: none; } }
@media (max-width: 520px) { .hl-kids { grid-template-columns: 1fr 1fr; } .hl-stats { grid-template-columns: 1fr; } .hl-tablet { outline-width: 8px; padding: 12px; } }

/* ==========================================================================
   07 THE BOOK — warm paper, navy ink, the one light section
   ========================================================================== */
.sc-book {
  --p-paper: #EFE8DA; --p-ink: #14243A; --p-navy: #1F4E79; --p-gold: #B8913F;
  background:
    radial-gradient(ellipse 60% 70% at 25% 50%, rgba(255,255,255,.65), transparent 70%),
    var(--p-paper);
  color: var(--p-ink);
  padding: clamp(90px, 11vw, 150px) 0;
}
.book-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.book-stage { position: sticky; top: 80px; }
.book-canvas { position: relative; aspect-ratio: 1 / 1; width: 100%; cursor: grab; touch-action: pan-y; color: var(--p-navy); }
.book-canvas:active { cursor: grabbing; }
.book-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.btn-book { background: var(--p-navy); color: #fff; }
.btn-book:hover { box-shadow: 0 10px 26px -10px rgba(31,78,121,.7); }
.btn-book-ghost { border-color: rgba(20,36,58,.3); color: var(--p-ink); background: transparent; }
.btn-book-ghost:hover { border-color: var(--p-ink); }
.sc-book .sc-kicker { color: #6B6253; }
.book-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 12px; color: var(--p-ink); }
.book-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.25rem; color: var(--p-navy); margin: 0 0 8px; }
.book-by { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6B6253; margin: 0 0 30px; }
.claim { margin: 0 0 28px; padding: 26px 28px; border-left: 4px solid var(--p-gold); background: rgba(255,255,255,.55); border-radius: 0 14px 14px 0; }
.claim p { margin: 0; font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.claim strong { color: var(--p-navy); }
.claim cite { display: block; margin-top: 12px; font-family: var(--f-mono); font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8A7F6A; }
.book-lede { margin: 0 0 20px; font-size: 1.05rem; color: #2C3B50; }
.toc { border-top: 1px solid rgba(20,36,58,.18); border-bottom: 1px solid rgba(20,36,58,.18); padding: 12px 0; margin-bottom: 20px; }
.toc summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.2em; transition: transform .3s; }
.toc[open] summary::after { transform: rotate(45deg); }
.toc ol { margin: 12px 0 4px; padding-left: 1.6em; columns: 2; column-gap: 30px; font-size: 15px; color: #33435A; }
.toc li { break-inside: avoid; padding: 2px 0; }
.book-edit { font-size: 14.5px; color: #4C5869; margin: 0 0 26px; }
.sub-book label { display: block; font-weight: 600; margin-bottom: 10px; }
.sub-form.sub-book input { background: #fff; color: var(--p-ink); border-color: rgba(20,36,58,.25); }
.sub-book .sub-msg { color: var(--p-navy); }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } .book-stage { position: static; } .toc ol { columns: 1; } }

/* ==========================================================================
   THE REST OF THE LAB
   ========================================================================== */
.lab { padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 9vw, 110px); }
.lab-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lab-grid > li { grid-column: span 2; }
.lab-grid > li:nth-child(n+4) { grid-column: span 3; }
.lab-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .4s var(--ease); }
.lab-card:hover { border-color: rgba(255,229,0,.35); transform: translateY(-4px); }
.lab-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; margin: 4px 0 0; }
.lab-card p { margin: 0; color: #B6B3AB; font-size: 15.5px; flex: 1; }
.lab-card .link-arrow { align-self: flex-start; color: var(--sid); font-size: 14px; margin-top: 6px; }
.status { align-self: flex-start; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid currentColor; }
.s-live { color: #5EE6B0; } .s-build { color: #FFE500; } .s-pilot { color: #7CC4FF; } .s-research { color: #C9A0FF; } .s-concept { color: #FF8FB5; }
@media (max-width: 980px) { .lab-grid { grid-template-columns: 1fr 1fr; } .lab-grid > li, .lab-grid > li:nth-child(n+4) { grid-column: auto; } .lab-grid > li:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .lab-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   NUMBERS
   ========================================================================== */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sid); color: var(--ink); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
.num { padding: 44px 24px 40px 0; }
.num b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: .9; letter-spacing: -.05em; }
.num span { display: block; margin-top: 10px; font-weight: 500; font-size: 15px; max-width: 24ch; }
@media (max-width: 800px) { .numbers-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   JOIN + forms
   ========================================================================== */
.join { padding: clamp(100px, 12vw, 170px) 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255,45,120,.12), transparent 70%), var(--ink); }
.join-inner { max-width: 820px; text-align: center; }
.join .lede { margin: 0 auto 36px; }
.sub-form { max-width: 560px; }
.join .sub-form { margin: 0 auto; }
.sub-row { display: flex; gap: 10px; }
.sub-form input {
  flex: 1; min-width: 0;
  padding: 14px 18px; border-radius: 999px;
  background: var(--ink-2); color: var(--text);
  border: 1px solid rgba(255,255,255,.18);
  font: 500 16px var(--f-body);
}
.sub-form input:focus { outline: none; border-color: var(--sid); }
.sub-msg { min-height: 1.5em; margin: 12px 0 0; font-size: 14.5px; color: var(--sid); }
.sub-msg.err { color: #FF7A9C; }
@media (max-width: 520px) { .sub-row { flex-direction: column; } .sub-row .btn { width: 100%; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { border-top: 1px solid var(--line); padding: 40px 0 50px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; justify-content: space-between; }
.foot p { margin: 0; color: var(--muted); font-size: 14px; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.foot ul a { font-size: 14px; color: #CFCCC4; text-decoration: none; }
.foot ul a:hover { color: var(--sid); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .hero-title .line > span { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .wall-col, .ticker-track, .rs-roads-track, .reel-track { animation: none !important; }
  .rs-roads, .reel { overflow-x: auto; }
}
