/* =========================================================
   AUTOMIQ LABS — landing page
   Aesthetic: warm-black terminal · bone cream · electric lime
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --bg:        #0a0a08;
  --bg-2:      #131310;
  --bg-3:      #1a1a16;
  --ink:       #f5f2e8;
  --ink-dim:   rgba(245, 242, 232, 0.55);
  --ink-faint: rgba(245, 242, 232, 0.22);
  --line:      rgba(245, 242, 232, 0.10);
  --line-2:    rgba(245, 242, 232, 0.18);

  --lime:      #c8ff3a;
  --lime-dim:  rgba(200, 255, 58, 0.18);
  --amber:     #ff6a1f;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-serif:   'Instrument Serif', 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --pad-x: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
  cursor: default;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

img { display: block; max-width: 100%; }

/* film-grain overlay --------------------------------------- */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><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='0.55'/></svg>");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* vignette ------------------------------------------------- */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 199;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* ==================== TOP CHROME ========================== */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 11px var(--pad-x);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim);
  background: linear-gradient(to bottom, rgba(10,10,8,0.92), rgba(10,10,8,0.55) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chrome a:hover { color: var(--lime); }

.chrome .left, .chrome .right {
  display: flex; align-items: center; gap: 22px;
}
.chrome .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500;
  flex: none;
}
.chrome .brand-mark {
  height: 30px; width: auto;
  max-width: none;
  flex: none;
  display: block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.chrome .sep { color: var(--ink-faint); }

.chrome .book {
  background: var(--lime);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.chrome .book:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px var(--lime); color: var(--bg); }

/* scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 101; pointer-events: none;
}
.progress span {
  display: block; height: 100%; background: var(--lime);
  width: 0%; transition: width 0.06s linear;
  box-shadow: 0 0 12px var(--lime);
}

/* live ticker strip just under chrome */
.ticker {
  position: fixed; top: 52px; left: 0; right: 0; z-index: 99;
  height: 28px; overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.ticker .track {
  display: flex; gap: 48px;
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
  animation: marquee 60s linear infinite;
}
.ticker .track span b { color: var(--lime); font-weight: 500; }
.ticker .track i { font-style: normal; color: var(--ink-faint); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==================== MOBILE NAV (burger) ================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  flex: none;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  transition: border-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--lime); }
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 149;
  background: rgba(10, 10, 8, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(82vw, 360px);
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  padding: 22px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.7);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.mobile-nav-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--ink-dim);
}
.mobile-nav-close {
  width: 34px; height: 34px;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--ink); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mobile-nav-close:hover { border-color: var(--lime); color: var(--lime); }
.mobile-nav-links {
  display: flex; flex-direction: column;
  padding: 8px 0;
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink);
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 12px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav-links a::before {
  content: attr(data-idx);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--lime); letter-spacing: 0.08em;
}
.mobile-nav-links a:hover { color: var(--lime); padding-left: 6px; }
.mobile-nav-cta {
  margin-top: 24px;
  background: var(--lime); color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600;
  padding: 16px; border-radius: 999px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--lime); }
.mobile-nav-foot {
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
}

@media (max-width: 820px) {
  .chrome .right { display: none; }
  .nav-toggle { display: flex; }
}

/* ==================== SECTION CHROME ====================== */
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.section-tag .num { color: var(--lime); }
.section-tag .line {
  flex: 0 0 60px; height: 1px; background: var(--line-2);
}

/* ==================== HERO ================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}

/* layer order in hero — bg layers below, content above */
.hero .hero-head,
.hero h1,
.hero .lede,
.hero-cta,
.hero-stats { position: relative; z-index: 2; }
.hero .scroll-cue { z-index: 2; }    /* already position: absolute */
.hero .ops-hud   { z-index: 4; }    /* already position: absolute */
.hero .hero-scan { z-index: 5; }    /* already position: absolute */
.hero .grid-bg,
.hero .glow,
.hero .constellation { z-index: 1; }

/* constellation canvas */
.hero .constellation {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0; animation: fadeIn 1.8s 0.3s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* one-time CRT scan line on load */
.hero .hero-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 5;
  pointer-events: none;
  background: var(--lime);
  box-shadow: 0 0 30px var(--lime), 0 0 80px rgba(200, 255, 58, 0.45);
  opacity: 0;
  animation: heroScan 1.5s 0.15s cubic-bezier(0.4, 0, 0.5, 1) forwards;
}
@keyframes heroScan {
  0%   { opacity: 0; top: 0; }
  6%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; top: 100vh; }
}

/* rotator word in headline */
.hero h1 .rotator {
  display: inline-block;
  vertical-align: top;
  position: relative;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero h1 .rotator-mask {
  display: block;
  overflow: hidden;
  position: relative;
  height: 0.92em;
}
.hero h1 .rotator-stack {
  display: block;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.2, 1);
  will-change: transform;
}
.hero h1 .rotator-word {
  display: block;
  width: fit-content;
  height: 0.92em;
  line-height: 0.92;
  white-space: nowrap;
  color: var(--lime);
}
/* subtle scrolling lime line under rotator */
.hero h1 .rotator-mask::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.04em;
  background: var(--lime);
  opacity: 0.4;
  transform-origin: left;
  animation: rotatorLine 2.4s linear infinite;
}
@keyframes rotatorLine {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ==================== OPS HUD ============================= */
.ops-hud {
  position: absolute;
  right: var(--pad-x);
  top: 168px;
  width: 340px;
  background: rgba(19, 19, 16, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: translateX(40px);
  animation: hudIn 0.9s 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
@keyframes hudIn {
  to { opacity: 1; transform: translateX(0); }
}

.ops-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.ops-bar .dots { display: flex; gap: 5px; }
.ops-bar .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
}
.ops-bar .dots span:first-child  { background: #ff6b6b; }
.ops-bar .dots span:nth-child(2) { background: #f8c34c; }
.ops-bar .dots span:nth-child(3) { background: var(--lime); }
.ops-bar .title {
  color: var(--ink-dim); flex: 1;
  letter-spacing: 0.1em;
  font-size: 10px;
}
.ops-bar .status {
  color: var(--lime);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.12em;
  font-weight: 500;
  font-size: 10px;
}
.ops-bar .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 1.4s ease-in-out infinite;
}

.ops-feed {
  padding: 6px 14px;
  height: 158px;
  overflow: hidden;
  position: relative;
}
.ops-row {
  display: grid;
  grid-template-columns: 58px 56px 1fr;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 10.5px;
  line-height: 1.3;
}
.ops-row.in { opacity: 1; transform: translateY(0); }
.ops-row:last-child { border-bottom: 0; }
.ops-row .t { color: var(--ink-faint); letter-spacing: 0.02em; }
.ops-row .kind {
  text-align: center;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 9.5px;
  padding: 2px 0;
  border: 1px solid;
  border-radius: 2px;
  line-height: 1;
}
.ops-row .k-voice { color: var(--lime);   border-color: var(--lime); }
.ops-row .k-wa    { color: #6dc88a;        border-color: rgba(109, 200, 138, 0.5); }
.ops-row .k-appt  { color: var(--bg);      background: var(--lime); border-color: var(--lime); }
.ops-row .k-sms   { color: var(--ink);     border-color: var(--line-2); }
.ops-row .k-email { color: var(--ink-dim); border-color: var(--line-2); }
.ops-row .k-chat  { color: #ff9d40;        border-color: rgba(255, 157, 64, 0.5); }
.ops-row .msg {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-wave {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.wave-label {
  display: flex; justify-content: space-between;
  color: var(--ink-dim); letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-size: 9.5px;
}
.wave-label .wave-count { color: var(--lime); }
.wave-bars {
  display: flex; gap: 2px; align-items: center; height: 24px;
}
.wave-bar {
  flex: 1; background: var(--lime); border-radius: 1px;
  height: 30%;
  transition: height 0.13s linear;
  opacity: 0.85;
}

@media (max-width: 1280px) {
  .ops-hud {
    width: 296px;
    top: 200px;
    font-size: 10px;
  }
  .ops-hud .ops-feed { height: 140px; }
  .ops-hud .ops-row { grid-template-columns: 54px 50px 1fr; }
}
@media (max-width: 980px) {
  .ops-hud { display: none; }
}

/* grid bg */
.hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* moving radial glow */
.hero .glow {
  position: absolute; left: 50%; top: 60%;
  width: 1200px; height: 1200px;
  margin: -600px 0 0 -600px;
  background: radial-gradient(circle, rgba(200,255,58,0.13), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0%   { transform: translate(-10%, 0) scale(1); }
  100% { transform: translate(10%, -8%) scale(1.15); }
}

.hero-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 60px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-dim); letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-head .meta { display: flex; gap: 28px; }
.hero-head .meta div b { display: block; color: var(--ink); font-weight: 500; margin-top: 2px; }

.hero h1 {
  font-size: clamp(48px, 9.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 400;
  max-width: 14ch;
  margin-bottom: 36px;
}
.hero h1 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: -0.02em;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
}
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes rise {
  to { transform: translateY(0); }
}

.hero .lede {
  max-width: 52ch;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--ink-dim);
  line-height: 1.5;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.7s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-cta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s 0.95s ease forwards;
}
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--lime); color: var(--bg); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px var(--lime); }
.btn-primary .arrow { transition: transform 0.25s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* hero stats strip */
.hero-stats {
  margin-top: auto;
  padding-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  opacity: 0; animation: fadeUp 0.9s 1.2s ease forwards;
}
.hero-stats .stat {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .stat .k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.hero-stats .stat .v {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stats .stat .v small { font-size: 0.5em; color: var(--ink-dim); margin-left: 4px; }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-faint); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeUp 0.9s 1.6s ease forwards;
}
.scroll-cue .bar {
  width: 1px; height: 32px; background: var(--ink-faint);
  position: relative; overflow: hidden;
}
.scroll-cue .bar::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 50%; background: var(--lime);
  animation: trickle 1.6s ease-in-out infinite;
}
@keyframes trickle {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ==================== WARNING TAPE ======================== */
.warning-tape {
  position: relative;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 26px);
  letter-spacing: 0.06em;
  padding: 18px 0;
  overflow: hidden;
}
.warning-tape::before,
.warning-tape::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg) 0,
    var(--bg) 8px,
    var(--amber) 8px,
    var(--amber) 16px
  );
}
.warning-tape::before { top: 0; }
.warning-tape::after  { bottom: 0; }
.warning-tape-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
  padding: 4px 0;
}

/* ==================== PROBLEM ============================= */
.problem {
  padding: 140px var(--pad-x) 160px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 106, 31, 0.06), transparent 50%),
    var(--bg);
}
.problem::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 106, 31, 0.4), transparent);
}

.problem-tag .num { color: var(--amber); }
.problem-tag .line { background: rgba(255, 106, 31, 0.35); }

.problem-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 32px;
  margin-top: -16px;
  max-width: 70ch;
  line-height: 1.55;
  text-transform: uppercase;
}

.problem-headline {
  font-size: clamp(40px, 7.2vw, 130px);
  line-height: 0.95; letter-spacing: -0.04em; font-weight: 400;
  max-width: 14ch;
  margin-bottom: 32px;
}
.problem-headline em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--amber);
  font-style: italic;
}

.problem-lede {
  color: var(--ink-dim);
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 60px;
}

/* leak pipe visual */
.leak-pipe {
  position: relative;
  width: 100%;
  height: 140px;
  margin: 0 0 60px;
}
.leak-pipe-line {
  position: absolute;
  left: 0; right: 0; top: 14px;
  height: 2px;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 106, 31, 0.5);
}
.leak-pipe-tag {
  position: absolute;
  left: 0; top: -10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: var(--bg);
  padding-right: 8px;
  white-space: nowrap;
}
.leak-floor {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 106, 31, 0.4) 0,
    rgba(255, 106, 31, 0.4) 4px,
    transparent 4px,
    transparent 10px
  );
}
.leak-floor-tag {
  position: absolute;
  right: 0; bottom: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  background: var(--bg);
  padding-left: 8px;
}
.leak-drip {
  position: absolute;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: drip 2.2s ease-in infinite;
  transform-origin: center;
}
@keyframes drip {
  0%   { transform: translateY(0)    scale(0.6); opacity: 0; }
  10%  { transform: translateY(2px)  scale(1);   opacity: 1; }
  85%  { transform: translateY(94px) scale(0.7); opacity: 1; }
  100% { transform: translateY(108px) scale(0.2); opacity: 0; }
}

/* stats with amber treatment */
.problem-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid rgba(255, 106, 31, 0.25);
  border-bottom: 1px solid rgba(255, 106, 31, 0.25);
}
.problem-stats .pstat {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--line);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.problem-stats .pstat:last-child { border-right: 0; }
.problem-stats.in .pstat { opacity: 1; transform: translateY(0); }
.problem-stats.in .pstat:nth-child(2) { transition-delay: 0.15s; }
.problem-stats.in .pstat:nth-child(3) { transition-delay: 0.3s; }

.problem-stats .pstat .idx {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint);
}
.problem-stats .pstat .big {
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.problem-stats .pstat .big.amber {
  color: var(--amber);
  text-shadow: 0 0 40px rgba(255, 106, 31, 0.35);
}
.problem-stats .pstat .label {
  margin-top: 28px;
  color: var(--ink-dim);
  font-size: 15px; line-height: 1.55;
  max-width: 32ch;
}

/* ==================== CAPABILITIES ======================== */
.capabilities {
  padding: 160px 0 160px;
  position: relative;
  overflow: hidden;
}
.capabilities-head {
  padding: 0 var(--pad-x);
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px; gap: 40px;
  flex-wrap: wrap;
}
.capabilities h2 {
  font-size: clamp(36px, 6.4vw, 110px);
  line-height: 0.96; letter-spacing: -0.035em; font-weight: 400;
  max-width: 14ch;
}
.capabilities h2 em {
  font-family: var(--font-serif); font-weight: 400; color: var(--lime); font-style: italic;
}
.capabilities .sub {
  color: var(--ink-dim);
  max-width: 36ch; font-size: 16px; line-height: 1.55;
}

.cap-track {
  display: flex; gap: 24px;
  padding: 0 var(--pad-x);
  width: max-content;
  will-change: transform;
}
.cap-card {
  width: 480px;
  min-height: 540px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.cap-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.cap-card:hover .cap-num { color: var(--lime); }
.cap-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, var(--lime-dim), transparent 50%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.cap-card:hover::before { opacity: 1; }

.cap-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-dim); letter-spacing: 0.1em;
  transition: color 0.3s ease;
  margin-bottom: 32px;
}
.cap-card h3 {
  font-size: 40px; letter-spacing: -0.03em; line-height: 1.05;
  font-weight: 400; margin-bottom: 20px;
}
.cap-card p {
  color: var(--ink-dim); font-size: 15px; line-height: 1.55;
  max-width: 38ch; flex: 1;
}
.cap-card .tech {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px dashed var(--line-2);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cap-card .tech span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

/* big diagram per card */
.cap-diag {
  position: absolute; right: -40px; bottom: -40px;
  width: 280px; height: 280px;
  opacity: 0.5;
  pointer-events: none;
}
.cap-card:hover .cap-diag { opacity: 0.9; }
.cap-diag svg { width: 100%; height: 100%; }

/* manual nav at bottom of sticky cap inner */
.cap-nav {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x); bottom: 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  z-index: 5;
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.cap-progress {
  display: flex; align-items: center; gap: 16px;
  flex: 0 1 280px;
}
.cap-counter {
  font-size: 11px; letter-spacing: 0.12em; color: var(--ink-dim);
  white-space: nowrap;
}
.cap-counter .cap-cur { color: var(--lime); font-weight: 500; }
.cap-counter .cap-sep { color: var(--ink-faint); margin: 0 4px; }
.cap-bar {
  flex: 1; height: 1px; background: var(--line-2); position: relative; min-width: 80px;
}
.cap-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; background: var(--lime);
  width: 0%; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 8px var(--lime);
}
.cap-dots {
  display: flex; gap: 6px;
}
.cap-dot {
  min-width: 38px; height: 28px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0 8px;
}
.cap-dot:hover { color: var(--ink); border-color: var(--ink-faint); }
.cap-dot.active {
  background: var(--lime); color: var(--bg);
  border-color: var(--lime);
}
.cap-arrows { display: flex; gap: 8px; }
.cap-arrow {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.cap-arrow:hover:not(:disabled) {
  background: var(--lime); color: var(--bg); border-color: var(--lime);
  transform: translateY(-1px);
}
.cap-arrow:disabled {
  opacity: 0.25; cursor: not-allowed;
}

@media (max-width: 720px) {
  .cap-dots { display: none; }
  .cap-progress { flex: 1; }
}

/* ==================== PIPELINE (sticky scroll piece) ====== */
.pipeline {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pipeline-track { height: 600vh; position: relative; }
.pipeline-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  padding: 100px var(--pad-x) 60px;
  overflow: hidden;
}
.pipeline-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap; gap: 30px;
}
.pipeline-head h2 {
  font-size: clamp(32px, 5.4vw, 84px);
  line-height: 0.96; letter-spacing: -0.035em; font-weight: 400;
  max-width: 16ch;
}
.pipeline-head h2 em {
  font-family: var(--font-serif); font-style: italic; color: var(--lime);
}

.pipeline-meta {
  display: grid; grid-template-columns: repeat(4, auto); gap: 32px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-dim); letter-spacing: 0.06em; text-transform: uppercase;
}
.pipeline-meta div b { display: block; color: var(--lime); font-weight: 500; font-size: 18px; margin-top: 4px; letter-spacing: -0.02em; text-transform: none; font-family: var(--font-display); }

.pipeline-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* The 5 steps stacked in same space, faded by scroll */
.pipe-step {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pipe-step.active { opacity: 1; }

.pipe-step .left .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 16px;
}
.pipe-step .left h3 {
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 400; letter-spacing: -0.04em; line-height: 0.95;
  margin-bottom: 24px;
}
.pipe-step .left p {
  color: var(--ink-dim); font-size: 18px; line-height: 1.5; max-width: 38ch;
}

.pipe-step .right {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

/* progress rail */
.pipe-rail {
  position: absolute; bottom: 30px; left: var(--pad-x); right: var(--pad-x);
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pipe-rail .pip {
  height: 2px; background: var(--line); position: relative; overflow: hidden;
}
.pipe-rail .pip::after {
  content: ''; position: absolute; inset: 0;
  background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s linear;
}
.pipe-rail .pip.done::after { transform: scaleX(1); }
.pipe-rail .pip.partial::after { transform: scaleX(var(--p, 0)); }
.pipe-rail .pip-label {
  position: absolute; top: 10px; left: 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim);
}
.pipe-rail .pip.done .pip-label,
.pipe-rail .pip.partial .pip-label { color: var(--lime); }

/* schematics inside .pipe-step .right - using SVG */
.schematic {
  width: 100%; max-width: 520px; aspect-ratio: 1;
  position: relative;
}
.schematic svg { width: 100%; height: 100%; overflow: visible; }
.schematic .ring {
  position: absolute; inset: 0;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
  animation: rot 28s linear infinite;
}
.schematic .ring.inner {
  inset: 18%; animation-duration: 18s; animation-direction: reverse;
}
@keyframes rot {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* ==================== CASE STUDY ========================== */
.case {
  padding: 160px var(--pad-x);
  position: relative;
}
.case-head { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 80px; flex-wrap: wrap; }
.case h2 {
  font-size: clamp(36px, 6.4vw, 110px);
  line-height: 0.96; letter-spacing: -0.035em; font-weight: 400;
  max-width: 14ch;
}
.case h2 em {
  font-family: var(--font-serif); font-style: italic; color: var(--lime);
}
.case .case-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 20px;
  max-width: 360px;
}
.case .case-meta b { color: var(--ink); font-weight: 500; }

.case-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.case-grid .cell {
  background: var(--bg);
  padding: 40px 32px 32px;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.case-grid .cell .head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim);
}
.case-grid .cell .nums {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-top: 8px;
}
.case-grid .cell .before {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: -0.03em;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}
.case-grid .cell .arrow { color: var(--ink-dim); font-family: var(--font-mono); font-size: 18px; }
.case-grid .cell .after {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--lime);
  line-height: 1;
}
.case-grid .cell .delta {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink);
}
.case-grid .cell .delta.up::before  { content: '↑ '; color: var(--lime); }
.case-grid .cell .delta.down::before { content: '↓ '; color: var(--lime); }

/* ==================== STACK MARQUEE ======================= */
.stack {
  padding: 100px 0 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.stack .section-tag { padding: 0 var(--pad-x); }
.stack-marquee {
  display: flex; gap: 0; white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 128px);
  letter-spacing: -0.04em;
  font-weight: 300;
  animation: marquee 35s linear infinite;
}
.stack-marquee.alt { animation-duration: 45s; animation-direction: reverse; font-style: italic; font-family: var(--font-serif); color: var(--lime); }
.stack-marquee span { padding: 0 32px; display: inline-flex; align-items: center; gap: 32px; }
.stack-marquee span::after {
  content: '✦';
  color: var(--ink-faint);
  font-size: 0.4em;
  display: inline-block;
}

/* ==================== PRICING ============================= */
.pricing {
  padding: 160px var(--pad-x);
}
.pricing-head { margin-bottom: 80px; display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.pricing h2 {
  font-size: clamp(36px, 6.4vw, 110px);
  line-height: 0.96; letter-spacing: -0.035em; font-weight: 400;
  max-width: 14ch;
}
.pricing h2 em {
  font-family: var(--font-serif); font-style: italic; color: var(--lime);
}
.pricing .setup {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 4px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pricing .setup .price {
  font-size: 56px; letter-spacing: -0.04em; font-weight: 400; line-height: 1;
}
.pricing .setup .price small { font-size: 14px; color: var(--ink-dim); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; margin-left: 8px; }
.pricing .setup .desc { color: var(--ink-dim); flex: 1; max-width: 60ch; font-size: 14px; line-height: 1.5; }

.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tier {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 36px 32px;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  display: flex; flex-direction: column;
}
.tier:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
}
.tier.featured {
  background: var(--lime);
  color: var(--bg);
  border-color: var(--lime);
}
.tier.featured .price-tag { color: var(--bg); }
.tier.featured .feature { color: rgba(10,10,8,0.7); border-color: rgba(10,10,8,0.15); }
.tier.featured .feature::before { color: var(--bg); }
.tier.featured .tier-name { color: var(--bg); }
.tier.featured .tier-desc { color: rgba(10,10,8,0.65); }
.tier.featured .tier-cta {
  background: var(--bg); color: var(--lime);
}

.tier-name {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.tier .tier-desc { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); margin-bottom: 32px; }
.tier .price-tag {
  font-size: 64px; letter-spacing: -0.045em; line-height: 1; margin-bottom: 4px; font-weight: 400;
}
.tier .price-unit { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 32px; }
.tier.featured .price-unit { color: rgba(10,10,8,0.55); }
.tier .features { list-style: none; margin-bottom: 32px; flex: 1; }
.tier .feature {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.tier .feature::before {
  content: '›'; font-family: var(--font-mono); color: var(--lime); font-size: 18px;
}
.tier-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.2s ease;
}
.tier:hover .tier-cta { border-color: var(--lime); color: var(--lime); }
.tier.featured:hover .tier-cta { color: var(--lime); background: var(--bg); }

/* ==================== WHY US ============================== */
.why {
  padding: 160px var(--pad-x);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-head { margin-bottom: 80px; }
.why h2 {
  font-size: clamp(36px, 6.4vw, 110px);
  line-height: 0.96; letter-spacing: -0.035em; font-weight: 400;
}
.why h2 em { font-family: var(--font-serif); font-style: italic; color: var(--lime); }
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
}
.why-card {
  background: var(--bg-2);
  padding: 56px 48px;
  position: relative;
  transition: background 0.3s ease;
}
.why-card:hover { background: var(--bg); }
.why-card .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--lime);
  letter-spacing: 0.1em; margin-bottom: 24px;
}
.why-card h3 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em; font-weight: 400; line-height: 1.1;
  margin-bottom: 20px;
}
.why-card p {
  color: var(--ink-dim); font-size: 16px; line-height: 1.6; max-width: 52ch;
}

/* ==================== TEAM / BENCH ======================== */
.team {
  padding: 160px var(--pad-x);
}
.team-head { margin-bottom: 64px; }
.team-head-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.team h2 {
  font-size: clamp(36px, 6.4vw, 110px);
  line-height: 0.96; letter-spacing: -0.035em; font-weight: 400;
  max-width: 14ch;
}
.team h2 em { font-family: var(--font-serif); font-style: italic; color: var(--lime); }
.team-lede {
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.6;
  max-width: 44ch;
  padding-bottom: 8px;
}

/* mosaic of "team members" */
.team-mosaic {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-bottom: 0;
}
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-rows: 22px;
  gap: 6px;
  margin-bottom: 24px;
}
.mosaic-cell {
  border: 1px solid var(--line);
  background: rgba(245, 242, 232, 0.025);
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease, border-color 0.6s ease;
}
.mosaic-cell.bone {
  background: rgba(245, 242, 232, 0.55);
  border-color: rgba(245, 242, 232, 0.5);
}
.mosaic-cell.dim {
  background: rgba(245, 242, 232, 0.14);
  border-color: rgba(245, 242, 232, 0.18);
}
.mosaic-cell.lime {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 14px rgba(200, 255, 58, 0.5);
}
.mosaic-cell.lime::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.4);
  animation: cell-pulse 1.8s ease-in-out infinite;
}
@keyframes cell-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.5; }
}

.mosaic-legend {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-dim); letter-spacing: 0.08em; text-transform: uppercase;
}
.mosaic-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mosaic-legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
}
.mosaic-legend .dot.lime { background: var(--lime); box-shadow: 0 0 8px rgba(200, 255, 58, 0.5); }
.mosaic-legend .dot.bone { background: rgba(245, 242, 232, 0.65); }
.mosaic-legend .dot.dim  { background: rgba(245, 242, 232, 0.2); }

/* bench stats strip */
.bench-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.bench-stats .bstat {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}
.bench-stats .bstat:last-child { border-right: 0; }
.bench-stats .bstat .k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 12px;
}
.bench-stats .bstat .v {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 56px);
  letter-spacing: -0.035em; line-height: 1; font-weight: 400;
}
.bench-stats .bstat .v small {
  font-size: 0.42em; color: var(--ink-dim); margin-left: 6px;
  font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}

/* discipline cards */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 64px;
}
.bench-card {
  background: var(--bg);
  padding: 40px 32px 36px;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: background 0.3s ease;
}
.bench-card:hover { background: var(--bg-2); }
.bench-card:hover .bench-glyph { color: var(--lime); transform: rotate(8deg) scale(1.05); }
.bench-card:hover .bench-num { color: var(--lime); }

.bench-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}
.bench-glyph {
  width: 64px; height: 64px;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 28px;
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center;
}
.bench-glyph svg { width: 100%; height: 100%; }
.bench-card h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.02em; line-height: 1.1; font-weight: 400;
  margin-bottom: 16px;
}
.bench-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
  max-width: 36ch;
}
.bench-skills {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px dashed var(--line-2);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.bench-skills span {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.bench-card:hover .bench-skills span { border-color: var(--line-2); color: var(--ink); }

/* ==================== PROTOTYPE FIRST ===================== */
.prototype-promise {
  padding: 140px var(--pad-x) 160px;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.prototype-promise::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 255, 58, 0.4), transparent);
}
.prototype-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(200, 255, 58, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 255, 58, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  opacity: 0.7;
}
.prototype-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}
.prototype-promise h2 {
  font-size: clamp(40px, 7vw, 130px);
  line-height: 0.94; letter-spacing: -0.04em; font-weight: 400;
  max-width: 16ch;
  margin-bottom: 40px;
}
.prototype-promise h2 em {
  font-family: var(--font-serif); font-style: italic; color: var(--lime); font-weight: 400;
}
.prototype-lede {
  color: var(--ink-dim);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 80px;
}
.prototype-lede .hl {
  color: var(--ink);
  background: linear-gradient(to top, var(--lime-dim) 30%, transparent 30%);
  padding: 0 4px;
}

.prototype-flow {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.pf-step {
  flex: 1 1 0;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.pf-step:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}
.pf-step.pf-decide {
  background: var(--lime);
  color: var(--bg);
  border-color: var(--lime);
}
.pf-step.pf-decide .pf-num { color: var(--bg); opacity: 0.6; }
.pf-step.pf-decide .pf-desc { color: rgba(10, 10, 8, 0.7); }
.pf-step.pf-decide:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -10px var(--lime); }

.pf-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--lime);
  margin-bottom: 20px;
}
.pf-name {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.1;
}
.pf-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.pf-arrow {
  display: flex; align-items: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 18px;
  user-select: none;
}

.prototype-foot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  text-transform: uppercase;
  max-width: 80ch;
  line-height: 1.6;
  padding-top: 32px;
  border-top: 1px dashed var(--line-2);
}

@media (max-width: 880px) {
  .prototype-flow { flex-direction: column; }
  .pf-arrow { transform: rotate(90deg); align-self: center; padding: 8px 0; }
  .pf-step { min-width: 0; }
}

/* ==================== CTA / FOOTER ======================== */
.cta {
  padding: 160px var(--pad-x) 80px;
  border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; left: 50%; top: 30%;
  width: 1200px; height: 1200px; margin-left: -600px;
  background: radial-gradient(circle, rgba(200,255,58,0.10), transparent 60%);
  filter: blur(50px); pointer-events: none;
  animation: glow-drift 22s ease-in-out infinite alternate;
}

.cta h2 {
  font-size: clamp(56px, 11vw, 200px);
  line-height: 0.88; letter-spacing: -0.05em; font-weight: 400;
  margin-bottom: 60px;
  max-width: 14ch;
}
.cta h2 em { font-family: var(--font-serif); font-style: italic; color: var(--lime); }

.terminal {
  background: #000;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 13px;
  overflow: hidden;
  margin-bottom: 80px;
  max-width: 820px;
}
.terminal .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.terminal .bar .dots { display: flex; gap: 6px; }
.terminal .bar .dots span {
  width: 11px; height: 11px; border-radius: 50%; background: var(--line-2);
}
.terminal .bar .dots span:first-child { background: #ff6b6b; }
.terminal .bar .dots span:nth-child(2) { background: #f8c34c; }
.terminal .bar .dots span:nth-child(3) { background: var(--lime); }
.terminal .bar .name { margin-left: 12px; color: var(--ink); }

.terminal .body { padding: 24px 20px; min-height: 240px; line-height: 1.7; }
.terminal .body .line { display: block; color: var(--ink); }
.terminal .body .line .prompt { color: var(--lime); margin-right: 8px; }
.terminal .body .line .comment { color: var(--ink-dim); }
.terminal .body .line .ok { color: var(--lime); }
.terminal .body .cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--lime);
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 60px; border-top: 1px solid var(--line);
}
.footer-grid h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 16px; font-weight: 500;
}
.footer-grid .word-mark {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-grid .word-mark img {
  width: 200px; height: auto;
}
.footer-grid .tagline {
  color: var(--ink-dim); font-size: 14px; max-width: 38ch; line-height: 1.5;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--lime); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 60px; margin-top: 60px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-dim); letter-spacing: 0.06em; text-transform: uppercase;
}

/* ==================== HERO VOICE SAMPLE =================== */
.hero-audio {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 9px 18px 9px 9px;
  background: rgba(19, 19, 16, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hero-audio:hover { border-color: var(--lime); transform: translateY(-2px); }
.hero-audio-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--lime); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  transition: transform 0.2s ease;
}
.hero-audio:hover .hero-audio-btn { transform: scale(1.06); }
.hero-audio-btn svg { width: 16px; height: 16px; fill: currentColor; }
.hero-audio-btn .ico-pause { display: none; }
.hero-audio.playing .hero-audio-btn .ico-play { display: none; }
.hero-audio.playing .hero-audio-btn .ico-pause { display: block; }
.hero-audio-text {
  display: flex; flex-direction: column; gap: 2px;
  text-align: left;
}
.hero-audio-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-audio-sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-audio-time { color: var(--lime); }
.hero-audio-eq {
  display: flex; align-items: center; gap: 3px;
  height: 20px; margin-left: 2px;
}
.hero-audio-eq i {
  width: 3px; height: 4px; background: var(--ink-faint);
  border-radius: 1px;
  transition: background 0.25s ease;
}
.hero-audio.playing .hero-audio-eq i {
  background: var(--lime);
  animation: eq 0.8s ease-in-out infinite;
}
.hero-audio.playing .hero-audio-eq i:nth-child(2) { animation-delay: -0.2s; }
.hero-audio.playing .hero-audio-eq i:nth-child(3) { animation-delay: -0.5s; }
.hero-audio.playing .hero-audio-eq i:nth-child(4) { animation-delay: -0.1s; }
.hero-audio.playing .hero-audio-eq i:nth-child(5) { animation-delay: -0.35s; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* ==================== Reveal helpers ====================== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* split text rise for headings */
.split-line {
  display: block; overflow: hidden;
}
.split-line > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.split-line.in > span { transform: translateY(0); }

/* ==================== RESPONSIVE ========================== */
@media (max-width: 920px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(2) { border-right: 0; }
  .hero-stats .stat { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .hero-stats .stat:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }

  /* capabilities: drop the horizontal scroll-jack, stack the cards */
  .capabilities { padding: 100px 0; height: auto; }
  .cap-track {
    flex-direction: column;
    width: auto;
    gap: 16px;
    transform: none;
  }
  .cap-card { width: 100%; min-height: 0; }
  .cap-nav { display: none; }

  .problem-stats { grid-template-columns: 1fr; }
  .problem-stats .pstat { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-head-top { grid-template-columns: 1fr; gap: 32px; }
  .bench-grid { grid-template-columns: 1fr; }
  .bench-stats { grid-template-columns: repeat(2, 1fr); }
  .bench-stats .bstat:nth-child(2) { border-right: 0; }
  .bench-stats .bstat:nth-child(1), .bench-stats .bstat:nth-child(2) {
    padding-bottom: 24px; border-bottom: 1px solid var(--line);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-meta { grid-template-columns: repeat(2, auto); }
  .pipeline-track { height: auto; }
  .pipeline-sticky {
    position: static;
    height: auto;
    padding: 100px var(--pad-x) 80px;
    overflow: visible;
  }
  .pipeline-stage { display: block; margin-top: 0; }
  .pipe-step {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    opacity: 1;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
  }
  .pipe-step:last-child { border-bottom: 0; }
  .pipe-step .right { display: none; }
  .pipe-rail { display: none; }
}

@media (max-width: 640px) {
  .hero-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* keep only the logo on the left so it has room to render full-size */
  .chrome .left > span { display: none; }
  .ticker { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
