/* ============================================================
   EPISTEMIC — design system
   Dark, editorial, dual-tone (amber + cyan). Two minds, two colors.
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #0f0f13;
  --bg-3: #131318;
  --panel: rgba(255, 255, 255, 0.028);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --ink: #f2efe7;
  --muted: #8f8b81;
  --faint: #5c594f;

  --amber: #e8a33d;
  --amber-dim: rgba(232, 163, 61, 0.55);
  --cyan: #4fc3e8;
  --cyan-dim: rgba(79, 195, 232, 0.55);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--amber); color: #1a1408; }
.cyan::selection { background: var(--cyan); }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262b; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a41; }

/* ---------- textures ---------- */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(79, 195, 232, 0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(232, 163, 61, 0.05), transparent 55%);
}

.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(4%, 4%); }
}

/* ---------- cursor ---------- */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 90;
  border-radius: 50%; opacity: 0;
}
#cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--amber); mix-blend-mode: difference;
}
#cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, 0.45); mix-blend-mode: difference;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, border-color 0.25s ease;
}
body.cursor-on #cursor-dot, body.cursor-on #cursor-ring { opacity: 1; }
body.cursor-grow #cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: rgba(255,255,255,0.8); }
@media (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; }
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transition: width 0.08s linear;
}

/* ---------- layout helpers ---------- */
.container {
  width: min(1180px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; border-top: 1px solid var(--line-soft); }
.section-dark { background: var(--bg-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .num { color: var(--faint); }
.eyebrow-center { justify-content: center; width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; align-items: center; gap: 4px; }
.brand-mark i {
  width: 14px; height: 14px; border-radius: 50%;
}
.brand-mark i:first-child { background: var(--amber); box-shadow: 0 0 18px var(--amber-dim); }
.brand-mark i:last-child { background: var(--cyan); box-shadow: 0 0 18px var(--cyan-dim); }
.brand-name { font-family: var(--mono); font-size: 14px; letter-spacing: 0.3em; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav-link {
  font-size: 13.5px; color: var(--muted); position: relative;
  transition: color 0.25s ease; padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none; flex-direction: column; gap: 6px; padding: 10px; z-index: 55;
}
.burger span {
  width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s ease;
}
.burger.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 15px 30px; border-radius: 999px;
  transition: transform 0.25s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid {
  background: var(--ink); color: #14100a;
  box-shadow: 0 10px 40px -12px rgba(242, 239, 231, 0.4);
}
.btn-solid:hover {
  background: #ffffff; transform: translateY(-2px);
  box-shadow: 0 16px 48px -12px rgba(242, 239, 231, 0.55);
}
.btn-ghost {
  border: 1px solid var(--line); color: var(--ink); background: transparent;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  position: relative; overflow: hidden;
}
.hero-watermark {
  position: absolute; top: 8vh; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-weight: 700; font-size: clamp(120px, 26vw, 340px);
  letter-spacing: -0.05em; line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none; user-select: none;
}
.hero-inner { position: relative; text-align: center; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero-eyebrow .eyebrow { color: var(--muted); font-size: 11.5px; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-amber { background: var(--amber); box-shadow: 0 0 12px var(--amber-dim); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 12px var(--cyan-dim); }

.hero-title {
  font-size: clamp(52px, 10.5vw, 128px);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 600;
}
.hero-title .line { display: block; }
.hero-title .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.hero-title .hl-amber { color: var(--amber); }
.hero-title .hl-cyan { color: var(--cyan); }

.hero-sub {
  max-width: 620px; margin: 34px auto 0; color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; font-weight: 300;
}
.hero-sub .amber { color: var(--amber); font-style: italic; font-family: var(--serif); font-size: 1.06em; }
.hero-sub .cyan { color: var(--cyan); font-style: italic; font-family: var(--serif); font-size: 1.06em; }

.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- two-brain rig --- */
.brain-rig {
  display: grid; grid-template-columns: 1fr minmax(120px, 260px) 1fr;
  align-items: center; gap: clamp(12px, 3vw, 40px);
  max-width: 760px; margin: 72px auto 0;
}
.node { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.node-orbit {
  width: 64px; height: 64px; border-radius: 50%; position: relative;
  display: grid; place-items: center;
  border: 1px solid var(--amber-dim);
  box-shadow: 0 0 34px rgba(232, 163, 61, 0.14), inset 0 0 22px rgba(232, 163, 61, 0.08);
}
.node-cyan { border-color: var(--cyan-dim); box-shadow: 0 0 34px rgba(79, 195, 232, 0.14), inset 0 0 22px rgba(79, 195, 232, 0.08); }
.node-orbit::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.node-orbit::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: orbit-ping 2.6s ease-out infinite;
}
.node-cyan::after { animation-delay: 0.9s; }
@keyframes orbit-ping {
  0% { transform: scale(0.9); opacity: 0.8; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
.node-core { width: 26px; height: 26px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 26px var(--amber-dim), 0 0 60px var(--amber-dim); animation: core-pulse 2.6s ease-in-out infinite; }
.node-cyan .node-core { background: var(--cyan); box-shadow: 0 0 26px var(--cyan-dim), 0 0 60px var(--cyan-dim); animation-delay: 0.9s; }
@keyframes core-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.82); } }
.node-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; font-weight: 700; }
.node-role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }

.brain-link { position: relative; height: 2px; margin: 0 6px; background: linear-gradient(90deg, var(--amber-dim), var(--cyan-dim)); }
.link-dot {
  position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  animation: shuttle 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes shuttle {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 0px); }
}

.status {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 46px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #6ce5a0; flex: none;
  box-shadow: 0 0 0 0 rgba(108, 229, 160, 0.6);
  animation: blink 2s infinite;
}
@keyframes blink {
  0% { box-shadow: 0 0 0 0 rgba(108, 229, 160, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(108, 229, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 229, 160, 0); }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 22px 0; overflow: hidden; position: relative; background: var(--bg-2);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--faint);
}
.marquee-track i { color: var(--line); font-style: normal; font-size: 18px; margin: 0 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-title {
  font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
}
.section-sub { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.7; font-weight: 300; max-width: 560px; }

/* ---------- duo (architect / critic) ---------- */
.duo {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 44px); align-items: stretch;
}
.card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px); position: relative; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, background 0.4s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease;
}
.card-architect::before { background: radial-gradient(420px 260px at 50% 0%, rgba(232, 163, 61, 0.10), transparent 70%); }
.card-critic::before { background: radial-gradient(420px 260px at 50% 0%, rgba(79, 195, 232, 0.10), transparent 70%); }
.card:hover { transform: translateY(-6px); }
.card-architect:hover { border-color: var(--amber-dim); }
.card-critic:hover { border-color: var(--cyan-dim); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.card-tag { font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }
.card-name { font-size: 18px; letter-spacing: 0.06em; font-weight: 500; }
.card-verb { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 5vw, 56px); margin: 6px 0 14px; }
.card-architect .card-verb { color: var(--amber); }
.card-critic .card-verb { color: var(--cyan); }
.card-body { color: var(--muted); font-size: 15.5px; line-height: 1.75; font-weight: 300; }
.card-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }

.duo-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  position: relative; text-align: center; min-width: 120px;
}
.duo-line { width: 1px; flex: 1; max-height: 60px; background: linear-gradient(var(--amber-dim), var(--cyan-dim)); }
.duo-pulse { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.duo-pulse .link-dot { position: static; transform: none; width: 10px; height: 10px; background: #fff; box-shadow: 0 0 14px rgba(255,255,255,0.8); animation: duo-throb 2.2s ease-in-out infinite; }
@keyframes duo-throb { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.5; } }
.duo-label { font-size: 10px; letter-spacing: 0.28em; line-height: 1.8; color: var(--faint); text-transform: uppercase; }
.duo-stat { font-size: 10.5px; line-height: 1.7; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- night shift ---------- */
.night { margin-top: clamp(70px, 9vw, 120px); padding-top: clamp(50px, 6vw, 80px); border-top: 1px solid var(--line-soft); }
.night-title { font-size: clamp(30px, 4vw, 48px); margin: 20px 0 40px; line-height: 1.12; }
.night-log { border-top: 1px solid var(--line-soft); }
.night-log li {
  display: grid; grid-template-columns: 64px 1fr; gap: clamp(14px, 2.5vw, 36px);
  padding: 20px 4px; border-bottom: 1px solid var(--line-soft);
  align-items: baseline; transition: background 0.3s ease, padding 0.3s ease;
}
.night-log li:hover { background: rgba(255, 255, 255, 0.025); padding-left: 12px; }
.night-log .t { color: var(--faint); font-size: 12px; }
.night-log .d { color: var(--muted); font-size: 15.5px; font-weight: 300; }

/* ---------- terminal ---------- */
.terminal {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8, 8, 10, 0.8);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.02);
}
.terminal-dots { display: flex; gap: 7px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title { flex: 1; font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; text-align: center; }
.terminal-live { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: 0.2em; color: #6ce5a0; }
.terminal-live .status-dot { width: 7px; height: 7px; }

.terminal-body {
  height: 430px; overflow: hidden; padding: 6px 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  font-family: var(--mono);
}
.feed-line {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  animation: line-in 0.4s ease both;
}
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.feed-who { font-size: 11px; letter-spacing: 0.08em; padding-top: 3px; white-space: nowrap; }
.feed-architect .feed-who { color: var(--amber); }
.feed-critic .feed-who { color: var(--cyan); }
.feed-system .feed-who { color: var(--faint); }
.feed-text { font-size: 12.5px; line-height: 1.7; color: #c9c4b8; }
.feed-system .feed-text { color: var(--muted); font-size: 11.5px; letter-spacing: 0.06em; }
.feed-caret::after {
  content: "▌"; color: var(--ink); margin-left: 2px; animation: caret 0.9s steps(2) infinite;
}
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.terminal-controls {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
}
.tbtn {
  font-size: 11px; letter-spacing: 0.12em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.tbtn:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.35); background: rgba(255,255,255,0.04); }
.tbtn-note { flex: 1; text-align: right; font-size: 10.5px; color: var(--faint); letter-spacing: 0.08em; }

/* ---------- features grid ---------- */
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.cell { padding: clamp(30px, 3.5vw, 48px); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--panel); position: relative; transition: background 0.35s ease; }
.cell:nth-child(2n) { border-right: 0; }
.cell:nth-last-child(-n+2) { border-bottom: 0; }
.cell:hover { background: rgba(255, 255, 255, 0.045); }
.cell-num { font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }
.cell-title { font-size: clamp(20px, 2.2vw, 26px); margin: 18px 0 14px; letter-spacing: -0.01em; }
.cell-body { color: var(--muted); font-size: 15px; line-height: 1.75; font-weight: 300; }

/* ---------- method steps ---------- */
.steps { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: start; }
.step { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); position: relative; }
.step-num { font-size: 12px; letter-spacing: 0.24em; color: var(--faint); }
.step-title { font-size: clamp(22px, 2.4vw, 30px); margin: 16px 0 12px; }
.step-body { color: var(--muted); font-size: 14.5px; line-height: 1.75; font-weight: 300; min-height: 8.5em; }
.step-who { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }
.step-connector { position: relative; align-self: center; height: 1px; margin: 0 12px; background: linear-gradient(90deg, var(--amber-dim), var(--cyan-dim)); }
.step-connector::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
}

/* ---------- platform panels ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel {
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; align-items: flex-start; background: var(--panel);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
.panel:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.22); }
.panel-eyebrow { font-size: 10.5px; letter-spacing: 0.24em; color: var(--faint); text-transform: uppercase; }
.panel-name { font-size: clamp(22px, 2.2vw, 28px); margin: 14px 0 14px; letter-spacing: -0.01em; }
.panel-body { color: var(--muted); font-size: 15px; line-height: 1.75; font-weight: 300; flex: 1; margin-bottom: 28px; }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: clamp(70px, 8vw, 110px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); padding-left: clamp(18px, 2.5vw, 34px); }
.stat-num { font-size: clamp(40px, 5vw, 66px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat-num .count { background: linear-gradient(100deg, var(--ink) 30%, #a9a59a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-unit { font-size: 0.4em; color: var(--muted); letter-spacing: 0.04em; font-weight: 400; margin-left: 4px; }
.stat-label { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); line-height: 1.7; max-width: 200px; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.quote blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4; letter-spacing: 0.01em; margin-bottom: 28px;
}
.quote figcaption { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); line-height: 1.7; }

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; }
.cta-inner { text-align: center; max-width: 700px; margin-inline: auto; }
.cta-title { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.04em; margin: 20px 0; line-height: 1.02; }
.cta-sub { color: var(--muted); font-size: 17px; font-weight: 300; margin-bottom: 44px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-input {
  flex: 1; min-width: 260px; max-width: 380px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-family: var(--sans); font-size: 15px; padding: 15px 26px;
  outline: none; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cta-input::placeholder { color: var(--faint); }
.cta-input:focus { border-color: var(--amber-dim); box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.12); }
.cta-note { margin-top: 22px; font-size: 11px; letter-spacing: 0.14em; color: var(--faint); }
.cta-note.ok { color: #6ce5a0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: clamp(60px, 7vw, 90px) 0 40px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-tag { font-size: 22px; margin-top: 18px; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-head { font-size: 11px; letter-spacing: 0.24em; color: var(--faint); margin-bottom: 8px; text-transform: uppercase; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.25s ease; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: clamp(50px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-bottom .mono { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
.footer-status { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .step-connector { height: 40px; width: 1px; margin: 4px auto; background: linear-gradient(180deg, var(--amber-dim), var(--cyan-dim)); }
  .step-body { min-height: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .quotes { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .duo-center { flex-direction: row; padding: 10px 0; min-width: 0; }
  .duo-line { width: 100%; height: 1px; max-height: none; flex: none; }
  .duo-label { font-size: 11px; }
}

@media (max-width: 760px) {
  .grid4 { grid-template-columns: 1fr; }
  .cell { border-right: 0; }
  .cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .cell:last-child { border-bottom: 0; }
  .night-log li { grid-template-columns: 1fr; gap: 6px; }
  .terminal-body { height: 380px; padding: 6px 18px; }
  .feed-line { grid-template-columns: 1fr; gap: 2px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr; }

  .burger { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(11, 11, 13, 0.96); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links li { font-size: 22px; }
  .nav-cta { display: inline-flex; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
