/* ============================================================
   SIMULACRA SOLUTIONS — design system
   Concept: "from simulation to real" — blueprint blue renders
   into blaze orange. Ink-dark console sections alternate with
   warm drafting-paper sections inside a fixed HUD frame.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Anybody';
  src: url('../assets/fonts/anybody-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-var.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --void: #0B0D12;
  --void-2: #0E1118;
  --panel: #12161F;
  --line: rgba(242, 239, 231, .10);
  --line-soft: rgba(242, 239, 231, .05);
  --bone: #F2EFE7;
  --bone-dim: rgba(242, 239, 231, .64);
  --bone-faint: rgba(242, 239, 231, .38);
  --paper: #E9E5DA;
  --paper-2: #DED9CB;
  --ink: #14161C;
  --ink-dim: rgba(20, 22, 28, .66);
  --ink-faint: rgba(20, 22, 28, .38);
  --bp-line: rgba(46, 79, 208, .14);
  --blueprint: #5B7CFF;
  --blueprint-deep: #2E4FD0;
  --signal: #FF4D24;
  --signal-hot: #FF7A52;
  --ok: #3DDC84;
  --warn: #FFC24B;

  --font-display: 'Anybody', 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --fs-hero: clamp(2.9rem, 8.6vw, 8rem);
  --fs-h2: clamp(2.2rem, 5.6vw, 4.8rem);
  --fs-h3: clamp(1.25rem, 2.4vw, 1.9rem);
  --fs-body: clamp(1rem, .4vw + .92rem, 1.125rem);
  --fs-mono: .6875rem;

  --hud-inset: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-snap: cubic-bezier(.65, 0, .35, 1);
  --wrap-max: 1440px;
  --wrap-pad: clamp(1.25rem, 4vw, 4rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--signal); color: var(--void); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: #262c3a; border-radius: 5px; border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--signal); }

/* ---------- utilities ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.display {
  font-family: var(--font-display);
  font-weight: 830;
  font-stretch: 110%;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
}
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding-inline: var(--wrap-pad); }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--signal); color: var(--void);
  padding: .6rem 1rem; font-family: var(--font-mono); font-size: .75rem;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); margin-right: .55em; vertical-align: 1px;
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2s infinite;
}
.live-dot--beta { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.live-dot--build { background: var(--blueprint); box-shadow: 0 0 8px var(--blueprint); }
@keyframes pulse { 50% { opacity: .35; } }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  padding: 1.05em 2.1em; border-radius: 100px; overflow: hidden;
  transition: color .35s var(--ease-out), border-color .35s, transform .35s var(--ease-out);
  white-space: nowrap; isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--signal { background: var(--signal); color: #160702; }
.btn--signal::before { background: var(--bone); }
.btn--ghost { border: 1px solid var(--line); color: var(--bone); background: transparent; }
.btn--ghost::before { background: var(--signal); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #160702; border-color: var(--signal); }
.btn--paper { border-color: rgba(20, 22, 28, .28); color: var(--ink); }
.btn--xl { font-size: .9rem; padding: 1.4em 3em; }

/* section headers */
.sec-label {
  color: var(--bone-faint); margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; align-items: center; gap: .6em;
}
.sec-label-dot { width: 8px; height: 8px; background: var(--signal); border-radius: 1px; display: inline-block; }
.paper .sec-label { color: var(--ink-faint); }
.sec-head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec-title { font-size: var(--fs-h2); }
.sec-note {
  max-width: 46ch; margin-top: 1.4rem; color: var(--bone-dim);
}
.paper .sec-note { color: var(--ink-dim); }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 3.5rem; padding-right: 3.5rem; will-change: transform; }
.marquee-track span { color: var(--bone-faint); }
.marquee-track span:nth-child(7n+1) { color: var(--signal); }

/* hover/touch-conditional copy */
.touch-only { display: none; }
@media (hover: none) {
  .hover-only { display: none; }
  .touch-only { display: inline; }
}

/* paper + blueprint sections */
.paper { background: var(--paper); color: var(--ink); }
.blueprint {
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

/* ============================================================
   BOOT LOADER
   ============================================================ */
.boot {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: var(--void); color: var(--bone);
  flex-direction: column; justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 4rem);
}
html.js .boot { display: flex; }
.boot-core { width: min(560px, 100%); }
.boot-log { color: var(--bone-faint); min-height: 7.5em; line-height: 1.9; }
.boot-log .ok { color: var(--ok); }
.boot-log .sig { color: var(--signal); }
.boot-readout { display: flex; align-items: baseline; gap: 1.5rem; margin-top: 1.2rem; }
.boot-pct {
  font-size: clamp(3rem, 9vw, 6rem); font-weight: 200; letter-spacing: 0;
  font-family: var(--font-mono); color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.boot-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.boot-bar i { position: absolute; inset: 0; right: auto; width: 0%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.boot-skip {
  position: absolute; top: clamp(1.5rem, 5vw, 3rem); right: clamp(1.5rem, 5vw, 3rem);
  color: var(--bone-faint); letter-spacing: .14em; padding: .5em .8em;
  border: 1px solid var(--line); border-radius: 100px; transition: color .3s, border-color .3s;
}
.boot-skip:hover { color: var(--signal); border-color: var(--signal); }

/* ============================================================
   HUD FRAME
   ============================================================ */
.hud { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.hud-edge { position: absolute; background: var(--line); opacity: .9; }
.hud-edge--t { top: var(--hud-inset); left: var(--hud-inset); right: var(--hud-inset); height: 1px; }
.hud-edge--b { bottom: var(--hud-inset); left: var(--hud-inset); right: var(--hud-inset); height: 1px; }
.hud-edge--l { left: var(--hud-inset); top: var(--hud-inset); bottom: var(--hud-inset); width: 1px; }
.hud-edge--r { right: var(--hud-inset); top: var(--hud-inset); bottom: var(--hud-inset); width: 1px; }
.hud-tick { position: absolute; width: 14px; height: 14px; border: 1px solid var(--bone-dim); }
.hud-tick--tl { top: calc(var(--hud-inset) - 6px); left: calc(var(--hud-inset) - 6px); border-right: 0; border-bottom: 0; }
.hud-tick--tr { top: calc(var(--hud-inset) - 6px); right: calc(var(--hud-inset) - 6px); border-left: 0; border-bottom: 0; }
.hud-tick--bl { bottom: calc(var(--hud-inset) - 6px); left: calc(var(--hud-inset) - 6px); border-right: 0; border-top: 0; }
.hud-tick--br { bottom: calc(var(--hud-inset) - 6px); right: calc(var(--hud-inset) - 6px); border-left: 0; border-top: 0; }
.hud-item {
  position: absolute; color: var(--bone-faint); font-size: .625rem;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  padding: .35em .8em; backdrop-filter: blur(6px); border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.hud-seq { left: 50%; transform: translateX(-50%); top: calc(var(--hud-inset) - 8px); }
.hud-vel { right: 50%; transform: translateX(50%); bottom: calc(var(--hud-inset) - 8px); }
.hud-fps { left: calc(var(--hud-inset) + 14px); bottom: calc(var(--hud-inset) - 8px); }
.hud-prog { right: calc(var(--hud-inset) + 14px); bottom: calc(var(--hud-inset) - 8px); }
.hud-dot { display: inline-block; width: 5px; height: 5px; background: var(--signal); border-radius: 50%; margin-right: .7em; vertical-align: 1px; }
#hudVel { color: var(--bone-dim); }

/* ============================================================
   GRAIN + CURSOR
   ============================================================ */
.grain {
  position: fixed; inset: -50%; z-index: 95; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-5%, -8%); }
  30% { transform: translate(3%, -12%); } 50% { transform: translate(-8%, 4%); }
  70% { transform: translate(6%, 8%); } 90% { transform: translate(-3%, 6%); }
}

.cursor { position: fixed; inset: 0; z-index: 250; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor] { cursor: none; }
.cursor-dot {
  position: absolute; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); transform: translate(-50%, -50%);
}
.cursor-ring {
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--bone-dim); transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), border-color .3s, background-color .3s;
}
.cursor-label { font-size: .5rem; letter-spacing: .16em; color: var(--void); opacity: 0; transition: opacity .2s; }
.cursor.is-active .cursor-ring { width: 56px; height: 56px; border-color: var(--signal); }
.cursor.has-label .cursor-ring { width: 64px; height: 64px; background: var(--signal); border-color: var(--signal); }
.cursor.has-label .cursor-label { opacity: 1; }
.cursor.has-label .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { transform: translate(-50%, -50%) scale(.82); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--hud-inset) + 14px) clamp(1.5rem, 3.5vw, 3rem) 14px;
  transition: transform .5s var(--ease-out), background .4s;
}
.nav.is-scrolled {
  background: linear-gradient(color-mix(in srgb, var(--void) 88%, transparent), transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { position: relative; width: 18px; height: 18px; display: inline-block; }
.brand-mark i { position: absolute; inset: 0; border: 1.5px solid var(--blueprint); }
.brand-mark i:last-child { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 22%, transparent); translate: 4px 4px; transition: translate .35s var(--ease-out); }
.nav-brand:hover .brand-mark i:last-child { translate: 0px 0px; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-stretch: 116%; letter-spacing: .02em; font-size: 1.05rem; }
.brand-word em { font-style: normal; font-size: .5em; vertical-align: .9em; color: var(--signal); }
.nav-links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.6rem); }
.nav-link { position: relative; color: var(--bone-dim); padding: .4em 0; transition: color .3s; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--signal); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover { color: var(--bone); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cmdk {
  color: var(--bone-faint); border: 1px solid var(--line); border-radius: 6px;
  padding: .45em .7em; letter-spacing: .05em; transition: color .3s, border-color .3s;
}
.nav-cmdk:hover { color: var(--signal); border-color: var(--signal); }
.nav-burger { display: none; position: relative; width: 40px; height: 40px; }
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--bone);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-burger span:first-child { top: 15px; }
.nav-burger span:last-child { top: 23px; }
.nav-burger.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.nav-burger.is-open span:last-child { top: 19px; transform: rotate(-45deg); }

/* nav contrast flip on paper sections (SEQ.01 / 03 / 06) */
body[data-section="01"] .nav-link, body[data-section="03"] .nav-link, body[data-section="06"] .nav-link { color: var(--ink-dim); }
body[data-section="01"] .nav-link:hover, body[data-section="03"] .nav-link:hover, body[data-section="06"] .nav-link:hover { color: var(--ink); }
body[data-section="01"] .brand-word, body[data-section="03"] .brand-word, body[data-section="06"] .brand-word { color: var(--ink); }
body[data-section="01"] .nav-cmdk, body[data-section="03"] .nav-cmdk, body[data-section="06"] .nav-cmdk { color: var(--ink-dim); border-color: rgba(20, 22, 28, .25); }
body[data-section="01"] .nav-burger span, body[data-section="03"] .nav-burger span, body[data-section="06"] .nav-burger span { background: var(--ink); }
body[data-section="01"] .nav.is-scrolled, body[data-section="03"] .nav.is-scrolled, body[data-section="06"] .nav.is-scrolled {
  background: linear-gradient(color-mix(in srgb, var(--paper) 90%, transparent), transparent);
}
body .nav-burger.is-open span { background: var(--bone); }

/* fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 98; background: var(--void-2);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  display: flex; align-items: center;
  transition: clip-path .7s var(--ease-snap), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path .7s var(--ease-snap); }
.menu-inner { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding: var(--wrap-pad); }
.menu-eyebrow { color: var(--bone-faint); margin-bottom: 2rem; }
.menu-link {
  display: flex; align-items: baseline; gap: 1.5rem; padding: .35em 0;
  font-family: var(--font-display); font-weight: 830; font-stretch: 105%;
  font-size: clamp(2.2rem, 7vw, 4.5rem); text-transform: uppercase; line-height: 1.05;
  color: var(--bone); transition: color .3s, transform .4s var(--ease-out);
}
.menu-idx { font-size: .75rem; color: var(--bone-faint); }
.menu-link:hover { color: var(--signal); transform: translateX(1.5vw); }
.menu-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; color: var(--bone-faint); }
.menu-foot a:hover { color: var(--signal); }

/* ============================================================
   HERO — SEQ.00
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden;
  padding-bottom: 0;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content {
  position: relative; z-index: 2; padding: 0 var(--wrap-pad);
  max-width: var(--wrap-max); margin: 0 auto; width: 100%;
  pointer-events: none;
}
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-eyebrow { color: var(--bone-dim); margin-bottom: 2rem; }
.hero-title { font-size: var(--fs-hero); }
.hero-row { display: block; overflow: hidden; }
.hero-swap { color: var(--signal); }
.hero-caret { color: var(--signal); animation: caret 1.1s steps(2) infinite; font-weight: 300; }
@keyframes caret { 50% { opacity: 0; } }
.hero-sub-wrap {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-top: 2.4rem; margin-bottom: clamp(2rem, 5vh, 4rem); flex-wrap: wrap;
}
.hero-sub { max-width: 44ch; color: var(--bone-dim); }
.hero-sub strong { color: var(--bone); font-weight: 600; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-hints { position: absolute; z-index: 2; top: 21%; left: 0; right: 0; pointer-events: none; }
.hero-hint { position: absolute; color: var(--bone-faint); font-size: .625rem; line-height: 1.8; }
.hero-hint--l { left: clamp(1.5rem, 3.5vw, 3rem); }
.hero-hint--r { right: clamp(1.5rem, 3.5vw, 3rem); text-align: right; }
.hero-scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 108px; transform: translateX(-50%);
  color: var(--bone-faint); font-size: .625rem; display: flex; align-items: center; gap: 1em;
}
.hero-scroll-line { width: 48px; height: 1px; background: var(--bone-faint); position: relative; overflow: hidden; display: inline-block; }
.hero-scroll-line::after { content: ''; position: absolute; inset: 0; background: var(--signal); animation: scrollhint 1.8s var(--ease-snap) infinite; }
@keyframes scrollhint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hero-marquee { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 1rem 0; margin-top: 1rem; margin-bottom: calc(var(--hud-inset) + 22px); }
.hero-swapwrap { white-space: nowrap; }
@media (max-width: 700px) {
  .hero-swapwrap { display: block; }
}

/* ============================================================
   MANIFESTO — SEQ.01
   ============================================================ */
.manifesto { position: relative; padding: clamp(7rem, 16vh, 12rem) 0; overflow: hidden; }
.manifesto .wrap { position: relative; z-index: 2; }
.watermark {
  position: absolute; top: 50%; left: 50%; z-index: 1; translate: -50% -50%;
  font-size: clamp(8rem, 26vw, 24rem); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(46, 79, 208, .13);
  pointer-events: none; user-select: none;
}
.manifesto-text {
  font-family: var(--font-display); font-weight: 700; font-stretch: 104%;
  font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.25; text-transform: none;
  max-width: 24ch;
}
.manifesto-text .w { color: rgba(20, 22, 28, .18); transition: color .3s; }
.manifesto-text .w.is-lit { color: var(--ink); }
.manifesto-text .w.is-key.is-lit { color: var(--signal); }
.manifesto-aside {
  margin-top: 3.5rem; margin-left: auto; max-width: 34ch;
  padding-left: 1.5rem; border-left: 2px solid var(--signal);
  color: var(--ink-dim);
}
.manifesto-aside-label { color: var(--signal); margin-bottom: .6rem; }

/* ============================================================
   SERVICES — SEQ.02
   ============================================================ */
.services { padding: clamp(6rem, 14vh, 10rem) 0; background: var(--void); }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-link {
  display: grid; grid-template-columns: 3.2rem 1fr; grid-template-rows: auto auto auto;
  padding: 1.6rem 0; position: relative; transition: padding .4s var(--ease-out);
}
.svc-idx { grid-row: 1; color: var(--bone-faint); padding-top: .6em; transition: color .3s; }
.svc-name {
  grid-column: 2; font-size: clamp(1.6rem, 3.3vw, 2.7rem);
  transition: transform .45s var(--ease-out), color .3s;
}
.svc-desc {
  grid-column: 2; color: var(--bone-dim); max-width: 52ch;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease-out), opacity .4s .05s, margin .5s var(--ease-out);
}
.svc-tags { grid-column: 2; color: var(--bone-faint); margin-top: .8rem; font-size: .625rem; }
.svc-row:hover .svc-idx, .svc-row:focus-within .svc-idx { color: var(--signal); }
.svc-row:hover .svc-name, .svc-row:focus-within .svc-name { transform: translateX(.6rem); color: var(--signal); }
.svc-row:hover .svc-desc, .svc-row:focus-within .svc-desc { max-height: 8em; opacity: 1; margin-top: .7rem; }

/* preview panel */
.svc-preview {
  position: sticky; top: 15vh; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(rgba(91, 124, 255, .05) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(91, 124, 255, .05) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--void-2);
}
.svc-screen { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .4s; padding: 12%; }
.svc-screen.is-on { opacity: 1; }
.scr-frame {
  width: 100%; aspect-ratio: 16/11; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.scr-bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.scr-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.scr-bar i:first-child { background: var(--signal); }
.scr-hero { flex: 1; padding: 12% 9%; display: flex; flex-direction: column; gap: 10%; justify-content: center; }
.scr-headline { height: 12%; width: 82%; background: var(--bone); border-radius: 3px; animation: scrShimmer 2.4s var(--ease-out) infinite; }
.scr-headline--short { width: 55%; animation-delay: .15s; }
.scr-pill { height: 12%; width: 30%; background: var(--signal); border-radius: 100px; }
.scr-cols { display: flex; gap: 6%; padding: 0 9% 10%; height: 26%; }
.scr-cols i { flex: 1; background: var(--void-2); border: 1px solid var(--line-soft); border-radius: 4px; }
@keyframes scrShimmer { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.scr-shop { flex: 1; display: flex; gap: 8%; padding: 9%; align-items: stretch; }
.scr-prod { flex: 1.2; background: var(--void-2); border: 1px solid var(--line-soft); border-radius: 6px; display: grid; place-items: center; }
.scr-cube { width: 34%; aspect-ratio: 1; background: linear-gradient(135deg, var(--signal), var(--signal-hot)); border-radius: 6px; animation: cubeSpin 4s linear infinite; }
@keyframes cubeSpin { from { transform: rotate(0) } to { transform: rotate(360deg) } }
.scr-buy { flex: 1; display: flex; flex-direction: column; gap: 12%; justify-content: center; }
.scr-buy b { height: 10%; background: var(--bone); opacity: .85; border-radius: 3px; }
.scr-buy b.short { width: 60%; opacity: .4; }
.scr-pill--buy { width: 70%; }

.scr-dash { flex: 1; display: flex; gap: 6%; padding: 8%; }
.scr-side { width: 18%; display: flex; flex-direction: column; gap: 10%; }
.scr-side i { height: 8%; background: var(--line); border-radius: 2px; }
.scr-side i:first-child { background: var(--blueprint); }
.scr-graph { flex: 1; display: flex; align-items: flex-end; gap: 4%; }
.scr-graph i { flex: 1; height: calc(var(--h) * 100%); background: var(--blueprint); border-radius: 2px 2px 0 0; opacity: .85; animation: barBreathe 2.2s ease-in-out infinite; transform-origin: bottom; }
.scr-graph i:nth-child(even) { background: var(--signal); animation-delay: .3s; }
@keyframes barBreathe { 50% { transform: scaleY(.82); } }

.scr-frame--brand { align-items: center; justify-content: center; gap: 8%; flex-direction: row; }
.scr-logo { width: 16%; aspect-ratio: 1; border: 2px solid var(--signal); animation: logoMorph 3s var(--ease-snap) infinite; }
@keyframes logoMorph { 0%, 100% { border-radius: 0; transform: rotate(0); } 50% { border-radius: 50%; transform: rotate(180deg); } }
.scr-word { color: var(--bone); font-size: clamp(1.2rem, 2.2vw, 2rem); animation: wordStretch 3s var(--ease-snap) infinite; }
@keyframes wordStretch { 0%, 100% { font-stretch: 62%; } 50% { font-stretch: 150%; } }

.scr-chat { flex: 1; display: flex; flex-direction: column; gap: 8%; padding: 9%; justify-content: center; }
.scr-msg { height: 12%; border-radius: 100px; }
.scr-msg--in { width: 55%; background: var(--panel); border: 1px solid var(--line); align-self: flex-start; }
.scr-msg--out { width: 48%; background: var(--signal); align-self: flex-end; }
.scr-msg--typing { display: flex; align-items: center; gap: 6px; padding-left: 14px; width: 30%; background: var(--panel); border: 1px solid var(--line); }
.scr-msg--typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--bone-dim); animation: typing 1.2s infinite; }
.scr-msg--typing i:nth-child(2) { animation-delay: .2s; }
.scr-msg--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 60% { opacity: .4; } }

/* ============================================================
   LAB — SEQ.03
   ============================================================ */
.lab { padding: clamp(6rem, 14vh, 10rem) 0; }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.lab-tile {
  background: #F6F3EA;
  border: 1px solid rgba(46, 79, 208, .25); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 48px rgba(20, 22, 28, .08);
}
.lab-tile-head, .lab-tile-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1.2rem; color: var(--ink-dim); font-size: .625rem;
}
.lab-tile-head { border-bottom: 1px dashed rgba(46, 79, 208, .3); }
.lab-tile-foot { border-top: 1px dashed rgba(46, 79, 208, .3); color: var(--ink-faint); }
.lab-btn {
  color: var(--blueprint-deep); border: 1px solid rgba(46, 79, 208, .4); border-radius: 100px;
  padding: .4em 1em; font-size: .625rem; letter-spacing: .12em;
  transition: background .3s, color .3s, border-color .3s;
}
.lab-btn:hover { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.lab-read { color: var(--ink-faint); font-size: .625rem; }
.lab-read b { color: var(--signal); font-weight: 600; font-variant-numeric: tabular-nums; }
.lab-stage { position: relative; aspect-ratio: 16 / 10; touch-action: pan-y; overflow: hidden; }
#gooStage { background: var(--ink); }
#gravityStage canvas { position: absolute; inset: 0; }
.lab-stage--morph { display: grid; place-items: center; cursor: grab; }
.lab-stage--morph:active { cursor: grabbing; }
.morph-word {
  font-size: clamp(3rem, 8vw, 6.5rem); color: var(--ink); user-select: none;
  font-variation-settings: 'wght' 800, 'wdth' 100;
}
#gooCanvas { width: 100%; height: 100%; }
.lab-stage--decode { aspect-ratio: auto; padding: 1.6rem 1.2rem; display: flex; flex-direction: column; gap: 1.1rem; justify-content: center; flex: 1; }
.decode-line {
  color: var(--ink-faint); font-size: .8rem; letter-spacing: .1em; cursor: crosshair;
  transition: color .3s; overflow-wrap: anywhere;
}
.decode-line.is-decoded { color: var(--ink); }
.decode-line.is-decoded::after { content: ' ✓'; color: var(--ok); }
.lab-sound {
  margin-top: clamp(2rem, 5vw, 3.5rem); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  color: var(--ink-dim);
}
#soundToggle[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--paper); }

/* gravity chips (DOM-based, positioned by matter.js) */
.grav-chip {
  position: absolute; top: 0; left: 0; padding: .55em 1.1em; border-radius: 100px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  background: var(--ink); color: var(--paper); white-space: nowrap; will-change: transform;
  user-select: none; cursor: grab;
}
.grav-chip:nth-child(3n) { background: var(--signal); color: #160702; }
.grav-chip:nth-child(4n) { background: var(--blueprint); color: #fff; }

/* ============================================================
   WORK — SEQ.04
   ============================================================ */
.work { background: var(--void-2); }
.work-pin { overflow: hidden; padding: clamp(3.5rem, 8vh, 5.5rem) 0 clamp(1.5rem, 4vh, 2.5rem); display: flex; flex-direction: column; justify-content: space-between; }
.work .sec-title { font-size: clamp(2rem, 4.6vw, 4rem); }
.work-head { width: 100%; }
.work-head .sec-head { margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.work-head .sec-label { margin-bottom: 1.2rem; }
.work-progress { display: inline-block; margin-left: 1.5rem; color: var(--bone-faint); }
.work-progress b { color: var(--signal); font-weight: 600; }
.work-track {
  display: flex; gap: clamp(1.5rem, 3vw, 3rem); align-items: stretch;
  padding-left: var(--wrap-pad); padding-right: var(--wrap-pad); width: max-content;
}
.work-card { width: min(58vw, 520px); flex-shrink: 0; display: flex; flex-direction: column; gap: 1.1rem; }
@media (min-width: 901px) and (max-height: 800px) {
  .work-card { width: min(48vw, 440px); }
  .work-line { display: none; }
}
.work-mock {
  position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--blueprint) 55%, transparent);
  transition: border-color .5s, transform .6s var(--ease-out), box-shadow .6s;
}
.mock-chrome {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #191d27; border-bottom: 1px solid var(--line-soft);
  color: var(--bone-faint); font-size: .6rem; letter-spacing: .08em; text-transform: lowercase;
}
.mock-chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock-chrome span { margin-left: 10px; }
.mock-ui { position: absolute; inset: 34px 0 0; transition: filter .55s var(--ease-out), opacity .55s; filter: grayscale(1) contrast(.85) brightness(.75); opacity: .68; }
.work-mock::after {
  content: ''; position: absolute; inset: 34px 0 0; pointer-events: none;
  background:
    linear-gradient(rgba(91, 124, 255, .16) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(91, 124, 255, .16) 1px, transparent 1px) 0 0 / 28px 100%;
  opacity: 1; transition: opacity .5s;
}
.work-card:hover .work-mock, .work-card:focus-within .work-mock {
  border-color: var(--signal); border-style: solid; transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}
.work-card:hover .mock-ui, .work-card:focus-within .mock-ui { filter: none; opacity: 1; }
.work-card:hover .work-mock::after, .work-card:focus-within .work-mock::after { opacity: 0; }
.work-chip {
  position: absolute; top: 44px; right: 10px; z-index: 3;
  font-size: .5rem; letter-spacing: .14em; color: var(--blueprint);
  border: 1px solid color-mix(in srgb, var(--blueprint) 50%, transparent);
  padding: .35em .7em; border-radius: 3px; background: color-mix(in srgb, var(--void) 60%, transparent);
  transition: opacity .4s;
}
.work-card:hover .work-chip { opacity: 0; }
.work-meta { display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; }
.work-idx { color: var(--bone-faint); padding-top: .5em; }
.work-name { grid-column: 2; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.work-line { grid-column: 2; color: var(--bone-dim); max-width: 52ch; margin-top: .3rem; font-size: .95rem; }
.work-tags { grid-column: 2; color: var(--bone-faint); margin-top: .55rem; font-size: .625rem; }

/* touch devices can't hover: show cards fully rendered */
@media (hover: none) {
  .mock-ui { filter: none; opacity: 1; }
  .work-mock { border-style: solid; border-color: var(--line); }
  .work-mock::after { opacity: 0; }
}

/* mock inner UIs */
.mock-ui--aurum { background: radial-gradient(120% 100% at 70% 20%, #2a2110, #16120a 70%); padding: 8% 7%; display: flex; flex-direction: column; gap: 7%; }
.mock-line { display: block; background: #d9c186; border-radius: 3px; }
.mock-line--xl { height: 11%; width: 62%; }
.mock-line--md { height: 7%; width: 38%; opacity: .5; }
.mock-gems { display: flex; gap: 6%; flex: 1; align-items: center; }
.mock-gems i { width: 17%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffe9ad, #b98a2c 65%, #6b4c12); animation: gemFloat 3.4s ease-in-out infinite; }
.mock-gems i:nth-child(2) { animation-delay: .5s; }
.mock-gems i:nth-child(3) { animation-delay: 1s; }
@keyframes gemFloat { 50% { transform: translateY(-12%); } }
.mock-cta { height: 9%; width: 30%; border-radius: 100px; background: #d9c186; }

.mock-ui--vanta { background: linear-gradient(160deg, #10141f, #0a0d16); padding: 7%; display: flex; flex-direction: column; gap: 8%; }
.mock-kpis { display: flex; gap: 4%; height: 22%; }
.mock-kpis i { flex: 1; background: #171c2b; border: 1px solid rgba(91, 124, 255, .25); border-radius: 5px; }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 3%; }
.mock-chart i { flex: 1; height: calc(var(--h) * 100%); background: var(--blueprint); border-radius: 2px 2px 0 0; animation: barBreathe 2.6s ease-in-out infinite; transform-origin: bottom; }
.mock-chart i:nth-child(3n) { background: var(--signal); animation-delay: .4s; }

.mock-ui--kova { background: #d8d5cd; padding: 6%; display: flex; flex-direction: column; gap: 6%; }
.mock-gallery { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.mock-gallery i { background: linear-gradient(110deg, #b9b5aa 30%, #cfccc3 45%, #b9b5aa 60%); background-size: 220% 100%; border-radius: 3px; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -80% 0; } }
.mock-ui--kova .mock-line--md { background: #6b675d; }

.mock-ui--pulse { background: linear-gradient(170deg, #0c1a14, #08110d); padding: 7%; display: flex; gap: 7%; }
.mock-feed { flex: 1.4; display: flex; flex-direction: column; gap: 7%; }
.mock-post { flex: 1; display: flex; align-items: center; gap: 6%; background: rgba(61, 220, 132, .07); border: 1px solid rgba(61, 220, 132, .18); border-radius: 6px; padding: 0 5%; }
.mock-post i { width: 12%; aspect-ratio: 1; border-radius: 50%; background: var(--ok); opacity: .8; }
.mock-post b { height: 18%; flex: 1; background: rgba(242, 239, 231, .35); border-radius: 2px; }
.mock-ring { flex: 1; align-self: center; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--ok) 0 72%, rgba(61, 220, 132, .15) 72% 100%); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); animation: ringSpin 6s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.mock-ui--orbital { background: radial-gradient(140% 120% at 30% 10%, #2b1040, #12061f 70%); padding: 7%; display: flex; flex-direction: column; gap: 8%; }
.mock-poster { color: #ff5adf; font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: .02em; text-shadow: 4px 4px 0 rgba(91, 124, 255, .55); animation: posterGlitch 2.8s steps(1) infinite; }
@keyframes posterGlitch { 0%, 92% { transform: translate(0); } 94% { transform: translate(-3px, 1px) skewX(-4deg); } 96% { transform: translate(2px, -1px); } 98% { transform: skewX(3deg); } }
.mock-rows { flex: 1; display: flex; flex-direction: column; gap: 8%; }
.mock-rows i { flex: 1; background: rgba(255, 90, 223, .14); border: 1px solid rgba(255, 90, 223, .3); border-radius: 3px; }

.work-card--cta { display: grid; }
.work-next {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem;
  border: 1px dashed var(--line); border-radius: 10px; padding: clamp(2rem, 4vw, 4rem);
  height: 100%; transition: border-color .4s, background .4s;
}
.work-next:hover { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, transparent); }
.work-next-idx { color: var(--bone-faint); }
.work-next-title { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--bone); }

/* ============================================================
   PRODUCTS — SEQ.05
   ============================================================ */
.products { padding: clamp(6rem, 14vh, 10rem) 0; background: var(--void); }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); perspective: 1200px; }
.prod-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem;
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .4s;
}
.prod-card:hover { border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); }
.prod-status { display: flex; align-items: center; color: var(--bone-faint); font-size: .625rem; }
.prod-ui {
  aspect-ratio: 16 / 9.5; border-radius: 8px; border: 1px solid var(--line-soft);
  background: var(--void-2); overflow: hidden; padding: 9%; transform: translateZ(28px);
}
.prod-name { font-size: 1.6rem; }
.prod-line { color: var(--bone-dim); }
.prod-feats { display: flex; flex-direction: column; gap: .55rem; color: var(--bone-faint); font-size: .625rem; margin-top: .2rem; }
.prod-feats li::before { content: '◆ '; color: var(--signal); }
.prod-cta { margin-top: auto; align-self: flex-start; }

/* pulsedeck mini UI */
.prod-ui--pulsedeck { display: flex; flex-direction: column; gap: 9%; }
.pd-head { display: flex; justify-content: space-between; color: var(--bone-faint); font-size: .55rem; }
.pd-tick { color: var(--ok); }
.pd-tick.is-down { color: var(--signal); }
.pd-spark { height: 34%; }
.pd-spark svg { width: 100%; height: 100%; }
.pd-spark polyline { stroke: var(--signal); stroke-width: 2; }
.pd-bars { flex: 1; display: flex; align-items: flex-end; gap: 4%; }
.pd-bars i { flex: 1; background: var(--blueprint); border-radius: 2px 2px 0 0; height: 30%; animation: pdBar 2.8s ease-in-out infinite; }
.pd-bars i:nth-child(2n) { animation-delay: .35s; height: 55%; }
.pd-bars i:nth-child(3n) { animation-delay: .7s; height: 75%; background: var(--signal); }
@keyframes pdBar { 50% { transform: scaleY(.6); } }
.pd-bars i { transform-origin: bottom; }

/* formforge mini UI */
.prod-ui--formforge { position: relative; }
.ff-form { display: flex; flex-wrap: wrap; gap: 8%; align-content: center; height: 100%; }
.ff-field {
  height: 14%; width: 100%; border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel); opacity: 0; animation: ffField 5s infinite; animation-delay: calc(var(--d) * .45s);
}
.ff-field--half { width: 46%; }
.ff-send { height: 15%; width: 40%; background: var(--signal); border-radius: 100px; opacity: 0; animation: ffField 5s infinite; animation-delay: calc(var(--d) * .45s); }
@keyframes ffField { 6%, 78% { opacity: 1; transform: translateY(0); } 0% { opacity: 0; transform: translateY(8px); } 90%, 100% { opacity: 0; } }
.ff-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.2rem; color: var(--ok); opacity: 0; animation: ffCheck 5s infinite;
}
@keyframes ffCheck { 0%, 78% { opacity: 0; transform: scale(.6); } 84%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* briefly mini UI */
.bf-cols { display: flex; gap: 6%; height: 100%; }
.bf-col { flex: 1; border: 1px dashed var(--line); border-radius: 6px; padding: 6%; display: flex; flex-direction: column; gap: 8%; }
.bf-task {
  height: 20%; border-radius: 4px; background: var(--blueprint); opacity: .8;
  animation: bfTask 4s ease-in-out infinite; animation-delay: calc(var(--d) * .5s);
}
.bf-task--done { background: var(--ok); }
@keyframes bfTask { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(30%); } }

/* ============================================================
   PIPELINE — SEQ.06
   ============================================================ */
.pipeline { padding: clamp(6rem, 14vh, 10rem) 0 clamp(4rem, 8vh, 6rem); }
.pipe-stage { position: relative; width: min(1000px, 100%); margin: 0 auto; aspect-ratio: 1000 / 1400; }
.pipe-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#pipePathBg { stroke: rgba(46, 79, 208, .3); stroke-width: 2; stroke-dasharray: 7 9; }
#pipePath { stroke: var(--signal); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 77, 36, .6)); }
.pipe-node { fill: var(--paper); stroke: var(--blueprint-deep); stroke-width: 2; transition: fill .4s, stroke .4s; }
.pipe-node.is-lit { fill: var(--signal); stroke: var(--signal); filter: drop-shadow(0 0 8px rgba(255, 77, 36, .7)); }
#pipePacket rect { fill: var(--signal); stroke: #160702; stroke-width: 1.5; filter: drop-shadow(0 0 10px rgba(255, 77, 36, .8)); }
.pipe-steps { position: absolute; inset: 0; }
.pipe-step { position: absolute; top: var(--y); width: min(34ch, 36%); }
.pipe-step--l { left: 2%; text-align: left; }
.pipe-step--r { right: 2%; }
.pipe-num { color: var(--blueprint-deep); font-size: .625rem; display: block; margin-bottom: .5rem; }
.pipe-name { font-size: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.pipe-step p { color: var(--ink-dim); font-size: .95rem; }
.pipe-step { opacity: .25; transform: translateY(14px); transition: opacity .5s, transform .5s var(--ease-out); }
.pipe-step.is-lit { opacity: 1; transform: translateY(0); }

/* ============================================================
   SIGNALS — SEQ.07
   ============================================================ */
.signals { padding: clamp(6rem, 14vh, 10rem) 0; background: var(--void-2); overflow: hidden; }
.sig-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.sig-stat { background: var(--void-2); padding: clamp(1.4rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: .9rem; }
.sig-num { font-size: clamp(2.4rem, 5.4vw, 4.6rem); color: var(--signal); font-variant-numeric: tabular-nums; }
.sig-cap { color: var(--bone-faint); font-size: .625rem; }
.sig-quotes { overflow: visible; cursor: grab; }
.sig-quotes:active { cursor: grabbing; }
.sig-quotes-track { display: flex; gap: clamp(1.2rem, 2.5vw, 2rem); width: max-content; will-change: transform; }
.sig-quote {
  width: min(78vw, 420px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.8rem; display: flex; flex-direction: column; gap: 1.4rem;
  user-select: none;
}
.sig-quote p { font-size: 1.05rem; line-height: 1.55; color: var(--bone); }
.sig-quote footer { color: var(--bone-faint); font-size: .625rem; }
.sig-quote p::before { content: '“'; color: var(--signal); font-family: var(--font-display); }

/* ============================================================
   TRANSMIT — SEQ.08
   ============================================================ */
.transmit {
  position: relative; min-height: 92svh; display: flex; align-items: center;
  background: var(--void); overflow: hidden;
}
.transmit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.transmit-inner { position: relative; z-index: 2; width: 100%; }
.transmit-title { font-size: clamp(3rem, 10vw, 9rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.t-row { display: block; overflow: hidden; }
.t-row--signal { color: var(--signal); }
.transmit-actions { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }
.transmit-meta { display: flex; flex-direction: column; gap: .6rem; color: var(--bone-faint); }
.transmit-meta a { color: var(--bone-dim); transition: color .3s; }
.transmit-meta a:hover { color: var(--signal); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: #07080D; border-top: 1px solid var(--line-soft); padding: clamp(3.5rem, 8vw, 6rem) 0 calc(var(--hud-inset) + 3rem); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: clamp(2rem, 4vw, 4rem); margin-bottom: clamp(3rem, 7vw, 5rem); }
.foot-label { color: var(--bone-faint); margin-bottom: 1.2rem; }
.foot-tag { color: var(--bone-dim); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-link { color: var(--bone-dim); padding: .35em 0; transition: color .3s, transform .3s var(--ease-out); }
.foot-link:hover { color: var(--signal); transform: translateX(4px); }
.foot-status { color: var(--bone-dim); padding: .35em 0; }
.foot-word { overflow: hidden; line-height: .8; margin-bottom: 2.5rem; }
.foot-word span {
  display: block; font-size: clamp(3.2rem, 12vw, 12.5rem); text-align: center; white-space: nowrap;
  font-stretch: 104%;
  color: transparent; -webkit-text-stroke: 1px var(--bone-faint);
  background: linear-gradient(90deg, var(--signal), var(--signal-hot));
  -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat;
}
.foot-base {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  color: var(--bone-faint); border-top: 1px solid var(--line-soft); padding-top: 1.6rem; font-size: .625rem;
}
.foot-base b { color: var(--bone-dim); }
.foot-hint { letter-spacing: .3em; opacity: .5; transition: opacity .3s, color .3s; }
.foot-hint:hover { opacity: 1; color: var(--signal); }

/* ============================================================
   COMMAND PALETTE + TOAST
   ============================================================ */
.cmdk {
  position: fixed; inset: 0; z-index: 260; display: grid; place-items: start center;
  padding-top: 16vh; background: rgba(7, 8, 13, .6); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.cmdk.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.cmdk-panel {
  width: min(560px, calc(100vw - 2.5rem)); background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  transform: translateY(12px) scale(.98); transition: transform .25s var(--ease-out);
}
.cmdk.is-open .cmdk-panel { transform: none; }
.cmdk-head { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line-soft); }
.cmdk-glyph { color: var(--signal); }
.cmdk-input { flex: 1; background: none; border: 0; outline: 0; color: var(--bone); font-size: .8rem; letter-spacing: .1em; }
.cmdk-input::placeholder { color: var(--bone-faint); }
.cmdk-list { max-height: 320px; overflow-y: auto; padding: .5rem; }
.cmdk-item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 1rem; border-radius: 8px; color: var(--bone-dim); cursor: pointer;
  font-size: .7rem;
}
.cmdk-item .k { color: var(--bone-faint); font-size: .6rem; }
.cmdk-item.is-sel { background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--bone); }
.cmdk-item.is-sel .k { color: var(--signal); }
.cmdk-foot { display: flex; gap: 1.6rem; padding: .8rem 1.3rem; border-top: 1px solid var(--line-soft); color: var(--bone-faint); font-size: .55rem; }

.toast {
  position: fixed; bottom: calc(var(--hud-inset) + 2.4rem); left: 50%; z-index: 270;
  transform: translate(-50%, 300%); visibility: hidden; background: var(--bone); color: var(--void);
  padding: .9em 1.6em; border-radius: 100px; font-size: .7rem; letter-spacing: .12em;
  transition: transform .5s var(--ease-out), visibility 0s .5s; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 3rem); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out); }

/* ============================================================
   MODE SWITCH — SIMPLE | SPECTACULAR
   ============================================================ */
.modeswitch {
  position: relative; display: inline-flex; align-items: center;
  background: color-mix(in srgb, var(--void-2) 92%, transparent);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 3px; isolation: isolate;
}
.modeswitch-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0;
  border-radius: 100px; background: var(--bone); z-index: 0;
  transition: transform .45s var(--ease-snap), width .45s var(--ease-snap), background-color .45s;
}
.modeswitch[data-active="spectacular"] .modeswitch-thumb { background: var(--signal); }
.modeswitch-opt {
  position: relative; z-index: 1;
  font-size: .5625rem; font-weight: 700; letter-spacing: .12em;
  color: var(--bone-dim); padding: .55em 1em; border-radius: 100px;
  transition: color .3s;
}
.modeswitch-opt:hover { color: var(--bone); }
.modeswitch-opt[aria-pressed="true"] { color: var(--void); }
.modeswitch[data-active="spectacular"] .modeswitch-opt[aria-pressed="true"] { color: #160702; }

/* mode-switch transition veil */
.rerender {
  position: fixed; inset: 0; z-index: 400; background: var(--void);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .22s ease-out, visibility 0s .22s;
  color: var(--bone-faint); letter-spacing: .3em; font-size: .625rem;
}
.rerender.is-on { opacity: 1; visibility: visible; transition: opacity .18s ease-out; }
.rerender-line { width: 120px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.rerender-line::after { content: ''; position: absolute; inset: 0; background: var(--signal); animation: scrollhint .5s linear infinite; }
.rerender-text { animation: rerenderFlicker .35s steps(2) infinite; }
@keyframes rerenderFlicker { 50% { opacity: .35; } }

/* ============================================================
   TOUR MODE — the site demos itself
   ============================================================ */
.tourbtn {
  color: var(--bone-dim); border: 1px solid var(--line); border-radius: 100px;
  padding: .5em 1em; font-size: .5625rem; font-weight: 700; letter-spacing: .12em;
  transition: color .3s, border-color .3s, background-color .3s;
  white-space: nowrap;
}
.tourbtn:hover { color: var(--signal); border-color: var(--signal); }
body.touring .tourbtn { background: var(--signal); border-color: var(--signal); color: #160702; }
.tourbar {
  position: fixed; left: 50%; bottom: calc(var(--hud-inset) + 34px); z-index: 120;
  transform: translate(-50%, 200%); opacity: 0; visibility: hidden;
  display: flex; align-items: center; gap: .8em;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .7em 1.4em; font-size: .625rem; letter-spacing: .14em; color: var(--bone);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .5s var(--ease-out), opacity .4s, visibility 0s .5s;
  max-width: calc(100vw - 3rem); white-space: nowrap; overflow: hidden;
}
body.touring .tourbar { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .4s; }
.tourbar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.2s infinite; flex: none; }
#tourCap b { color: var(--signal); font-weight: 600; }

/* ============================================================
   WARP — the page reacts to reckless scrolling
   ============================================================ */
.warp {
  position: fixed; inset: 0; z-index: 85; pointer-events: none;
  mix-blend-mode: screen; opacity: .85;
}
.hud-vel.is-warp, .hud-vel.is-warp #hudVel { color: var(--signal); }
.hud-vel.is-warp { border: 0; text-shadow: 0 0 12px color-mix(in srgb, var(--signal) 60%, transparent); }

/* ============================================================
   MELTDOWN — they pressed the button
   ============================================================ */
.foot-panic {
  color: var(--bone-faint); border: 1px solid var(--line); border-radius: 3px;
  padding: .4em .8em; font-size: .5625rem; letter-spacing: .18em;
  transition: color .3s, border-color .3s, transform .15s;
}
.foot-panic:hover { color: var(--signal); border-color: var(--signal); transform: translateY(-1px); }
.meltdown {
  position: fixed; inset: 0; z-index: 390; display: grid; place-items: center;
  background: color-mix(in srgb, var(--void) 55%, transparent);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
  pointer-events: none;
}
.meltdown.is-on { opacity: 1; visibility: visible; transition: opacity .12s; }
.meltdown span {
  font-size: clamp(1rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: .2em;
  color: var(--signal); text-shadow: 3px 0 0 var(--blueprint), -3px 0 0 #ff2ee6;
  animation: meltText .12s steps(2) infinite;
}
@keyframes meltText { 50% { transform: translate(3px, -2px) skewX(-6deg); opacity: .7; } }
body.meltdown-live main, body.meltdown-live .nav, body.meltdown-live .foot {
  animation: meltShake 1.5s steps(3) both;
}
@keyframes meltShake {
  0%, 100% { transform: translate(0); filter: none; }
  10% { transform: translate(-8px, 4px); filter: invert(1) hue-rotate(90deg); }
  20% { transform: translate(6px, -6px) skewX(2deg); filter: none; }
  35% { transform: translate(-4px, 2px); filter: hue-rotate(200deg) saturate(3); }
  50% { transform: translate(9px, 3px) skewX(-3deg); filter: invert(1); }
  65% { transform: translate(-6px, -4px); filter: none; }
  80% { transform: translate(3px, 6px); filter: hue-rotate(300deg); }
  92% { transform: translate(-2px, 0); filter: none; }
}

/* hide the show-offs where they can't perform */
html.mode-simple .tourbtn,
html.mode-simple .warp,
html.mode-simple .tourbar { display: none; }
@media (max-width: 640px) { .tourbtn { display: none; } }

/* ============================================================
   SIMPLE MODE — the designed calm edition. Same content, same
   craft, nothing moves unless the visitor asks it to.
   ============================================================ */
html.mode-simple .boot,
html.mode-simple .hud,
html.mode-simple .grain,
html.mode-simple .cursor,
html.mode-simple #heroCanvas,
html.mode-simple .hero-hints,
html.mode-simple .hero-scroll,
html.mode-simple .lab-sound,
html.mode-simple .transmit-canvas { display: none; }

html.mode-simple { cursor: auto; }
html.mode-simple a, html.mode-simple button { cursor: pointer; }

/* hero: quiet static ground with a faint dot field where the particles were */
html.mode-simple .hero {
  background:
    radial-gradient(rgba(91, 124, 255, .18) 1px, transparent 1.5px) 0 0 / 26px 26px,
    radial-gradient(rgba(255, 77, 36, .12) 1px, transparent 1.5px) 13px 13px / 52px 52px,
    radial-gradient(120% 90% at 70% 30%, #10131b 0%, var(--void) 60%);
}
html.mode-simple .hero-caret { animation: none; }
html.mode-simple .live-dot { animation: none; }
html.mode-simple .marquee-track { animation: none !important; }
html.mode-simple .hero-scroll-line::after { animation: none; }

/* freeze the decorative loops; leave hover feedback alive */
html.mode-simple .scr-headline, html.mode-simple .scr-cube, html.mode-simple .scr-logo,
html.mode-simple .scr-word, html.mode-simple .scr-graph i, html.mode-simple .scr-msg--typing i,
html.mode-simple .mock-gems i, html.mode-simple .mock-chart i, html.mode-simple .mock-gallery i,
html.mode-simple .mock-ring, html.mode-simple .mock-poster,
html.mode-simple .pd-bars i, html.mode-simple .bf-task { animation: none; }
html.mode-simple .ff-field, html.mode-simple .ff-send { animation: none; opacity: 1; transform: none; }
html.mode-simple .ff-check { display: none; }

/* work: a readable vertical gallery at every width */
html.mode-simple .work-track { flex-direction: column; width: 100%; padding-right: var(--wrap-pad); }
html.mode-simple .work-card { width: 100%; max-width: 720px; }
html.mode-simple .work-progress { display: none; }

/* pipeline: the printed version */
html.mode-simple .pipe-stage { aspect-ratio: auto; }
html.mode-simple .pipe-svg { display: none; }
html.mode-simple .pipe-steps { position: static; display: flex; flex-direction: column; gap: 2.5rem; max-width: 640px; }
html.mode-simple .pipe-step { position: static; width: 100%; opacity: 1; transform: none; padding-left: 1.4rem; border-left: 2px solid var(--signal); text-align: left; }

/* quotes: an honest scroll rail */
html.mode-simple .sig-quotes { overflow-x: auto; cursor: auto; padding-bottom: .8rem; }
html.mode-simple .sig-quote { user-select: text; }

/* self-aware footer note */
html.mode-simple .foot-hint { visibility: hidden; }
html.mode-simple .foot-word span { background-size: 100% 100%; }

/* ============================================================
   PARTY MODE
   ============================================================ */
body.party { --signal: #ff2ee6; --blueprint: #2effc9; }
body.party .grain { opacity: .09; }
body.party main, body.party .foot { animation: partyHue 5s linear infinite; }
@keyframes partyHue { to { filter: hue-rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --hud-inset: 8px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hud-fps, .hud-prog { display: none; }
  .hud-vel { right: calc(var(--hud-inset) + 8px); transform: none; }
  .hero-hint--r { display: none; }
  .work-track { flex-direction: column; width: 100%; padding-right: var(--wrap-pad); }
  .work-card { width: 100%; }
  .sig-stats { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr; }
  .pipe-stage { aspect-ratio: auto; }
  .pipe-svg { display: none; }
  .pipe-steps { position: static; display: flex; flex-direction: column; gap: 2.5rem; }
  .pipe-step { position: static; width: 100%; opacity: 1; transform: none; padding-left: 1.4rem; border-left: 2px solid var(--bp-line); }
  .pipe-step.is-lit { border-left-color: var(--signal); }
}
@media (max-width: 640px) {
  .nav-cmdk { display: none; }
  .nav-right { gap: .6rem; }
  .modeswitch-opt { font-size: .5rem; padding: .5em .7em; letter-spacing: .09em; }
  .hero-sub-wrap { flex-direction: column; align-items: flex-start; }
  .hero-hints { display: none; }
  .svc-link { grid-template-columns: 2.2rem 1fr; }
  .sig-stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .work-meta { grid-template-columns: 2.2rem 1fr; }
  .menu-link { font-size: clamp(1.8rem, 9vw, 2.6rem); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .grain { animation: none; }
  .hero-caret { animation: none; }
  .pipe-step { opacity: 1; transform: none; }
  .manifesto-text .w { color: var(--ink); }
}
