/* =========================================================================
   OUTER GAMES — styles.css
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:        #000000;
  --bg-2:      #0a0a0a;
  --bg-3:      #121212;
  --bg-paper:  #f4f1ea;

  --ink:       #ffffff;
  --ink-2:     #a0a0a0;
  --ink-3:     #555555;
  --ink-paper: #0a0a0a;

  --line:    rgba(255,255,255,0.10);
  --line-2:  rgba(255,255,255,0.18);
  --line-paper: rgba(0,0,0,0.12);

  --accent-cy: #00f0ff;
  --accent-cy-soft: rgba(0,240,255,0.12);
  --accent-hz: #d8ff00;
  --accent-hz-soft: rgba(216,255,0,0.10);

  --hud-glow: 0 0 12px rgba(0,240,255,0.55);

  --ff-display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --ff-display-bold: "Archivo", system-ui, sans-serif;
  --ff-body: "Inter Tight", "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
  --ff-pixel: "VT323", ui-monospace, monospace;

  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-snap: cubic-bezier(.2,.8,.2,1);

  --container: 1400px;
  --pad: 40px;

  --stripe-brand: repeating-linear-gradient(-65deg, var(--ink) 0, var(--ink) 3px, transparent 3px, transparent 13px);
  --stripe-soft:  repeating-linear-gradient(-65deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 12px);
  --stripe-paper: repeating-linear-gradient(-65deg, rgba(0,0,0,0.06) 0, rgba(0,0,0,0.06) 2px, transparent 2px, transparent 12px);
  --stripe-hazard: repeating-linear-gradient(-45deg, var(--accent-hz) 0, var(--accent-hz) 12px, var(--ink) 12px, var(--ink) 24px);
}

/* ---------- Light theme — viewer-toggleable ---------- */
:root { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg:        #f4f1ea;     /* same bone paper as manifesto */
  --bg-2:      #ebe6d8;
  --bg-3:      #e0d9c5;
  --bg-paper:  #ffffff;     /* manifesto inverts in light mode: becomes pure */
  --ink:       #0a0a0a;
  --ink-2:     #4a4a4a;
  --ink-3:     #7a7a7a;
  --ink-paper: #ffffff;     /* manifesto text becomes white */
  --line:    rgba(0,0,0,0.10);
  --line-2:  rgba(0,0,0,0.20);
  --line-paper: rgba(255,255,255,0.12);
  --accent-cy: #00b8c4;     /* slightly deeper cyan reads better on light */
  --accent-hz: #c8e600;     /* slightly deeper yellow-green */
  --hud-glow: 0 0 12px rgba(0,184,196,0.4);
  --stripe-brand: repeating-linear-gradient(-65deg, var(--ink) 0, var(--ink) 3px, transparent 3px, transparent 13px);
  --stripe-soft:  repeating-linear-gradient(-65deg, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 2px, transparent 2px, transparent 12px);
  --stripe-paper: repeating-linear-gradient(-65deg, rgba(255,255,255,0.10) 0, rgba(255,255,255,0.10) 2px, transparent 2px, transparent 12px);
}

/* Smooth theme transition */
html, body {
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* Light-mode component overrides (hardcoded colors / blend modes) */
/* Manifesto inverts — now the dark moment in a light page */
html[data-theme="light"] .manifesto { background: #0a0a0a; color: #fff; }
html[data-theme="light"] .manifesto .section-tag { color: rgba(255,255,255,0.55); }
html[data-theme="light"] .manifesto .section-h2 { color: #fff; }
html[data-theme="light"] .manifesto .section-h2 .accent-hz { color: #fff; background: linear-gradient(transparent 75%, var(--accent-hz) 75%); }
html[data-theme="light"] .manifesto-right strong { color: #fff; background: linear-gradient(transparent 78%, var(--accent-hz) 78%); }
html[data-theme="light"] .manifesto-right .signed { color: rgba(255,255,255,0.55); border-top-color: rgba(255,255,255,0.12); }
html[data-theme="light"] .manifesto::before {
  background: repeating-linear-gradient(-65deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 12px);
  opacity: 0.5;
}

/* Logos: black silhouettes instead of white */
html[data-theme="light"] .trust-track img { filter: none; opacity: 0.85; mix-blend-mode: multiply; }
html[data-theme="light"] .trust-track img:hover { filter: none; opacity: 1; mix-blend-mode: multiply; }

/* Trust strip background */
html[data-theme="light"] .trust { background: rgba(244,241,234,0.9); }

/* Nav (light): no blend, opaque white pill on light bg */
html[data-theme="light"] .nav-logo-img { mix-blend-mode: normal; }
html[data-theme="light"] .nav[data-scrolled="true"] { background: rgba(244,241,234,0.85); border-bottom-color: rgba(0,0,0,0.10); }
html[data-theme="light"] .nav-cta { background: #0a0a0a; color: #f4f1ea !important; border-color: #0a0a0a; }
html[data-theme="light"] .nav-cta:hover { background: var(--accent-cy); border-color: var(--accent-cy); color: #0a0a0a !important; }

/* Press start button — invert */
html[data-theme="light"] .press-start { background: #0a0a0a; color: #f4f1ea !important; border-color: #0a0a0a; }
html[data-theme="light"] .press-start:hover { background: var(--accent-cy); border-color: var(--accent-cy); color: #0a0a0a !important; }

/* Cursor on light */
html[data-theme="light"] .cursor-dot { background: var(--ink); }
html[data-theme="light"] .cursor-label { background: var(--accent-cy); color: var(--bg); }
html[data-theme="light"] .cursor[data-state="press"] .cursor-label { background: var(--accent-hz); color: var(--bg); }
html[data-theme="light"] .cursor[data-state="target"] .cursor-label { background: var(--ink); color: var(--bg); }

/* Hero scope pill on light */
html[data-theme="light"] .hero-scope { background: var(--bg-2); border-color: var(--line-2); }

/* Boot overlay never shows after first load — but if it ever does, match theme */
html[data-theme="light"] .boot-overlay { background: var(--bg); }

/* Footer adjustments */
html[data-theme="light"] .foot-logo-img { mix-blend-mode: normal; }

/* HUD color on light */
html[data-theme="light"] .hud { color: var(--ink-2); }
html[data-theme="light"] .hud-label { color: var(--ink-3); }

/* Stripe pattern (used in hero watermark, services corner, CTA, etc.) auto-uses --ink so it inverts naturally */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.skip-link {
  position: absolute; top: -100px; left: 8px;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  z-index: 999;
}
.skip-link:focus { top: 8px; }

::selection { background: var(--accent-cy); color: var(--bg); }

/* ---------- Container & sections ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
@media (max-width: 640px) {
  :root { --pad: 22px; }
}

/* ---------- Typography ---------- */
.eyebrow,
.section-tag,
.work-code, .work-tag, .work-client, .work-meta,
.cap-num, .meta-strip, .marquee-time,
.process-level, .process-meta,
.foot-h, .footer-strip,
.portrait-cap, .portrait-data,
.cta-alt, .credits dt,
.hud-label, .hud-value {
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  font-size: 12px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-cy);
  box-shadow: 0 0 0 3px rgba(0,240,255,0.18);
  animation: pulse 2.4s var(--ease-snap) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.5; }
}

.section-tag {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0 0 clamp(20px, 2.4vw, 32px);
}
.section-h2 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(48px, 6vw, 88px);
  text-transform: uppercase;
}
.accent-cy { color: var(--accent-cy); }
.accent-hz { color: var(--accent-hz); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 70;             /* below nav (80) so nav always wins on overlap */
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: opacity 0.4s ease;
}
.hud-corner {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 24px;
  pointer-events: auto;
}
/* Top corners sit BELOW the nav (which is ~72px tall) so they don't collide */
.hud-tl { top: 64px; left: 0; }
.hud-tr { top: 64px; right: 0; }
.hud-bl { bottom: 0; left: 0; }
.hud-br { bottom: 0; right: 0; }
.hud-label { color: var(--ink-3); }
.hud-value { transition: color 0.3s, text-shadow 0.3s; }
.hud-tr .hud-value { color: var(--accent-cy); text-shadow: var(--hud-glow); }
.hud-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  animation: pulse 2.4s var(--ease-snap) infinite;
}
.hud-status-dot.mini { width: 6px; height: 6px; display: inline-block; vertical-align: middle; margin-right: 4px; }
.hud-btn {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--ink-2);
  padding: 4px 10px;
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.hud-btn:hover { color: var(--accent-cy); border-color: var(--accent-cy); }
.hud-btn.is-active { color: var(--accent-hz); border-color: var(--accent-hz); }
.hud-reticle { color: var(--ink-3); }
.hud[data-paper="true"] .hud-value,
.hud[data-paper="true"] .hud-label,
.hud[data-paper="true"] .hud-btn { color: rgba(0,0,0,0.55); }
.hud[data-paper="true"] .hud-tr .hud-value { color: var(--ink-paper); text-shadow: none; }
.hud[data-paper="true"] .hud-btn { border-color: var(--line-paper); }
.hud[data-idle="true"] { opacity: 0.18; }

@media (max-width: 640px) { .hud { display: none; } }

/* ---------- Boot overlay ---------- */
.boot-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  display: grid; place-items: center;
  z-index: 200;
  pointer-events: none;
}
.boot-overlay[data-done="true"] {
  opacity: 0;
  transition: opacity 0.3s;
}
.boot-text {
  font-family: var(--ff-pixel);
  font-size: clamp(28px, 4vw, 56px);
  color: var(--accent-hz);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(216,255,0,0.4);
}
.boot-bar {
  width: clamp(220px, 28vw, 440px);
  height: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.boot-bar-fill {
  position: absolute; inset: 0 100% 0 0;
  background: var(--accent-hz);
  box-shadow: 0 0 12px var(--accent-hz);
  transition: right 0.7s var(--ease-out);
}

/* ---------- Custom cursor (dot + contextual text pill) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  display: flex; align-items: center; gap: 12px;
  pointer-events: none;
  z-index: 95;
  will-change: transform;
  transform: translate3d(-50px, -50px, 0);
}
.cursor-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-snap), background 0.2s;
  transform-origin: center;
}
.cursor-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent-cy);
  padding: 7px 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-12px) scale(0.9);
  transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-snap), background 0.2s, color 0.2s;
  transform-origin: left center;
}
.cursor[data-show="true"] .cursor-label {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.cursor[data-press="true"] .cursor-dot { transform: scale(0.6); }
.cursor[data-press="true"] .cursor-label { transform: translateX(0) scale(0.94); }

/* State variants */
.cursor[data-state="press"] .cursor-label { background: var(--accent-hz); color: var(--bg); }
.cursor[data-state="press"] .cursor-dot { background: var(--accent-hz); }
.cursor[data-state="target"] .cursor-label { background: var(--ink); color: var(--bg); }
.cursor[data-state="target"] .cursor-dot { background: var(--accent-cy); box-shadow: 0 0 12px var(--accent-cy); }

/* Paper section override */
.cursor[data-paper="true"] .cursor-dot { background: var(--ink-paper); }
.cursor[data-paper="true"] .cursor-label { background: var(--ink-paper); color: var(--bg-paper); }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  body { cursor: auto !important; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  z-index: 80;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, backdrop-filter 0.2s;
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="true"] {
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav[data-paper="true"] {
  background: rgba(244,241,234,0.85);
  color: var(--ink-paper);
  border-bottom-color: var(--line-paper);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-display); font-size: 15px;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.nav-logo-status {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.6);
  flex-shrink: 0;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* The logo PNG is white shapes inside a black sticker silhouette.
     Lighten makes the black sticker disappear into the page background,
     so only the white wordmark + stripes remain on dark surfaces. */
  mix-blend-mode: lighten;
}
.nav[data-paper="true"] .nav-logo-img {
  mix-blend-mode: difference;
  filter: invert(1);
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links > a:not(.nav-cta) { color: var(--ink-2); transition: color .2s; }
.nav-links > a:not(.nav-cta):hover { color: var(--accent-cy); }
.nav-cta {
  display: inline-block;
  padding: 10px 18px;
  background: var(--ink); color: var(--bg) !important;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.nav-cta:hover {
  background: var(--accent-cy);
  border-color: var(--accent-cy);
  color: var(--bg) !important;
}

/* Theme toggle in the nav — small icon button, always visible */
.nav-theme {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-snap);
}
.nav-theme:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: rotate(20deg);
}
.nav-theme:focus-visible {
  outline: 2px solid var(--accent-cy);
  outline-offset: 3px;
}
html[data-theme="light"] .nav-theme { border-color: rgba(0,0,0,0.2); color: var(--ink); }
html[data-theme="light"] .nav-theme:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (max-width: 768px) {
  .nav-links > a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero-watermark {
  position: absolute; inset: 0;
  background: var(--stripe-brand);
  background-size: 100% 100%;
  opacity: 0.025;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8.5vw, 156px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 clamp(24px, 3vw, 40px);
}

/* Hero visual: framed artifact */
.hero-visual {
  margin: 0;
  display: flex; flex-direction: column; gap: 16px;
  align-self: center;
}
.hero-frame {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
  width: 100%;
  animation: framePop 1s var(--ease-snap) 0.9s both;
}
@keyframes framePop {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-frame img,
.hero-frame video,
.hero-frame .hero-media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* Grade so the footage integrates with the dark theme */
  filter: contrast(1.1) saturate(0.85) brightness(0.9);
  transition: transform 1.2s var(--ease-out), filter 0.8s;
}
/* Subtle vignette to soften edges into the page */
.hero-frame::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.35) 100%);
  z-index: 2;
}
.hero-visual:hover .hero-frame img,
.hero-visual:hover .hero-frame video {
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1) brightness(1);
}

/* Corner brackets — viewfinder feel */
.hero-frame-corner {
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--accent-cy);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,240,255,0.4);
}
.hero-frame-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero-frame-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.hero-frame-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.hero-frame-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* Scanline sweep */
.hero-scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,240,255,0.18) 50%, transparent 100%);
  height: 80px;
  pointer-events: none;
  animation: scanY 6s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scanY {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(calc(70vh + 80px)); opacity: 0; }
}

.hero-caption {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-caption-tag { color: var(--accent-cy); }
.hero-caption-line { color: var(--ink-3); }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-frame { max-height: 50vh; max-width: 480px; margin: 0 auto; aspect-ratio: 849 / 1200; }
  .hero-visual { align-self: stretch; }
  .hero-h1 { font-size: clamp(56px, 12vw, 140px); }
}
@media (max-width: 640px) {
  .hero-frame { max-height: 60vh; }
  .hero-scan { animation-duration: 8s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scan { display: none; }
  .hero-frame { animation: none; }
}
.hero-h1 .line { display: block; }
.hero-h1 .line[data-text]::before {
  content: attr(data-text);
}
.hero-h1 .line[data-text] { content: ""; }
/* JS will replace each character on first load with assembly animation */
.hero-h1 .accent-cy { color: var(--accent-cy); }
.stripe-em {
  display: inline-block;
  width: 0.55em; height: 0.18em;
  background: var(--stripe-brand);
  background-size: cover;
  margin-left: 0.18em;
  transform: skewX(-12deg);
  vertical-align: 0.18em;
}
.hero-scope {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.6vw, 38px);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  line-height: 1;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.hero-scope .accent-hz {
  font-family: var(--ff-display);
  display: inline-block;
  transform: translateY(-0.04em) rotate(0deg);
  transition: transform 0.6s var(--ease-snap);
}
.hero-text:hover .hero-scope .accent-hz { transform: translateY(-0.04em) rotate(180deg); }

.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-2);
  max-width: 680px;
  margin: 0 0 clamp(48px, 6vw, 80px);
  line-height: 1.5;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
}
.meta-strip li {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.meta-strip li:last-child { border-right: 0; }
.meta-k { color: var(--ink-3); font-size: 10px; }
.meta-arrow { display: none; }
.meta-v { color: var(--ink); letter-spacing: 0.1em; }

@media (max-width: 768px) {
  .meta-strip { grid-template-columns: 1fr 1fr; }
  .meta-strip li { border-right: 0; }
  .meta-strip li:nth-child(odd) { border-right: 1px solid var(--line); }
  .meta-strip li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Easter egg token */
.token {
  position: absolute;
  width: 14px; height: 14px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.4s, background 0.2s, transform 0.3s;
}
.token::before {
  content: "▤";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-mono);
  color: var(--accent-hz);
  font-size: 14px;
}
.token:hover { opacity: 0.9 !important; transform: scale(1.4); }
.token[data-found="true"] {
  opacity: 1 !important;
  background: var(--accent-hz);
  box-shadow: 0 0 16px var(--accent-hz);
}
.token[data-found="true"]::before { color: var(--bg); }
#token-1 { right: 8%; top: 36%; }
.token-paper { position: relative !important; display: inline-block; margin-left: 8px; opacity: 0.3; }
.token-paper::before { color: var(--ink-paper); }
.token-mono { position: absolute; bottom: 14px; right: 18px; opacity: 0.25; }

/* ---------- Trusted By — infinite-scroll marquee, fixed at viewport bottom ---------- */
.trust {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 65;                     /* above content, below nav/HUD/cursor */
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.4s var(--ease-snap);
  will-change: transform;
}
.trust[data-hidden="true"] { transform: translateY(110%); }
/* Reserve space at the bottom of the page so the fixed strip doesn't cover the footer's last line in normal scroll */
body { padding-bottom: 0; }
.trust-inner { display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); }
.trust-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 700px) { .trust-tag { display: none; } }
.trust-marquee {
  width: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
  /* Soft fade at the left/right edges so logos scroll into/out of view, not pop */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.trust-track {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(40px, 6vw, 96px);
  padding-right: clamp(40px, 6vw, 96px);
  animation: trustScroll 32s linear infinite;
  align-items: center;
  will-change: transform;
}
.trust-marquee:hover .trust-track { animation-play-state: paused; }
.trust-track li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 200px;
}
.trust-track img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Render every logo as a white silhouette so dark-on-light brand marks read on black */
  filter: brightness(0) invert(1) opacity(0.55);
  transition: filter 0.3s, transform 0.3s var(--ease-snap);
}
.trust-track img:hover {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.06);
}
@keyframes trustScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}

/* ============================================================
   MOBILE — compact vertical cards for the artifact reel
   Sections still flow vertically (native scroll, no swipe).
   Each card is just compressed so 11 of them aren't exhausting
   to scroll through on a phone.
   ============================================================ */

/* The .work-reel wrapper is transparent at every screen size */
.work-reel { display: contents; }

@media (max-width: 768px) {
  /* Each artifact section gets compact treatment */
  .work-reel > .feature.section {
    padding: clamp(48px, 9vw, 72px) 0;
  }
  /* Stack the grid vertically — already does on most layouts */
  .work-reel .feature-grid,
  .work-reel .feature-wide .container {
    gap: 20px !important;
  }
  /* Videos at full scale on mobile (no height cap) */
  .work-reel .feature-visual video,
  .work-reel .feature-visual img,
  .work-reel .feature-visual-wide video {
    max-height: none;
    width: 100%;
    height: auto;
  }
  /* Tighter typography inside the reel cards */
  .work-reel .section-h2 {
    font-size: clamp(26px, 7vw, 38px) !important;
    margin-bottom: 14px;
  }
  .work-reel .feature-body {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .work-reel .feature-meta {
    grid-template-columns: 1fr !important;
    font-size: 10px;
    gap: 6px;
    padding-top: 14px;
  }
  .work-reel .feature-brand img {
    height: 28px;
  }
  /* Reverse layout always stacks text-first on mobile (visual second) */
  .work-reel .feature-reverse .feature-text { order: 1; }
  .work-reel .feature-reverse .feature-visual { order: 2; }

  /* ===== HORIZONTAL PAGING — Services, Capabilities, Process ===== */

  /* SERVICES — 2 cards */
  .services-grid {
    grid-template-columns: none !important;
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 16px 24px;
    margin: 0 calc(-1 * var(--pad));
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 86vw;
    scroll-snap-align: center;
    margin: 0;
  }

  /* CAPABILITIES — 6 cells */
  .caps-grid {
    grid-template-columns: none !important;
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1px;
    padding: 4px 16px 24px;
    margin: 0 calc(-1 * var(--pad));
    border: 0;
    scrollbar-width: none;
  }
  .caps-grid::-webkit-scrollbar { display: none; }
  .cap-cell {
    flex: 0 0 72vw;
    scroll-snap-align: center;
    border: 1px solid var(--line);
    min-height: 220px;
  }

  /* PROCESS — 4 level rows */
  .process-list {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 16px 24px;
    margin: 0 calc(-1 * var(--pad));
    border-top: 0;
    scrollbar-width: none;
  }
  .process-list::-webkit-scrollbar { display: none; }
  .process-row {
    flex: 0 0 78vw;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 24px !important;
    border: 1px solid var(--line);
    border-radius: 0;
    scroll-snap-align: center;
    background: var(--bg-2);
  }
  .process-row::before { width: 0 !important; }
  .process-row:hover { padding: 24px !important; background: var(--bg-2) !important; transform: none !important; }
  .process-row:hover::before { width: 0 !important; }

}

/* Swipe-hint element — desktop hidden, mobile shows with animated indicator */
.swipe-hint { display: none; }
@media (max-width: 768px) {
  .swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: -8px 0 22px;
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ink-3);
    text-transform: uppercase;
  }
  .swipe-hint-icon {
    display: inline-flex;
    color: var(--accent-cy);
  }
  .swipe-hint-icon .swipe-dot {
    transform-origin: center;
    animation: swipe-drag 1.9s cubic-bezier(.5,0,.5,1) infinite;
  }
  @keyframes swipe-drag {
    0%   { transform: translateX(0);  opacity: 0; }
    10%  { opacity: 1; }
    70%  { transform: translateX(38px); opacity: 1; }
    85%  { transform: translateX(38px); opacity: 0; }
    100% { transform: translateX(0);  opacity: 0; }
  }
  /* Brand logos in the artifact panels — double size on mobile */
  .feature-brand img { height: 56px !important; max-width: 240px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-hint-icon .swipe-dot { animation: none; }
}

/* ---------- Brand identity per-section (logo + accent stripe) ---------- */
.feature[data-brand] { position: relative; }
.feature[data-brand]::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand-color, var(--accent-cy));
  z-index: 2;
}
.feature[data-brand="budweiser"]   { --brand-color: #c8102e; }
.feature[data-brand="scp"]         { --brand-color: #7d1818; }
.feature[data-brand="america250"]  { --brand-color: #bf0a30; }
.feature[data-brand="timekeeper"]  { --brand-color: #7d9a3e; }
.feature[data-brand="smithworks"]  { --brand-color: #a08858; }
.feature[data-brand="agent214"]    { --brand-color: #00b8c4; }

.feature-brand {
  margin-bottom: 18px;
  display: block;
  line-height: 0;
}
.feature-brand img {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
  /* Multiply removes the white logo background so the brand mark sits cleanly on the page */
  mix-blend-mode: multiply;
}
html[data-theme="light"] .feature-brand img { mix-blend-mode: multiply; }
/* On dark theme, multiply doesn't work well; show as light silhouette */
html:not([data-theme="light"]) .feature-brand img,
html[data-theme="dark"] .feature-brand img {
  mix-blend-mode: screen;
  filter: brightness(0) invert(1) opacity(0.85);
}

/* ---------- Feature (AR + AI artifact panel) ---------- */
.feature {
  padding: clamp(80px, 11vw, 140px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.feature-text { min-width: 0; }
.feature .section-h2 {
  font-size: clamp(36px, 5.5vw, 80px);
  margin-bottom: clamp(20px, 2vw, 28px);
}
.feature-body {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 580px;
}
.feature-body strong { color: var(--ink); font-weight: 500; }
.feature-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 580px;
}
.feature-meta li::before { content: "▸ "; color: var(--ink-3); }

/* 3×2 grid variant for the event-activations panel */
.feature-meta-grid {
  grid-template-columns: 1fr 1fr;
}
.feature-meta-grid li::before { content: ""; }

.feature-foot {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 20px 0 0;
  max-width: 580px;
  line-height: 1.6;
}
.feature-visual { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-visual img,
.feature-visual video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  background: var(--bg-2);
}
.feature-cap {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.feature-cap-tag { color: var(--accent-cy); }
.feature-cap-line { color: var(--ink-3); }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-visual img, .feature-visual video { max-height: 60vh; }
}

/* Reverse variant — flip so video is on the left, text on the right */
.feature-reverse .feature-grid {
  grid-template-columns: 1fr 1.25fr;
}
@media (max-width: 900px) {
  .feature-reverse .feature-grid { grid-template-columns: 1fr; }
  /* On mobile, restore natural flow: text first, video second */
  .feature-reverse .feature-text { order: 1; }
  .feature-reverse .feature-visual { order: 2; }
}

/* Wide variant — landscape video gets full container width below text */
.feature-wide .container {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
.feature-wide .feature-wide-head { grid-column: 1; }
.feature-wide .feature-wide-body { grid-column: 2; padding-top: clamp(28px, 3.6vw, 56px); }
.feature-wide .feature-visual-wide {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.feature-wide .feature-visual-wide video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  object-fit: contain;
  background: var(--bg);
  display: block;
}
@media (max-width: 900px) {
  .feature-wide .container { grid-template-columns: 1fr; }
  .feature-wide .feature-wide-head, .feature-wide .feature-wide-body { grid-column: 1; }
  .feature-wide .feature-wide-body { padding-top: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.marquee-time {
  position: absolute;
  bottom: 6px; left: var(--pad);
  font-size: 10px; color: var(--accent-hz);
  letter-spacing: 0.14em;
  z-index: 2;
  pointer-events: none;
}
.marquee-track {
  display: flex;
  --speed: 38s;
  --dir: -1;
  animation: marqueeMove var(--speed) linear infinite;
  animation-direction: normal;
  animation-play-state: running;
  padding: clamp(32px, 5vw, 56px) 0;
  gap: 0;
}
.marquee[data-reverse="true"] .marquee-track { animation-direction: reverse; }
.marquee-row {
  display: flex; align-items: center; gap: clamp(28px, 3vw, 48px);
  padding-right: clamp(28px, 3vw, 48px);
  flex-shrink: 0;
}
.marquee-item {
  font-family: var(--ff-display);
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--accent-hz); }
.marquee-item.is-flash { color: var(--accent-hz); }
.stripe-sm {
  display: inline-block;
  width: 32px; height: 22px;
  background: var(--stripe-brand);
  background-size: 100% 100%;
  transform: skewX(-12deg);
  flex-shrink: 0;
  opacity: 0.6;
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Manifesto (paper) ---------- */
.manifesto {
  background: var(--bg-paper);
  color: var(--ink-paper);
  position: relative;
}
.manifesto::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--stripe-paper);
  background-size: 100% 100%;
  opacity: 0.4;
  pointer-events: none;
}
.manifesto > * { position: relative; }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 120px);
}
.manifesto-grid .section-tag { color: rgba(0,0,0,0.55); }
.manifesto-grid .section-h2 { color: var(--ink-paper); }
.manifesto-grid .section-h2 .accent-hz {
  color: var(--ink-paper);
  background: linear-gradient(transparent 75%, var(--accent-hz) 75%);
  padding: 0 0.08em;
  white-space: nowrap;
}
.manifesto-right {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
}
.manifesto-right p { margin: 0 0 1.2em; }
.manifesto-right strong {
  color: var(--ink-paper);
  background: linear-gradient(transparent 78%, var(--accent-hz) 78%);
  font-weight: 700;
  padding: 0 0.05em;
}
.manifesto-right .signed {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line-paper);
  position: relative;
}

@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 24px;
  transition: transform 0.3s var(--ease-snap), border-color 0.3s, background 0.3s;
}
.service-corner {
  position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background: var(--stripe-brand);
  background-size: 100% 100%;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0.3;
  transition: width 0.4s var(--ease-snap), height 0.4s var(--ease-snap), opacity 0.4s;
}
.service-card[data-accent="cy"]:hover { border-color: var(--accent-cy); }
.service-card[data-accent="hz"]:hover { border-color: var(--accent-hz); }
.service-card:hover { transform: translateY(-4px); background: var(--bg-3); }
.service-card:hover .service-corner { width: 120px; height: 120px; opacity: 0.5; }
.service-card[data-accent="cy"]:hover .service-corner {
  background: repeating-linear-gradient(-65deg, var(--accent-cy) 0, var(--accent-cy) 3px, transparent 3px, transparent 13px);
}
.service-card[data-accent="hz"]:hover .service-corner {
  background: repeating-linear-gradient(-65deg, var(--accent-hz) 0, var(--accent-hz) 3px, transparent 3px, transparent 13px);
}

.service-num {
  font-family: var(--ff-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.service-num .num { color: var(--ink-3); }
.service-title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: none;
}
.service-body { color: var(--ink-2); margin: 0; }
.service-caps {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 12px; border-top: 1px solid var(--line);
}
.service-caps li::before { content: "▸ "; color: var(--ink-3); }
.service-foot {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.service-foot p { margin: 0 0 4px; }
.service-foot strong { color: var(--ink-2); font-weight: 500; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.work-card {
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  min-height: 320px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: background 0.3s;
  grid-column: span 2;
}
.work-large { grid-column: span 4; min-height: 460px; }
.work-card:hover { background: var(--bg-2); }
.work-card:hover .work-numeral { opacity: 0.18; color: var(--accent-cy); }
.work-card:hover .work-code { color: var(--accent-cy); }
.work-numeral {
  position: absolute;
  bottom: -0.2em; right: -0.05em;
  font-family: var(--ff-display);
  font-size: clamp(140px, 18vw, 280px);
  letter-spacing: -0.05em;
  line-height: 1;
  opacity: 0.05;
  color: var(--ink);
  pointer-events: none;
  transition: opacity 0.4s, color 0.4s;
}
.work-large .work-numeral { font-size: clamp(220px, 26vw, 420px); }
.work-code {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  position: absolute; top: clamp(20px, 2.4vw, 28px); right: clamp(20px, 2.4vw, 28px);
  margin: 0;
  transition: color 0.3s;
}
.work-tag {
  display: inline-block;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid;
  align-self: flex-start;
}
.tag-cy { color: var(--accent-cy); border-color: var(--accent-cy); }
.tag-hz { color: var(--accent-hz); border-color: var(--accent-hz); }
.work-client {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin: 0;
}
.work-title {
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.05; letter-spacing: -0.02em;
  text-transform: none;
  margin: 0;
  position: relative; z-index: 2;
}
.work-large .work-title { font-size: clamp(28px, 2.8vw, 44px); max-width: 80%; }
.work-desc {
  color: var(--ink-2);
  margin: 0;
  position: relative; z-index: 2;
}
.work-large .work-desc { max-width: 70%; font-size: 18px; }
.work-meta {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin: auto 0 0;
  position: relative; z-index: 2;
}

@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-large { grid-column: span 2; }
  .work-card { grid-column: span 1; }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-large, .work-card { grid-column: span 1; min-height: 280px; }
}

/* ---------- Capabilities ---------- */
.caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.cap-cell {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 260px;
  transition: background 0.3s;
}
.cap-cell:hover { background: var(--bg-2); }
.cap-num {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-3);
  margin: 0;
}
.cap-name {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
.cap-desc { color: var(--ink-2); margin: 0; font-size: 14px; }
.cap-bar {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent-hz);
  box-shadow: 0 0 12px var(--accent-hz);
  transition: width 0.6s var(--ease-out);
}
.cap-cell:hover .cap-bar { width: 100%; }

/* Cap demo containers — sit absolute in the cell */
.cap-demo {
  position: absolute;
  top: clamp(20px, 2.6vw, 32px);
  right: clamp(20px, 2.6vw, 32px);
  width: 60px; height: 60px;
  pointer-events: none;
}

/* AI: face with eyes/mouth */
.cap-demo-ai .cap-head {
  position: absolute; inset: 0;
  border: 1.5px solid var(--accent-hz);
  border-radius: 6px;
}
.cap-demo-ai .cap-eye {
  position: absolute; top: 18px;
  width: 5px; height: 5px;
  background: var(--accent-hz);
  border-radius: 50%;
}
.cap-demo-ai .cap-eye.left { left: 14px; }
.cap-demo-ai .cap-eye.right { right: 14px; }
.cap-demo-ai .cap-mouth {
  position: absolute; bottom: 14px; left: 50%;
  width: 24px; height: 4px;
  margin-left: -12px;
  background: var(--accent-hz);
  border-radius: 2px;
  transform-origin: center;
}
.cap-cell:hover .cap-demo-ai .cap-mouth { animation: mouthTalk 0.4s steps(4) infinite; }
@keyframes mouthTalk { 0%,100% { transform: scaleY(1); } 25% { transform: scaleY(2.5); } 50% { transform: scaleY(0.6); } 75% { transform: scaleY(1.8); } }

/* Video: play button with progress */
.cap-demo-video .cap-frame {
  position: absolute; inset: 0;
  border: 1.5px solid var(--accent-hz);
}
.cap-demo-video .cap-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--accent-hz); font-size: 18px;
}
.cap-demo-video .cap-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent-hz);
}
.cap-cell:hover .cap-demo-video .cap-progress { width: 100%; transition: width 1.6s linear; }

/* Web: window opening */
.cap-demo-web .cap-window {
  position: absolute; inset: 0;
  border: 1.5px solid var(--accent-hz);
  display: flex; flex-direction: column;
}
.cap-demo-web .cap-window-bar {
  height: 12px;
  background: var(--accent-hz-soft);
  display: flex; gap: 4px; padding: 3px 6px; align-items: center;
}
.cap-demo-web .cap-window-bar span {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-hz);
}
.cap-demo-web .cap-window-body {
  flex: 1;
  background: repeating-linear-gradient(-65deg, var(--accent-hz) 0, var(--accent-hz) 1px, transparent 1px, transparent 5px);
  opacity: 0.4;
  transition: opacity 0.4s;
}
.cap-cell:hover .cap-demo-web .cap-window-body { opacity: 0.9; }
.cap-cell:hover .cap-demo-web .cap-window-bar { transform: translateY(0); }
.cap-demo-web .cap-window-bar { transform: translateY(2px); transition: transform 0.4s var(--ease-snap); }

/* AR: viewfinder corners */
.cap-demo-ar .cap-corner {
  position: absolute; width: 14px; height: 14px;
  border: 1.5px solid var(--accent-hz);
  transition: all 0.3s var(--ease-snap);
}
.cap-demo-ar .cap-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cap-demo-ar .cap-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cap-demo-ar .cap-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cap-demo-ar .cap-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.cap-demo-ar .cap-target {
  position: absolute; inset: 24px;
  border-radius: 50%; border: 1.5px solid var(--accent-hz);
  opacity: 0;
  transition: opacity 0.3s;
}
.cap-cell:hover .cap-demo-ar .cap-corner.tl { top: 8px; left: 8px; }
.cap-cell:hover .cap-demo-ar .cap-corner.tr { top: 8px; right: 8px; }
.cap-cell:hover .cap-demo-ar .cap-corner.bl { bottom: 8px; left: 8px; }
.cap-cell:hover .cap-demo-ar .cap-corner.br { bottom: 8px; right: 8px; }
.cap-cell:hover .cap-demo-ar .cap-target { opacity: 1; }

/* Game: rising points + sparks */
.cap-demo-game .cap-pts {
  position: absolute; bottom: 0; left: 0;
  font-family: var(--ff-pixel);
  font-size: 22px;
  color: var(--accent-hz);
  text-shadow: 0 0 8px rgba(216,255,0,0.6);
  letter-spacing: 0.06em;
}
.cap-cell:hover .cap-demo-game .cap-pts { animation: ptsRise 1.2s var(--ease-out) infinite; }
@keyframes ptsRise { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
.cap-demo-game .cap-spark {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--accent-hz);
  border-radius: 50%;
  opacity: 0;
}
.cap-demo-game .cap-spark.s1 { top: 10px; right: 8px; }
.cap-demo-game .cap-spark.s2 { top: 30px; right: 24px; }
.cap-demo-game .cap-spark.s3 { top: 4px; right: 32px; }
.cap-cell:hover .cap-demo-game .cap-spark { animation: sparkle 1s var(--ease-out) infinite; }
.cap-cell:hover .cap-demo-game .cap-spark.s2 { animation-delay: 0.2s; }
.cap-cell:hover .cap-demo-game .cap-spark.s3 { animation-delay: 0.4s; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.4); } }

/* Map: pin drop */
.cap-demo-map .cap-pin {
  position: absolute; top: 0; left: 50%;
  width: 16px; height: 22px;
  margin-left: -8px;
  background: var(--accent-hz);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  transform-origin: 100% 100%;
  transition: transform 0.4s var(--ease-snap);
}
.cap-demo-map .cap-pin::after {
  content: "";
  position: absolute; top: 4px; left: 4px;
  width: 8px; height: 8px;
  background: var(--bg);
  border-radius: 50%;
}
.cap-demo-map .cap-shadow {
  position: absolute; bottom: 8px; left: 50%;
  width: 16px; height: 4px; margin-left: -8px;
  background: var(--accent-hz-soft);
  border-radius: 50%;
  transform: scale(0.4);
  transition: transform 0.4s var(--ease-snap);
}
.cap-cell:hover .cap-demo-map .cap-pin {
  animation: pinDrop 1.6s var(--ease-snap) infinite;
}
@keyframes pinDrop {
  0%, 100% { transform: rotate(-45deg) translateY(-12px); }
  50% { transform: rotate(-45deg) translateY(0); }
}
.cap-cell:hover .cap-demo-map .cap-shadow {
  animation: shadowPulse 1.6s var(--ease-snap) infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scale(0.4); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

@media (max-width: 900px) { .caps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .caps-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-list {
  border-top: 1px solid var(--line);
}
.process-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.3s var(--ease-snap), background 0.3s;
}
.process-row::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0;
  background: var(--accent-cy);
  transition: width 0.3s var(--ease-snap);
}
.process-row:hover { padding-left: 24px; background: var(--bg-2); }
.process-row:hover::before { width: 4px; }
.process-num { display: flex; flex-direction: column; gap: 10px; }
.process-level {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3vw, 44px);
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.process-bars {
  display: flex; gap: 4px;
}
.process-bars i {
  width: 28px; height: 4px;
  background: var(--line);
  display: block;
  transition: background 0.3s;
}
.process-bars i.on { background: var(--accent-cy); }
.process-row:hover .process-bars i { background: var(--accent-cy-soft); }
.process-row:hover .process-bars i.on { background: var(--accent-cy); }
.process-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 2.8vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.process-body p { color: var(--ink-2); margin: 0 0 12px; max-width: 800px; }
.process-meta {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-3); margin: 0;
}
@media (max-width: 768px) {
  .process-row { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.portrait-card {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.05) saturate(0.9);
  transition: transform 1.2s var(--ease-out), filter 0.6s;
  display: block;
}
.portrait-card:hover .portrait-img {
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1);
}
.portrait-monogram {
  font-family: var(--ff-display);
  font-size: clamp(120px, 16vw, 200px);
  letter-spacing: -0.06em;
  color: var(--ink);
  position: relative;
}
.portrait-stripe {
  position: absolute; bottom: 0; left: 0;
  width: 50%; height: 70px;
  background: var(--stripe-brand);
  background-size: 100% 100%;
  opacity: 0.5;
}
.portrait-data {
  position: absolute; bottom: 0; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--accent-cy);
  letter-spacing: 0.1em;
  padding: 32px 16px 14px;
  /* Backdrop gradient so the live data reads cleanly on top of the photo */
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.4) 60%, transparent);
  text-shadow: 0 0 6px rgba(0,240,255,0.4);
  font-family: var(--ff-mono);
  text-transform: uppercase;
  z-index: 3;
}
.portrait-stripe { z-index: 2; }
.token-mono { z-index: 4; }
.portrait-cap {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  margin: 14px 0 0; text-transform: uppercase;
}

.about-bio { font-size: clamp(16px, 1.4vw, 19px); }
.about-bio .section-tag { color: var(--ink-2); }
.about-lede { font-size: clamp(20px, 1.8vw, 26px); margin: 0 0 1.4em; }
.about-bio p { margin: 0 0 1.4em; color: var(--ink-2); }
.about-bio p:first-of-type, .about-lede { color: var(--ink); }
.about-bio strong { font-weight: 500; }

.credits {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin: 32px 0 0;
}
.credits > div { display: flex; flex-direction: column; gap: 6px; }
.credits dt {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--ink-3);
}
.credits dd {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}
/* Last credit (SHIPPED AT — long client list) spans both columns and uses mono */
.credits > div:last-child {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 6px;
}
.credits > div:last-child dd {
  font-family: var(--ff-mono);
  font-size: clamp(12px, 1.05vw, 14px);
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(120px, 14vw, 200px) 0; overflow: hidden; }
.cta-watermark {
  position: absolute; inset: 0;
  background: var(--stripe-brand);
  background-size: 100% 100%;
  opacity: 0.04;
  transform: skewX(-6deg);
}
.cta-inner { position: relative; }
.cta-h {
  font-family: var(--ff-display);
  font-size: clamp(44px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 clamp(40px, 5vw, 64px);
}
.press-start {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 40px;
  background: var(--ink);
  color: var(--bg) !important;
  border: 2px solid var(--ink);
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s var(--ease-snap);
}
.press-start:hover {
  background: var(--accent-cy);
  border-color: var(--accent-cy);
  transform: translateY(-2px);
}
.press-start:active { background: var(--accent-hz); border-color: var(--accent-hz); transform: translateY(0); }
.ps-arrow { transition: transform 0.3s var(--ease-snap); }
.press-start:hover .ps-arrow { transform: translateX(8px); }
.ps-scan {
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}
.press-start:hover .ps-scan { animation: scanSweep 0.8s ease forwards; }
@keyframes scanSweep { from { left: -100%; } to { left: 200%; } }

.cta-alt {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 28px 0 0;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 0;
  font-size: 13px;
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.foot-logo-img {
  height: 56px;
  width: auto;
  display: block;
  mix-blend-mode: lighten;
}
.foot-brand p { margin: 18px 0 0; max-width: 280px; color: var(--ink-2); }
.foot-h {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--ink-3);
  margin: 0 0 12px; text-transform: uppercase;
}
.foot-col li { margin-bottom: 6px; }
.foot-col a { color: var(--ink-2); transition: color .2s; }
.foot-col a:hover { color: var(--accent-cy); }
.foot-status p { margin: 0; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

.footer-strip {
  border-top: 1px solid var(--line);
  padding: 22px var(--pad);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: var(--container);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

/* ---------- Debug Room ---------- */
[hidden] { display: none !important; }
.debug-room {
  position: fixed; inset: 0;
  background: var(--bg-paper);
  color: var(--ink-paper);
  z-index: 300;
  padding: 60px;
  overflow-y: auto;
  align-items: center; justify-content: center;
  animation: debugIn 0.5s var(--ease-out);
}
.debug-room:not([hidden]) { display: flex; }
@keyframes debugIn { from { opacity: 0; clip-path: circle(0% at 50% 50%); } to { opacity: 1; clip-path: circle(150% at 50% 50%); } }
.debug-inner { max-width: 600px; }
.debug-tag {
  font-family: var(--ff-pixel);
  font-size: 22px;
  color: var(--accent-hz);
  background: var(--ink-paper);
  padding: 8px 16px;
  display: inline-block;
  margin: 0 0 24px;
  letter-spacing: 0.06em;
}
.debug-inner hr { border: 0; border-top: 1px solid var(--line-paper); margin: 24px 0; }
.debug-inner h2 { font-family: var(--ff-display); font-size: clamp(32px, 4vw, 56px); margin: 0 0 24px; letter-spacing: -0.02em; }
.debug-inner p { font-size: 18px; line-height: 1.5; margin: 0 0 16px; }
.debug-inner ul { margin: 0 0 16px; padding-left: 24px; list-style: disc; }
.debug-inner li { margin-bottom: 6px; }
.debug-inner a { color: var(--ink-paper); border-bottom: 2px solid var(--accent-hz); }
.debug-inner .accent-hz {
  background: var(--accent-hz);
  color: var(--ink-paper);
  padding: 2px 6px;
  font-family: var(--ff-mono);
}
.debug-sign { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 32px !important; }
.debug-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  border: 1px solid var(--line-paper);
  font-size: 20px;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.debug-close:hover { background: var(--ink-paper); color: var(--bg-paper); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; transform: translateX(0) !important; }
  .hud, .cursor, .cursor-label { display: none !important; }
  body { cursor: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent-cy);
  outline-offset: 4px;
}
