/* ============================================================
   RUDELEAF // LIVING STUDIO — design system
   Dark luxury · neo-futurism · creative laboratory.
   Base is monochrome graphite/chrome; accents ignite only on
   interaction & per-room lighting.
   ============================================================ */

:root {
  --bg: #070b09;
  --bg2: #0d1210;
  --bg3: #141b16;
  --ink: #eaf3ee;
  --ink-dim: #8aa197;
  --line: #1e2822;

  --lime: #3ee87e;    /* NEON LEAF GREEN — primary */
  --purple: #9d6bff;  /* pixel purple */
  --blue: #35e0c8;    /* signal teal */
  --orange: #f5c451;  /* chain gold */

  /* active accent (set per-section + globally by world.js) */
  --accent: #3ee87e;
  --accent-rgb: 62, 232, 126;

  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-d: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* interaction vars driven by world.js */
  --mx: 0; --my: 0; --sy: 0; --cx: -100px; --cy: -100px;

  /* ---- card hover system ----
     Every card used to hover differently (lifts of -3/-4/-5/-6/-8px, border
     alphas of .45/.5/.6/solid). Two tiers now: `stage` = large picture surfaces
     (.case-cover, .artifact); `card` = everything smaller. --glow-card is .reel's
     old recipe verbatim — it was the median, so most cards don't visibly change.
     Hero surfaces that deliberately DON'T translate (.ss-stage, .motion-featured)
     are excluded on purpose — they'd fight their own running animations. */
  --lift-stage: -6px;
  --lift-card: -4px;
  --glow-stage: 0 30px 90px rgba(0,0,0,.5), 0 0 60px rgba(var(--accent-rgb), .14);
  --glow-card: 0 20px 50px rgba(0,0,0,.45), 0 0 40px rgba(var(--accent-rgb), .12);
  --hover-line: rgba(var(--accent-rgb), .55);
}

/* accent palette per section */
[data-accent="lime"]   { --accent: var(--lime);   --accent-rgb: 62, 232, 126; }
[data-accent="purple"] { --accent: var(--purple); --accent-rgb: 157, 107, 255; }
[data-accent="blue"]   { --accent: var(--blue);   --accent-rgb: 53, 224, 200; }
[data-accent="orange"] { --accent: var(--orange); --accent-rgb: 245, 196, 81; }

* { box-sizing: border-box; }
::selection { background: rgba(var(--accent-rgb), .28); color: #fff; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #22262f; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #333844; }

/* ---------- IMMERSIVE STAGE + DEPTH FIELD ---------- */
#stage {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  pointer-events: none;
}
.depthfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.df { position: absolute; inset: -10%; will-change: transform; }
.df-radial {
  background:
    radial-gradient(1200px 900px at 50% -10%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(900px 700px at 15% 110%, rgba(var(--accent-rgb), .10), transparent 60%);
  transition: background .8s ease;
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 14px), 0);
}
.df-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 26px + var(--sy) * .015px), 0);
  opacity: .7;
}
.df-glow {
  background: radial-gradient(60% 50% at 50% 60%, rgba(var(--accent-rgb), .16), transparent 70%);
  filter: blur(20px); opacity: .55;
  transition: background .9s ease, opacity .9s ease;
  transform: translate3d(calc(var(--mx) * -20px), calc(var(--my) * -16px), 0);
}
.df-scan {
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.014) 3px 4px);
  opacity: .4; mix-blend-mode: overlay;
}

/* ---------- HEADER ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(18px, 4vw, 44px);
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
#topbar.scrolled {
  background: linear-gradient(180deg, rgba(5,6,10,.72), rgba(5,6,10,0));
  backdrop-filter: blur(10px); padding-top: 14px; padding-bottom: 14px;
}
.brand {
  font-family: var(--font-d); font-weight: 700; font-size: 20px; letter-spacing: .02em;
}
.brand i { font-style: normal; color: var(--lime); text-shadow: 0 0 20px rgba(201,255,60,.5); }
.topnav { display: flex; gap: 4px; align-items: center; }
.topnav a {
  font-family: var(--font-m); font-size: 10px; letter-spacing: .2em;
  color: var(--ink-dim); padding: 8px 12px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.topnav a:hover, .topnav a.active { color: var(--ink); background: rgba(255,255,255,.06); }
.topnav a.active { color: var(--accent); }
.menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.2px) rotate(-45deg); }

/* ---------- CHAPTER SHELL ---------- */
#world { position: relative; z-index: 2; }
/* Section padding is paid on BOTH sides, so every boundary stacks two of these
   back to back. At 90+110 that was ~220px of dead space between every room —
   ~1390px, 13% of the page. Halved: a clear breath, not a void.
   min-height:100vh stays — it's what keeps the JS-populated #studio/#final from
   collapsing to a padding-sliver before app.js runs. */
.chapter {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(56px, 7vh, 104px) clamp(18px, 5vw, 60px);
}
.chapter-tall { min-height: auto; padding-top: clamp(64px, 8vh, 120px); padding-bottom: clamp(64px, 8vh, 120px); }
.chapter-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-m); font-size: 11px; letter-spacing: .34em;
  color: var(--accent); margin: 0 0 18px; text-transform: uppercase;
  text-shadow: 0 0 18px rgba(var(--accent-rgb), .35);
}
.room-head { margin-bottom: clamp(40px, 6vw, 76px); max-width: 900px; }
.room-title {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(40px, 8vw, 92px); line-height: .98; letter-spacing: -.02em;
  margin: 0; color: var(--ink);
}
.room-sub { color: var(--ink-dim); font-size: clamp(15px, 1.4vw, 18px); margin: 18px 0 0; max-width: 620px; }

/* ---------- REVEAL SYSTEM (armed by world.js via .fourd) ---------- */
.fourd [data-reveal="lift"] {
  opacity: 0; transform: perspective(1200px) translateY(42px) translateZ(-120px) rotateX(7deg);
  transform-origin: 50% 100%;
  transition: opacity .9s ease, transform .95s var(--ease);
}
.fourd [data-reveal="slab"] {
  opacity: 0; transform: perspective(1300px) translateY(60px) translateZ(-180px) rotateX(8deg);
  transform-origin: 50% 100%;
  transition: opacity .95s ease, transform 1.05s var(--ease);
}
.fourd [data-reveal="fade"] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s var(--ease); }
.fourd [data-reveal].in { opacity: 1; transform: none; }
.fourd [data-reveal="fade"].in:nth-child(2) { transition-delay: .08s; }
.fourd [data-reveal="fade"].in:nth-child(3) { transition-delay: .16s; }
.fourd [data-reveal="fade"].in:nth-child(4) { transition-delay: .24s; }
.fourd [data-reveal="fade"].in:nth-child(5) { transition-delay: .32s; }
.fourd [data-reveal="fade"].in:nth-child(6) { transition-delay: .40s; }

/* ---------- HERO / THRESHOLD ---------- */
#hero { flex-direction: column; justify-content: center; text-align: center; min-height: 100vh; }
.hero-inner { position: relative; z-index: 3; max-width: 1100px; }
.hero-rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none;
  transform: translate3d(calc(var(--mx) * 40px), calc(var(--my) * 34px), 0); }
.hero-rings span {
  position: absolute; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .14);
  aspect-ratio: 1;
}
.hero-rings span:nth-child(1) { width: 44vmin; animation: spin 44s linear infinite; }
.hero-rings span:nth-child(2) { width: 68vmin; border-style: dashed; border-color: rgba(255,255,255,.06); animation: spin 80s linear infinite reverse; }
.hero-rings span:nth-child(3) { width: 92vmin; border-color: rgba(var(--accent-rgb), .07); animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-title {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(64px, 19vw, 320px); line-height: .82; letter-spacing: -.03em;
  margin: 12px 0 0; color: var(--ink);
  text-shadow: 0 0 60px rgba(var(--accent-rgb), .12);
}
.hero-title .ltr { display: inline-block; }
.fourd .hero-title .ltr {
  opacity: 0; transform: translateY(.5em) rotateX(-70deg); transform-origin: 50% 100%;
  animation: ltrIn .9s var(--ease) forwards;
}
@keyframes ltrIn { to { opacity: 1; transform: none; } }
.hero-roles {
  height: 1.4em; margin: 24px 0 6px; overflow: hidden; position: relative;
  font-family: var(--font-m); font-size: clamp(12px, 1.6vw, 15px); letter-spacing: .34em;
}
.hero-roles .role { position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--accent); opacity: 0; transform: translateY(100%); transition: opacity .5s, transform .6s var(--ease); }
.hero-roles .role.on { opacity: 1; transform: none; }
.hero-roles .role.off { opacity: 0; transform: translateY(-100%); }
.hero-sub { color: var(--ink-dim); font-size: clamp(15px, 1.5vw, 19px); max-width: 560px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

.btn {
  font-family: var(--font-m); font-size: 11px; letter-spacing: .22em;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary { background: var(--accent); color: #06070b; box-shadow: 0 0 0 rgba(var(--accent-rgb), .0); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(var(--accent-rgb), .32), 0 0 40px rgba(var(--accent-rgb), .25); }
.btn-ghost { border-color: rgba(255,255,255,.18); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-dim); }
.scroll-hint span { font-family: var(--font-m); font-size: 9px; letter-spacing: .4em; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--accent); animation: scrollDrop 1.8s var(--ease) infinite; }
@keyframes scrollDrop { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }

/* ---------- STUDIO MANIFESTO ---------- */
.studio-manifesto { display: grid; gap: 60px; }
.studio-lead { font-family: var(--font-d); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(30px, 5.4vw, 68px); line-height: 1.02; margin: 0; max-width: 15ch; }
.studio-lead b { color: var(--accent); font-weight: 600; }
.studio-body { color: var(--ink-dim); font-size: clamp(15px, 1.5vw, 19px); max-width: 620px; margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.pillar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, rgba(var(--accent-rgb), .14), transparent 55%);
  opacity: 0; transition: opacity .35s; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .5); }
.pillar:hover::before { opacity: 1; }
.pillar .pk { font-family: var(--font-m); font-size: 11px; letter-spacing: .26em; color: var(--accent); }
.pillar .pv { color: var(--ink); font-size: 15px; margin-top: 14px; line-height: 1.4; }

/* ---------- THE WORK (floating sculptures) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; perspective: 1600px; }
.work-card {
  grid-column: span 3; position: relative; border-radius: 20px; overflow: hidden; cursor: pointer;
  min-height: 340px; border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--bg3), var(--bg2));
  transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
  will-change: transform;
}
.work-card:nth-child(1) { grid-column: span 4; }
.work-card:nth-child(2) { grid-column: span 2; }
.work-card:nth-child(4) { grid-column: span 2; }
.work-card:nth-child(5) { grid-column: span 4; }
.work-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(140% 100% at 50% 0%, rgba(var(--accent-rgb), .18), transparent 55%);
  opacity: .35; transition: opacity .4s; mix-blend-mode: screen;
}
.work-card:hover { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 30px 90px rgba(0,0,0,.5), 0 0 60px rgba(var(--accent-rgb), .12); }
.work-card:hover::after { opacity: .7; }
.wc-canvas { position: absolute; inset: 0; opacity: .5; }
.wc-face { position: relative; z-index: 2; height: 100%; padding: 26px 26px 24px;
  display: flex; flex-direction: column; justify-content: space-between; transform: translateZ(40px); }
.wc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wc-type { font-family: var(--font-m); font-size: 10px; letter-spacing: .22em; color: var(--accent); }
.wc-status { font-family: var(--font-m); font-size: 9px; letter-spacing: .2em; color: var(--ink);
  border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.wc-name { font-family: var(--font-d); font-weight: 700; font-size: clamp(24px, 3.2vw, 44px);
  line-height: .98; letter-spacing: -.02em; margin: 0; }
.wc-blurb { color: var(--ink-dim); font-size: 14px; margin: 8px 0 0; max-width: 34ch; }
.wc-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.wc-tech span { font-family: var(--font-m); font-size: 9px; letter-spacing: .12em; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.wc-open { font-family: var(--font-m); font-size: 10px; letter-spacing: .2em; color: var(--ink); margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px; opacity: .7; transition: opacity .3s, gap .3s; }
.work-card:hover .wc-open { opacity: 1; gap: 14px; color: var(--accent); }

/* ---------- WORK MODAL (cinematic case study) ---------- */
.work-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.work-modal.open { display: block; }
.wm-scrim { position: absolute; inset: 0; background: rgba(3,4,7,.82); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s; }
.work-modal.open .wm-scrim { opacity: 1; }
.wm-panel {
  position: absolute; inset: clamp(12px, 4vh, 56px) clamp(12px, 5vw, 90px);
  border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 22px; overflow: auto;
  background: linear-gradient(165deg, #0d1017, #07080d);
  box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 80px rgba(var(--accent-rgb), .12);
  transform: translateY(40px) scale(.98); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
  padding: clamp(26px, 4vw, 56px);
}
.work-modal.open .wm-panel { transform: none; opacity: 1; }
.wm-close { position: sticky; top: 0; float: right; margin: -6px -6px 0 0; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--ink); cursor: pointer; font-size: 18px; }
.wm-close:hover { border-color: var(--accent); color: var(--accent); }
.wm-eyebrow { font-family: var(--font-m); font-size: 11px; letter-spacing: .28em; color: var(--accent); }
.wm-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(38px, 7vw, 88px); line-height: .95;
  letter-spacing: -.02em; margin: 14px 0 0; }
.wm-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; color: var(--ink-dim);
  font-family: var(--font-m); font-size: 11px; letter-spacing: .12em; }
.wm-hero { height: clamp(180px, 30vh, 320px); border-radius: 16px; margin: 28px 0; position: relative; overflow: hidden;
  border: 1px solid var(--line); }
.wm-hero canvas, .wm-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wm-blurb { font-size: clamp(17px, 2vw, 24px); font-family: var(--font-d); font-weight: 500; max-width: 40ch; margin: 0 0 34px; line-height: 1.25; }
.wm-section-label { font-family: var(--font-m); font-size: 11px; letter-spacing: .26em; color: var(--ink-dim);
  margin: 0 0 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.wm-steps { display: grid; gap: 0; margin: 0 0 30px; }
.wm-step { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.wm-step .st { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--accent); padding-top: 3px; }
.wm-step .sb { color: var(--ink-dim); margin: 0; }
.wm-roadmap { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.wm-roadmap span { font-family: var(--font-m); font-size: 11px; letter-spacing: .1em; color: var(--ink);
  border: 1px dashed rgba(var(--accent-rgb), .4); border-radius: 8px; padding: 8px 12px; }
.wm-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- MOTION ROOM ---------- */
.motion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.motion-screen {
  position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #05060a;
}
.motion-screen canvas { position: absolute; inset: 0; }
.ms-vibe { position: absolute; inset: 0; opacity: .9;
  background: linear-gradient(130deg, rgba(var(--accent-rgb), .5), transparent 55%),
              radial-gradient(80% 120% at 20% 120%, rgba(var(--accent-rgb), .35), transparent 60%),
              #070810;
  transition: opacity .4s, transform 6s ease; }
.motion-screen:hover .ms-vibe { transform: scale(1.06); }
.ms-grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); }
.ms-face { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.ms-tag { font-family: var(--font-m); font-size: 10px; letter-spacing: .2em; color: #fff; opacity: .85; }
.ms-play { align-self: flex-start; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  display: grid; place-items: center; color: #fff; transition: .3s; }
.motion-screen:hover .ms-play { background: var(--accent); border-color: var(--accent); color: #06070b; transform: scale(1.08); }
.ms-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(20px, 2.6vw, 32px); color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.6); margin: 0; line-height: 1; }
.ms-live { position: absolute; top: 20px; right: 20px; z-index: 3; font-family: var(--font-m); font-size: 9px;
  letter-spacing: .2em; color: #fff; display: flex; align-items: center; gap: 7px; }
.ms-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5468; box-shadow: 0 0 10px #ff5468; animation: pulse 1.4s ease infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- STORE — THE DROP (coming-soon collectibles) ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.drop { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; background: linear-gradient(170deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.drop:hover { transform: translateY(var(--lift-card)); border-color: var(--hover-line); box-shadow: var(--glow-card); }
/* product media — a 4:5 poster crop, deliberately NOT the 9:16 reel shape so a
   store card reads as merch, not a repeat of the reel walls. */
.drop-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #06070d; }
.drop-media img, .drop-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 26%; transition: transform .6s var(--ease); }
.drop:hover .drop-media img { transform: scale(1.05); }
.drop-grad { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,7,13,0) 42%, rgba(6,7,13,.9) 100%); }
/* Badges sit at the BOTTOM of the poster (over the dark scrim, just above the
   title) — the top edge of the tall image tucks under the sticky nav when the
   store scrolls in, which was clipping them. Here they're always in view with
   the card. */
.drop-no { position: absolute; bottom: 12px; left: 12px; font-family: var(--font-m); font-size: 9px; letter-spacing: .2em;
  color: var(--accent); background: rgba(6,7,13,.5); border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 5px;
  padding: 4px 8px; backdrop-filter: blur(4px); }
.drop-soon { position: absolute; bottom: 12px; right: 12px; font-family: var(--font-m); font-size: 9px; letter-spacing: .16em;
  color: #06070b; font-weight: 600; background: var(--accent); border-radius: 5px; padding: 5px 9px;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .6); }
.drop-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; text-align: left; }
.drop-format { font-family: var(--font-m); font-size: 10px; letter-spacing: .22em; color: var(--accent); }
.drop-name { font-family: var(--font-d); font-weight: 700; font-size: 22px; margin: 8px 0 0; letter-spacing: -.01em; }
.drop-blurb { color: var(--ink-dim); font-size: 13.5px; line-height: 1.5; margin: 10px 0 16px; }
.drop-cta { font-family: var(--font-m); font-size: 11px; letter-spacing: .16em; color: var(--accent); text-decoration: none;
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px; transition: gap .3s, color .3s; }
.drop-cta:hover { gap: 12px; color: #fff; }
/* A real BUY button (buyable drop, price set in admin) — filled accent, stands out. */
.drop-buy { align-self: flex-start; border: 0; cursor: pointer; color: #06070b; font-weight: 700;
  background: var(--accent); padding: 10px 20px; border-radius: 999px; letter-spacing: .08em;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .4); transition: transform .2s, box-shadow .3s; }
.drop-buy:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(var(--accent-rgb), .6); color: #06070b; gap: 6px; }

/* ---------- JOURNEY TIMELINE ---------- */
.timeline { position: relative; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 90px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--accent), rgba(255,255,255,.06)); }
.milestone { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 40px; padding: 26px 0; }
.milestone .ms-year { font-family: var(--font-d); font-weight: 700; font-size: 22px; color: var(--ink); text-align: right; }
.milestone .ms-dot { position: absolute; left: 84px; top: 32px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb), .6); }
.milestone .ms-body h4 { font-family: var(--font-d); font-weight: 600; font-size: clamp(20px, 3vw, 32px); margin: 0; }
.milestone .ms-body p { color: var(--ink-dim); margin: 8px 0 0; max-width: 60ch; }
.milestone:hover .ms-dot { transform: scale(1.4); }

/* ---------- LIVE DASHBOARD (bento mission-control) ---------- */
.dash-headrow { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.dash-clock { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-m); font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.dash-clock i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 1.4s ease infinite; }
.dash-clock b { font-weight: 400; color: var(--ink); letter-spacing: .1em; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(112px, auto); gap: 16px;
  grid-template-areas:
    "current current now     now"
    "current current streak  render"
    "stack   stack   reading reading"; }
.dtile { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.006)); transition: border-color .3s, transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; }
.dtile:hover { border-color: var(--hover-line); transform: translateY(var(--lift-card)); box-shadow: var(--glow-card); }
.dtile[data-slot="current"] { grid-area: current; }
.dtile[data-slot="now"] { grid-area: now; }
.dtile[data-slot="streak"] { grid-area: streak; }
.dtile[data-slot="render"] { grid-area: render; }
.dtile[data-slot="stack"] { grid-area: stack; }
.dtile[data-slot="reading"] { grid-area: reading; }
.dtile .dk { font-family: var(--font-m); font-size: 10px; letter-spacing: .22em; color: var(--ink-dim); display: flex; align-items: center; gap: 8px; }
.dtile .dk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8); animation: pulse 2s ease infinite; }
.dt-val { font-family: var(--font-d); font-weight: 600; font-size: clamp(17px, 1.8vw, 22px); margin-top: 12px; line-height: 1.2; }
.dt-val.sm { font-size: 15px; }
.dt-meta { font-family: var(--font-m); font-size: 11px; color: var(--ink-dim); margin-top: 6px; }
/* current — featured */
/* Ambient field behind the hero tile's content — fills the two-row span that was
   dead black. `screen` over the near-black base tints rather than washes, and a
   bottom-weighted mask keeps the progress bar and % legible. */
.dt-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: .5; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.95) 46%, rgba(0,0,0,.12) 92%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.95) 46%, rgba(0,0,0,.12) 92%); }
.dtile[data-slot="current"] > *:not(.dt-field) { position: relative; z-index: 1; }
.dt-cur { font-family: var(--font-d); font-weight: 700; font-size: clamp(26px, 3.2vw, 42px); line-height: 1; letter-spacing: -.01em; margin-top: 16px;
  text-shadow: 0 2px 24px rgba(0,0,0,.75); }
.dt-sub { color: var(--ink-dim); font-size: 14px; margin-top: 12px; }
.dt-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: auto; }
.dt-bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: 6px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .7), var(--accent)); box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); }
.fourd .dt-bar span { animation: barGrow2 1.2s var(--ease) .3s backwards; }
@keyframes barGrow2 { from { width: 0; } }
.dt-pct { font-family: var(--font-m); font-size: 11px; color: var(--accent); margin-top: 10px; letter-spacing: .08em; }
.dt-pct em { color: var(--ink-dim); font-style: normal; }
/* now playing — equalizer */
.dtile[data-slot="now"] { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dtile[data-slot="now"] .dk { position: absolute; top: 20px; left: 20px; }
.dtile[data-slot="now"] .dt-val { margin-top: 0; }
.dv-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 36px; flex: 0 0 auto; }
.dv-eq i { width: 4px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); transform-origin: bottom; animation: eqBar 1s ease-in-out infinite; }
.dv-eq i:nth-child(1) { height: 40%; animation-delay: 0s; } .dv-eq i:nth-child(2) { height: 80%; animation-delay: .1s; }
.dv-eq i:nth-child(3) { height: 55%; animation-delay: .22s; } .dv-eq i:nth-child(4) { height: 100%; animation-delay: .32s; }
.dv-eq i:nth-child(5) { height: 65%; animation-delay: .15s; } .dv-eq i:nth-child(6) { height: 85%; animation-delay: .26s; }
.dv-eq i:nth-child(7) { height: 45%; animation-delay: .36s; }
@keyframes eqBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
/* build streak — ring */
/* .dtile is column-flex: `margin-top:auto` on the ring + `margin-bottom:auto` on
   the label below it centres the PAIR as one group (a lone auto would pin it). */
.dt-ringwrap { position: relative; margin: auto auto 0; width: 94px; height: 94px; }
.dtile[data-slot="streak"] .dt-meta.rc { text-align: center; margin-bottom: auto; }
/* overflow:visible is REQUIRED, not cosmetic: the stroke (r=42 + 7 width) reaches
   95.5 in a 0-100 viewBox, and .dvr-fg's 6px drop-shadow needs ~101.5 — an SVG
   root clips at the viewport by default, slicing the glow flat at its extremes. */
.dv-ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dvr-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
.dvr-fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 264;
  stroke-dashoffset: calc(264 - 264 * var(--pct) / 100); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .6)); }
.fourd .dvr-fg { animation: ringDraw 1.4s var(--ease) .3s backwards; }
@keyframes ringDraw { from { stroke-dashoffset: 264; } }
.dt-ringtxt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dt-ringtxt b { font-family: var(--font-d); font-weight: 700; font-size: 26px; }
/* latest render — thumb */
.dv-thumb { position: relative; height: 60px; border-radius: 10px; overflow: hidden; margin-top: 12px; background: #06070d; border: 1px solid var(--line); }
.dv-thumb canvas, .dv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dtile[data-slot="render"] .dt-val { margin-top: 10px; }
/* stack — chips */
.dv-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.dv-chips span { font-family: var(--font-m); font-size: 12px; color: var(--ink); border: 1px solid rgba(var(--accent-rgb), .4);
  border-radius: 7px; padding: 6px 11px; background: rgba(var(--accent-rgb), .06); }
/* reading — book */
.dt-bookrow { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.dv-book { flex: 0 0 auto; width: 30px; height: 42px; border-radius: 2px 4px 4px 2px;
  background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), .35)); box-shadow: 0 6px 16px rgba(0,0,0,.4), inset 3px 0 0 rgba(0,0,0,.3); }
/* commit feed */
/* The wall is the room's LAST BAND, not a second room: no panel chrome, and a
   16px top margin matching .bento's gap so it reads as row 4 of the same stack. */
.feed { margin-top: 16px; border: 0; border-radius: 0; padding: 0; background: none; }
.feed-head { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 12px; border-bottom: 1px solid var(--line); }
.feed-tag { font-family: var(--font-m); font-size: 10px; letter-spacing: .22em; color: var(--accent); }
.feed-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-m); font-size: 10px; letter-spacing: .18em; color: var(--ink-dim); }
.feed-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-dim); }
.feed-live.on { color: #fff; } .feed-live.on i { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.4s ease infinite; }
/* No badge until the claim is true — world.js fills this once the feed is live. */
.feed-live:empty { display: none; }
/* ---- reel wall (recent Instagram reels) ---- */
.feed-reels .feed-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 16px 0 4px; }
.igreel { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #06070d; text-decoration: none; isolation: isolate;
  transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .45s, box-shadow .45s; }
.igreel img, .igreel canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.igreel .igr-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,13,0) 38%, rgba(6,7,13,.86) 100%); }
.igreel:hover, .igreel:focus-visible { transform: translateY(var(--lift-card)); border-color: var(--hover-line);
  box-shadow: var(--glow-card); }
.igr-play { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55); background: rgba(6,7,13,.4); backdrop-filter: blur(3px); opacity: .85; }
.igr-play::after { content: ''; position: absolute; top: 50%; left: 52%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent #fff; }
/* Recency, not runtime — .igr-ago (dashboard, accent, top-left) must never
   converge with .reel-dur (Motion, white, top-right). Keeps its own scrim:
   .igr-grad only darkens the bottom, so a bright poster's top edge is bare. */
.igr-ago { position: absolute; top: 10px; left: 10px; font-family: var(--font-m); font-size: 9px; letter-spacing: .12em;
  color: var(--accent); background: rgba(6,7,13,.45); border-radius: 4px; padding: 3px 5px; backdrop-filter: blur(3px);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), .5); }
.igr-meta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 3px; }
/* Captions, not titles — allow two lines before clamping (a caption ellipsed
   at one line reads as broken; the Motion room's short caps titles don't wrap). */
.igr-meta b { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-more { display: inline-block; margin: 10px 2px 8px; font-family: var(--font-m); font-size: 10px;
  letter-spacing: .18em; color: var(--ink-dim); text-decoration: none; transition: color .3s; }
.feed-more:hover { color: var(--accent); }
/* Reel-wall ladder: 6 → 4@1000 → 3@760 → 2@520. These three rules MUST stay
   colocated in descending order — a step added lower in the file wins silently. */
@media (max-width: 1000px) { .feed-reels .feed-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "current current" "now now" "streak render" "stack stack" "reading reading"; }
  .feed-reels .feed-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "current" "now" "streak" "render" "stack" "reading"; }
  .dtile[data-slot="now"] { flex-direction: column; align-items: flex-start; }
  .dtile[data-slot="now"] .dt-val { margin-top: 34px; }
  .feed-reels .feed-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- AI CHAMBER ---------- */
.ai-inner { text-align: center; }
.ai-chamber { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; text-align: left; margin-top: 20px; }
.ai-orb { position: relative; width: 260px; height: 260px; justify-self: center; }
.ai-orb b { position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), .95), rgba(var(--accent-rgb), .25) 45%, transparent 72%);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), .6), inset 0 0 40px rgba(255,255,255,.2); filter: blur(.5px);
  animation: orbPulse 4s ease-in-out infinite; }
.ai-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .3); }
.ai-orb span:nth-child(1) { animation: orbSpin 9s linear infinite; }
.ai-orb span:nth-child(2) { inset: 10%; border-style: dashed; border-color: rgba(255,255,255,.12); animation: orbSpin 14s linear infinite reverse; }
.ai-orb span:nth-child(3) { inset: -8%; border-color: rgba(var(--accent-rgb), .16); animation: orbSpin 22s linear infinite; }
.ai-orb.thinking b { animation: orbPulse 1s ease-in-out infinite; }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbPulse { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.06); opacity: 1; } }
.ai-console { border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,.32); padding: 20px; display: flex; flex-direction: column; min-height: 320px; }
.ai-log { flex: 1; overflow-y: auto; max-height: 320px; display: flex; flex-direction: column; gap: 12px; padding-right: 6px; }
.ai-msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.ai-msg.user { align-self: flex-end; background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .4); }
.ai-msg.bot { align-self: flex-start; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.ai-msg.bot.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 2px; animation: dot 1.2s infinite; }
.ai-msg.bot.typing span:nth-child(2) { animation-delay: .2s; } .ai-msg.bot.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ai-suggest button { font-family: var(--font-m); font-size: 10px; letter-spacing: .1em; color: var(--ink-dim);
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 13px; cursor: pointer; transition: .2s; }
.ai-suggest button:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .5); }
.ai-form { display: flex; gap: 10px; }
.ai-input { flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--ink); font-family: var(--font-b); font-size: 15px; outline: none; transition: border-color .2s; }
.ai-input:focus { border-color: var(--accent); }
.ai-send { width: 50px; border-radius: 12px; border: 1px solid rgba(var(--accent-rgb), .5); background: var(--accent); color: #06070b; font-size: 20px; cursor: pointer; transition: .2s; }
.ai-send:hover { box-shadow: 0 0 24px rgba(var(--accent-rgb), .5); }

/* ---------- FINAL ROOM ---------- */
#final { min-height: 100vh; }
.final-inner { text-align: center; }
.final-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(40px, 8.5vw, 120px); line-height: .95;
  letter-spacing: -.03em; margin: 16px 0 0; }
.final-body { color: var(--ink-dim); font-size: clamp(15px, 1.6vw, 19px); margin: 22px 0 40px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.final-signoff { margin-top: 70px; font-family: var(--font-m); font-size: 10px; letter-spacing: .3em; color: var(--ink-dim); }

/* ---------- CHAPTER RAIL (camera positions) ---------- */
.rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; gap: 16px; pointer-events: auto; }
.rail button { display: flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-m); font-size: 9px; letter-spacing: .2em; color: var(--ink-dim); opacity: .5; transition: .25s; padding: 0; }
.rail button i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-dim); transition: .25s; flex: 0 0 auto; }
.rail button b { font-weight: 400; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: .25s; }
.rail button:hover { opacity: 1; color: var(--ink); }
.rail button:hover b { opacity: 1; transform: none; }
.rail button.active { opacity: 1; color: var(--ink); }
.rail button.active i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), .8); transform: scale(1.3); }
.rail button.active b { opacity: 1; transform: none; }

/* ---------- CURSOR SIGIL ---------- */
.cursor-sigil { position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 1px solid var(--accent); pointer-events: none; z-index: 9998; mix-blend-mode: screen; opacity: 0;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .5), inset 0 0 10px rgba(var(--accent-rgb), .25);
  transform: translate3d(var(--cx), var(--cy), 0); transition: width .22s, height .22s, margin .22s, background .22s, opacity .3s; }
body.has-pointer .cursor-sigil { opacity: 1; }
body.cursor-hot .cursor-sigil { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(var(--accent-rgb), .1); }
@media (hover: none), (pointer: coarse) { .cursor-sigil { display: none; } }

/* ---------- SOUND TOGGLE ---------- */
.sound-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 999px; cursor: pointer; background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--accent-rgb), .4); color: var(--ink); font-family: var(--font-m); font-size: 10px; letter-spacing: .24em;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .18s, border-color .25s; }
.sound-toggle:hover { transform: translateY(-2px); border-color: var(--accent); }
.sound-toggle .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.sound-toggle .eq i { width: 2px; height: 5px; background: var(--accent); box-shadow: 0 0 6px var(--accent); border-radius: 1px; }
.sound-toggle.on .eq i { animation: eq 1s ease-in-out infinite; }
.sound-toggle.on .eq i:nth-child(2) { animation-delay: .2s; } .sound-toggle.on .eq i:nth-child(3) { animation-delay: .4s; }
.sound-toggle:not(.on) .eq i { opacity: .4; height: 4px; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 13px; } }

/* ============================================================
   HERO — motion-graphics title banner (Awwwards flow)
   ============================================================ */
.hero .hero-reel { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 28%, rgba(5,6,10,.5) 72%),
    linear-gradient(180deg, rgba(5,6,10,.55), transparent 26%, transparent 55%, rgba(5,6,10,.92)); }
.hero-inner { position: relative; z-index: 3; }
.hero-hud { position: absolute; inset: 26px; z-index: 2; pointer-events: none;
  font-family: var(--font-m); font-size: 10px; letter-spacing: .24em; color: var(--ink-dim); }
.hero-hud .hud { position: absolute; }
.hero-hud .tl { top: 0; left: 0; } .hero-hud .tr { top: 0; right: 0; }
.hero-hud .bl { bottom: 0; left: 0; } .hero-hud .br { bottom: 0; right: 0; color: #ff5468;
  display: inline-flex; align-items: center; gap: 7px; }
.hero-hud .br::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5468;
  box-shadow: 0 0 10px #ff5468; animation: pulse 1.4s ease infinite; }
.reel-chip { display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
  font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--ink);
  padding: 13px 22px 13px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.03); transition: border-color .25s, color .25s, transform .2s; }
.reel-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.reel-chip .rc-play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #06070b; font-size: 9px; }
.reel-chip b { color: var(--ink-dim); font-weight: 400; }
.hero-marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; overflow: hidden; padding: 20px 0;
  border-top: 1px solid rgba(var(--accent-rgb), .16);
  background: linear-gradient(180deg, rgba(5,6,10,0), rgba(5,6,10,.6));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hm-track { display: inline-flex; white-space: nowrap; animation: marquee 48s linear infinite; will-change: transform; }
.hero-marquee:hover .hm-track { animation-play-state: paused; }
.hm-track span { font-family: var(--font-d); font-weight: 600; font-size: clamp(15px, 1.8vw, 22px); letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink); opacity: .82; padding: 0 34px; display: inline-flex; align-items: center; gap: 34px;
  transition: opacity .3s; }
.hm-track span:hover { opacity: 1; }
.hm-track span::after { content: "◆"; color: var(--accent); font-size: 10px; text-shadow: 0 0 12px rgba(var(--accent-rgb), .7); }
@keyframes marquee { to { transform: translateX(-50%); } }
.reduced .hm-track { animation: none; }
.hero .scroll-hint { bottom: 74px; }
@media (max-width: 560px) { .hero .scroll-hint { display: none; } }

/* ============================================================
   MOTION — 9:16 + 16:9 reel wall
   ============================================================ */
/* featured film (16:9) */
.motion-featured { position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb), .4); margin-bottom: 22px; background: #05060a;
  aspect-ratio: 16 / 9; max-height: 70vh; }
.motion-featured .reel-media { position: absolute; inset: 0; }
.motion-featured:hover { border-color: var(--accent); box-shadow: 0 30px 90px rgba(0,0,0,.5), 0 0 60px rgba(var(--accent-rgb), .14); }

/* masonry wall mixes tall 9:16 and wide 16:9 */
.reel-wall { column-count: 4; column-gap: 18px; }
.reel { position: relative; break-inside: avoid; margin: 0 0 18px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); cursor: pointer; background: #05060a; display: block;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.reel:hover { border-color: var(--hover-line); transform: translateY(var(--lift-card));
  box-shadow: var(--glow-card); }
.reel-media { position: relative; width: 100%; overflow: hidden; background: #06070d; }
.reel[data-ratio="16:9"] .reel-media { aspect-ratio: 16 / 9; }
.reel[data-ratio="9:16"] .reel-media { aspect-ratio: 9 / 16; }
.reel-media canvas, .reel-media video, .reel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-fit: cover; display: block; }
.reel-badge { position: absolute; top: 10px; left: 10px; z-index: 3;
  font-family: var(--font-m); font-size: 9px; letter-spacing: .14em; color: #fff;
  padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.5);
  border: 1px solid rgba(var(--accent-rgb), .55); backdrop-filter: blur(4px); }
.reel-dur { position: absolute; top: 10px; right: 10px; z-index: 3;
  font-family: var(--font-m); font-size: 9px; letter-spacing: .1em; color: #fff;
  padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.5); }
.reel-live { position: absolute; top: 10px; right: 10px; z-index: 3; font-family: var(--font-m);
  font-size: 9px; letter-spacing: .18em; color: #fff; display: flex; align-items: center; gap: 7px;
  padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.5); }
.reel-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5468;
  box-shadow: 0 0 8px #ff5468; animation: pulse 1.4s ease infinite; }
.reel-play { position: absolute; inset: 0; margin: auto; width: 50px; height: 50px; z-index: 3;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center;
  color: #fff; background: rgba(0,0,0,.25); backdrop-filter: blur(3px); transition: .3s; }
.reel:hover .reel-play, .motion-featured:hover .reel-play { background: var(--accent); border-color: var(--accent); color: #06070b; transform: scale(1.1); }
.reel-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 14px 14px 13px;
  background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.2) 70%, transparent); }
.reel-cat { font-family: var(--font-m); font-size: 9px; letter-spacing: .18em; color: var(--accent); }
.reel-title { font-family: var(--font-d); font-weight: 700; font-size: 18px; color: #fff; margin: 4px 0 0; line-height: 1; }
.motion-featured .reel-info { padding: 26px; }
.motion-featured .reel-title { font-size: clamp(28px, 4vw, 52px); }
.motion-featured .reel-cat { font-size: 11px; }
.motion-featured .reel-play { width: 74px; height: 74px; }

/* theater mode */
.theater { position: fixed; inset: 0; z-index: 210; display: none; }
.theater.open { display: block; }
.th-scrim { position: absolute; inset: 0; background: rgba(2,3,6,.9); backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s; }
.theater.open .th-scrim { opacity: 1; }
.th-panel { position: absolute; inset: 0; margin: auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; padding: clamp(16px, 4vh, 48px);
  transform: scale(.97); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.theater.open .th-panel { transform: none; opacity: 1; }
.th-stage { position: relative; width: 100%; background: #000; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .4); box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 80px rgba(var(--accent-rgb), .14); }
.th-stage[data-ratio="16:9"] { aspect-ratio: 16 / 9; max-width: min(1100px, 92vw); max-height: 74vh; }
.th-stage[data-ratio="9:16"] { aspect-ratio: 9 / 16; max-width: min(420px, 82vw); max-height: 78vh; }
.th-stage canvas, .th-stage video, .th-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-info { text-align: center; }
.th-info .th-cat { font-family: var(--font-m); font-size: 10px; letter-spacing: .26em; color: var(--accent); }
.th-info .th-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(26px, 4vw, 44px); margin: 8px 0 0; }
.th-info .th-meta { font-family: var(--font-m); font-size: 11px; letter-spacing: .12em; color: var(--ink-dim); margin-top: 8px; }
/* The theater's way out to the real reel while `src` is empty. */
.th-links { margin-top: 18px; display: flex; justify-content: center; }
.th-close { position: absolute; top: 20px; right: 20px; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); cursor: pointer; font-size: 18px; }
.th-close:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   WORK — editorial case-study index
   ============================================================ */
/* Work was 27% of the whole page: 4/3 covers (411px tall × 5) + a 100px gap that
   was 24% of a card's own height — so five cases read as five arrivals, not one
   list. 16/10 matches what this file already uses at ≤820px. */
.case-list { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; cursor: pointer; }
.case-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #06070d; transition: border-color .4s, box-shadow .4s, transform .5s var(--ease); }
.case-cover canvas, .case-cover img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover;
  /* His covers are 9:16 portrait; the case box is 16:10 landscape. Bias the crop
     upward so subjects/faces survive instead of centring on torsos. */
  object-position: center 32%; }
.case-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 100%, rgba(var(--accent-rgb), .22), transparent 60%); mix-blend-mode: screen; }
.case:hover .case-cover { border-color: var(--hover-line); box-shadow: var(--glow-stage); transform: translateY(var(--lift-stage)); }
.case:nth-child(even) .case-cover { order: 2; }
/* A lead beat — without it every case is dimensionally identical and the
   left/right alternation reads as wallpaper rather than editing.
   MUST stay inside min-width:821px: media queries add no specificity, so an
   unscoped .case:first-child (0,2,0) would beat the ≤820px .case (0,1,0)
   regardless of source order and break the lead card's mobile stack. */
@media (min-width: 821px) {
  .case:first-child { grid-template-columns: 1.35fr 1fr; }
  .case:first-child .case-cover { aspect-ratio: 16 / 9; }
  .case:first-child .case-title { font-size: clamp(40px, 6vw, 82px); }
}
.case-idx { font-family: var(--font-m); font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.case-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(34px, 5vw, 68px);
  line-height: .95; letter-spacing: -.02em; margin: 14px 0 0; }
.case-type { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--ink-dim); margin: 14px 0 0; }
.case-blurb { color: var(--ink-dim); font-size: clamp(15px, 1.5vw, 18px); margin: 18px 0 0; max-width: 46ch; }
.case-metarow { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 30px; margin: 24px 0 0; justify-content: start; }
.case-metarow .cm { }
.case-metarow .cm i { display: block; font-family: var(--font-m); font-size: 9px; letter-spacing: .2em; color: var(--ink-dim); font-style: normal; }
.case-metarow .cm b { display: block; font-weight: 500; font-size: 14px; margin-top: 5px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; }
.case-tags span { font-family: var(--font-m); font-size: 9px; letter-spacing: .12em; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; }
.case-open { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--ink);
  margin: 26px 0 0; display: inline-flex; align-items: center; gap: 10px; transition: gap .3s, color .3s; }
.case:hover .case-open { gap: 16px; color: var(--accent); }

@media (max-width: 820px) {
  .hero-hud { display: none; }
  .reel-wall { column-count: 2; }
  .case { grid-template-columns: 1fr; gap: 22px; }
  .case:nth-child(even) .case-cover { order: 0; }
  .case-cover { aspect-ratio: 16 / 10; }
}
@media (max-width: 1100px) and (min-width: 821px) { .reel-wall { column-count: 3; } }
/* 2-column floor, matching the dashboard wall's own floor at ≤520px. Single-column
   made a 9:16 card 75% of a phone viewport and Motion ~3700px on mobile.
   The play/title/info shrinks are REQUIRED, not polish: at ~175px columns the
   50px play circle collides with the ~58px info stack. */
@media (max-width: 460px) {
  .reel-wall { column-count: 2; column-gap: 10px; }
  .reel { margin-bottom: 10px; }
  /* On a 2-col phone wall a 16:9 reel is only ~97px tall and .reel-info owns
     ~45% of it, so a play circle centred on the CARD lands inside the title
     (measured: 18px overlap on all three 16:9 reels). Centring it on the free
     area ABOVE the info fixes it for every ratio — shrinking it can't, because
     dead-centre is inside the info no matter how small the circle gets.
     Scoped to .reel-wall so .motion-featured keeps its big centred play. */
  .reel-wall .reel-play { inset: 0 0 46px 0; width: 34px; height: 34px; }
  .reel-title { font-size: 13px; }
  .reel-info { padding: 9px 9px 8px; }
  .hm-track span { font-size: 12px; }
}

/* ============================================================
   HERO — NEXT REALM character banner (image right · text left)
   ============================================================ */
#hero { align-items: flex-start; text-align: left; overflow: hidden; }
.hero .hero-inner { text-align: left; margin: 0; max-width: 660px; }
/* banner overscans slightly so the pointer-parallax never reveals an edge */
.hero-banner { position: absolute; inset: -4%; z-index: 1; overflow: hidden; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -9px), 0); }
.hero-banner picture { position: absolute; inset: 0; display: block; }
.hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 82% 34%;
  display: block; transform-origin: 80% 38%; will-change: transform; animation: heroBreath 24s ease-in-out infinite alternate; }
@keyframes heroBreath { from { transform: scale(1.04); } to { transform: scale(1.12); } }
/* living green energy drifting over the character side */
.hero-energy { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(42% 55% at 70% 42%, rgba(62,232,126,.22), transparent 70%);
  animation: heroEnergy 9s ease-in-out infinite alternate; }
@keyframes heroEnergy {
  0% { opacity: .28; transform: translate(-2%, 1.5%) scale(1); }
  100% { opacity: .66; transform: translate(2.5%, -1.5%) scale(1.1); }
}
/* ---- dramatic SLAM-IN reveal when the boot splash clears (#hero.hero-in) ---- */
.hero-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; overflow: hidden; }
.hero-in .hero-banner picture { animation: heroBannerIn 1.1s cubic-bezier(.2,.85,.2,1) both; }
@keyframes heroBannerIn {
  0%   { opacity: 0; transform: scale(1.32) translateX(3.5%); filter: brightness(1.7) saturate(1.25); }
  28%  { opacity: 1; }
  62%  { transform: scale(.99) translateX(-.6%); }
  100% { opacity: 1; transform: none; filter: none; }
}
.hero-in .hero-fx { animation: heroFxFlash .75s ease-out; }
@keyframes heroFxFlash {
  0%   { opacity: .85; background: linear-gradient(112deg, rgba(var(--accent-rgb), .5), rgba(255,255,255,.35) 22%, transparent 55%); }
  100% { opacity: 0; }
}
.hero-fx::before { content: ""; position: absolute; inset: -20%; opacity: 0; mix-blend-mode: screen;
  background: repeating-linear-gradient(108deg, transparent 0 13px, rgba(255,255,255,.16) 13px 15px); }
.hero-in .hero-fx::before { animation: heroFxLines .65s ease-out; }
@keyframes heroFxLines { 0% { opacity: 0; transform: translateX(-12%); } 22% { opacity: .8; } 100% { opacity: 0; transform: translateX(10%); } }
/* Veil: dark on the LEFT for text legibility, clears by ~64% so the
   character on the right stays fully visible. */
.hero-veil {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(7,11,9,.95) 0%, rgba(7,11,9,.78) 24%, rgba(7,11,9,.32) 46%, rgba(7,11,9,0) 64%),
    linear-gradient(180deg, rgba(7,11,9,.4), transparent 22%, transparent 72%, rgba(7,11,9,.85)); }
.hero-inner { z-index: 5; }
.hero-marquee { z-index: 4; }
.reduced .hero-banner, .reduced .hero-banner picture, .reduced .hero-banner img, .reduced .hero-energy { animation: none !important; transform: none !important; }
.reduced .hero-fx, .reduced .hero-fx::before { animation: none !important; opacity: 0 !important; }
.hero .hero-title { font-size: clamp(52px, 9vw, 128px); white-space: nowrap; letter-spacing: -.03em;
  text-shadow: 0 0 60px rgba(var(--accent-rgb), .18), 0 6px 40px rgba(0,0,0,.6); }
.hero .hero-sub { margin-left: 0; margin-right: 0; }
.hero .hero-cta { justify-content: flex-start; }

/* ============================================================
   STUDIO — building in motion (visual)
   ============================================================ */
.studio-manifesto { display: grid; gap: clamp(34px, 5vw, 64px); }
/* headline on the left, the work showcase on the right — balanced */
.studio-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 68px); align-items: center; }
.studio-head { max-width: 560px; }
/* headline forced to two lines (sentence per line) */
.studio-top .studio-lead { font-size: clamp(25px, 3vw, 44px); line-height: 1.08; letter-spacing: -.02em; max-width: none; }
.studio-top .studio-lead br { display: block; }
.studio-showcase .ss-stage { transition: border-color .4s, box-shadow .4s; }
.studio-showcase:hover .ss-stage { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 30px 90px rgba(0,0,0,.5), 0 0 50px rgba(var(--accent-rgb), .1); }
.studio-head .studio-body { margin-top: 22px; }
@keyframes flow { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
@keyframes pulseTravel { 0% { left: 4%; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { left: 96%; opacity: 0; } }
@keyframes nodeSeq {
  0%, 22%, 100% { background: var(--bg); box-shadow: 0 0 0 4px var(--bg), 0 0 10px rgba(var(--accent-rgb), .4); }
  8% { background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--accent), 0 0 30px rgba(var(--accent-rgb), .7); }
}
@keyframes currentPulse { 50% { box-shadow: 0 0 0 4px var(--bg), 0 0 28px var(--accent), 0 0 50px rgba(var(--accent-rgb), .9); } }

/* ---- WIDE AUTO-FLIPPING SHOWCASE (work stills, in motion) ---- */
.studio-showcase { position: relative; }
/* Portrait phone-frame: his reels are native 9:16, so the showcase is shaped like
   the thing it shows. A landscape stage would crop faces and his logo off. */
.ss-stage { position: relative; width: 100%; max-width: min(340px, 100%); margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: #06070d; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
/* fighter-card corner brackets on the stage */
.ss-stage::before, .ss-stage::after { content: ""; position: absolute; width: 22px; height: 22px; z-index: 6; pointer-events: none; }
.ss-stage::before { top: 12px; left: 12px; border-top: 2px solid rgba(var(--accent-rgb), .5); border-left: 2px solid rgba(var(--accent-rgb), .5); }
.ss-stage::after { bottom: 12px; right: 12px; border-bottom: 2px solid rgba(var(--accent-rgb), .5); border-right: 2px solid rgba(var(--accent-rgb), .5); }

/* comic fighter-card SLAM reveal on each slide */
.ss-frame { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity .5s ease; }
.ss-frame.active { opacity: 1; z-index: 2; animation: fighterIn .6s cubic-bezier(.2,.9,.2,1); }
@keyframes fighterIn {
  0%   { opacity: 0; transform: scale(1.2) translate(5%, -2%); }
  22%  { opacity: 1; }
  55%  { transform: scale(.985) translate(-1%, .4%); }
  78%  { transform: scale(1.008) translate(.3%, 0); }
  100% { opacity: 1; transform: none; }
}
.ss-frame canvas, .ss-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.ss-frame.active canvas, .ss-frame.active img { animation: kenburns 8s ease-out both; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.13); } }
/* impact flash */
.ss-frame::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(112deg, rgba(var(--accent-rgb), .55), rgba(255,255,255,.25) 20%, transparent 52%); }
.ss-frame.active::after { animation: impactFlash .5s ease-out; }
@keyframes impactFlash { 0% { opacity: .95; } 55% { opacity: .22; } 100% { opacity: 0; } }
/* comic speed lines */
.ss-frame::before { content: ""; position: absolute; inset: -22%; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: repeating-linear-gradient(110deg, transparent 0 11px, rgba(255,255,255,.14) 11px 13px); }
.ss-frame.active::before { animation: speedLines .5s ease-out; }
@keyframes speedLines { 0% { opacity: 0; transform: translateX(-10%); } 22% { opacity: .8; } 100% { opacity: 0; transform: translateX(8%); } }
.ss-grad { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(4,5,10,.92) 0%, rgba(4,5,10,.15) 42%, transparent 72%),
              linear-gradient(90deg, rgba(4,5,10,.55), transparent 46%); }
.ss-label { position: absolute; left: clamp(20px, 3vw, 42px); bottom: clamp(20px, 3vw, 38px); z-index: 5; }
.ss-frame.active .ss-label { animation: labelSlam .55s cubic-bezier(.2,.9,.2,1) .07s both; }
@keyframes labelSlam { 0% { opacity: 0; transform: translateX(-28px) skewX(-6deg); } 60% { transform: translateX(5px); } 100% { opacity: 1; transform: none; } }
.ss-idx { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--accent);
  text-shadow: 0 0 16px rgba(var(--accent-rgb), .5); }
/* Sized for the ~340px portrait frame — the old 56px was tuned for a wide stage. */
.ss-label h3 { font-family: var(--font-d); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); margin: 7px 0 0;
  line-height: 1; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.ss-type { display: inline-block; margin-top: 10px; font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; color: var(--ink); opacity: .85; }
.ss-tag { position: absolute; top: 16px; right: 16px; z-index: 6; font-family: var(--font-m); font-size: 9px; letter-spacing: .18em;
  color: #fff; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  background: rgba(0,0,0,.42); backdrop-filter: blur(6px); border: 1px solid rgba(var(--accent-rgb), .3); }
.ss-tag .rec { width: 6px; height: 6px; border-radius: 50%; background: #3ee87e; box-shadow: 0 0 10px #3ee87e; animation: pulse 1.4s ease infinite; }
/* smaller, subtler indicators (were overpowering) */
.ss-bar { height: 2px; border-radius: 2px; background: rgba(255,255,255,.06); margin-top: 12px; overflow: hidden; }
.ss-bar span { display: block; height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .55), var(--accent)); box-shadow: 0 0 8px rgba(var(--accent-rgb), .5); }
.ss-dots { display: flex; gap: 6px; margin-top: 11px; }
.ss-dots button { width: 9px; height: 3px; border-radius: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.12); transition: background .3s, width .3s; }
.ss-dots button.on { background: var(--accent); width: 18px; box-shadow: 0 0 10px rgba(var(--accent-rgb), .5); }
.ss-dots button:hover { background: rgba(var(--accent-rgb), .45); }

/* ---- WORK-WITH-ME PATH (idea → income) ---- */
.studio-path { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px clamp(20px,3vw,34px) 34px; background: rgba(0,0,0,.22); }
.studio-path::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 100% 0%, rgba(var(--accent-rgb), .08), transparent 55%); }
.path-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.path-lead { display: flex; flex-direction: column; gap: 7px; }
.path-eyebrow { font-family: var(--font-m); font-size: 11px; letter-spacing: .22em; color: var(--accent); }
.path-note { font-size: 12.5px; color: var(--ink-dim); }
.path-cta { font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; color: #06070b; font-weight: 600; white-space: nowrap;
  background: var(--accent); padding: 11px 20px; border-radius: 999px; transition: transform .2s, box-shadow .3s; }
.path-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--accent-rgb), .32), 0 0 26px rgba(var(--accent-rgb), .3); }
/* step-cards → payoff */
.path-cards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 22px;
  background: rgba(255,255,255,.02); transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s; }
.pcard:hover { transform: translateY(var(--lift-card)); border-color: var(--hover-line); box-shadow: var(--glow-card); }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 26px; }
.pc-num { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.pc-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); margin: 12px 0 0; letter-spacing: .01em; }
.pc-desc { color: var(--ink-dim); font-size: 13px; margin: 8px 0 0; line-height: 1.45; }
.pcard:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); z-index: 3;
  color: rgba(var(--accent-rgb), .55); font-size: 16px; }
.pcard.payoff { border-color: rgba(var(--accent-rgb), .55);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), rgba(255,255,255,.008)); box-shadow: 0 0 34px rgba(var(--accent-rgb), .14); }
.pcard.payoff .pc-num, .pcard.payoff .pc-title { color: var(--accent); }
.payoff-viz { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.payoff-viz i { width: 5px; border-radius: 2px 2px 0 0; transform-origin: bottom; background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), .6); animation: growBar 2.4s ease-in-out infinite; }
.payoff-viz i:nth-child(1) { height: 32%; animation-delay: 0s; }
.payoff-viz i:nth-child(2) { height: 56%; animation-delay: .18s; }
.payoff-viz i:nth-child(3) { height: 78%; animation-delay: .36s; }
.payoff-viz i:nth-child(4) { height: 100%; animation-delay: .54s; }
@keyframes growBar { 0%, 100% { transform: scaleY(.55); opacity: .6; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---- DISCIPLINE THUMBNAILS (big, wide, YouTube-style) ---- */
.disc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.disc { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #06070d; text-decoration: none; color: inherit;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.disc:hover { transform: translateY(var(--lift-card)); border-color: var(--hover-line);
  box-shadow: var(--glow-card); }
.disc-thumb, .disc-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.disc-media { object-fit: cover; display: block; }
.disc-thumb { overflow: hidden; }
.disc-thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 120%, rgba(var(--accent-rgb), .18), transparent 62%); }
.disc-grad { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(4,5,10,.94) 0%, rgba(4,5,10,.2) 50%, transparent 78%); }
.disc-cat { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: .16em; color: #fff; padding: 6px 12px 6px 9px; border-radius: 999px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(5px); border: 1px solid rgba(var(--accent-rgb), .4); }
.disc-cat svg { width: 15px; height: 15px; color: var(--accent); }
.disc-cat b { font-weight: 500; }
.disc-play { position: absolute; inset: 0; margin: auto; z-index: 3; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; color: #fff; font-size: 16px;
  background: rgba(0,0,0,.28); backdrop-filter: blur(3px); transition: .3s; }
.disc:hover .disc-play { background: var(--accent); border-color: var(--accent); color: #06070b; transform: scale(1.1); }
.disc-info { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3; }
.disc-title { font-family: var(--font-d); font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); line-height: 1.2; color: #fff;
  margin: 0; max-width: 26ch; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.disc-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-family: var(--font-m);
  font-size: 10px; letter-spacing: .16em; color: var(--accent); transition: gap .3s; }
.disc:hover .disc-link { gap: 14px; }
.art { position: absolute; inset: 0; }
/* DESIGN — kinetic bars */
.art-bars { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 0 24px; }
.art-bars i { height: 5px; border-radius: 5px; transform-origin: left; background: linear-gradient(90deg, var(--accent), transparent);
  animation: barSlide 2.8s ease-in-out infinite; }
.art-bars i:nth-child(1) { width: 78%; animation-delay: 0s; } .art-bars i:nth-child(2) { width: 54%; animation-delay: .25s; }
.art-bars i:nth-child(3) { width: 88%; animation-delay: .5s; } .art-bars i:nth-child(4) { width: 40%; animation-delay: .75s; }
.art-bars i:nth-child(5) { width: 66%; animation-delay: 1s; }
@keyframes barSlide { 0%, 100% { transform: scaleX(.35); opacity: .45; } 50% { transform: scaleX(1); opacity: 1; } }
/* CODE — flowing scanlines */
.art-code i { position: absolute; left: -30%; height: 2px; width: 28%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 8px rgba(var(--accent-rgb), .5);
  animation: codeFlow 2.6s linear infinite; }
.art-code i:nth-child(1) { top: 26%; animation-delay: 0s; } .art-code i:nth-child(2) { top: 44%; animation-delay: .5s; }
.art-code i:nth-child(3) { top: 62%; animation-delay: 1s; } .art-code i:nth-child(4) { top: 80%; animation-delay: 1.5s; }
@keyframes codeFlow { to { left: 130%; } }
/* AI — orbiting neural nodes */
.art-ai b { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.art-ai i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: orbit 5s linear infinite; }
.art-ai i:nth-child(2) { --r: 26px; animation-duration: 4s; } .art-ai i:nth-child(3) { --r: 40px; animation-duration: 6s; animation-delay: -1s; }
.art-ai i:nth-child(4) { --r: 34px; animation-duration: 5s; animation-delay: -2.5s; } .art-ai i:nth-child(5) { --r: 48px; animation-duration: 7s; animation-delay: -3.5s; opacity: .7; }
@keyframes orbit { from { transform: rotate(0deg) translateX(var(--r, 30px)); } to { transform: rotate(360deg) translateX(var(--r, 30px)); } }
/* PUBLIC — broadcast rings */
.art-rings { display: grid; place-items: center; }
.art-rings i { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0;
  animation: broadcast 3s ease-out infinite; }
.art-rings i:nth-child(2) { animation-delay: 1s; } .art-rings i:nth-child(3) { animation-delay: 2s; }
@keyframes broadcast { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.art-rings::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.disc:hover .art-bars i, .disc:hover .art-code i { animation-duration: 1.6s; }

@media (max-width: 900px) { .studio-top { grid-template-columns: 1fr; } .studio-head { max-width: 900px; } .ss-stage { max-width: min(300px, 78vw); } }
@media (max-width: 860px) {
  #hero { align-items: center; text-align: center; }
  .hero .hero-inner { text-align: center; margin: 0 auto; }
  .hero .hero-cta { justify-content: center; }
  .hero-banner img { object-position: 72% 38%; opacity: .5; }
  .hero-veil { background: linear-gradient(180deg, rgba(7,11,9,.72), rgba(7,11,9,.55) 42%, rgba(7,11,9,.92)); }
}
/* mobile: step-cards stack 2-up, then 1-up */
@media (max-width: 860px) { .path-cards { grid-template-columns: 1fr 1fr; } .pcard:not(:last-child)::after { display: none; } }
@media (max-width: 540px) { .path-cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .disc-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ss-stage { aspect-ratio: 4 / 3; }
}

/* ============================================================
   A11Y + POLISH FIXES
   ============================================================ */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 10000; background: var(--accent); color: #06070b;
  font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; padding: 12px 18px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ai-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* HIRE — persistent above-the-fold conversion CTA in the header */
.hire-btn { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; color: #06070b; font-weight: 600;
  background: var(--accent); padding: 10px 18px; border-radius: 999px; white-space: nowrap; margin-left: 6px;
  transition: transform .2s, box-shadow .3s; }
.hire-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--accent-rgb), .32), 0 0 26px rgba(var(--accent-rgb), .3); }

/* AI orb is now a real <button> */
.ai-orb-wrap { display: grid; place-items: center; }
button.ai-orb { background: none; border: 0; padding: 0; cursor: pointer; display: block; }
button.ai-orb:focus-visible { outline-offset: 8px; border-radius: 50%; }

/* Input boundary contrast (was ~1.3:1) + focus */
.ai-input { border-color: rgba(138, 161, 151, .5); }
.ai-input:focus { border-color: var(--accent); }

/* Chapter rail → camera-position DOTS only (labels removed to end the
   left-content overlap; the top nav already names every room). */
.rail button b { display: none; }
.rail { gap: 14px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .ai-chamber { grid-template-columns: 1fr; }
  .ai-orb { width: 200px; height: 200px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .work-card, .work-card:nth-child(1), .work-card:nth-child(2), .work-card:nth-child(4), .work-card:nth-child(5) { grid-column: span 3; }
  .store-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topnav { display: none; position: fixed; top: 66px; right: 14px; left: 14px; flex-direction: column; gap: 2px;
    background: rgba(10,12,17,.96); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
  .topnav.open { display: flex; }
  .topnav a { padding: 12px 14px; font-size: 11px; }
  .menu-toggle { display: flex; }
  .rail { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { grid-column: 1 / -1 !important; min-height: 300px; }
  .motion-grid, .store-grid, .dash-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .wm-step { grid-template-columns: 1fr; gap: 6px; }
  .timeline::before { left: 60px; } .milestone { grid-template-columns: 60px 1fr; gap: 20px; } .milestone .ms-dot { left: 55px; }
  .sound-toggle { right: 12px; bottom: 12px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .1s !important; }
  .df, .hero-rings { transform: none !important; }
  .fourd [data-reveal], .fourd .hero-title .ltr { opacity: 1 !important; transform: none !important; }
}
