/* ==========================================================================
   ROUNAK AVINASH — CONTROL ROOM
   A cinematic editorial edit-suite. The page is a timeline; scrolling scrubs it.
   Base #0B0B0D · Ink #F2EFE6 · Acid lime #C8F04F · Signal red #FF3B30
   ========================================================================== */

:root {
  --bg: #0B0B0D;
  --bg2: #101116;
  --panel: #14151A;
  --line: rgba(242, 239, 230, .13);
  --line-soft: rgba(242, 239, 230, .07);
  --ink: #F2EFE6;
  --muted: rgba(242, 239, 230, .55);
  --faint: rgba(242, 239, 230, .30);
  --lime: #C8F04F;
  --lime-dim: rgba(200, 240, 79, .35);
  --red: #FF3B30;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --rail-w: 72px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --cut: cubic-bezier(.77, 0, .18, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1100px) { body { padding-left: var(--rail-w); } }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
main { display: block; }
[hidden] { display: none !important; }

::selection { background: var(--lime); color: #0B0B0D; }

body { scrollbar-width: thin; scrollbar-color: var(--panel) var(--bg); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--panel); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1200;
  background: var(--lime); color: #0B0B0D;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  padding: .8rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.container { width: min(1360px, 100%); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 3rem); }

/* ============ BOOT SEQUENCE ============ */

#boot {
  position: fixed; inset: 0; z-index: 1000;
  background: #050506;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  transition: transform .55s var(--cut);
}
#boot.done { transform: translateY(-101%); }
.boot-inner { width: min(430px, 86vw); font-size: .82rem; letter-spacing: .05em; }
.boot-line { margin: .5em 0; color: var(--muted); opacity: 0; transform: translateY(6px); }
.boot-line.show { opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.boot-title { color: var(--ink); }
.boot-line #boot-tc { color: var(--ink); }
.boot-ok { color: var(--lime); opacity: 0; }
.boot-ok.show { opacity: 1; }
.boot-rec { color: var(--red); display: flex; align-items: center; gap: .55em; }
.boot-dots span { animation: dot 1s steps(1) infinite; }
.boot-dots span:nth-child(2) { animation-delay: .33s; }
.boot-dots span:nth-child(3) { animation-delay: .66s; }
@keyframes dot { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
#boot-skip {
  position: absolute; bottom: 1.6rem; right: 1.8rem;
  background: none; border: 1px solid var(--line); color: var(--faint);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  padding: .55rem .9rem; cursor: pointer;
}
#boot-skip:hover { color: var(--lime); border-color: var(--lime-dim); }

.rec-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex: none;
  animation: rec 1.3s steps(2) infinite;
}
@keyframes rec { 50% { opacity: .1; } }

/* ============ FILM TEXTURE (grain + scanlines) ============ */

.fx-grain {
  position: fixed; inset: -120px; z-index: 980; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-42px, 28px); }
  50% { transform: translate(30px, -24px); }
  75% { transform: translate(-24px, -36px); }
  100% { transform: translate(36px, 40px); }
}
.fx-scan {
  position: fixed; inset: 0; z-index: 981; pointer-events: none; opacity: .45;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}

/* ============ TIMELINE RAIL ============ */

.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 400; display: none; }
@media (min-width: 1100px) { .rail { display: block; } }
.rail-track {
  position: absolute; left: 30px; top: 88px; bottom: 88px; width: 2px;
  background:
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(180deg, rgba(242, 239, 230, .28) 0 1px, transparent 1px 55px);
}
.rail-playhead {
  position: absolute; left: -1px; top: 0; width: 4px; height: 54px;
  background: var(--red); box-shadow: 0 0 10px rgba(255, 59, 48, .55);
  will-change: transform;
}
.rail-tc {
  position: absolute; left: 12px; top: 100%; margin-top: 6px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  color: var(--red); white-space: nowrap;
  transform: rotate(90deg); transform-origin: left top;
}
.rail-marker {
  position: absolute; left: -3px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .16em;
  color: var(--muted); white-space: nowrap;
}
.rail-marker::before { content: ""; width: 9px; height: 1px; background: var(--muted); transition: background .25s; }
.rail-marker em {
  font-style: normal; opacity: 0; transform: translateX(-5px);
  transition: opacity .25s, transform .25s var(--ease);
  background: var(--bg); padding: .2rem .35rem;
}
.rail-marker:hover em, .rail-marker:focus-visible em, .rail-marker.active em { opacity: 1; transform: none; }
.rail-marker.active { color: var(--lime); }
.rail-marker.active::before { background: var(--lime); }

/* ============ NAV ============ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; gap: 1.6rem;
  padding: 1rem clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}
@media (min-width: 1100px) { .nav { left: var(--rail-w); } }
.nav.scrolled {
  background: rgba(11, 11, 13, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.nav-mark {
  font-family: var(--serif); font-style: italic;
  font-size: 1.65rem; line-height: 1; letter-spacing: -.01em;
}
.nav::after {
  content: "✦"; position: absolute; left: max(48px, 5vw); top: 50%;
  transform: translateY(-50%) rotate(-10deg);
  font-size: 1.1rem; color: var(--lime); pointer-events: none;
}
.nav-tc {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 1.2rem; align-items: baseline;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--faint);
}
#nav-tc { color: var(--ink); }
.nav > nav { margin-left: auto; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: .3rem 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--lime); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-status {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; color: var(--lime);
  border: 1px solid var(--lime-dim); padding: .5rem .85rem;
  transition: background .25s, color .25s;
}
.nav-status:hover { background: var(--lime); color: #0B0B0D; }
.nav-status:hover .status-dot { background: #0B0B0D; animation: none; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: rec 2.2s steps(2) infinite; }

.nav-toggle {
  display: none; margin-left: auto;
  flex-direction: column; justify-content: center; gap: 7px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line); cursor: pointer;
  align-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */

.menu {
  position: fixed; inset: 0; z-index: 800;
  background: #08080A;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem clamp(1.5rem, 7vw, 4rem) 2.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--cut);
}
.menu.open { clip-path: inset(0 0 0% 0); }
.menu[hidden] { display: none; }
.menu-label {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .24em;
  color: var(--red); margin-bottom: 2rem;
}
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 1.1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 10vw, 4.6rem); line-height: 1; letter-spacing: -.02em;
  opacity: 0; transform: translateY(26px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s, padding-left .3s var(--ease);
}
.menu.open .menu-nav a { opacity: 1; transform: none; }
.menu.open .menu-nav a:nth-child(1) { transition-delay: .12s; }
.menu.open .menu-nav a:nth-child(2) { transition-delay: .19s; }
.menu.open .menu-nav a:nth-child(3) { transition-delay: .26s; }
.menu.open .menu-nav a:nth-child(4) { transition-delay: .33s; }
.menu-nav a i { font-family: var(--mono); font-style: normal; font-weight: 400; font-size: .8rem; color: var(--lime); letter-spacing: .1em; }
.menu-nav a:hover { color: var(--lime); padding-left: .6rem; }
.menu-foot {
  margin-top: 2.5rem; display: flex; flex-direction: column; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
}
.menu-foot a:hover { color: var(--lime); }

/* ============ HERO / TITLE CARD ============ */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 8rem clamp(1.2rem, 5vw, 4rem) 7rem;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: grayscale(.22) brightness(.72) contrast(1.06);
  /* the two halves are stacked; only the live one is painted. No transition —
     the handover sits on a hard cut, so a dissolve would read as a mistake */
  opacity: 0;
}
.hero-video.is-live { opacity: 1; }
.hero-grade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(130% 100% at 28% 42%, transparent 0%, rgba(11, 11, 13, .34) 58%, rgba(11, 11, 13, .82) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, .28) 0%, rgba(11, 11, 13, .58) 100%);
}

.hero-hud {
  position: absolute; inset: 4.6rem clamp(1rem, 2.4vw, 1.8rem) 1.2rem;
  z-index: 4; pointer-events: none;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; color: rgba(242, 239, 230, .7);
}
.hud-corner { position: absolute; width: 18px; height: 18px; border: 1px solid rgba(242, 239, 230, .45); }
.c-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.c-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.c-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.c-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-tl { position: absolute; top: 1.2rem; left: 1.5rem; display: flex; gap: 1.4rem; align-items: center; }
.hud-rec { color: var(--red); display: flex; align-items: center; gap: .55em; }
.hud-tr { position: absolute; top: 1.2rem; right: 1.5rem; color: var(--ink); }
.hud-bl { position: absolute; bottom: 1.2rem; left: 1.5rem; color: var(--faint); }

.hero-content { position: relative; z-index: 3; width: min(1400px, 100%); margin-inline: auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .24em;
  border: 1px solid var(--line); background: rgba(11, 11, 13, .55);
  padding: .6rem 1rem; margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}
.hero-title {
  font-size: clamp(2.5rem, 8.4vw, 7.8rem);
  font-weight: 900; line-height: .94; letter-spacing: -.035em;
  text-transform: uppercase;
}
.ht-line { display: block; }
.hero-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: lowercase; letter-spacing: -.01em; color: var(--lime);
  padding-right: .05em;
  text-decoration: underline wavy var(--lime) 2.2px;
  text-underline-offset: .12em;
}
/* hand-drawn pencil circle around MAINSTREAM */
.circled { position: relative; display: inline-block; white-space: nowrap; }
.el-svg {
  position: absolute; left: -8%; top: -10%; width: 116%; height: 120%;
  overflow: visible; pointer-events: none;
  transform: rotate(-1.5deg);
}
.el-line {
  stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 0;
}
.el-sketch {
  stroke: var(--lime); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  opacity: .5; stroke-dasharray: 3 6;
}
.el-line.go { animation: pencil 1.05s cubic-bezier(.55, 0, .35, 1) both; }
.el-sketch.go { animation: pencil 1.05s cubic-bezier(.55, 0, .35, 1) .1s both; }
@keyframes pencil {
  from { stroke-dashoffset: 1600; }
  to   { stroke-dashoffset: 0; }
}
.hero-sub {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--mono); font-size: clamp(.7rem, 1.2vw, .8rem);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: clamp(1.8rem, 4vw, 2.6rem); }

.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 1.7rem; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  will-change: transform;
}
.btn-tri { font-size: .6rem; }
.btn-email { text-transform: none; letter-spacing: .04em; }
.btn-lime { background: var(--lime); color: #0B0B0D; }
.btn-lime:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(200, 240, 79, .35); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(242, 239, 230, .16); }
.btn-ghost { border-color: var(--line-soft); color: var(--muted); }
.btn-ghost:hover { border-color: var(--lime-dim); color: var(--lime); transform: translate(-2px, -2px); }

.sound {
  position: absolute; bottom: 1.5rem; right: clamp(1.2rem, 3vw, 2rem); z-index: 6;
  display: flex; align-items: center; gap: .75rem;
  background: rgba(11, 11, 13, .6); border: 1px solid var(--line);
  padding: .65rem 1rem; cursor: pointer; color: var(--ink);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .16em;
  transition: border-color .25s;
}
.sound:hover { border-color: var(--lime-dim); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; background: var(--faint); height: 4px; transition: background .3s; }
.eq i:nth-child(2) { height: 9px; }
.eq i:nth-child(3) { height: 6px; }
.sound.on .eq i { background: var(--lime); animation: eq .65s ease-in-out infinite alternate; transform-origin: bottom; }
.sound.on .eq i:nth-child(2) { animation-delay: .18s; }
.sound.on .eq i:nth-child(3) { animation-delay: .36s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .26em; color: var(--faint);
  transition: color .3s;
}
.scroll-cue:hover { color: var(--ink); }
.cue-line { position: relative; width: 1px; height: 42px; background: var(--line); overflow: hidden; }
.cue-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--red); animation: cue 1.7s var(--ease) infinite;
}
@keyframes cue { to { top: 115%; } }

/* ============ STATEMENT RULER ============ */

.ruler-sec {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--bg2);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.ruler-ticks {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(242, 239, 230, .3) 0 1px, transparent 1px 120px);
  background-size: auto 6px, auto 14px;
  background-position: bottom left;
  background-repeat: repeat-x;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

/* ============ SECTIONS COMMON ============ */

.sec { position: relative; padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.sec-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: .9rem;
  margin-bottom: clamp(2.4rem, 6vw, 4.2rem);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; color: var(--faint);
}
.sec-marker { color: var(--lime); }
.sec-marker::before { content: "▪"; color: var(--red); margin-right: .7em; }
.sec-tc { white-space: nowrap; }

.kicker { font-family: var(--mono); font-size: .66rem; letter-spacing: .26em; color: var(--lime); margin-bottom: 1.2rem; }
.display {
  font-size: clamp(2.3rem, 6.2vw, 5.4rem);
  font-weight: 900; line-height: .97; letter-spacing: -.03em;
  text-transform: uppercase; max-width: 22ch;
}
.display em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: lowercase; letter-spacing: -.01em; color: var(--lime);
  text-decoration: underline wavy var(--lime) 1.8px;
  text-underline-offset: .25em;
}
.lede { margin-top: 1.8rem; max-width: 62ch; color: var(--muted); font-size: clamp(.98rem, 1.35vw, 1.1rem); line-height: 1.75; }
.display.center { max-width: none; text-align: center; margin-inline: auto; }
.lede.center { margin-inline: auto; text-align: center; }

/* ============ ABOUT / PRINCIPLES ============ */

.principles { list-style: none; margin-top: clamp(3rem, 7vw, 5rem); }
.principles li { border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.prin {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.15rem .4rem;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink);
}
.prin-idx { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; color: var(--faint); transition: color .3s; }
.prin-word {
  font-size: clamp(2.1rem, 6.2vw, 4.8rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -.03em; text-transform: lowercase;
  color: transparent; -webkit-text-stroke: 1.8px var(--ink);
  transition: color .3s, -webkit-text-stroke-color .3s, transform .4s var(--ease);
}
.prin-word.alt { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; -webkit-text-stroke-width: 1.4px; }
.prin-note {
  grid-column: 2; max-width: 54ch;
  max-height: 0; overflow: hidden; opacity: 0;
  color: var(--muted); font-size: .92rem; line-height: 1.65;
  transition: max-height .5s var(--ease), opacity .35s, margin-top .5s var(--ease);
}
.prin:hover .prin-note, .prin:focus-visible .prin-note { max-height: 130px; opacity: 1; margin-top: .6rem; }
.prin-plus { position: relative; width: 14px; height: 14px; justify-self: end; }
.prin-plus::before, .prin-plus::after { content: ""; position: absolute; background: var(--faint); transition: transform .3s var(--ease), background .3s; }
.prin-plus::before { left: 0; top: 6px; width: 14px; height: 2px; }
.prin-plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.prin:hover .prin-word, .prin:focus-visible .prin-word { color: var(--lime); -webkit-text-stroke-color: var(--lime); transform: translateX(10px); }
.prin:hover .prin-idx { color: var(--lime); }
.prin:hover .prin-plus::before, .prin:hover .prin-plus::after { background: var(--lime); }
.prin:hover .prin-plus::after, .prin.is-open .prin-plus::after { transform: scaleY(0); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: clamp(3rem, 7vw, 4.5rem); }
.stat { padding: clamp(1.4rem, 3vw, 2.3rem); border-left: 1px solid var(--line); transition: background .3s; }
.stat:first-child { border-left: 0; }
.stat:hover { background: var(--panel); }
.stat b { display: block; font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--lime); }
.stat span { display: block; margin-top: .7rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; color: var(--muted); }

/* ============ WORK / THE BIN ============ */

.work-intro { position: relative; }
.work-hint { margin-top: 1.4rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; color: var(--faint); }
.work-list { list-style: none; margin-top: clamp(2.4rem, 5.5vw, 3.8rem); border-top: 1px solid var(--line); }
.work-list > li { border-bottom: 1px solid var(--line); }
.work-row {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3.2vw, 2.4rem) clamp(1.2rem, 4vw, 3rem);
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink);
  transition: background .3s;
}
.wr-idx { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--faint); transition: color .3s; }
.wr-name {
  font-size: clamp(1.9rem, 5.4vw, 4.6rem); font-weight: 900;
  letter-spacing: -.03em; text-transform: uppercase; line-height: 1.02;
  transition: color .3s, transform .4s var(--ease);
}
.wr-meta { display: flex; flex-direction: column; gap: .4rem; text-align: right; font-size: .82rem; color: var(--muted); max-width: 26ch; transition: color .3s; }
.wr-meta i { font-family: var(--mono); font-style: normal; font-size: .6rem; letter-spacing: .2em; color: var(--lime); transition: color .3s; }
.wr-arrow { font-size: .85rem; color: var(--faint); transition: color .3s, transform .35s var(--ease); }
.work-row:hover, .work-row:focus-visible { background: var(--lime); }
.work-row:hover .wr-idx, .work-row:focus-visible .wr-idx { color: rgba(11, 11, 13, .55); }
.work-row:hover .wr-name, .work-row:focus-visible .wr-name { color: #0B0B0D; transform: translateX(12px); }
.work-row:hover .wr-meta, .work-row:focus-visible .wr-meta { color: rgba(11, 11, 13, .7); }
.work-row:hover .wr-meta i, .work-row:focus-visible .wr-meta i { color: #0B0B0D; }
.work-row:hover .wr-arrow, .work-row:focus-visible .wr-arrow { color: var(--red); transform: translateX(6px); }
.wr-media { display: none; }

/* Floating preview viewer */
.viewer {
  position: fixed; left: 0; top: 0; z-index: 600;
  width: min(440px, 36vw); aspect-ratio: 16/9;
  pointer-events: none; overflow: hidden;
  background: #000 center / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
  opacity: 0;
  --vs: .9;
  transform: translate3d(var(--vx, -500px), var(--vy, -500px), 0) rotate(-2deg) scale(var(--vs));
  transition: opacity .22s;
  will-change: transform;
}
.viewer.show { opacity: 1; --vs: 1; }
.viewer video { width: 100%; height: 100%; object-fit: cover; }
.viewer-tag {
  position: absolute; top: .6rem; left: .6rem;
  font-family: var(--mono); font-size: .56rem; font-weight: 700; letter-spacing: .18em;
  color: #0B0B0D; background: var(--lime); padding: .28rem .55rem;
}

/* ============ SERVICES / TRACKS ============ */

.lanes { position: relative; margin-top: clamp(2.4rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.lane-playhead {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(100% - 2px), var(--red) calc(100% - 2px));
  transform: scaleX(0); transform-origin: left center; opacity: 0;
}
.lanes.swept .lane-playhead { opacity: 1; transform: scaleX(1); transition: transform 1.15s var(--cut); }
.lanes.swept .lane-playhead.done { opacity: 0; transition: opacity .5s; }
.lane {
  display: grid; grid-template-columns: 130px 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start; padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.lane-head { display: flex; align-items: center; gap: .8rem; padding-top: .2rem; }
.lane-id {
  font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .14em;
  color: var(--muted); border: 1px solid var(--line); padding: .3rem .5rem;
  transition: background .25s, color .25s, border-color .25s;
}
.lane:hover .lane-id { background: var(--lime); color: #0B0B0D; border-color: var(--lime); }
.lane-head h3 { font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-weight: 900; letter-spacing: -.02em; text-transform: lowercase; }
.clips { display: flex; flex-wrap: wrap; gap: .55rem; }
.clip {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .03em;
  color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); padding: .5rem .85rem;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.clip:hover { background: var(--lime); color: #0B0B0D; border-color: var(--lime); transform: translateY(-3px); }

/* ============ THUMBNAILS / FILMSTRIP ============ */

.strip-wrap { margin-top: clamp(2.2rem, 5vw, 3.2rem); }
.strip {
  overflow-x: auto; scrollbar-width: none;
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: pan-x pan-y;
  background: #050506;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; }
.strip-track {
  position: relative; display: flex; list-style: none; width: max-content;
  padding: 22px clamp(1.2rem, 4vw, 3rem);
}
.strip-track::before, .strip-track::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: radial-gradient(circle, rgba(242, 239, 230, .32) 2.4px, transparent 3px) 0 0 / 26px 6px repeat-x;
}
.strip-track::before { top: 6px; }
.strip-track::after { bottom: 6px; }
.frame {
  position: relative; flex: 0 0 auto;
  width: clamp(300px, 42vw, 660px);
  margin-right: clamp(.9rem, 1.8vw, 1.5rem);
  border: 1px solid var(--line); background: #000;
  transition: border-color .3s;
}
.frame:last-child { margin-right: 0; }
/* height:auto matters — the <img> carries width/height attributes, and that
   presentational hint pins height to 720px unless it's cleared, which leaves
   aspect-ratio inert and makes object-fit crop the sides off every thumbnail. */
.frame img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; pointer-events: auto; -webkit-user-drag: none; }
.frame:hover { border-color: var(--lime-dim); }
.fr-no {
  position: absolute; top: .55rem; left: .55rem;
  font-family: var(--mono); font-size: .56rem; letter-spacing: .16em;
  color: var(--ink); background: rgba(11, 11, 13, .72); padding: .22rem .5rem;
}
.strip-hint { margin-top: 1.2rem; text-align: center; font-family: var(--mono); font-size: .6rem; letter-spacing: .26em; color: var(--faint); }

/* the whole tile is the button; it carries no chrome of its own */
.frame-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: inherit; }
.frame-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---- filmstrip lightbox ---- */
.lb-backdrop {
  position: fixed; inset: 0; z-index: 950;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(5, 5, 6, .93);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s;
}
.lb-backdrop.open { opacity: 1; }
.lb-backdrop[hidden] { display: none; }
.lb { width: min(1280px, 100%); max-height: 92vh; display: flex; flex-direction: column; }
.lb-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem .2rem .8rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
}
.lb-crumb { color: var(--muted); }
.lb-crumb b { color: var(--lime); font-weight: 700; }
.lb-count { margin-left: auto; color: var(--faint); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
/* contain, not cover — showing the frame whole is the entire point of this view */
.lb-stage img {
  max-width: 100%; max-height: calc(92vh - 7rem);
  width: auto; height: auto; object-fit: contain;
  border: 1px solid var(--line); background: #000;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  background: rgba(11, 11, 13, .72); border: 1px solid var(--line); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  padding: .5rem .75rem; transition: border-color .25s, color .25s;
}
.lb-nav:hover { border-color: var(--lime-dim); color: var(--lime); }
.lb-prev { left: .6rem; }
.lb-next { right: .6rem; }
.lb-caption {
  margin-top: .9rem; text-align: center;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}
@media (max-width: 640px) {
  .lb-nav { font-size: 1.2rem; padding: .4rem .55rem; }
  .lb-stage img { max-height: calc(92vh - 8rem); }
}

/* ============ TOOLS / THE SUITE ============ */

.tool-grid {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: clamp(2.4rem, 6vw, 4rem);
}
.tool {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.6rem;
  background: var(--bg); padding: clamp(1.5rem, 2.8vw, 2.3rem);
  transition: background .3s;
}
.tool i { font-family: var(--mono); font-style: normal; font-size: .6rem; letter-spacing: .18em; color: var(--faint); transition: color .3s; }
.tool b { font-size: clamp(1.1rem, 1.9vw, 1.5rem); font-weight: 800; letter-spacing: -.01em; transition: color .3s; }
.tool:hover { background: var(--panel); }
.tool:hover b { color: var(--lime); }
.tool:hover i { color: var(--lime); }

/* ============ EXPERIENCE / SEQUENCE LOG ============ */

.log-lane {
  position: relative; margin-top: clamp(2.4rem, 6vw, 4rem);
  border-left: 2px solid var(--line);
  padding-left: clamp(1.4rem, 3.5vw, 2.6rem);
  display: grid; gap: clamp(2.2rem, 5vw, 3.4rem);
}
.log-item { position: relative; }
.log-item::before {
  content: ""; position: absolute;
  left: calc(-1 * clamp(1.4rem, 3.5vw, 2.6rem) - 5px); top: .45rem;
  width: 8px; height: 8px; background: var(--red);
}
.log-date {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; color: var(--lime);
  border: 1px solid var(--lime-dim); padding: .38rem .75rem;
}
.log-item h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .9rem; }
.log-item ul { list-style: none; display: grid; gap: .5rem; }
.log-item li { position: relative; padding-left: 1.3rem; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.log-item li::before { content: "—"; position: absolute; left: 0; color: var(--lime); }
.log-item p { color: var(--muted); font-size: .95rem; }
.langs { margin-top: .6rem; font-style: italic; }

/* ============ CONTACT / FINAL CUT ============ */

.contact-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.4rem; }
.contact-note { margin-top: 1.8rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; color: var(--faint); }

/* ============ MODAL ============ */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(5, 5, 6, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s;
}
.modal-backdrop.open { opacity: 1; }
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(960px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg2); border: 1px solid var(--line);
  scrollbar-width: thin;
}
.modal-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--line); background: var(--bg2);
  padding: .95rem 1.2rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
}
.modal-crumb { color: var(--muted); }
.modal-crumb b { color: var(--lime); font-weight: 700; text-transform: uppercase; }
.modal-count { margin-left: auto; color: var(--faint); }
.modal-back {
  background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; padding: .45rem .8rem;
  transition: border-color .25s, color .25s;
}
.modal-back:hover { border-color: var(--lime-dim); color: var(--lime); }
.modal-close { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 1rem; padding: .3rem .4rem; line-height: 1; transition: color .25s; }
.modal-close:hover { color: var(--red); }
.modal-thumb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; padding: 1.2rem; }
.modal-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
  background-size: cover; background-position: center;
  font-family: var(--mono);
}
.modal-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 13, .45); transition: background .25s; }
.modal-thumb:hover::after, .modal-thumb:focus-visible::after { background: rgba(200, 240, 79, .2); }
.modal-thumb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  color: var(--ink); font-size: 1.5rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}
.modal-thumb-title {
  position: absolute; left: .75rem; right: .75rem; bottom: .65rem; z-index: 1;
  color: var(--ink); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  /* titles come straight from the playlist now, so they can run long */
  line-height: 1.35; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
/* placeholder tiles while a playlist is in flight — keeps the grid from jumping */
.modal-thumb.is-skeleton {
  cursor: default; background: #121215;
  animation: thumb-pulse 1.1s ease-in-out infinite alternate;
}
.modal-thumb.is-skeleton::after { display: none; }
@keyframes thumb-pulse { from { opacity: .45; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .modal-thumb.is-skeleton { animation: none; } }
.modal-player { padding: 1.2rem; }
.modal-frame { position: relative; aspect-ratio: 16/9; border: 1px solid var(--line); overflow: hidden; }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ FOOTER ============ */

.footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: clamp(2rem, 6vw, 4rem); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.f-label { display: block; margin-bottom: 1.1rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .22em; color: var(--faint); }
.f-label::before { content: "▪ "; color: var(--red); }
.f-lead { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; text-transform: lowercase; }
.f-lead a { border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.f-lead a:hover { color: var(--lime); border-color: var(--lime); }
.f-note { margin-top: 1rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; color: var(--faint); }
.footer-mark { overflow: hidden; text-align: center; line-height: .78; height: clamp(80px, 13vw, 185px); }
.footer-mark span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(7rem, 24vw, 19rem); letter-spacing: -.02em; color: var(--ink);
}
.footer-mark::after {
  content: ""; display: block;
  width: min(180px, 30vw); height: 2px; margin: -1rem auto 0;
  background: var(--lime);
}
.footer-bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem; padding-bottom: 1.1rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; color: var(--faint);
}
.footer-bar a { transition: color .25s; }
.footer-bar a:hover { color: var(--lime); }

/* ============ CONTEXTUAL CURSOR CHIP ============ */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 990;
  display: none; align-items: center; gap: .5rem;
  background: var(--lime); color: #0B0B0D;
  font-family: var(--mono); font-size: .58rem; font-weight: 700; letter-spacing: .14em;
  padding: .42rem .7rem; white-space: nowrap;
  pointer-events: none; opacity: 0;
  transition: opacity .18s;
  will-change: transform;
}
.cursor::before { content: ""; width: 5px; height: 5px; background: var(--red); flex: none; }
.cursor.on { opacity: 1; }
/* over the hero the chip becomes a round speaker button — the glyph reads faster
   than a word, and the disc says "click me" the way a text label doesn't */
.cursor.has-icon {
  width: 62px; height: 62px; padding: 0; border-radius: 50%;
  justify-content: center; gap: 0;
}
.cursor.has-icon::before { display: none; }
.cursor .cur-ic { width: 26px; height: 26px; display: block; }
/* the disc replaces the pointer rather than trailing it, so the OS arrow is hidden
   while it's up (js/main.js toggles the class) — two stacked cursors otherwise */
body.hide-native-cursor,
body.hide-native-cursor * { cursor: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: flex; } }

/* ============ REVEAL SYSTEM ============ */

.rev { opacity: 0; transform: translateY(26px); transition: opacity .65s var(--ease), transform .65s var(--ease), clip-path .65s var(--ease); }
.rev.in-view { opacity: 1; transform: none; }

/* Hero title: the h1 is observed (IO can't see inside a clip-path), the lines
   animate as its children. */
.hero-title.rev { opacity: 1; transform: none; }
.hero-title .ht-line {
  display: block;
  opacity: 0; transform: translateY(56px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.hero-title.in-view .ht-line { opacity: 1; transform: none !important; }
.hero-title.in-view .ht-line:nth-child(2) { transition-delay: .1s; }
.hero-title.in-view .ht-line:nth-child(3) { transition-delay: .2s; }
.hero-sub.rev { transition-delay: .3s; }
.hero-actions.rev { transition-delay: .4s; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1500px) { .nav-seq { display: none; } }

@media (max-width: 1099px) {
  .rail { display: none; }
}

@media (max-width: 900px) {
  .nav-tc { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-status { margin-left: auto; }

  .hero { padding-top: 7rem; }
  .hero-hud { display: none; }

  /* work rows become video cards */
  .work-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    row-gap: .5rem;
    padding: 1.4rem 1.2rem 1.6rem;
  }
  .wr-media {
    display: block; grid-column: 1 / -1; order: -1;
    aspect-ratio: 16/9; overflow: hidden;
    border: 1px solid var(--line); margin-bottom: .8rem;
  }
  .wr-media video { width: 100%; height: 100%; object-fit: cover; }
  .wr-meta { grid-column: 1 / -1; flex-direction: row; gap: .8rem; text-align: left; max-width: none; align-items: baseline; }
  .wr-arrow { grid-row: 2; grid-column: 3; }
  .wr-idx { grid-row: 2; grid-column: 1; }
  .wr-name { grid-row: 2; grid-column: 2; font-size: clamp(1.5rem, 6.5vw, 2.4rem); }
  .work-row:hover .wr-name, .work-row:focus-visible .wr-name { transform: none; }

  .lane { grid-template-columns: 1fr; gap: .9rem; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-status { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .stat:first-child { border-top: 0; }
  .stat span { margin-top: 0; text-align: right; }
  .prin { grid-template-columns: 1fr auto; }
  .prin-idx { display: none; }
  .prin-note { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
  .sec-head { font-size: .56rem; }
  .footer-bar { flex-direction: column; gap: .5rem; }
}

@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool { gap: 1.2rem; }
  .hero-title { font-size: clamp(2.1rem, 12vw, 3.6rem); }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rev { opacity: 1; transform: none; clip-path: none; }
  .hero-title .ht-line { opacity: 1; transform: none !important; }
  .el-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .fx-grain { animation: none; }
  .viewer { display: none; }
  .cursor { display: none !important; }
  .cue-line::after { display: none; }
}
