/* ─────────────────────────────────────────────────────────────────
   POSIO.AI — REVENUE OS · terminal aesthetic, black + neon green
   ───────────────────────────────────────────────────────────────── */

:root {
  /* Palette — pure black, bright terminal green, off-white */
  --bg:           #000000;
  --bg-1:         #050507;
  --bg-2:         #0a0a0e;
  --bg-3:         #14141a;
  --ink:          #f2f2f2;
  --ink-2:        #cdcdcd;
  --ink-mute:     #8b8b8b;
  --ink-faint:    #4d4d52;
  --rule:         #1d1d22;
  --rule-strong:  #2a2a31;

  --acc:          #1aff80;
  --acc-bright:   #34ff95;
  --acc-dim:      #0eb85f;
  --acc-deep:     #086e38;
  --acc-glow:     rgba(26, 255, 128, 0.45);
  --acc-glow-2:   rgba(26, 255, 128, 0.12);
  --gold:         #d4a93b;
  --gold-glow:    rgba(212, 169, 59, 0.4);
  --amber:        #ffaa1a;
  --danger:       #ff3a3a;

  /* Type stacks */
  --display: "Space Grotesk", "Geist", "Inter Tight", system-ui, sans-serif;
  --sans:    "Geist", "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:    "JetBrains Mono", "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  /* Spacing */
  --s-0: 4px; --s-1: 8px; --s-2: 12px; --s-3: 16px;
  --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px;
  --s-8: 96px; --s-9: 128px;

  --r-sm: 2px; --r-md: 4px; --r-lg: 6px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

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

/* ── Global background: dotted grid + scan line + vignette ──────── */
.bg-fx {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(26, 255, 128, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 800px 400px at 100% 100%, rgba(26, 255, 128, 0.025) 0%, transparent 60%),
    var(--bg);
}
.bg-fx::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(26, 255, 128, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 0%, transparent 80%);
  opacity: 0.5;
  animation: gridDrift 60s linear infinite;
}
.bg-fx::after {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 100vh;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(26, 255, 128, 0.0) 49%,
    rgba(26, 255, 128, 0.025) 50%,
    transparent 51%,
    transparent 100%
  );
  animation: scanLine 8s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 24px 24px; }
}
@keyframes scanLine {
  0%   { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

/* faint CRT noise overlay */
.crt-noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.018;
  background: 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'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: screen;
}

/* ── Frame brackets — full page corner brackets ─────────────────── */
.frame {
  position: fixed;
  inset: 12px;
  pointer-events: none;
  z-index: 50;
}
.frame::before,
.frame::after,
.frame > span::before,
.frame > span::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 1.5px solid var(--acc);
  opacity: 0.85;
}
.frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame::after  { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame > span::before { bottom: 0; left: 0; border-right: 0; border-top: 0; position: fixed; }
.frame > span::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; position: fixed; }
/* nudge so the spans don't double-position */
.frame > span { position: absolute; left: 0; right: 0; bottom: 0; top: 0; }
.frame > span::before { left: 12px; bottom: 12px; }
.frame > span::after  { right: 12px; bottom: 12px; }

/* ── Type helpers ───────────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.upper { text-transform: uppercase; letter-spacing: 0.12em; }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}
.label-dim { color: var(--ink-mute); }
.glow { text-shadow: 0 0 12px var(--acc-glow); }
.cursor {
  display: inline-block;
  width: 0.5em; height: 1em;
  background: var(--acc);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1.05s steps(2) infinite;
  box-shadow: 0 0 8px var(--acc-glow);
}
@keyframes blink { to { opacity: 0; } }

.dim-text { color: var(--ink-mute); }

/* ── Container ──────────────────────────────────────────────────── */
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
}

/* ── Nav ────────────────────────────────────────────────────────── */
section[id], [id="top"] { scroll-margin-top: 84px; }
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand-wm {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--display); font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand-wm .ai { color: var(--acc); font-size: 14px; font-weight: 500; }
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a {
  color: var(--ink-mute);
  position: relative;
  padding: 6px 0;
  transition: color 0.18s;
}
.nav-links a::before {
  content: "// ";
  color: var(--acc);
  opacity: 0;
  transition: opacity 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::before { opacity: 1; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--acc); color: var(--bg);
  font-family: var(--mono); font-weight: 800;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all 0.18s;
  position: relative;
  box-shadow: 0 0 0 0 var(--acc-glow-2), 0 0 18px var(--acc-glow);
  animation: navCtaPulse 2.2s ease-in-out infinite;
}
.nav-cta:hover {
  box-shadow: 0 0 0 8px var(--acc-glow-2), 0 0 32px var(--acc-glow);
  transform: translateY(-1px);
  animation: none;
}
@keyframes navCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--acc-glow-2), 0 0 14px var(--acc-glow); }
  50%      { box-shadow: 0 0 0 6px transparent, 0 0 28px var(--acc-glow); }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono); font-weight: 600;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  position: relative;
  cursor: pointer;
}
.btn-primary {
  background: var(--acc); color: var(--bg);
  box-shadow: 0 0 0 0 var(--acc-glow-2);
}
.btn-primary:hover {
  box-shadow: 0 0 0 8px var(--acc-glow-2), 0 0 28px var(--acc-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn .arrow { font-family: var(--mono); }

/* ── HUD Panel — the reusable framed surface ────────────────────── */
.hud {
  border: 1px solid var(--acc);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  border-radius: var(--r-md);
}
.hud-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--acc);
  white-space: nowrap;
  gap: 12px;
}
.hud-head-dots {
  display: inline-flex; gap: 5px;
}
.hud-head-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--acc); opacity: 0.6;
}
.hud-head-dots span:nth-child(2) { opacity: 0.8; }
.hud-head-dots span:nth-child(3) { opacity: 1; box-shadow: 0 0 6px var(--acc-glow); }
.hud-body { padding: 16px 18px; }

/* status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--acc);
}
.status-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow-2), 0 0 10px var(--acc-glow);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--acc-glow-2), 0 0 10px var(--acc-glow); }
  50%      { box-shadow: 0 0 0 6px rgba(26,255,128,0.06), 0 0 16px var(--acc-glow); }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 32px 0 64px;
  position: relative;
  display: flex; flex-direction: column;
}
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px;
}
.hero-top-left {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--acc);
  letter-spacing: 0.1em;
}
.hero-top-left .prompt { color: var(--acc); opacity: 0.7; }
.hero-top-left .ok-tag { color: var(--ink-mute); margin-left: 12px; font-size: 11px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 40px;
  flex: 1;
  align-items: center;
}
.hero-left {
  display: flex; flex-direction: column;
  gap: 24px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(80px, 11vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 2px;
  position: relative;
  transform-origin: left;
}
.wordmark .ai {
  font-size: 0.22em;
  color: var(--acc);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-left: 0.04em;
  text-shadow: 0 0 12px var(--acc-glow);
}
.wordmark-rule {
  height: 2px;
  background: linear-gradient(to right, var(--acc) 0%, var(--acc) 60%, transparent 100%);
  max-width: 540px;
  margin-top: 8px;
  box-shadow: 0 0 12px var(--acc-glow);
  transform-origin: left;
  animation: ruleGrow 0.9s cubic-bezier(.2,.6,.2,1) 0.6s both;
}
@keyframes ruleGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-tagline {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 36px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--acc);
  line-height: 1.15;
  text-shadow: 0 0 8px var(--acc-glow-2);
  max-width: 22ch;
  min-height: 1.2em;
}
.hero-tagline .static-tag {
  white-space: pre-wrap;
}
.hero-prompt-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
  font-family: var(--mono);
  color: var(--acc);
  font-size: 24px;
}

.hero-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 14px 22px;
  border: 1px solid var(--acc);
  background: rgba(26,255,128,0.08);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(26,255,128,0.08), 0 10px 30px -20px var(--acc-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.hero-demo-cta:hover {
  background: var(--acc);
  color: var(--bg);
  box-shadow: 0 0 0 6px var(--acc-glow-2), 0 0 24px var(--acc-glow);
  transform: translateY(-1px);
}

.hero-right {
  display: flex; flex-direction: column; gap: 18px;
  align-self: stretch;
  justify-content: space-between;
  padding: 8px 0;
}

/* System log panel */
.syslog {
  width: 100%;
}
.syslog-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 0;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  border-bottom: 1px dashed var(--rule);
  white-space: nowrap;
}
.syslog-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.syslog-row:last-child { border-bottom: 0; }
.syslog-row .ok { color: var(--acc); font-weight: 600; flex-shrink: 0; }
.syslog-row .err { color: var(--danger); }
.syslog-status {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.syslog-status b { color: var(--acc); }
@keyframes logRowIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Bottom-right meta block */
.hero-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--acc); letter-spacing: 0.08em;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
  opacity: 0.85;
  line-height: 1.2;
}
.hero-meta span { display: block; white-space: nowrap; }

/* ── Big marquee strip below hero ───────────────────────────────── */
.event-strip {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(26, 255, 128, 0.02);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.event-strip::before, .event-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.event-strip::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.event-strip::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.event-strip-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.event-strip-item {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.event-strip-item::before {
  content: "//"; color: var(--acc);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Section base ───────────────────────────────────────────────── */
section { padding: 120px 0; position: relative; }
.sec-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: start;
}
.sec-head-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc);
  padding-top: 12px;
}
.sec-head-tag::before { content: "// "; opacity: 0.5; }
.sec-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02; letter-spacing: -0.025em;
  max-width: 24ch;
  color: var(--ink);
}
.sec-title em {
  font-style: normal;
  color: var(--acc);
  text-shadow: 0 0 18px var(--acc-glow-2);
}
.sec-sub {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-mute);
  margin-top: 14px; letter-spacing: 0.04em;
  max-width: 60ch;
  line-height: 1.55;
}

/* ── Terminal chat (the hero/section combination) ───────────────── */
.terminal-section {
  padding-top: 0;
}
.terminal {
  border: 1px solid var(--acc);
  background: rgba(0,0,0,0.7);
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 0 0 0 var(--acc-glow-2);
  display: flex; flex-direction: column;
  min-height: 580px;
  max-height: 720px;
}
.terminal::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--acc) 0%, transparent 30%, transparent 70%, var(--acc) 100%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.term-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: rgba(26, 255, 128, 0.06);
  border-bottom: 1px solid var(--acc);
  font-family: var(--mono); font-size: 12px;
  color: var(--acc); letter-spacing: 0.1em; text-transform: uppercase;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.term-header-mid {
  position: absolute; left: 50%; transform: translateX(-50%);
  color: var(--ink-mute); font-size: 11px;
}
.term-progress {
  display: flex; gap: 4px; padding: 8px 22px 0;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.term-progress-step {
  flex: 1; height: 2px;
  background: var(--rule-strong);
}
.term-progress-step.done { background: var(--acc); box-shadow: 0 0 8px var(--acc-glow); }
.term-progress-step.current {
  background: var(--acc);
  animation: progressPulse 1.4s ease-in-out infinite;
}
@keyframes progressPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.term-body {
  flex: 1; overflow-y: auto;
  padding: 28px 32px;
  display: flex; flex-direction: column;
  gap: 22px;
  font-family: var(--mono); font-size: 14px;
  position: relative; z-index: 1;
}
.term-body::-webkit-scrollbar { width: 8px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 4px; }
.term-body::-webkit-scrollbar-thumb:hover { background: var(--acc-deep); }

.term-line {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2); line-height: 1.55;
  letter-spacing: 0.02em;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-line.user { color: var(--ink); }
.term-line.user::before {
  content: "> USER ";
  color: var(--acc); font-weight: 600;
  margin-right: 4px;
}
.term-line.ai { color: var(--acc-bright); }
.term-line.ai::before {
  content: "> POSIO ";
  color: var(--acc); font-weight: 600;
  opacity: 0.7;
  margin-right: 4px;
}
.term-line.sys {
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.term-line.sys::before { content: "## "; color: var(--ink-faint); }

/* mode choice cards inside terminal */
.term-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 700px) { .term-modes { grid-template-columns: 1fr; } }
.term-mode {
  display: block;
  text-align: left;
  padding: 22px 22px 26px;
  border: 1px solid var(--rule-strong);
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  font-family: var(--mono);
}
.term-mode::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--acc-glow-2) 100%);
  opacity: 0; transition: opacity 0.25s;
}
.term-mode:hover {
  border-color: var(--acc);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px -4px var(--acc-glow);
}
.term-mode:hover::before { opacity: 1; }
.term-mode-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc); opacity: 0.7;
  display: flex; justify-content: space-between;
}
.term-mode-title {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; line-height: 1.1;
  margin-top: 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.term-mode-sub {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.term-mode-arrow {
  position: absolute;
  right: 18px; top: 22px;
  font-family: var(--mono); font-size: 16px;
  color: var(--acc); opacity: 0.6;
  transition: transform 0.2s;
}
.term-mode:hover .term-mode-arrow { transform: translateX(4px); opacity: 1; }

/* quick command chips */
.term-chips {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.term-chip {
  font-family: var(--mono); font-size: 11px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  background: rgba(0,0,0,0.3);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.16s;
  border-radius: var(--r-sm);
}
.term-chip:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-glow-2); }
.term-chip::before { content: "$ "; color: var(--acc); opacity: 0.6; }

.term-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--acc);
  background: rgba(26, 255, 128, 0.03);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.term-input-prefix {
  font-family: var(--mono); font-size: 14px;
  color: var(--acc); font-weight: 600;
}
.term-input {
  flex: 1;
  border: 0; outline: 0; resize: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono); font-size: 14px;
  padding: 4px 0;
  line-height: 1.4;
  max-height: 100px;
}
.term-input::placeholder { color: var(--ink-faint); }
.term-send {
  width: 36px; height: 36px;
  border: 1px solid var(--acc);
  color: var(--acc);
  background: transparent;
  font-family: var(--mono); font-size: 16px;
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.term-send:hover { background: var(--acc); color: var(--bg); box-shadow: 0 0 16px var(--acc-glow); }
.term-send:disabled { opacity: 0.3; cursor: not-allowed; }

.term-typing {
  display: inline-flex; gap: 5px; align-items: center;
  color: var(--acc);
}
.term-typing span {
  width: 6px; height: 6px;
  background: var(--acc);
  animation: typingBlip 1.1s ease-in-out infinite;
  box-shadow: 0 0 6px var(--acc-glow);
}
.term-typing span:nth-child(2) { animation-delay: 0.18s; }
.term-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBlip {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Inline caret shown after streaming text */
.term-caret {
  display: inline-block;
  width: 0.5em; height: 1em;
  background: var(--acc);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
  box-shadow: 0 0 6px var(--acc-glow);
}

/* ── Modules / services grid ────────────────────────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 1100px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .modules { grid-template-columns: 1fr; } }
.module {
  background: var(--bg-1);
  padding: 32px 28px 36px;
  min-height: 280px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.25s;
}
.module:hover { background: var(--bg-2); }
.module:hover .module-status::after { animation-duration: 0.6s; }
.module-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-mute);
}
.module-num::before { content: "MODULE_"; color: var(--acc); opacity: 0.6; }
.module-name {
  font-family: var(--display); font-weight: 700;
  font-size: 28px; line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.module-desc {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
}
.module-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px dashed var(--rule-strong);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.module-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--acc);
}
.module-status::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc-glow);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.module-tag { color: var(--ink-mute); }

/* ── Sequence (process) — brutalist terminal luxury cards ──────── */
.sequence {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
@media (max-width: 1100px) { .sequence { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 600px)  { .sequence { grid-template-columns: 1fr; gap: 28px; } }

.seq-step {
  position: relative;
  padding: 22px 26px 28px;
  background:
    linear-gradient(180deg, rgba(26,255,128,0.04) 0%, transparent 35%),
    linear-gradient(180deg, #0c0c10 0%, #060608 100%);
  border: 1px solid rgba(26, 255, 128, 0.18);
  border-radius: 0;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 300px;
  overflow: visible;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 60px rgba(26, 255, 128, 0.025),
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 18px 40px -28px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Top accent line — luxury HUD bar (sits on top border, never clipped) */
.seq-step::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(26, 255, 128, 0.55) 25%,
    rgba(26, 255, 128, 0.95) 50%,
    rgba(26, 255, 128, 0.55) 75%,
    transparent 100%);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Phase tag — sits INSIDE the card at top, no clipping risk */
.seq-step::before {
  content: "[ " attr(data-phase) " ]";
  display: inline-block;
  align-self: flex-start;
  padding: 5px 10px;
  background: rgba(26, 255, 128, 0.06);
  border: 1px solid rgba(26, 255, 128, 0.35);
  border-left: 2px solid var(--acc);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(26, 255, 128, 0.45);
  box-shadow: inset 0 0 12px rgba(26, 255, 128, 0.08);
  margin-bottom: 4px;
  white-space: nowrap;
}

.seq-step:hover {
  border-color: rgba(26, 255, 128, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 80px rgba(26, 255, 128, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 24px 60px -24px rgba(26, 255, 128, 0.18),
    0 0 40px rgba(26, 255, 128, 0.08);
  transform: translateY(-3px);
}
.seq-step:hover::after { opacity: 1; }

.seq-step-num {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--acc);
  letter-spacing: -0.04em;
  text-shadow:
    0 0 20px rgba(26, 255, 128, 0.35),
    0 0 40px rgba(26, 255, 128, 0.15);
  z-index: 1;
}
.seq-step-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: none;
}
.seq-step-desc {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-top: auto;
  max-width: 32ch;
  position: relative;
}

/* Bottom-right corner accent bracket on every card */
.seq-step .seq-step-desc::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -14px;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(26, 255, 128, 0.5);
  border-bottom: 2px solid rgba(26, 255, 128, 0.5);
  transition: border-color 0.3s ease, width 0.3s ease, height 0.3s ease;
  pointer-events: none;
}
.seq-step:hover .seq-step-desc::after {
  border-right-color: var(--acc);
  border-bottom-color: var(--acc);
  width: 18px;
  height: 18px;
}


/* ── Theater / CA map — luxury HUD ─────────────────────────────── */
.theater-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: stretch;
}
@media (max-width: 1000px) { .theater-pro { grid-template-columns: 1fr; gap: 40px; } }

.theater-stack {
  display: flex; flex-direction: column;
  gap: 28px;
  padding: 4px 0;
}

.theater-hero-stat {
  border-left: 2px solid var(--acc);
  padding-left: 22px;
}
.theater-hero-stat-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--acc); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.7;
}
.theater-hero-stat-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 8vw, 110px);
  line-height: 0.95; letter-spacing: -0.035em;
  color: var(--acc);
  text-shadow: 0 0 28px var(--acc-glow);
}
.theater-hero-stat-label {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2); letter-spacing: 0.05em;
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.5;
}

.theater-coverage {
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.theater-coverage-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(26, 255, 128, 0.04);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.theater-coverage-head .acc { color: var(--acc); font-weight: 600; }
.theater-coverage-row {
  display: grid;
  grid-template-columns: 44px 1fr 100px 28px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  font-family: var(--mono); font-size: 13px;
  border-bottom: 1px dashed var(--rule);
  transition: background 0.2s;
  animation: rowSlide 0.5s ease both;
}
.theater-coverage-row:last-child { border-bottom: 0; }
.theater-coverage-row:hover { background: rgba(26, 255, 128, 0.04); }
@keyframes rowSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.theater-coverage-code {
  font-family: var(--mono); font-weight: 600;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--acc);
}
.theater-coverage-name {
  font-family: var(--display); font-weight: 500;
  font-size: 16px; letter-spacing: -0.01em;
  color: var(--ink);
}
.theater-coverage-bar {
  display: block;
  position: relative;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.theater-coverage-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--acc-dim), var(--acc));
  box-shadow: 0 0 6px var(--acc-glow);
  width: 0;
  animation: barFill 1s cubic-bezier(.2,.6,.2,1) 0.3s forwards;
}
@keyframes barFill {
  to { width: var(--w); }
}
.theater-coverage-count {
  text-align: right;
  color: var(--ink-2);
  font-weight: 600;
}

.theater-foot-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--ink-mute);
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}
.theater-foot-meta span:hover { color: var(--acc); }

/* MAP 3D FRAME ──────────────────────────────────────────────────── */
.map3d-frame {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(26, 255, 128, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.88) 100%);
  border: 1px solid var(--acc);
  border-radius: var(--r-md);
  aspect-ratio: 4 / 5;
  max-height: 720px;
  padding: 20px;
  overflow: hidden;
  box-shadow:
    inset 0 0 80px rgba(26, 255, 128, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 30px 80px -20px rgba(26, 255, 128, 0.20),
    0 0 0 1px rgba(26,255,128,0.06);
  perspective: 1200px;
  perspective-origin: 50% 50%;
}
.map3d-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--acc);
  pointer-events: none;
  z-index: 5;
}
.map3d-corner.tl { top: 8px;    left: 8px;    border-right: 0; border-bottom: 0; }
.map3d-corner.tr { top: 8px;    right: 8px;   border-left: 0;  border-bottom: 0; }
.map3d-corner.bl { bottom: 8px; left: 8px;    border-right: 0; border-top: 0; }
.map3d-corner.br { bottom: 8px; right: 8px;   border-left: 0;  border-top: 0; }
.map3d-hud-top {
  position: absolute;
  top: 22px; right: 32px;
  display: flex; gap: 24px;
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map3d-hud-row { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.map3d-hud-row .k { color: var(--ink-faint); }
.map3d-hud-row .v { color: var(--ink-2); font-weight: 600; }
.map3d-hud-row .v.acc { color: var(--acc); display: inline-flex; align-items: center; gap: 6px; }
.map3d-hud-row .blip {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 6px var(--acc-glow);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.map3d-hud-bottom {
  position: absolute;
  bottom: 22px; left: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: flex-end;
  z-index: 6;
  pointer-events: none;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em;
}
.map3d-hud-bottom .right { text-align: right; }
.map3d-hud-detail-label { color: var(--ink-faint); text-transform: uppercase; }
.map3d-hud-detail-value {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--mono);
}
.map3d-hud-detail-value .acc { color: var(--acc); font-weight: 700; }
.map3d-hud-detail-value .dim { color: var(--ink-mute); }

.map3d-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}
.map3d-tilt {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 14deg)) rotateY(var(--tilt-y, 0deg));
}
.map3d-layer { position: absolute; inset: 0; pointer-events: none; }
.map3d-layer svg { width: 100%; height: 100%; }

.map3d-layer-grid {
  transform: translateZ(-80px);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(26, 255, 128, 0.10) 49.5%, rgba(26, 255, 128, 0.10) 50.5%, transparent 50.5%) 0 0 / 60px 100%,
    linear-gradient(0deg, transparent 49.5%, rgba(26, 255, 128, 0.10) 49.5%, rgba(26, 255, 128, 0.10) 50.5%, transparent 50.5%) 0 0 / 100% 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
}
.map3d-layer-glow   { transform: translateZ(-60px); opacity: 0.85; }
/* Stacked extruded depth layers — each is positioned via inline style */
.map3d-layer-extrude { transform-style: preserve-3d; will-change: transform; }
.map3d-layer-base   { transform: translateZ(-12px); filter: blur(0.4px); }
.map3d-layer-shape  { transform: translateZ(2px); }
.map3d-layer-radar  { transform: translateZ(24px); overflow: hidden; opacity: 0.45; mix-blend-mode: screen; }
.map3d-layer-pins   { transform: translateZ(48px); pointer-events: auto; }
.map3d-layer-pins svg { pointer-events: none; }
.map3d-pin { pointer-events: auto; cursor: pointer; }

/* Realistic CA relief image */
.map3d-relief-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  user-select: none; -webkit-user-drag: none;
  filter:
    drop-shadow(0 24px 40px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 30px rgba(0, 220, 120, 0.18))
    contrast(1.08) saturate(0.9);
}
.map3d-relief-tint {
  position: absolute; inset: 0;
  background: linear-gradient(155deg,
    rgba(20, 255, 140, 0.22) 0%,
    rgba(0, 200, 110, 0.10) 45%,
    rgba(0, 80, 50, 0.28) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.map3d-relief-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(0, 255, 140, 0.04) 0px,
    rgba(0, 255, 140, 0.04) 1px,
    transparent 1px, transparent 3px);
  mix-blend-mode: screen;
  pointer-events: none; opacity: 0.55;
}
.map3d-relief-glow {
  position: absolute; inset: 8% 12%;
  background: radial-gradient(ellipse at 45% 55%,
    rgba(0, 255, 140, 0.35) 0%,
    rgba(0, 200, 100, 0.15) 35%,
    transparent 70%);
  filter: blur(30px);
}

.map3d-radar-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 130%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(26, 255, 128, 0.08) 340deg,
    rgba(26, 255, 128, 0.22) 358deg,
    transparent 360deg
  );
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
  animation: m3RadarSpin 6s linear infinite;
}
@keyframes m3RadarSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.map3d-scanline {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(26, 255, 128, 0.025) 3px,
      rgba(26, 255, 128, 0.025) 4px
    );
  opacity: 0.4;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
}
@keyframes pin3Drop {
  0%   { transform: translateY(-24px); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.map3d-pin.active circle { filter: drop-shadow(0 0 10px var(--acc-glow)); }

/* Mobile-friendly map ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .map3d-frame {
    aspect-ratio: 3 / 4;
    max-height: 560px;
    padding: 14px;
    perspective: 900px;
  }
  .map3d-corner { width: 16px; height: 16px; }
  .map3d-hud-top {
    top: 14px; right: 14px;
    gap: 14px;
    font-size: 9px;
  }
  .map3d-hud-bottom {
    bottom: 14px; left: 16px; right: 16px;
    font-size: 10px;
  }
  .map3d-hud-detail-value { font-size: 12px; }
  .map3d-tilt {
    transform: rotateX(8deg);
  }
  .map3d-layer-grid { transform: translateZ(-50px); }
  .map3d-layer-pins { transform: translateZ(28px); }
  .theater-coverage-row {
    grid-template-columns: 38px 1fr 70px 24px;
    gap: 10px;
    padding: 10px 14px;
    font-size: 12px;
  }
  .theater-coverage-name { font-size: 14px; }
  .theater-coverage-head { padding: 10px 14px; font-size: 10px; }
  .theater-hero-stat-num { font-size: clamp(54px, 14vw, 78px); }
  .theater-hero-stat-label { font-size: 12px; }
}
@media (max-width: 420px) {
  .map3d-hud-top { display: none; }
  .map3d-frame { aspect-ratio: 4 / 5; padding: 10px; }
}

/* ── Mission / case study ──────────────────────────────────────── */
.mission {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 1000px) { .mission { grid-template-columns: 1fr; } }
.mission-panel {
  background: var(--bg-1);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column;
  position: relative;
}
.mission-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 60%, var(--acc-glow-2) 100%),
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(26,255,128,0.025) 30px 31px);
  pointer-events: none;
}
.mission-photo {
  flex: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%),
    radial-gradient(circle at 30% 30%, rgba(26, 255, 128, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #142a1a 0%, #060b08 100%);
  display: flex; align-items: flex-end; padding: 28px;
  position: relative;
  min-height: 360px;
}
.mission-photo::after {
  content: "[ ON-SITE · SONOMA CA · 2026 ]";
  position: absolute; top: 16px; left: 20px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--acc);
}
.mission-photo-caption {
  font-family: var(--display); font-weight: 600;
  font-size: 26px; line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  position: relative; z-index: 3;
  max-width: 22ch;
}

/* === Mission visual === */
.mission-visual {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.mission-visual-grid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.9;
}
.mission-visual-stack {
  position: absolute;
  top: 50px; right: 28px;
  display: flex; flex-direction: column; gap: 14px;
  width: min(58%, 340px);
  z-index: 2;
}
.mv-card {
  background: linear-gradient(180deg, rgba(8,16,10,0.92), rgba(4,8,5,0.92));
  border: 1px solid rgba(26,255,128,0.28);
  box-shadow:
    inset 0 1px 0 rgba(26,255,128,0.12),
    0 12px 30px -16px rgba(0,0,0,0.8),
    0 0 0 1px rgba(0,0,0,0.4);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(220,255,230,0.78);
  letter-spacing: 0.04em;
  position: relative;
}
.mv-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0.55;
}
.mv-card-1 { transform: translateX(-18px) rotate(-0.6deg); }
.mv-card-2 { transform: translateX(8px) rotate(0.4deg); }
.mv-card-3 { transform: translateX(-6px) rotate(-0.2deg); border-color: rgba(26,255,128,0.45); }
.mv-card-h {
  color: var(--acc);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 0 6px rgba(26,255,128,0.4);
}
.mv-card-row {
  display: flex; justify-content: space-between;
  border-top: 1px dashed rgba(26,255,128,0.14);
  padding: 3px 0;
}
.mv-card-row:first-of-type { border-top: none; }
.mv-val { color: var(--acc); }
.mv-card-line {
  padding: 2px 0;
  color: rgba(180,255,200,0.85);
}
.mv-blink::after {
  content: "";
  display: inline-block;
  width: 7px; height: 11px;
  background: var(--acc);
  margin-left: 3px;
  vertical-align: -1px;
  animation: mvBlink 1s steps(2) infinite;
  box-shadow: 0 0 6px rgba(26,255,128,0.6);
}
@keyframes mvBlink { 50% { opacity: 0; } }

.mission-visual-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--acc);
  opacity: 0.55;
}
.mvc-tl { top: 14px; left: 16px; border-right: none; border-bottom: none; }
.mvc-tr { top: 14px; right: 16px; border-left: none; border-bottom: none; }
.mvc-bl { bottom: 14px; left: 16px; border-right: none; border-top: none; }
.mvc-br { bottom: 14px; right: 16px; border-left: none; border-top: none; }
.mission-visual-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg, transparent 0 3px, rgba(26,255,128,0.025) 3px 4px
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 720px) {
  .mission-visual-stack { position: relative; top: auto; right: auto; width: 100%; margin: 40px 0 0; }
  .mv-card { font-size: 10px; }
}
.mission-body {
  display: flex; flex-direction: column; gap: 24px;
  padding: 8px 0;
  justify-content: space-between;
}
.mission-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc);
}
.mission-tag::before { content: "// "; opacity: 0.5; }
.mission-quote {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 14px;
  color: var(--ink);
}
.mission-attribution {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute);
  margin-top: 16px;
}
.mission-results {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: 8px;
}
.mission-result-n {
  font-family: var(--display); font-weight: 700;
  font-size: 44px; color: var(--acc);
  line-height: 1; letter-spacing: -0.025em;
  text-shadow: 0 0 14px var(--acc-glow-2);
}
.mission-result-l {
  font-size: 13px; color: var(--ink-2);
  margin-top: 6px; line-height: 1.4;
}

/* ── Engagement / pricing ───────────────────────────────────────── */
.eng-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .eng-grid { grid-template-columns: 1fr; } }
.eng-card {
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  padding: 36px 32px;
  background: var(--bg-1);
  position: relative;
  display: flex; flex-direction: column;
  transition: all 0.22s;
  overflow: hidden;
}
.eng-card:hover { border-color: var(--acc); }
.eng-card.featured {
  border-color: var(--acc);
  background:
    radial-gradient(ellipse at top right, var(--acc-glow-2), transparent 60%),
    var(--bg-1);
  box-shadow: 0 0 0 0 var(--acc-glow-2);
}
.eng-flag {
  position: absolute; top: 0; right: 24px;
  background: var(--acc); color: var(--bg);
  font-family: var(--mono); font-size: 10px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.eng-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--acc);
}
.eng-name {
  font-family: var(--display); font-weight: 700;
  font-size: 36px; line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
  color: var(--ink);
}
.eng-desc {
  font-size: 15px; line-height: 1.55;
  color: var(--ink-2);
}
.eng-features {
  list-style: none; padding: 0; margin: 28px 0;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--mono); font-size: 13px;
}
.eng-features li {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px;
  align-items: baseline;
  color: var(--ink-2);
}
.eng-features li::before {
  content: ">";
  font-family: var(--mono); color: var(--acc); font-weight: 700;
}
.eng-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
}
.eng-money {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute); letter-spacing: 0.04em;
}

/* ── Diagnostics / FAQ ─────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  transition: padding 0.25s;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%;
  font-family: var(--display); font-weight: 600;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.015em;
  text-align: left;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--acc); }
.faq-q-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--acc); opacity: 0.6;
  flex-shrink: 0;
}
.faq-q-indicator {
  font-family: var(--mono); font-size: 18px;
  color: var(--acc);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-q-indicator { transform: rotate(45deg); }
.faq-a {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
  padding-left: 72px;
}
.faq-item.open .faq-a {
  max-height: 400px;
  margin-top: 16px;
}

/* ── Closer ─────────────────────────────────────────────────────── */
.closer {
  padding: 140px 0;
  text-align: center;
  position: relative;
}
.closer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 50% 50%, var(--acc-glow-2), transparent 70%);
  pointer-events: none;
}
.closer-tag {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 24px;
}
.closer-tag::before { content: "> "; }
.closer-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 14ch;
}
.closer-title em {
  font-style: normal; color: var(--acc);
  text-shadow: 0 0 30px var(--acc-glow);
}
.closer-sub {
  font-family: var(--mono); font-size: 14px;
  color: var(--ink-mute);
  margin: 28px auto 44px;
  max-width: 50ch;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.closer-actions {
  display: inline-flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.foot {
  padding: 48px 0 24px;
  border-top: 1px solid var(--rule);
  background: var(--bg-1);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.foot-brand {
  font-family: var(--display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.025em;
}
.foot-brand .ai { color: var(--acc); font-size: 16px; font-weight: 500; margin-left: 2px; }
.foot-tagline {
  margin-top: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute);
  max-width: 28ch;
  letter-spacing: 0.04em;
  line-height: 1.55;
}
.foot-col h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc);
  margin: 0 0 16px;
  font-weight: 600;
}
.foot-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.foot-col li {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.foot-col a:hover { color: var(--acc); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase;
}
.foot-bottom-right { display: inline-flex; align-items: center; gap: 10px; }
.foot-bottom-right::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 8px var(--acc-glow);
  animation: pulseDot 2.5s ease-in-out infinite;
}

/* ── Reveal on scroll ────────────────────────────────────────────
   Sections start slightly translated + faded; .is-visible (added by
   useReveal IO) fires the entrance. Immediate children inherit a
   per-index --reveal-delay set in JS for a soft cascade. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s cubic-bezier(.2,.65,.2,1),
    transform 0.75s cubic-bezier(.2,.65,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Cascade direct children */
[data-reveal] > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s cubic-bezier(.2,.65,.2,1) var(--reveal-delay, 0ms),
    transform 0.65s cubic-bezier(.2,.65,.2,1) var(--reveal-delay, 0ms);
}
[data-reveal].is-visible > * {
  opacity: 1;
  transform: none;
}
/* Sec-head: only one child, no cascade needed — just inherit parent reveal */
.sec-head[data-reveal] > * { transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Misc helpers ───────────────────────────────────────────────── */
.col-2-text {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 700px) { .col-2-text { grid-template-columns: 1fr; } }

/* ── Micro-interactions ─────────────────────────────────────────── */

/* Magnetic cursor — HUD reticle / crosshair targeting style.
   Center dot + bracketed crosshair frame that scales on interactives. */
.mx-cursor-dot, .mx-cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.mx-cursor-dot {
  width: 4px; height: 4px;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc), 0 0 14px var(--acc-glow);
  border-radius: 0;
}
.mx-cursor-ring {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 0;
  background:
    /* top-left bracket */
    linear-gradient(var(--acc), var(--acc)) top    left  / 9px 1px no-repeat,
    linear-gradient(var(--acc), var(--acc)) top    left  / 1px 9px no-repeat,
    /* top-right bracket */
    linear-gradient(var(--acc), var(--acc)) top    right / 9px 1px no-repeat,
    linear-gradient(var(--acc), var(--acc)) top    right / 1px 9px no-repeat,
    /* bottom-left bracket */
    linear-gradient(var(--acc), var(--acc)) bottom left  / 9px 1px no-repeat,
    linear-gradient(var(--acc), var(--acc)) bottom left  / 1px 9px no-repeat,
    /* bottom-right bracket */
    linear-gradient(var(--acc), var(--acc)) bottom right / 9px 1px no-repeat,
    linear-gradient(var(--acc), var(--acc)) bottom right / 1px 9px no-repeat;
  filter: drop-shadow(0 0 4px var(--acc-glow));
  transition: opacity 0.2s, scale 0.2s, filter 0.2s;
}
@media (hover: none) {
  .mx-cursor-dot, .mx-cursor-ring { display: none; }
}
@media (hover: none) {
  .mx-cursor-dot, .mx-cursor-ring { display: none; }
}
/* Only suppress native cursor when the magnetic cursor is actually live */
html.mx-cursor-active body { cursor: none; }
html.mx-cursor-active a,
html.mx-cursor-active button { cursor: none; }
html.mx-cursor-active .term-input,
html.mx-cursor-active input,
html.mx-cursor-active textarea { cursor: text; }

/* Scroll progress bar */
.mx-scroll-bar {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acc) 0%, var(--acc-bright) 100%);
  box-shadow: 0 0 8px var(--acc-glow);
  z-index: 60;
  pointer-events: none;
  transition: width 0.06s linear;
  will-change: width;
}

/* Tilt card glow follow */
.mx-tilt {
  position: relative;
  will-change: transform;
}
.mx-tilt::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx-glow-x, 50%) var(--mx-glow-y, 50%), var(--acc-glow-2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
.mx-tilt:hover::before { opacity: 1; }
.mx-tilt > * { position: relative; z-index: 2; }

/* Ripple button */
.mx-ripple-host {
  position: relative;
  overflow: hidden;
}
.mx-ripple {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--acc);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: ripple 0.7s ease-out forwards;
}
@keyframes ripple {
  to {
    width: 600px; height: 600px;
    opacity: 0;
  }
}

/* Section divider — animated horizontal rule between sections */
.mx-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule-strong) 30%, var(--acc) 50%, var(--rule-strong) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: dividerSweep 6s linear infinite;
  opacity: 0.5;
}
@keyframes dividerSweep {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Module/card border edge glow on hover (excludes .seq-step which manages its own ::after + needs overflow visible for the inset tag) */
.module, .eng-card {
  position: relative;
  overflow: hidden;
}
.module::after, .eng-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, var(--acc-glow-2) 50%, transparent 70%);
  background-size: 300% 100%;
  background-position: 100% 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.module:hover::after, .eng-card:hover::after {
  opacity: 1;
  animation: cardSheen 1.4s ease;
}
@keyframes cardSheen {
  to { background-position: -100% 0; }
}

/* Wordmark hover glitch */
.wordmark:hover {
  animation: wmGlitch 0.4s steps(8) infinite;
}
@keyframes wmGlitch {
  0%   { transform: translate(0); }
  20%  { transform: translate(-1px, 1px); }
  40%  { transform: translate(1px, -1px); }
  60%  { transform: translate(-1px, -1px); }
  80%  { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

/* Pulsing glow on primary CTA */
.btn-primary, .nav-cta {
  position: relative;
}
.btn-primary::after, .nav-cta::after {
  content: ""; position: absolute; inset: -2px;
  border-radius: inherit;
  background: var(--acc);
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  transition: opacity 0.3s;
}
.btn-primary:hover::after, .nav-cta:hover::after { opacity: 0.5; }

/* Terminal mode card hover sweep */
.term-mode {
  position: relative;
}
.term-mode > .term-mode-sweep {
  position: absolute; top: 0; bottom: 0;
  left: -100%; width: 100%;
  background: linear-gradient(90deg, transparent, var(--acc-glow-2), transparent);
  pointer-events: none;
  transition: left 0.6s ease;
}
.term-mode:hover > .term-mode-sweep { left: 100%; }

/* Status pill — multi-ring pulse */
.status-pill::after {
  content: ""; position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--acc);
  opacity: 0;
  transform: translate(-15.5px, -8.5px);
  animation: statusPing 2.4s ease-out infinite;
}
.status-pill { position: relative; }
@keyframes statusPing {
  0%   { opacity: 0.6; transform: translate(-9.5px, -8.5px) scale(0.4); }
  100% { opacity: 0;   transform: translate(-9.5px, -8.5px) scale(1.4); }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .syslog { flex: 1; min-width: 320px; }
  .hero-meta { align-items: flex-start; flex: 1; min-width: 200px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .wordmark { font-size: clamp(72px, 16vw, 140px); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 72px 0; }
  .closer { padding: 96px 0; }
}

/* Pin entry + ping (CSS-only) */
.map3d-pin {
  animation: pin3Drop 0.6s cubic-bezier(.34,1.56,.64,1) both;
  transform-box: fill-box;
  transform-origin: center;
}
.map3d-pin-head { transition: r 0.25s ease; }
.map3d-pin-ping {
  r: 6;
  animation: pingExpand 2.6s ease-out infinite;
  transform-box: fill-box;
}
@keyframes pingExpand {
  0%   { r: 6;  opacity: 0.55; }
  100% { r: 22; opacity: 0; }
}


/* ── Terminal + Proposal layout ───────────────────────────────── */
.terminal-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  transition: grid-template-columns 0.5s cubic-bezier(.2,.6,.2,1);
}
.terminal-shell.with-proposal {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
}
@media (max-width: 1100px) {
  .terminal-shell.with-proposal { grid-template-columns: 1fr; }
}

/* ── Proposal Panel ───────────────────────────────────────────── */
.proposal {
  background:
    linear-gradient(180deg, rgba(26, 255, 128, 0.04) 0%, rgba(0,0,0,0.4) 100%);
  border: 1px solid var(--acc);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 580px;
  max-height: 720px;
  box-shadow:
    inset 0 0 60px rgba(26, 255, 128, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 60px -20px rgba(26, 255, 128, 0.18),
    0 0 0 1px rgba(26, 255, 128, 0.04);
  /* animation removed for preview compatibility */
}
@keyframes proposalIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.proposal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: rgba(26, 255, 128, 0.06);
  border-bottom: 1px solid var(--acc);
  font-family: var(--mono);
  flex-shrink: 0;
}
.proposal-head-left {
  display: flex; align-items: center; gap: 14px;
}
.proposal-head-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--acc);
  text-transform: uppercase;
  font-weight: 600;
}
.proposal-head-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--acc);
  padding: 3px 8px;
  border: 1px solid var(--acc);
  border-radius: 999px;
  text-transform: uppercase;
}
.proposal-head-blip {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 6px var(--acc-glow);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.proposal-head-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

.proposal-progress {
  height: 2px;
  background: rgba(26, 255, 128, 0.08);
  flex-shrink: 0;
}
.proposal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--acc-dim), var(--acc));
  box-shadow: 0 0 8px var(--acc-glow);
  transition: width 0.6s cubic-bezier(.2,.6,.2,1);
}

.proposal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
}
.proposal-body::-webkit-scrollbar { width: 6px; }
.proposal-body::-webkit-scrollbar-track { background: transparent; }
.proposal-body::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }

.proposal-row {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: rgba(0,0,0,0.35);
  border-radius: var(--r-sm);
  position: relative;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  
  opacity:1;
}
.proposal-row.is-filled {
  border-color: var(--acc);
  background: linear-gradient(180deg, rgba(26, 255, 128, 0.06) 0%, rgba(0,0,0,0.35) 100%);
  box-shadow: 0 0 24px -8px var(--acc-glow);
  opacity: 1;
}
.proposal-row.is-filled::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--acc);
  box-shadow: 0 0 6px var(--acc-glow);
}
@keyframes proposalRowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.78; transform: translateY(0); }
}

.proposal-row-head {
  display: grid; grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
}
.proposal-row-icon {
  font-size: 14px;
  color: var(--acc);
  line-height: 1;
}
.proposal-row.is-filled .proposal-row-icon {
  text-shadow: 0 0 8px var(--acc-glow);
}
.proposal-row-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-weight: 600;
}
.proposal-row.is-filled .proposal-row-label {
  color: var(--ink-2);
}
.proposal-row-status {
  font-size: 9px;
  letter-spacing: 0.1em;
}
.proposal-row-ok {
  color: var(--acc);
  padding: 2px 6px;
  border: 1px solid var(--acc);
  border-radius: 2px;
  font-weight: 600;
}
.proposal-row-pending {
  color: var(--ink-faint);
  letter-spacing: 0.3em;
  animation: pendingPulse 1.4s ease-in-out infinite;
}
@keyframes pendingPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

.proposal-row-value {
  margin-top: 8px;
  padding-left: 30px;
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px;
}
.proposal-row-text {
  color: var(--ink);
  font-family: var(--mono);
}
.proposal-row.is-filled .proposal-row-text {
  color: var(--ink);
}
.proposal-row-placeholder {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.proposal-row-caret {
  display: inline-block;
  width: 0.4em; height: 0.9em;
  background: var(--acc);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}

.proposal-foot {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--rule-strong);
  background: rgba(0,0,0,0.5);
  font-family: var(--mono);
  flex-shrink: 0;
}
.proposal-foot-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--acc);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.proposal-foot-blip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 6px var(--acc-glow);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.proposal-foot-sub {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}


/* ── Closer override — one held breath ──────────────────────────── */
.closer {
  padding: 200px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 400px at 50% 50%, var(--acc-glow-2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.closer .wrap { position: relative; z-index: 1; }
.closer-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(72px, 10vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 16ch;
  text-wrap: balance;
}
.closer-title em {
  font-style: normal; color: var(--acc);
  text-shadow: 0 0 40px var(--acc-glow), 0 0 8px var(--acc-glow);
}
.closer-actions {
  margin-top: 64px;
  display: inline-flex; gap: 16px; justify-content: center;
}
.closer-btn {
  padding: 22px 36px !important;
  font-size: 15px !important;
  letter-spacing: 0.16em !important;
}
.closer-btn .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s;
}
.closer-btn:hover .arrow { transform: translate(2px, -2px); }
@media (max-width: 720px) {
  .closer { padding: 120px 0; }
}


/* ── Pricing — phased engagement model ──────────────────────────── */
.pricing {
  display: flex; flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
}

.pricing-phase {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
  padding: 36px 36px;
  border: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.012) 0%, rgba(0,0,0,0.35) 100%);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.pricing-phase:hover {
  border-color: var(--rule-strong);
}
.pricing-phase.featured {
  border-color: var(--acc);
  background:
    radial-gradient(ellipse 800px 200px at 80% 50%, rgba(26, 255, 128, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(26, 255, 128, 0.04) 0%, rgba(0,0,0,0.45) 100%);
  box-shadow:
    inset 0 0 60px rgba(26, 255, 128, 0.03),
    0 20px 60px -20px rgba(26, 255, 128, 0.20);
}
.pricing-phase.muted {
  opacity: 0.88;
  background: rgba(0,0,0,0.35);
}
.pricing-phase.muted:hover { opacity: 1; }

.pricing-phase-flag {
  position: absolute;
  top: -10px; left: 36px;
  background: var(--acc);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  box-shadow: 0 0 16px var(--acc-glow);
}

.pricing-phase-meta {
  display: flex; flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.pricing-phase-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--acc);
  text-shadow: 0 0 24px var(--acc-glow-2);
}
.pricing-phase.muted .pricing-phase-num {
  color: var(--ink-mute);
  text-shadow: none;
}
.pricing-phase-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
}

.pricing-phase-body { padding-top: 8px; }
.pricing-phase-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.pricing-phase-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 14px;
  max-width: 52ch;
}
.pricing-phase-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.pricing-phase-list li {
  display: grid; grid-template-columns: 20px 1fr;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.pricing-phase-list li::before {
  content: "+";
  font-family: var(--mono);
  color: var(--acc);
  font-weight: 700;
}

.pricing-phase-price {
  padding-top: 8px;
  text-align: right;
  font-family: var(--mono);
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}
.pricing-phase.featured .pricing-phase-price { border-left-color: var(--acc-deep); }
.pricing-phase-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
}
.pricing-phase-amount.alt {
  font-size: 32px;
  font-style: italic;
  font-weight: 500;
  color: var(--acc);
}
.pricing-phase-amount .dim {
  color: var(--ink-faint);
  margin: 0 4px;
  font-weight: 300;
}
.pricing-phase.featured .pricing-phase-amount {
  color: var(--acc);
  text-shadow: 0 0 18px var(--acc-glow-2);
}
.pricing-phase-unit {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 10px;
  letter-spacing: 0.05em;
}
.pricing-phase-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 14px;
  letter-spacing: 0.06em;
}

/* Sample engagements row */
.pricing-samples {
  margin: 32px 0 0;
}
.pricing-samples-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}
.pricing-samples-head .dim {
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.pricing-samples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pricing-sample {
  padding: 22px;
  border: 1px solid var(--rule);
  background: var(--bg-1);
  border-radius: var(--r-md);
  display: flex; flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-sample:hover {
  border-color: var(--acc);
  transform: translateY(-2px);
}
.pricing-sample-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--acc);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pricing-sample-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pricing-sample-numbers {
  display: flex;
  gap: 28px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  margin-top: auto;
}
.pricing-sample-numbers > div {
  display: flex; flex-direction: column;
  gap: 4px;
}
.pricing-sample-numbers .num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--acc);
}
.pricing-sample-numbers .lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer "why this model" note */
.pricing-foot {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.pricing-foot-bar {
  width: 40px; height: 2px;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc-glow);
  margin-top: 10px;
}
.pricing-foot-text {
  display: flex; flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 72ch;
}
.pricing-foot-text .acc {
  color: var(--acc);
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
  .pricing-phase {
    grid-template-columns: 120px 1fr;
    gap: 24px;
  }
  .pricing-phase-price {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 20px;
    text-align: left;
  }
  .pricing-phase.featured .pricing-phase-price { border-top-color: var(--acc-deep); }
  .pricing-samples-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .pricing-phase {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .pricing-phase-num { font-size: 56px; }
  .pricing-samples-grid { grid-template-columns: 1fr; }
  .pricing-foot { grid-template-columns: 1fr; }
}


/* ── Pricing spread / disclaimer ────────────────────────────────── */
.pricing-spread {
  margin-top: 32px;
  padding: 28px 36px;
  border: 1px solid var(--rule-strong);
  background:
    linear-gradient(180deg, rgba(26, 255, 128, 0.025) 0%, rgba(0,0,0,0.35) 100%);
  border-radius: var(--r-md);
  border-left: 2px solid var(--acc);
}
.pricing-spread-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--rule);
}
.pricing-spread-head .acc { color: var(--acc); font-weight: 600; }
.pricing-spread-head .dim {
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: none;
  font-family: var(--sans);
  font-size: 14px;
}
.pricing-spread-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 18px;
}
.pricing-spread-row {
  display: grid;
  grid-template-columns: 36px 100px 1fr;
  gap: 16px;
  align-items: baseline;
}
.pricing-spread-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}
.pricing-spread-k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acc);
  letter-spacing: 0.14em;
  font-weight: 600;
}
.pricing-spread-v {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pricing-spread-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .pricing-spread-grid { grid-template-columns: 1fr; }
  .pricing-spread { padding: 22px 22px; }
  .pricing-spread-row { grid-template-columns: 28px 80px 1fr; gap: 12px; }
}


/* ── Founder / About ────────────────────────────────────────────── */
.founder {
  display: flex; flex-direction: column;
  gap: 64px;
}


/* Top — photo + quote side by side */
.founder-top {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 1000px) {
  .founder-top { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
}

/* Compact portrait photo — duotone, terminal feel */
.founder-photo {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--acc);
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(26,255,128,0.10),
    0 30px 80px -20px rgba(26,255,128,0.45),
    0 50px 100px -30px rgba(0,0,0,0.9);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.founder-photo:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.45),
    0 0 0 1px var(--acc),
    0 36px 90px -18px rgba(26,255,128,0.6),
    0 60px 120px -30px rgba(0,0,0,0.9);
}
/* Halo glow behind the photo container */
.founder-photo::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, var(--acc-glow) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
  animation: photoHalo 6s ease-in-out infinite alternate;
}
@keyframes photoHalo {
  0%   { opacity: 0.45; transform: scale(0.96); }
  100% { opacity: 0.75; transform: scale(1.04); }
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* Crisp, slightly cinematic — keep color, boost punch */
  filter:
    contrast(1.15)
    saturate(0.85)
    brightness(1.05);
  transition: transform 6s ease-out, filter 0.5s ease;
}
.founder-photo:hover img {
  transform: scale(1.05);
  filter: contrast(1.2) saturate(0.95) brightness(1.1);
}
/* Subtle green tint — top-down only so face stays natural */
.founder-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26,255,128,0.10) 0%,
      transparent 35%,
      transparent 65%,
      rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.founder-photo-frame {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 3;
}
.founder-photo-bracket {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--acc);
  filter: drop-shadow(0 0 6px var(--acc-glow));
  transition: width 0.4s ease, height 0.4s ease;
}
.founder-photo:hover .founder-photo-bracket { width: 34px; height: 34px; }
.founder-photo-bracket.tl { top: 12px;    left: 12px;    border-right: 0; border-bottom: 0; }
.founder-photo-bracket.tr { top: 12px;    right: 12px;   border-left: 0;  border-bottom: 0; }
.founder-photo-bracket.bl { bottom: 12px; left: 12px;    border-right: 0; border-top: 0; }
.founder-photo-bracket.br { bottom: 12px; right: 12px;   border-left: 0;  border-top: 0; }

/* Subtle scan-line overlay */
.founder-photo-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(26, 255, 128, 0.05) 3px,
    rgba(26, 255, 128, 0.05) 4px
  );
  mix-blend-mode: screen;
  z-index: 3;
  pointer-events: none;
}

/* Metadata bar at bottom of photo */
.founder-photo-meta {
  position: absolute;
  bottom: 10px; left: 12px; right: 12px;
  z-index: 4;
  display: flex; flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  border: 1px solid var(--acc);
  border-radius: 3px;
}
.founder-photo-meta-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-items: center;
}
.founder-photo-meta-row .k {
  color: var(--ink-faint);
}
.founder-photo-meta-row .v {
  color: var(--acc);
  font-weight: 600;
}

/* Big pull quote */
.founder-quote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 26ch;
  position: relative;
  padding-left: 36px;
  border-left: 2px solid var(--acc);
  text-wrap: balance;
}
.founder-quote em {
  font-style: normal;
  color: var(--acc);
  text-shadow: 0 0 24px var(--acc-glow-2);
}
.founder-quote-mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4em;
  color: var(--acc);
  margin-right: 4px;
  vertical-align: -0.1em;
}

/* Bio + stats grid */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.founder-bio {
  display: flex; flex-direction: column;
  gap: 20px;
  max-width: 64ch;
}
.founder-bio p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.founder-bio strong {
  color: var(--ink);
  font-weight: 600;
}

.founder-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.founder-stat {
  padding: 28px 24px;
  background: var(--bg-1);
  transition: background 0.25s;
}
.founder-stat:hover {
  background: var(--bg-2);
}
.founder-stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--acc);
  text-shadow: 0 0 16px var(--acc-glow-2);
}
.founder-stat-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 10px;
  max-width: 22ch;
  line-height: 1.45;
}

/* Industries served */
.founder-industries {
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}
.founder-industries-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.founder-industries-head .acc { color: var(--acc); font-weight: 600; }
.founder-industries-head .dim {
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: none;
  font-family: var(--sans);
  font-size: 14px;
}
.founder-industries-list {
  display: flex; flex-wrap: wrap;
  gap: 10px;
}
.founder-industry {
  padding: 8px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  text-transform: uppercase;
  transition: all 0.18s;
  cursor: default;
}
.founder-industry:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--acc-glow-2);
  transform: translateY(-1px);
}

/* Foot — contact + Fuller quote */
.founder-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

.founder-contact { display: flex; flex-direction: column; gap: 16px; }
.founder-contact-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 600;
}
.founder-contact-rows {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule-strong);
  background: var(--bg-1);
  border-radius: var(--r-md);
  overflow: hidden;
}
.founder-contact-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px dashed var(--rule);
  transition: background 0.18s, color 0.18s;
  font-family: var(--mono);
}
.founder-contact-row:last-child { border-bottom: 0; }
a.founder-contact-row:hover {
  background: var(--acc-glow-2);
}
a.founder-contact-row:hover .founder-contact-val { color: var(--acc); }
.founder-contact-key {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.founder-contact-val {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.18s;
}

/* Buckminster Fuller quote */
.founder-fuller {
  padding: 36px 36px;
  background:
    linear-gradient(180deg, rgba(26, 255, 128, 0.025) 0%, rgba(0,0,0,0.35) 100%);
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--acc);
  border-radius: var(--r-md);
  position: relative;
}
.founder-fuller-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 80px;
  line-height: 0.7;
  color: var(--acc);
  opacity: 0.4;
  position: absolute;
  top: 14px; left: 24px;
}
.founder-fuller p {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
  padding-left: 36px;
}
.founder-fuller-cite {
  margin-top: 18px;
  padding-left: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-foot { grid-template-columns: 1fr; gap: 32px; }
  .founder-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .founder-photo-tag { bottom: 18px; left: 18px; }
  .founder-stats { grid-template-columns: 1fr; }
  .founder-fuller { padding: 24px 22px; }
  .founder-fuller p, .founder-fuller-cite { padding-left: 0; }
  .founder-fuller-mark { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   FUTURISTIC POLISH LAYER — added 2026-05
   Depth glows, hover lift, animated dividers, trace border.
   All effects respect prefers-reduced-motion.
   ───────────────────────────────────────────────────────────── */

/* Hero ambient glow — radial accent bloom behind the wordmark */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  top: 30%; left: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--acc-glow-2), transparent 70%);
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
  animation: heroBloom 9s ease-in-out infinite alternate;
}
@keyframes heroBloom {
  0%   { transform: translate3d(0,0,0) scale(1);    opacity: 0.45; }
  100% { transform: translate3d(4%,-3%,0) scale(1.06); opacity: 0.65; }
}

/* Card hover lift — modules, pricing tiers, founder stats, sequence steps */
.module, .eng-card, .seq-step, .founder-stat, .pricing-phase {
  transition:
    transform 0.35s cubic-bezier(.2,.65,.2,1),
    border-color 0.3s ease,
    box-shadow 0.4s ease,
    background-color 0.3s ease;
  will-change: transform;
}
.module:hover, .eng-card:hover, .seq-step:hover, .founder-stat:hover, .pricing-phase:hover {
  transform: translateY(-3px);
  border-color: var(--acc);
  box-shadow:
    0 0 0 1px var(--acc-glow-2),
    0 12px 40px -12px var(--acc-glow),
    inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* CTA shimmer — primary button gets a subtle sweep on hover */
.btn-primary, .nav-cta {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .nav-cta::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
  transition: left 0.6s cubic-bezier(.2,.65,.2,1);
  pointer-events: none;
}
.btn-primary:hover::before, .nav-cta:hover::before { left: 130%; }

/* Animated trace border on the featured pricing tier */
.pricing-phase.featured { position: relative; }
.pricing-phase.featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--acc), transparent 30%) top    left  / 100% 1px no-repeat,
    linear-gradient(180deg, var(--acc), transparent 30%) top    right / 1px 100% no-repeat,
    linear-gradient(270deg, var(--acc), transparent 30%) bottom right / 100% 1px no-repeat,
    linear-gradient(0deg,   var(--acc), transparent 30%) bottom left  / 1px 100% no-repeat;
  opacity: 0.55;
  animation: traceBorder 6s linear infinite;
}
@keyframes traceBorder {
  0%, 100% { opacity: 0.35; filter: drop-shadow(0 0 4px var(--acc-glow)); }
  50%      { opacity: 0.9;  filter: drop-shadow(0 0 10px var(--acc-glow)); }
}

/* Animated section divider — thin scanning beam between major sections */
section + section { position: relative; }
section + section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--acc-glow-2) 20%,
    var(--acc) 50%,
    var(--acc-glow-2) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0.25;
  animation: dividerScan 8s linear infinite;
  pointer-events: none;
}
@keyframes dividerScan {
  0%   { background-position:  100% 0; }
  100% { background-position: -100% 0; }
}

/* Nav links — animated underline that grows from left */
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 1px;
  width: 100%;
  background: var(--acc);
  box-shadow: 0 0 6px var(--acc-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.65,.2,1);
}
.nav-links a:hover { color: var(--acc); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Stat number subtle pulse on hover */
.founder-stat:hover .founder-stat-num,
.mission-stat:hover .mission-stat-num {
  text-shadow: 0 0 18px var(--acc-glow);
  transition: text-shadow 0.3s ease;
}

/* Reduced motion — kill the looping animations */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .pricing-phase.featured::after,
  section + section::before {
    animation: none !important;
  }
  .btn-primary::before, .nav-cta::before { display: none; }
}

/* ── Hero CTA — quick contact capture ─────────────────────────── */
.hero-cta {
  margin-top: 28px;
  border: 1px solid var(--acc);
  background:
    linear-gradient(180deg, rgba(26,255,128,0.04), rgba(0,0,0,0.6));
  padding: 18px 18px 16px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(26,255,128,0.08), 0 20px 50px -30px var(--acc-glow);
  max-width: 560px;
}
.hero-cta::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(26,255,128,0.15);
  pointer-events: none;
}
.hero-cta-head {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--acc-bright);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-cta-head .ok-tag { margin-left: auto; color: var(--ink-mute); }
.hero-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.hero-cta-field { display: flex; flex-direction: column; gap: 4px; }
.hero-cta-field > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.hero-cta-field input {
  background: #000;
  border: 1px solid rgba(26,255,128,0.25);
  color: var(--acc-bright);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; /* iOS no-zoom */
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  border-radius: 0;
  width: 100%;
}
.hero-cta-field input::placeholder { color: rgba(180,180,180,0.35); }
.hero-cta-field input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc), 0 0 18px var(--acc-glow-2);
}
.hero-cta-btn {
  margin-top: 14px;
  width: 100%;
  background: var(--acc);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 13px 16px;
  border: 1px solid var(--acc);
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}
.hero-cta-btn:hover:not(:disabled) {
  box-shadow: 0 0 0 2px var(--acc), 0 0 30px var(--acc-glow);
  background: var(--acc-bright);
}
.hero-cta-btn:disabled { opacity: 0.5; cursor: wait; }
.hero-cta-err {
  margin-top: 10px;
  color: #ff5a3c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.hero-cta-foot {
  margin-top: 10px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.hero-cta-done-msg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--acc-bright);
  line-height: 1.55;
  padding: 8px 0 4px;
}
@media (max-width: 640px) {
  .hero-cta-grid { grid-template-columns: 1fr; }
  .hero-cta { padding: 14px; }
  .hero-demo-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ── Hero — subtle 2D mouse parallax ──────────────────────────── */
.hero { --px: 0; --py: 0; }
.hero .wordmark,
.hero .hero-tagline,
.hero .hud.syslog,
.hero .hero-meta {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.hero .wordmark { transform: translate3d(calc(var(--px) * 5px), calc(var(--py) * 3px), 0); }
.hero .hero-tagline { transform: translate3d(calc(var(--px) * 7px), calc(var(--py) * 4px), 0); }
.hero .hero-meta { transform: translate3d(calc(var(--px) * 3px), calc(var(--py) * 2px), 0); }
.hero .hud.syslog {
  transform:
    perspective(1000px)
    rotateY(calc(var(--px) * 3deg))
    rotateX(calc(var(--py) * -3deg))
    translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0);
}
@media (max-width: 900px), (pointer: coarse) {
  .hero .wordmark, .hero .hero-tagline, .hero .hud.syslog, .hero .hero-meta {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .wordmark, .hero .hero-tagline, .hero .hud.syslog, .hero .hero-meta {
    transform: none !important;
    transition: none !important;
  }
}

/* ── Sequence — scrollytelling stage ──────────────────────────── */
.sequence-section { position: relative; }
.sequence-scroller { position: relative; }
.sequence-sticky {
  position: sticky;
  top: 84px;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.sequence { transition: opacity 0.4s ease; }

.seq-step {
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.45s cubic-bezier(.2,.7,.2,1),
    opacity 0.45s ease,
    filter 0.45s ease;
}
.seq-step.is-pending {
  opacity: 0.32;
  filter: grayscale(0.55) brightness(0.7);
  transform: translateY(6px) scale(0.985);
}
.seq-step.is-done {
  opacity: 0.78;
  border-color: rgba(26,255,128,0.45);
}
.seq-step.is-done .seq-step-num { color: var(--ink-2); text-shadow: none; }
.seq-step.is-active {
  border-color: var(--acc);
  transform: translateY(-6px) scale(1.025);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 80px rgba(26,255,128,0.10),
    0 30px 70px -24px rgba(26,255,128,0.25),
    0 0 60px var(--acc-glow-2);
}
.seq-step.is-active::after { opacity: 1; }

.seq-step-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(26,255,128,0.18);
}
.seq-step.is-active .seq-step-status { color: var(--acc); text-shadow: 0 0 8px var(--acc-glow); }
.seq-step.is-done .seq-step-status { color: var(--acc); opacity: 0.7; }

.seq-progress {
  margin-top: 32px;
  height: 2px;
  background: rgba(26,255,128,0.12);
  position: relative;
  overflow: hidden;
}
.seq-progress span {
  display: block;
  height: 100%;
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc-glow), 0 0 28px var(--acc-glow-2);
  transition: width 0.25s linear;
}

@media (max-width: 900px) {
  .sequence-scroller { height: auto !important; }
  .sequence-sticky {
    position: static;
    min-height: 0;
    padding: 0;
    display: block;
  }
  .seq-step.is-pending,
  .seq-step.is-done,
  .seq-step.is-active {
    opacity: 1;
    filter: none;
    transform: none;
    border-color: rgba(26,255,128,0.18);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.04),
      inset 0 0 60px rgba(26,255,128,0.025),
      0 18px 40px -28px rgba(0,0,0,0.9);
  }
  .seq-step-status { display: none; }
  .seq-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .seq-step { transition: none; }
  .seq-progress span { transition: none; }
}
