/* =========================================================
   TEZ.EARTH · cinematic portfolio
   Palette: void / ember / haze / rust / cold-blue / bone
   ========================================================= */

:root {
  --void: #0a0604;
  --void-2: #130a06;
  --ink: #1a0f08;
  --ember: #d97a2b;
  --ember-hot: #ff9442;
  --haze: #f0b878;
  --rust: #7a3f18;
  --cold: #2a3c50;
  --cold-hot: #4a6a8a;
  --bone: #e8dcc8;
  --bone-dim: #9a8c78;
  --line: rgba(232, 220, 200, 0.12);
  --line-strong: rgba(232, 220, 200, 0.28);

  --ff-display: "Archivo Black", "Oswald", Impact, sans-serif;
  --ff-condensed: "Oswald", "Archivo Narrow", sans-serif;
  --ff-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --ff-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--ff-body);
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
}
body {
  position: relative;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  letter-spacing: 0.005em;
}
a { color: inherit; text-decoration: none; cursor: none; }
button { background: none; border: none; color: inherit; cursor: none; font: inherit; }

/* ---------- Global atmospherics: scanlines, vignette, grain, fog ---------- */

.atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 80;
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 82;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.6;
}
.crt-roll {
  position: fixed; left: 0; right: 0; height: 140px; pointer-events: none; z-index: 95;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(120,70,30,0.08) 30%,
      rgba(200,110,50,0.35) 48%,
      rgba(240,150,80,0.55) 50%,
      rgba(200,110,50,0.35) 52%,
      rgba(120,70,30,0.08) 70%,
      transparent 100%);
  mix-blend-mode: difference;
  animation: crt-roll 9s linear infinite;
}
@keyframes crt-roll {
  0%   { top: -140px; }
  100% { top: 100vh; }
}
.crt-roll-tint {
  position: fixed; left: 0; right: 0; height: 140px; pointer-events: none; z-index: 84;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(217,122,43,0.08) 40%,
    rgba(255,148,66,0.18) 50%,
    rgba(217,122,43,0.08) 60%,
    transparent 100%);
  mix-blend-mode: screen;
  animation: crt-roll 9s linear infinite;
}
.crt-flicker {
  position: fixed; inset: 0; pointer-events: none; z-index: 85;
  background: rgba(255,148,66,0.02);
  animation: crt-flicker 0.14s steps(2, end) infinite;
  mix-blend-mode: screen;
}
@keyframes crt-flicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.crt-jitter {
  position: fixed; inset: 0; pointer-events: none; z-index: 86;
  animation: crt-jitter 11s steps(1) infinite;
}
@keyframes crt-jitter {
  0%, 97%, 100% { transform: translate(0, 0); filter: none; opacity: 0; }
  97.2% { transform: translate(2px, -1px); opacity: 0.4; background: rgba(217,122,43,0.08); }
  97.4% { transform: translate(-3px, 2px); opacity: 0.3; background: rgba(42,60,80,0.12); }
  97.6% { transform: translate(1px, 0); opacity: 0; }
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 81;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse at 50% 120%, rgba(217,122,43,0.08) 0%, transparent 50%);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 83;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.75 0 0 0 0 0.5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.fog-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.85; }
.rain-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 1; }
.rain-canvas-local { position: absolute; inset: 0; z-index: 2; }

/* ---------- Lightning flash (global, pulses via body.flashing) ---------- */
.lightning-flash {
  position: fixed; inset: 0; pointer-events: none; z-index: 81;
  background: radial-gradient(ellipse at 50% 25%,
    rgba(255, 230, 190, 0.9) 0%,
    rgba(250, 200, 140, 0.55) 25%,
    rgba(217, 122, 43, 0.25) 55%,
    transparent 85%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 40ms linear;
}
body.flashing .lightning-flash { opacity: 1; }
.lit-monoliths { opacity: 0; transition: opacity 40ms linear; }
body.flashing .lit-monoliths { opacity: 1; }
.hero-sky { transition: opacity 80ms linear, filter 80ms linear; }
body.flashing .hero-sky { opacity: 0.95; filter: brightness(1.4) contrast(1.1); }

/* ---------- Window frame / "hologram on the glass" framing ---------- */
.window-frame {
  position: fixed; inset: 0; pointer-events: none; z-index: 86;
}
.wf-bracket {
  position: absolute; width: 44px; height: 44px;
  border: 2px solid rgba(232, 220, 200, 0.35);
  box-shadow: inset 0 0 0 1px rgba(217, 122, 43, 0.18);
}
.wf-bracket.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.wf-bracket.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.wf-bracket.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.wf-bracket.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.wf-edge {
  position: absolute; background: rgba(232, 220, 200, 0.06);
}
.wf-edge.top    { top: 0; left: 0; right: 0; height: 1px; }
.wf-edge.bottom { bottom: 0; left: 0; right: 0; height: 1px; }
.wf-edge.left   { top: 0; bottom: 0; left: 0; width: 1px; }
.wf-edge.right  { top: 0; bottom: 0; right: 0; width: 1px; }

/* Subtle inner shadow to sell the glass pane */
.window-frame::before {
  content: "";
  position: absolute; inset: 0;
  box-shadow:
    inset 0 0 120px rgba(0, 0, 0, 0.8),
    inset 0 0 6px rgba(217, 122, 43, 0.06);
  pointer-events: none;
}

.wf-glass-sheen {
  position: absolute; top: -20%; left: -10%;
  width: 60%; height: 140%;
  background: linear-gradient(110deg, transparent 40%, rgba(240, 200, 160, 0.04) 50%, transparent 60%);
  transform: rotate(-8deg);
  pointer-events: none;
}

/* Droplets / streaks stuck on the pane */
.wf-droplet {
  position: absolute;
  width: 1.5px; height: 7px;
  background: linear-gradient(180deg,
    rgba(240, 200, 160, 0.55) 0%,
    rgba(240, 200, 160, 0.15) 80%,
    transparent 100%);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(240, 200, 160, 0.2);
}
body.flashing .wf-droplet {
  background: linear-gradient(180deg,
    rgba(255, 230, 200, 0.9) 0%,
    rgba(255, 230, 200, 0.3) 80%,
    transparent 100%);
  box-shadow: 0 0 6px rgba(255, 230, 200, 0.5);
}

.wf-label {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.4);
}
.wf-label.tl { top: 66px; left: 22px; }
.wf-label.tr { top: 66px; right: 22px; }

/* ---------- Custom cursor ---------- */
.cursor-wrap { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor-ret {
  position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(.2,.8,.2,1), height 0.25s cubic-bezier(.2,.8,.2,1), opacity 0.2s;
}
.cursor-ret::before, .cursor-ret::after {
  content: ""; position: absolute; background: var(--haze);
}
.cursor-ret::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-0.5px); }
.cursor-ret::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-0.5px); }
.cursor-corner {
  position: absolute; width: 8px; height: 8px; border: 1px solid var(--haze);
}
.cursor-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cursor-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cursor-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cursor-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.cursor-dot {
  position: fixed; width: 4px; height: 4px; background: var(--ember);
  border-radius: 50%; transform: translate(-50%, -50%);
  z-index: 9999; pointer-events: none;
  box-shadow: 0 0 10px var(--ember-hot);
}
.cursor-wrap.hover .cursor-ret { width: 72px; height: 72px; }
.cursor-wrap.click .cursor-ret { width: 28px; height: 28px; }

/* ---------- HUD chrome (persistent frame) ---------- */
.hud {
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  text-transform: uppercase;
}
.hud > * { pointer-events: auto; }
.hud-corner {
  position: absolute; width: 24px; height: 24px; border: 1px solid var(--line-strong);
}
.hud-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

.hud-top, .hud-bottom {
  position: absolute; left: 48px; right: 48px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.hud-top { top: 20px; }
.hud-bottom { bottom: 20px; }

.hud-brand { color: var(--ember); letter-spacing: 0.2em; font-weight: 700; }
.hud-brand-row { display: flex; gap: 24px; align-items: center; }
.hud-nav { display: flex; gap: 20px; }
.hud-nav a { position: relative; transition: color 0.2s; }
.hud-nav a:hover { color: var(--ember); }
.hud-nav a::before { content: "· "; opacity: 0.4; }

.hud-bottom-left, .hud-bottom-right { display: flex; gap: 24px; align-items: center; }

/* ---------- Mobile hamburger + drawer ---------- */
.hud-menu-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 6, 4, 0.6);
  cursor: pointer;
  padding: 0;
  z-index: 120;
}
.hud-menu-btn span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--bone);
  transition: transform 280ms cubic-bezier(0.76, 0, 0.24, 1), opacity 200ms;
}
.hud-menu-btn span:nth-child(1) { top: 14px; }
.hud-menu-btn span:nth-child(2) { top: 21px; }
.hud-menu-btn span:nth-child(3) { top: 28px; }
.hud-menu-btn.open { border-color: var(--ember); }
.hud-menu-btn.open span { background: var(--ember); }
.hud-menu-btn.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hud-menu-btn.open span:nth-child(2) { opacity: 0; }
.hud-menu-btn.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.hud-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(5, 3, 2, 0.96);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 28px 40px;
  gap: 6px;
  clip-path: circle(0 at calc(100% - 34px) 38px);
  transition: clip-path 560ms cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
.hud-drawer.open {
  clip-path: circle(180% at calc(100% - 34px) 38px);
  pointer-events: all;
}
.hud-drawer a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  font-family: var(--ff-display);
  font-size: clamp(32px, 9vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--bone);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms;
  cursor: pointer;
}
.hud-drawer.open a { opacity: 1; transform: translateY(0); }
.hud-drawer a:last-of-type { border-bottom: none; }
.hud-drawer a:hover { color: var(--ember); }
.drawer-idx {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ember);
  min-width: 32px;
  flex-shrink: 0;
}
.drawer-label { flex: 1; }
.drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 400ms 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hud-drawer.open .drawer-foot { opacity: 1; }

.hud-scroll-rail {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 240px;
  background: var(--line);
  z-index: 91;
}
.hud-scroll-rail::before {
  content: ""; position: absolute; left: -3px; top: var(--p, 0%);
  width: 7px; height: 7px; background: var(--ember);
  box-shadow: 0 0 8px var(--ember-hot);
  transition: top 0.12s linear;
}
.hud-scroll-label {
  position: fixed; right: 36px; top: 50%;
  transform: translateY(calc(-50% + var(--pp, 0px))) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--bone-dim); z-index: 91;
  pointer-events: none;
  white-space: nowrap;
}

.hud-left-rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.3em;
  color: var(--bone-dim); z-index: 91; white-space: nowrap;
}

/* ---------- Audio toggle ---------- */
.audio-toggle {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--bone-dim);
  transition: color 0.2s;
}
.audio-toggle:hover { color: var(--ember); }
.audio-bars { display: flex; gap: 2px; align-items: end; height: 12px; }
.audio-bars span {
  width: 2px; background: var(--bone-dim);
  animation: bars 1.2s ease-in-out infinite;
  animation-play-state: paused;
}
.audio-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.audio-bars span:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.audio-bars span:nth-child(3) { height: 60%; animation-delay: 0.4s; }
.audio-bars span:nth-child(4) { height: 100%; animation-delay: 0.1s; }
.audio-toggle.on .audio-bars span { animation-play-state: running; background: var(--ember); }
.audio-toggle.on { color: var(--ember); }
@keyframes bars {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* =========================================================
   BOOT SEQUENCE
   ========================================================= */
.boot {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--ember);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: opacity 0.6s 0.4s, visibility 0.6s 0.4s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner {
  width: min(680px, 80vw);
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(10,6,4,0.9);
  position: relative;
}
.boot-inner::before {
  content: ""; position: absolute; top: -1px; left: 12px; width: 60px; height: 2px;
  background: var(--ember);
}
.boot-header {
  display: flex; justify-content: space-between; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong);
  color: var(--bone-dim);
}
.boot-lines { font-size: 10px; line-height: 1.9; }
.boot-line { display: flex; gap: 12px; color: var(--bone-dim); }
.boot-line .ok { color: var(--ember); }
.boot-line.err .tag { color: var(--ember-hot); }
.boot-bar {
  margin-top: 18px; height: 2px; background: var(--line); position: relative; overflow: hidden;
}
.boot-bar::before {
  content: ""; position: absolute; inset: 0; width: var(--w, 0%);
  background: var(--ember);
  transition: width 0.3s linear;
}

/* =========================================================
   LAYOUT
   ========================================================= */
main { position: relative; z-index: 2; overflow-x: clip; max-width: 100%; }
section { position: relative; padding: 120px 48px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 80px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono); font-size: 10px; color: var(--bone-dim);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.section-head .idx { color: var(--ember); }
.section-head .coord { opacity: 0.5; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh; padding: 0 48px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.hero-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 30% 110%, rgba(217,122,43,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(240,184,120,0.15) 0%, transparent 45%),
    linear-gradient(180deg, #0a0604 0%, #120804 40%, #1a0e06 100%);
}
.hero-silhouette {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 80%, #000 100%);
}
.hero-sky {
  position: absolute; inset: 0; z-index: 0; opacity: 0.55;
}

.hero-content { position: relative; z-index: 3; padding-bottom: 80px; }

/* Dark glass panel sitting behind hero text — rain falls *behind* this */
.hero-glass {
  position: absolute;
  inset: -24px -32px 60px -32px;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10, 6, 4, 0.35) 0%,
      rgba(10, 6, 4, 0.55) 50%,
      rgba(10, 6, 4, 0.75) 100%);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  border-top: 1px solid rgba(232, 220, 200, 0.06);
  border-bottom: 1px solid rgba(232, 220, 200, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 0 60px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.hero-wordmark {
  font-family: var(--ff-display);
  font-size: clamp(120px, 28vw, 480px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--haze);
  text-shadow:
    0 0 60px rgba(217,122,43,0.4),
    0 0 120px rgba(217,122,43,0.2);
  mix-blend-mode: screen;
  position: relative;
  animation: crt-rgb 6s steps(1) infinite;
}
@keyframes crt-rgb {
  0%, 92%, 100% { filter: none; }
  92.5% { filter: drop-shadow(3px 0 0 rgba(255,70,70,0.7)) drop-shadow(-3px 0 0 rgba(70,180,255,0.6)); }
  93% { filter: none; }
  93.5% { filter: drop-shadow(-2px 0 0 rgba(255,70,70,0.5)) drop-shadow(2px 0 0 rgba(70,180,255,0.4)); }
  94% { filter: none; }
}
.hero-wordmark .glyph { display: inline-block; position: relative; }
.hero-wordmark .glyph::before {
  content: attr(data-g);
  position: absolute; inset: 0;
  color: var(--ember-hot);
  transform: translate(2px, 0);
  mix-blend-mode: screen;
  opacity: 0.4;
  filter: blur(1px);
}

.hero-sub {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  column-gap: 56px;
  row-gap: 24px;
  align-items: start;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-sub-col { min-width: 0; }
.hero-sub-col-wide { max-width: 420px; }
.hero-sub-label {
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.25em;
  color: var(--ember); text-transform: uppercase; margin-bottom: 8px;
}
.hero-sub-val {
  font-family: var(--ff-condensed); font-size: 16px; letter-spacing: 0.04em;
  color: var(--bone); line-height: 1.35; font-weight: 500;
  text-transform: uppercase;
}
.hero-sub-col-wide .hero-sub-val {
  text-transform: none; letter-spacing: 0.01em; color: var(--bone-dim);
  font-size: 14px;
}

.hero-scroll {
  position: absolute; bottom: 24px; right: 48px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.25em;
  color: var(--bone-dim); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3;
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 28px; background: var(--ember);
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Floating hero particles */
.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(10, 6, 4, 0.78) 30%,
    rgba(10, 6, 4, 0.45) 70%,
    rgba(10, 6, 4, 0) 100%);
}
.manifesto-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start;
}
.manifesto-label {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ember); text-transform: uppercase;
  position: sticky; top: 120px;
}
.manifesto-label::before { content: "◉ "; }
.manifesto-body {
  font-family: var(--ff-condensed);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.15; letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--bone);
  text-wrap: pretty;
}
.manifesto-body em {
  font-style: normal; color: var(--ember);
  font-family: var(--ff-display);
}
.manifesto-body p + p { margin-top: 36px; }

.manifesto-specs {
  margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.spec-card {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--bone-dim); letter-spacing: 0.1em; text-transform: uppercase;
}
.spec-card .v {
  display: block; font-family: var(--ff-display);
  font-size: 56px; line-height: 1; color: var(--bone);
  letter-spacing: -0.03em; margin-bottom: 10px;
  text-transform: none;
}
.spec-card .v em { color: var(--ember); font-style: normal; }

/* =========================================================
   SCALE / MEGALOPHOBIA TABLEAU
   ========================================================= */
.scale {
  position: relative; height: 100vh; min-height: 720px;
  padding: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, #2a1608 0%, #0a0604 55%, #000 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.scale-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scale-caption {
  position: absolute; top: 40px; left: 48px;
  font-family: var(--ff-mono); font-size: 10px; color: var(--bone-dim);
  letter-spacing: 0.2em; text-transform: uppercase; z-index: 2;
}
.scale-caption b { color: var(--ember); }
.scale-quote {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--ff-display);
  font-size: clamp(28px, 4.2vw, 72px); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--bone);
  text-align: center; width: min(900px, 80vw);
  mix-blend-mode: screen; z-index: 2;
  text-shadow: 0 0 40px rgba(0,0,0,0.8);
}
.scale-quote em { font-style: normal; color: var(--ember); }
.scale-meta {
  position: absolute; bottom: 32px; left: 48px; right: 48px;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--ff-mono); font-size: 10px; color: var(--bone-dim);
  letter-spacing: 0.2em; text-transform: uppercase; z-index: 2;
}
.scale-meta .hh {
  font-family: var(--ff-display); font-size: 42px; color: var(--haze);
  letter-spacing: -0.02em; text-transform: none; line-height: 1;
}
.scale-figure {
  position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.works { padding: 120px 0; }
.works .section-head { margin-left: 48px; margin-right: 48px; }

.work-list {
  border-top: 1px solid var(--line-strong);
}
.work {
  position: relative;
  padding: 36px 48px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 100px 1fr 220px 120px 100px;
  gap: 40px; align-items: center;
  transition: background 0.3s, padding 0.4s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.work:hover { background: linear-gradient(90deg, rgba(217,122,43,0.08) 0%, transparent 60%); padding-left: 64px; }
.work .idx { font-family: var(--ff-mono); font-size: 10px; color: var(--ember); letter-spacing: 0.1em; }
.work .year { font-family: var(--ff-mono); font-size: 10px; color: var(--bone-dim); letter-spacing: 0.15em; }
.work .title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 68px); line-height: 0.95;
  letter-spacing: -0.02em; color: var(--bone);
  transition: color 0.3s;
}
.work:hover .title { color: var(--haze); }
.work .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--bone-dim); text-transform: uppercase;
}
.work .tags span { padding: 3px 8px; border: 1px solid var(--line); }
.work .kpi {
  font-family: var(--ff-mono); font-size: 10px; color: var(--bone-dim);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.work .kpi b { display: block; font-family: var(--ff-display); font-size: 24px; color: var(--ember); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 2px; }
.work .arrow {
  justify-self: end; font-family: var(--ff-mono); font-size: 11px;
  color: var(--bone-dim); letter-spacing: 0.2em; transition: transform 0.3s, color 0.3s;
}
.work:hover .arrow { color: var(--ember); transform: translateX(6px); }

/* Hover preview card */
.work-preview {
  position: fixed; pointer-events: none;
  width: 340px; height: 220px; z-index: 85;
  opacity: 0; transition: opacity 0.25s;
  transform: translate(-50%, -50%);
  border: 1px solid var(--ember);
  box-shadow: 0 0 40px rgba(217,122,43,0.3);
  overflow: hidden;
}
.work-preview.show { opacity: 1; }
.work-preview-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--bone);
  text-transform: uppercase;
}
.work-preview-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(0,0,0,0.4) 3px, transparent 4px);
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: transparent; padding: 140px 48px; position: relative; overflow: hidden; }
.process::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(42, 60, 80, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 90%, rgba(217, 122, 43, 0.18) 0%, transparent 50%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.62) 22%,
      rgba(0, 0, 0, 0.62) 78%,
      rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.process-inner { position: relative; z-index: 1; }
.process-title {
  font-family: var(--ff-display);
  font-size: clamp(60px, 10vw, 160px);
  line-height: 0.9; letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 80px;
}
.process-title em {
  font-style: normal; color: var(--ember); display: block;
  text-indent: 120px;
}
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.step {
  background: #0a0604;
  padding: 40px 28px 56px; min-height: 340px;
  position: relative;
  transition: background 0.4s;
}
.step:hover { background: #120804; }
.step-num {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--ember); letter-spacing: 0.2em; margin-bottom: 32px;
  display: flex; justify-content: space-between;
}
.step-num b { color: var(--bone-dim); font-weight: 400; }
.step-title {
  font-family: var(--ff-display);
  font-size: 36px; line-height: 0.95; letter-spacing: -0.02em;
  color: var(--bone); margin-bottom: 20px;
}
.step-desc {
  font-family: var(--ff-body); font-size: 13px; line-height: 1.6;
  color: var(--bone-dim);
}
.step-deliver {
  position: absolute; bottom: 20px; left: 28px; right: 28px;
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--bone-dim); padding-top: 12px; border-top: 1px dashed var(--line);
}
.step-deliver b { color: var(--haze); font-weight: 500; }

/* =========================================================
   ARCHIVE (dense index)
   ========================================================= */
.archive { padding: 120px 48px 80px; }
.archive-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--bone); letter-spacing: 0.05em;
}
.archive-table th, .archive-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.archive-table th {
  font-size: 9px; letter-spacing: 0.2em; color: var(--bone-dim);
  text-transform: uppercase; font-weight: 400;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 18px; padding-top: 0;
}
.archive-table tbody tr { transition: background 0.2s; position: relative; }
.archive-table tbody tr:hover { background: rgba(217,122,43,0.06); }
.archive-table tbody tr:hover td:first-child { color: var(--ember); }
.archive-table .id { color: var(--ember); font-size: 10px; width: 80px; }
.archive-table .status {
  display: inline-block; padding: 2px 8px; font-size: 9px;
  border: 1px solid currentColor; letter-spacing: 0.15em; text-transform: uppercase;
}
.archive-table .status.live { color: var(--ember); }
.archive-table .status.ark { color: var(--bone-dim); }
.archive-table .status.dev { color: var(--cold-hot); }
.archive-table .name { font-family: var(--ff-display); font-size: 14px; letter-spacing: 0; }
.archive-table .sector { color: var(--bone-dim); text-transform: uppercase; font-size: 9px; letter-spacing: 0.15em; }
.archive-table .metric { color: var(--haze); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: 140px 48px 100px;
  background: linear-gradient(180deg,
    rgba(10, 6, 4, 0) 0%,
    rgba(10, 6, 4, 0.5) 25%,
    rgba(18, 8, 4, 0.78) 65%,
    rgba(0, 0, 0, 0.95) 100%);
  position: relative; overflow: hidden;
}
.contact-sig {
  font-family: var(--ff-display);
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85; letter-spacing: -0.04em;
  color: var(--haze);
  text-shadow: 0 0 80px rgba(217,122,43,0.3);
  mix-blend-mode: screen;
  margin-bottom: 60px;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.contact-block .lab {
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--bone-dim); text-transform: uppercase; margin-bottom: 12px;
}
.contact-block .val {
  font-family: var(--ff-condensed); font-size: 22px; letter-spacing: 0.02em;
  color: var(--bone);
}
.contact-block .val a:hover { color: var(--ember); }
.contact-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 32px; border: 1px solid var(--ember);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.25em;
  color: var(--ember); text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  margin-top: 30px;
}
.contact-cta:hover { background: var(--ember); color: var(--void); }
.contact-cta .arr { transition: transform 0.3s; }
.contact-cta:hover .arr { transform: translateX(4px); }

footer {
  padding: 24px 48px; border-top: 1px solid var(--line);
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.15em;
  color: var(--bone-dim); text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 2;
  background: #000;
}
footer a:hover { color: var(--ember); }

/* =========================================================
   TWEAKS PANEL
   ========================================================= */
.tweaks-panel {
  position: fixed; bottom: 80px; right: 48px; z-index: 200;
  background: rgba(10,6,4,0.96); border: 1px solid var(--ember);
  width: 280px; padding: 16px;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--bone); letter-spacing: 0.1em;
  box-shadow: 0 0 40px rgba(217,122,43,0.2);
  display: none;
}
.tweaks-panel.on { display: block; }
.tweaks-panel h5 { font-size: 10px; color: var(--ember); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong); }
.tweak-row { margin-bottom: 14px; }
.tweak-row .lab { color: var(--bone-dim); font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 6px; display: block; }
.tweak-opts { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-opts button {
  padding: 6px 10px; border: 1px solid var(--line-strong);
  font-family: var(--ff-mono); font-size: 9px; text-transform: uppercase;
  color: var(--bone-dim); letter-spacing: 0.15em;
}
.tweak-opts button.on { border-color: var(--ember); color: var(--ember); background: rgba(217,122,43,0.1); }
.tweak-opts button:hover { color: var(--bone); }

/* =========================================================
   TIERS
   ========================================================= */
.tiers { padding: 120px 48px; }
.tiers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.tier {
  position: relative;
  padding: 40px 36px 36px;
  background: rgba(10, 6, 4, 0.85);
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  min-height: 640px;
  transition: border-color 0.3s, background 0.3s;
}
.tier:hover { border-color: var(--bone-dim); }
.tier-signature {
  border-color: var(--ember);
  box-shadow: inset 0 0 80px rgba(217, 122, 43, 0.06),
              0 0 40px rgba(217, 122, 43, 0.08);
}
.tier-signature:hover { border-color: var(--ember-hot); }
.tier-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 1px dashed var(--line-strong);
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--bone-dim); letter-spacing: 0.2em; text-transform: uppercase;
}
.tier-idx { color: var(--ember); }
.tier-label { letter-spacing: 0.3em; color: var(--bone); }
.tier-signature .tier-label { color: var(--haze); }
.tier-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.tier-price .v {
  font-family: var(--ff-display);
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9; color: var(--bone);
  letter-spacing: -0.03em;
}
.tier-signature .tier-price .v {
  color: var(--haze);
  text-shadow: 0 0 40px rgba(217, 122, 43, 0.35);
}
.tier-price .sub {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--bone-dim); letter-spacing: 0.15em; text-transform: uppercase;
}
.tier-oneliner {
  font-family: var(--ff-condensed);
  font-size: 20px; color: var(--bone-dim);
  margin-bottom: 16px; line-height: 1.35;
}
.tier-timeline {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--ember); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 28px;
}
.tier-bullets {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--ff-body); font-size: 14px;
  color: var(--bone); line-height: 1.5;
}
.tier-bullets li { position: relative; padding-left: 22px; }
.tier-bullets li::before {
  content: "◉"; position: absolute; left: 0; top: 2px;
  color: var(--ember); font-size: 9px;
}
.tier-footnote {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--bone-dim); letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.tier-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border: 1px solid var(--line-strong);
  font-family: var(--ff-mono); font-size: 11px; color: var(--bone);
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.tier-cta:hover {
  border-color: var(--ember); color: var(--ember);
  background: rgba(217, 122, 43, 0.06);
}
.tier-signature .tier-cta { border-color: var(--ember); color: var(--ember); }
.tier-signature .tier-cta:hover { background: var(--ember); color: var(--void); }
.tier-cta .arr { transition: transform 0.25s; }
.tier-cta:hover .arr { transform: translateX(4px); }
.tiers-footer {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--bone-dim); letter-spacing: 0.15em;
  text-transform: uppercase; text-align: center;
}

/* =========================================================
   SIGNALS (Testimonials)
   ========================================================= */
.signals {
  padding: 120px 48px;
  background: linear-gradient(180deg,
    rgba(5, 3, 2, 0) 0%,
    rgba(5, 3, 2, 0.45) 28%,
    rgba(5, 3, 2, 0.45) 72%,
    rgba(5, 3, 2, 0) 100%);
}
.signals-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.signal {
  padding: 32px 28px;
  background: rgba(20, 12, 6, 0.5);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 320px;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.signal:hover { border-color: var(--line-strong); background: rgba(20, 12, 6, 0.7); }
.signal-placeholder { opacity: 0.45; background: transparent; border-style: dashed; }
.signal-stamp {
  font-family: var(--ff-mono); font-size: 9px;
  color: var(--ember); letter-spacing: 0.2em;
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 1px dashed var(--line-strong);
}
.signal-quote {
  font-family: var(--ff-condensed);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.4; color: var(--bone);
  margin: 0 0 auto; font-weight: 400;
  font-style: normal;
}
.signal-attr {
  padding-top: 20px; margin-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--bone-dim); letter-spacing: 0.15em; text-transform: uppercase;
}
.signal-name {
  font-family: var(--ff-condensed);
  color: var(--haze); font-size: 14px;
  letter-spacing: 0.05em; text-transform: none;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 120px 48px; }
.faq-list { max-width: 960px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.faq-item.open {
  background: linear-gradient(90deg, rgba(217, 122, 43, 0.04) 0%, transparent 60%);
}
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 24px;
  padding: 28px 0;
  cursor: none; background: none; border: none;
  text-align: left;
  font-family: var(--ff-condensed);
  font-size: clamp(18px, 2vw, 26px);
  color: var(--bone); letter-spacing: 0.01em;
  line-height: 1.3;
  transition: color 0.25s, padding-left 0.3s cubic-bezier(.2,.8,.2,1);
}
.faq-q:hover { color: var(--haze); padding-left: 12px; }
.faq-item.open .faq-q { color: var(--haze); padding-left: 12px; }
.faq-num {
  font-family: var(--ff-mono); font-size: 11px; color: var(--ember);
  letter-spacing: 0.2em; flex-shrink: 0;
  min-width: 32px;
}
.faq-q-text { flex: 1; }
.faq-toggle {
  font-family: var(--ff-mono); color: var(--ember);
  flex-shrink: 0; font-size: 14px;
}
.faq-a {
  padding: 0 0 32px 68px;
  font-family: var(--ff-body); font-size: 15px;
  color: var(--bone-dim); line-height: 1.7;
  max-width: 760px;
  animation: faq-reveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   CONTACT FORM (Web3Forms)
   ========================================================= */
.contact-intro {
  font-family: var(--ff-body); font-size: 15px;
  color: var(--bone-dim); line-height: 1.6;
  max-width: 560px; margin-bottom: 48px;
}
.contact-intro a {
  color: var(--ember);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.contact-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.contact-form {
  display: flex; flex-direction: column; gap: 24px;
}
.contact-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.contact-field {
  display: flex; flex-direction: column; gap: 8px;
}
.contact-field .lab,
.contact-fieldset .lab {
  font-family: var(--ff-mono); font-size: 9px;
  color: var(--ember); letter-spacing: 0.25em; text-transform: uppercase;
}
.contact-field input,
.contact-field textarea {
  font-family: var(--ff-condensed);
  font-size: 15px;
  color: var(--bone);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px;
  letter-spacing: 0.01em;
  cursor: none;
  transition: border-color 0.25s, background 0.25s;
  outline: none;
  width: 100%;
}
.contact-field textarea { resize: vertical; min-height: 120px; font-family: var(--ff-body); }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--ember); }
.contact-fieldset {
  border: none; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-fieldset .lab { margin-bottom: 4px; }
.contact-radios {
  display: flex; gap: 20px 28px; flex-wrap: wrap;
}
.contact-radios label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--bone-dim); letter-spacing: 0.1em;
  cursor: none;
  transition: color 0.2s;
}
.contact-radios label:hover { color: var(--bone); }
.contact-radios input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin: 0; cursor: none;
  position: relative;
  transition: border-color 0.2s;
}
.contact-radios input[type="radio"]:checked { border-color: var(--ember); }
.contact-radios input[type="radio"]:checked::after {
  content: ""; position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  background: var(--ember); border-radius: 50%;
}
.contact-radios input[type="radio"]:checked ~ span { color: var(--ember); }
input[name="botcheck"] { position: absolute; left: -9999px; }
.contact-submit {
  align-self: flex-start;
  margin-top: 16px;
  padding: 18px 32px;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--void); background: var(--ember);
  border: 1px solid var(--ember);
  letter-spacing: 0.3em; text-transform: uppercase;
  cursor: none;
  display: inline-flex; align-items: center; gap: 14px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.contact-submit:hover {
  background: var(--haze); border-color: var(--haze);
}
.contact-submit:disabled { opacity: 0.45; cursor: none; }
.contact-submit .arr { transition: transform 0.25s; }
.contact-submit:hover .arr { transform: translateX(4px); }
.contact-error {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--ember-hot); letter-spacing: 0.15em;
  padding: 10px 14px; border: 1px solid var(--ember-hot);
  background: rgba(255, 148, 66, 0.06);
}
.contact-success {
  padding: 40px 0;
  display: flex; flex-direction: column; gap: 28px;
  animation: success-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes success-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.success-ack {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--ember); letter-spacing: 0.2em;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line-strong);
  overflow: hidden; white-space: nowrap;
  animation: type-in 1.6s steps(44, end);
}
@keyframes type-in { from { width: 0; } to { width: 100%; } }
.success-msg {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.05; color: var(--bone);
  letter-spacing: -0.02em;
}
.contact-info {
  display: flex; flex-direction: column; gap: 0;
}
.contact-info .contact-block {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.contact-info .contact-block:last-child {
  border-bottom: none; margin-bottom: 0;
}

/* =========================================================
   TABLET (≤ 900px) — intermediate streamlining
   ========================================================= */
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-wrap, .cursor-dot { display: none; }
  .hud-left-rail, .hud-scroll-rail, .hud-scroll-label { display: none; }
  .hud-top { left: 16px; right: 16px; top: 16px; font-size: 9px; gap: 12px; }
  .hud-bottom { display: none; }
  .hud-nav { display: none; }
  .hud-operator { display: none; }
  .hud-menu-btn { display: block; }
  section { padding: 96px 24px; }
  .section-head { margin-bottom: 48px; flex-wrap: wrap; gap: 8px; }
  .hero { padding: 0 24px; }
  .hero-sub { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 20px; }
  .hero-sub-col-wide { grid-column: 1 / -1; max-width: none; }
  .hero-scroll { right: 24px; bottom: 24px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 30px; }
  .manifesto-label { position: static; }
  .manifesto-specs { grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
  .tiers { padding: 96px 24px; }
  .tiers-grid { grid-template-columns: 1fr; gap: 20px; }
  .tier { min-height: 0; padding: 32px 24px 28px; }
  .works { padding: 96px 0; }
  .works .section-head { margin-left: 24px; margin-right: 24px; }
  .work { grid-template-columns: 52px 1fr auto; gap: 16px; padding: 24px 24px; }
  .work .year, .work .tags, .work .kpi { display: none; }
  .work .arrow { font-size: 10px; }
  .process { padding: 96px 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .signals { padding: 96px 24px; }
  .signals-grid { grid-template-columns: 1fr; }
  .signal { min-height: 0; }
  .faq { padding: 96px 24px; }
  .faq-q { gap: 14px; padding: 20px 0; font-size: 18px; }
  .faq-q:hover, .faq-item.open .faq-q { padding-left: 0; }
  .faq-a { padding-left: 52px; font-size: 14px; }
  .contact { padding: 96px 24px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-radios { flex-direction: column; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .archive { padding: 96px 24px 48px; }
  .archive-table { font-size: 10px; }
  .archive-table .sector, .archive-table .metric { display: none; }
  .wf-label { display: none; }
}

/* =========================================================
   MOBILE NARROW (≤ 600px) — aggressive streamlining + perf
   ========================================================= */
@media (max-width: 600px) {
  /* Kill cosmetic overlays that cost GPU on small screens */
  .crt-roll, .crt-roll-tint, .crt-jitter { display: none; }
  .crt-flicker { animation-duration: 0.28s; }
  .grain { opacity: 0.05; }
  .scanlines { opacity: 0.35; }
  .window-frame .wf-droplet { display: none; }
  .window-frame::before { box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85); }

  .hud-top { top: 12px; left: 12px; right: 12px; }
  .hud-corner { width: 16px; height: 16px; }
  .hud-corner.tl, .hud-corner.tr { top: 10px; }
  .hud-corner.tl, .hud-corner.bl { left: 10px; }
  .hud-corner.tr, .hud-corner.br { right: 10px; }
  .hud-corner.bl, .hud-corner.br { bottom: 10px; }
  .hud-brand { font-size: 10px; letter-spacing: 0.18em; }
  .hud-menu-btn { width: 40px; height: 40px; }
  .hud-menu-btn span { left: 10px; right: 10px; }

  section { padding: 72px 18px; }
  .section-head { margin-bottom: 36px; font-size: 9px; }

  .hero { padding: 0 18px; min-height: 100svh; }
  .hero-wordmark {
    font-size: clamp(72px, 24vw, 200px);
    text-shadow:
      0 0 30px rgba(217, 122, 43, 0.35),
      0 0 60px rgba(217, 122, 43, 0.18);
  }
  .hero-sub { grid-template-columns: 1fr; row-gap: 18px; margin-top: 22px; padding-top: 18px; }
  .hero-sub-val { font-size: 14px; }
  .hero-sub-col-wide .hero-sub-val { font-size: 13px; }
  .hero-scroll { right: 18px; bottom: 18px; font-size: 9px; }
  .hero-content { padding-bottom: 56px; }

  .manifesto-body { font-size: clamp(22px, 6vw, 32px); }
  .manifesto-body p + p { margin-top: 24px; }
  .manifesto-specs { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .spec-card .v { font-size: 40px; }

  .tiers { padding: 72px 18px; }
  .tier { padding: 28px 22px 24px; }
  .tier-price .v { font-size: clamp(44px, 14vw, 68px); }
  .tier-oneliner { font-size: 17px; }
  .tier-bullets { font-size: 13px; }

  .works .section-head { margin-left: 18px; margin-right: 18px; }
  .work { grid-template-columns: 44px 1fr; padding: 20px 18px; gap: 12px; }
  .work .arrow { display: none; }
  .work .title { font-size: clamp(22px, 7vw, 32px); }

  .process { padding: 84px 18px; }
  .process-title { font-size: clamp(44px, 12vw, 80px); margin-bottom: 48px; }
  .process-title em { text-indent: 40px; }
  .step { min-height: 0; padding: 32px 22px 48px; }
  .step-title { font-size: 28px; }

  .signals { padding: 72px 18px; }
  .signal { padding: 26px 22px; min-height: 0; }
  .signal-quote { font-size: 16px; }

  .archive { padding: 72px 18px 40px; }
  .archive-table th, .archive-table td { padding: 10px 10px; }
  .archive-table .name { font-size: 13px; }
  .archive-table .id { width: 60px; font-size: 9px; }

  .faq { padding: 72px 18px; }
  .faq-q { font-size: 16px; gap: 12px; padding: 18px 0; }
  .faq-num { min-width: 24px; font-size: 10px; }
  .faq-a { padding-left: 36px; padding-bottom: 26px; font-size: 13.5px; }

  .contact { padding: 72px 18px; }
  .contact-sig { font-size: clamp(60px, 16vw, 100px); margin-bottom: 36px; }
  .contact-intro { font-size: 14px; margin-bottom: 32px; }
  .contact-layout { gap: 36px; padding-top: 28px; }
  .contact-field input, .contact-field textarea { font-size: 16px; }
  .contact-submit { padding: 16px 26px; font-size: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .success-msg { font-size: clamp(24px, 8vw, 40px); }

  footer { flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px 18px; font-size: 9px; }
}

/* =========================================================
   REDUCED MOTION — kill all the CRT + animation drama
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .crt-roll, .crt-roll-tint, .crt-flicker, .crt-jitter,
  .lightning-flash, .fog-canvas, .rain-canvas { display: none !important; }
  .hero-wordmark { animation: none !important; }
  .hero-wordmark .glyph::before { display: none; }
  .hero-scroll { animation: none !important; }
  .audio-bars span { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 200ms !important;
    scroll-behavior: auto !important;
  }
}
