/* ═══════════════════════════════════════════════════════════
   Attestria · styles · Dark instrument theme
   ═══════════════════════════════════════════════════════════ */
:root {
  --ink:        #07080A;
  --shell:      #0E1014;
  --shell-2:    #14181D;
  --shell-3:    #1B2027;
  --concrete:   #2A2F36;
  --slate:      #F4F5F7;
  --slate-soft: #9097A1;
  --slate-dim:  #5C636D;

  --lilac:        #C786F0;
  --lilac-soft:   #e6cdf5;
  --lilac-deep:   #9b5fc7;
  --mint:         #B7E2D8;
  --mint-soft:    #d8eee8;
  --citrine:      #F4E6A6;
  --citrine-soft: #faf0c8;

  --s-1:  8px;  --s-2: 16px;  --s-3: 24px;
  --s-4: 32px;  --s-5: 48px;  --s-6: 64px;
  --s-7: 80px;  --s-8: 96px;  --s-10:128px;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max:    1400px;
  --gutter: clamp(20px, 4vw, 56px);

  --hud-line:        rgba(244, 245, 247, 0.08);
  --hud-line-strong: rgba(244, 245, 247, 0.18);
  --hud-line-soft:   rgba(244, 245, 247, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--shell); }

body {
  font-family: var(--font-body);
  background: var(--shell);
  color: var(--slate);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
body.cursor-on { cursor: none; }

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

/* Page-wide blueprint grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,245,247,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,245,247,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
}

/* Vignette to give the page some depth */
body::after {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%,
      transparent 50%,
      rgba(7, 8, 10, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

::selection { background: var(--lilac); color: var(--ink); }

/* ─── Mono / eyebrow ─────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.mono--xs     { font-size: 10px; letter-spacing: 0.16em; }
.mono--accent { color: var(--lilac); }
.mono--dim    { color: var(--slate-soft); }
.mono--ok     { color: #5fb878; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--slate-soft);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--lilac);
  display: inline-block;
}
.eyebrow--inverse { color: rgba(244, 245, 247, 0.7); }

/* ─── Custom cursor ──────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--slate);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: width 0.18s cubic-bezier(.2,.8,.2,1),
              height 0.18s cubic-bezier(.2,.8,.2,1),
              opacity 0.3s;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--slate);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: difference;
  transition: width 0.22s cubic-bezier(.2,.8,.2,1),
              height 0.22s cubic-bezier(.2,.8,.2,1),
              border-color 0.22s, border-radius 0.22s,
              background 0.22s, opacity 0.3s;
}
.cursor-ring::before {
  content: "";
  position: absolute; inset: -6px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.22s, transform 0.22s;
}
body.cursor-on .cursor,
body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  background: rgba(199, 134, 240, 0.20);
  border-color: var(--lilac);
  border-radius: 10px;
}
body.cursor-hover .cursor-ring::before {
  opacity: 0.55; transform: scale(1);
}
body.cursor-press .cursor-ring { transform: translate(-50%, -50%) scale(0.85); }

/* ─── HUD chrome ─────────────────────────────────────────── */
.hud-corner {
  position: fixed; z-index: 50; pointer-events: none;
  width: 28px; height: 28px;
  border: 1px solid var(--slate);
}
.hud-corner--tl { top: 20px; left: 20px;     border-right: 0;  border-bottom: 0; }
.hud-corner--tr { top: 20px; right: 20px;    border-left: 0;   border-bottom: 0; }
.hud-corner--bl { bottom: 20px; left: 20px;  border-right: 0;  border-top: 0; }
.hud-corner--br { bottom: 20px; right: 20px; border-left: 0;   border-top: 0; }

@media (max-width: 720px) {
  .hud-corner { width: 18px; height: 18px; }
  .hud-corner--tl, .hud-corner--tr { top: 12px; }
  .hud-corner--tl, .hud-corner--bl { left: 12px; }
  .hud-corner--tr, .hud-corner--br { right: 12px; }
  .hud-corner--bl, .hud-corner--br { bottom: 12px; }
}

.hud-status {
  position: fixed; bottom: 28px; right: 60px; z-index: 49;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(20, 24, 29, 0.85);
  color: var(--slate);
  border: 1px solid var(--hud-line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hud-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5fb878;
  box-shadow: 0 0 8px #5fb878;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
@media (max-width: 720px) { .hud-status { display: none; } }

/* Scroll progress rail */
.scroll-rail {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 60; pointer-events: none;
}
.scroll-rail::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hud-line);
}
.scroll-rail-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--lilac), var(--mint), var(--citrine));
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(199, 134, 240, 0.6);
}

/* Left rail / spine — only shows on wide */
.spine {
  position: fixed; top: 50%; left: 24px;
  transform: translateY(-50%);
  z-index: 48; pointer-events: none;
  display: none; flex-direction: column; gap: 18px;
  font-family: var(--font-mono);
}
@media (min-width: 1200px) { .spine { display: flex; } }
.spine-block {
  border-left: 1px solid var(--hud-line);
  padding-left: 10px;
}
.spine-k {
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--slate-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.spine-v {
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--slate-soft);
  text-transform: uppercase;
}
.spine-v span { display: inline-block; margin-right: 6px; }

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 16, 20, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--hud-line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
}
.brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
  text-decoration: none; color: var(--slate);
  display: inline-flex; align-items: center; gap: 12px;
}
.brand-mark {
  display: inline-block;
  width: 22px; height: 22px;
  fill: var(--lilac);
  flex-shrink: 0;
  transition: fill 0.2s;
}
.brand:hover .brand-mark { fill: var(--lilac-soft); }
.nav-center {
  display: flex; align-items: center;
  justify-content: center;
  gap: var(--s-5);
}
.nav-right {
  display: flex; align-items: center;
  justify-content: flex-end;
}
.nav-link {
  font-size: 14px; font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.nav-link:hover { color: var(--lilac); }
@media (max-width: 820px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-center { display: none; }
}
@media (max-width: 520px) {
  .nav-inner {
    padding: 14px 20px;
    gap: 12px;
  }
  .brand {
    font-size: 20px;
    gap: 10px;
  }
  .btn--pill {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  border-radius: 8px;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1),
              background 0.2s, color 0.2s, box-shadow 0.3s,
              border-color 0.2s;
  white-space: nowrap;
  position: relative;
  color: var(--slate);
}
.btn--primary {
  background: var(--lilac); color: var(--ink);
}
.btn--primary:hover {
  background: var(--slate); color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -8px rgba(199, 134, 240, 0.5);
}
.btn--secondary {
  background: transparent; color: var(--slate);
  border: 1px solid var(--hud-line-strong);
}
.btn--secondary:hover {
  background: var(--slate); color: var(--ink); border-color: var(--slate);
}
.btn .arrow {
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn--pill { border-radius: 999px; padding: 10px 18px; font-size: 13px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative; z-index: 2;
}
section { position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  display: flex; flex-direction: column;
  z-index: 2;
}
#hero-3d { position: absolute; inset: 0; z-index: 1; }
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' /%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.45;
}

/* Text-side legibility scrim — only the left column gets a soft dark wash */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(100deg,
      rgba(7, 8, 10, 0.85) 0%,
      rgba(7, 8, 10, 0.55) 20%,
      rgba(7, 8, 10, 0.20) 40%,
      rgba(7, 8, 10, 0.0) 58%);
  pointer-events: none;
}
@media (max-width: 1000px) {
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(7, 8, 10, 0.70) 0%,
        rgba(7, 8, 10, 0.35) 50%,
        rgba(7, 8, 10, 0.0) 100%);
  }
}

.hero-inner {
  position: relative; z-index: 3; flex: 1;
  display: grid; grid-template-rows: 1fr auto;
  padding: var(--s-5) 0 var(--s-4);
}
.hero-content {
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-4); align-self: center;
}
@media (min-width: 1000px) {
  .hero-content { grid-template-columns: 1.3fr 1fr; align-items: center; }
}

.hero-text { position: relative; }

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 13.5vw, 184px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 144;
  margin-top: var(--s-3);
  color: var(--slate);
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 72;
  margin-top: var(--s-4);
  max-width: 22ch;
  color: var(--slate);
}
.hero-desc {
  font-size: 15px;
  color: var(--slate-soft);
  margin-top: var(--s-3);
  max-width: 44ch;
  line-height: 1.6;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: var(--s-4);
}

/* Glass readout */
.hero-panel {
  background: linear-gradient(180deg,
    rgba(20, 24, 29, 0.65),
    rgba(14, 16, 20, 0.40));
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid var(--hud-line);
  padding: var(--s-3);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.hero-panel::before, .hero-panel::after {
  content: ""; position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--slate);
}
.hero-panel::before { top: -4px; left: -4px;   border-right: 0; border-bottom: 0; }
.hero-panel::after  { bottom: -4px; right: -4px; border-left: 0;  border-top: 0; }

.hero-panel-scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lilac), transparent);
  opacity: 0.7;
  animation: scan 5s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { top: 0%; }
  100% { top: 100%; }
}

.hero-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hud-line);
}
.hero-panel-row {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--hud-line);
}
.hero-panel-row:last-of-type { border-bottom: 0; }
.hero-panel-row .label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.hero-panel-row .val {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--slate);
  font-weight: 500;
  transition: opacity 0.4s;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-panel-row .val .unit {
  color: var(--slate-soft);
  font-weight: 400; font-size: 11px;
}

/* Mini sparkline */
.hpr-spark {
  display: inline-block;
  width: 70px; height: 14px;
  position: relative;
  margin-left: auto;
}

.hero-strip {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-3);
  border-top: 1px solid var(--hud-line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-soft);
  flex-wrap: wrap; gap: var(--s-2);
  position: relative; z-index: 3;
}
.hero-strip-coord { display: inline-flex; gap: 14px; }
.hero-strip-coord span em {
  color: var(--lilac); font-style: normal; font-weight: 600;
}

#hero-3d.loading::before {
  content: "INITIALIZING SCENE";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--slate-dim);
}

/* ─── Section heads ──────────────────────────────────────── */
.section-head {
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-3);
  padding-top: var(--s-7);
  padding-bottom: var(--s-4);
  border-top: 1px solid var(--hud-line);
}
@media (min-width: 800px) {
  .section-head { grid-template-columns: 200px 1fr; gap: var(--s-5); align-items: start; }
}
.section-num-block {
  display: flex; flex-direction: column; gap: 6px; padding-top: 4px;
}
.section-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--slate);
}
.section-coord {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--slate-soft);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
  max-width: 20ch;
  color: var(--slate);
}
.section-sub {
  font-size: 16px;
  color: var(--slate-soft);
  margin-top: var(--s-3);
  max-width: 56ch;
  line-height: 1.6;
}

/* Kinetic word reveal */
.kw-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  line-height: inherit;
}
.kw-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.kw-inner.in { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   Instrument cluster
   ═══════════════════════════════════════════════════════════ */
.cluster {
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(199, 134, 240, 0.10), transparent 60%),
    radial-gradient(60% 80% at 80% 100%, rgba(183, 226, 216, 0.07), transparent 60%),
    var(--ink);
  border-top: 1px solid var(--hud-line);
  border-bottom: 1px solid var(--hud-line);
  padding: var(--s-6) 0;
  position: relative; overflow: hidden;
}
.cluster::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,245,247,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,245,247,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.cluster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  position: relative;
  z-index: 2;
}
@media (min-width: 860px) {
  .cluster-grid { grid-template-columns: repeat(3, 1fr); }
}

.cluster-cell {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-2) 0;
  border-left: 1px solid var(--hud-line);
  padding-left: var(--s-3);
}
.dial {
  width: 100px; height: 100px;
  transform: rotate(-90deg);
}
.dial .track {
  fill: none;
  stroke: var(--hud-line);
  stroke-width: 1.5;
}
.dial .arc {
  fill: none;
  stroke: var(--lilac);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 301.59;        /* 2π·48 */
  stroke-dashoffset: 301.59;
  transition: stroke-dashoffset 2.2s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 0 6px rgba(199,134,240, 0.6));
}
.cluster-cell:nth-child(2) .dial .arc { stroke: var(--mint); filter: drop-shadow(0 0 6px rgba(183,226,216, 0.6)); }
.cluster-cell:nth-child(3) .dial .arc { stroke: var(--citrine); filter: drop-shadow(0 0 6px rgba(244,230,166, 0.6)); }
.dial .ticks line {
  stroke: var(--hud-line-strong);
  stroke-width: 1;
}

.cluster-text { display: flex; flex-direction: column; gap: 6px; }
.cluster-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 84px);
  font-weight: 300; line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  color: var(--slate);
}
.cluster-num em { font-style: normal; }
.cluster-cell:nth-child(1) .cluster-num em { color: var(--lilac); }
.cluster-cell:nth-child(2) .cluster-num em { color: var(--mint); }
.cluster-cell:nth-child(3) .cluster-num em { color: var(--citrine); }

.cluster-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-top: 4px;
}
.cluster-desc {
  font-size: 13px;
  color: var(--slate-soft);
  max-width: 32ch;
  line-height: 1.55;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   Problem
   ═══════════════════════════════════════════════════════════ */
.problem-body {
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-4); padding-bottom: var(--s-8);
}
@media (min-width: 920px) {
  .problem-body { grid-template-columns: 200px 1fr 1fr; gap: var(--s-5); align-items: start; }
}
.problem-aside {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 4px;
}
.problem-tags {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.problem-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.04em;
  padding-left: 14px;
  position: relative;
}
.problem-tags li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1px;
  background: var(--lilac);
}
.problem-text {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  color: var(--slate);
}
.problem-text--sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-soft);
}

/* ═══════════════════════════════════════════════════════════
   Process / steps
   ═══════════════════════════════════════════════════════════ */
.steps {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--hud-line);
  border: 1px solid var(--hud-line);
  margin-bottom: var(--s-8);
  border-radius: 4px; overflow: hidden;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--shell-2);
  padding: var(--s-4);
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-2);
  min-height: 420px;
  transition: background 0.3s;
  overflow: hidden;
}
.step::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(199,134,240,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.step:hover::before { opacity: 1; }
.step:hover { background: var(--shell-3); }

.step-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: var(--s-2);
  border-bottom: 1px dashed var(--hud-line);
}

/* Step animation host */
.step-anim {
  position: relative;
  height: 140px;
  margin: var(--s-2) 0 var(--s-3);
  border: 1px solid var(--hud-line);
  background:
    radial-gradient(80% 80% at 50% 50%, rgba(199,134,240,0.05), transparent 70%),
    var(--ink);
  border-radius: 4px;
  overflow: hidden;
}
.step-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}

/* INGEST — tokens drift left to right, funnel collects them */
.step-anim[data-step-anim="ingest"] .step-token {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--shell-3);
  color: var(--slate);
  padding: 3px 8px;
  border: 1px solid var(--hud-line);
  border-radius: 3px;
  white-space: nowrap;
  animation: tokenDrift 8s linear infinite;
  opacity: 0;
}
.step-anim[data-step-anim="ingest"] .step-token:nth-child(1) { top: 12%; animation-delay: 0s; }
.step-anim[data-step-anim="ingest"] .step-token:nth-child(2) { top: 32%; animation-delay: 1.4s; }
.step-anim[data-step-anim="ingest"] .step-token:nth-child(3) { top: 52%; animation-delay: 2.8s; }
.step-anim[data-step-anim="ingest"] .step-token:nth-child(4) { top: 72%; animation-delay: 4.2s; }
.step-anim[data-step-anim="ingest"] .step-token:nth-child(5) { top: 22%; animation-delay: 5.6s; }
.step-anim[data-step-anim="ingest"] .step-funnel {
  position: absolute;
  top: 0; right: -4px; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--lilac));
  opacity: 0.18;
  filter: blur(8px);
}
@keyframes tokenDrift {
  0%   { left: -20%; opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  95%  { opacity: 0.4; left: 95%; }
  100% { left: 110%; opacity: 0; }
}

/* DRAFT — graph nodes pulse */
.step-anim[data-step-anim="draft"] .rag-nodes circle {
  fill: var(--mint);
  filter: drop-shadow(0 0 4px rgba(183,226,216, 0.6));
}
.step-anim[data-step-anim="draft"] .rag-nodes circle.q {
  fill: var(--lilac);
  filter: drop-shadow(0 0 6px rgba(199,134,240, 0.6));
}
.step-anim[data-step-anim="draft"] .rag-edges line {
  stroke: var(--hud-line-strong);
  stroke-width: 1;
}

/* LEARN — confidence curve */
.step-anim[data-step-anim="learn"] .learn-curve {
  fill: none;
  stroke: var(--citrine);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px rgba(244,230,166, 0.6));
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawCurve 4s cubic-bezier(.2,.8,.2,1) infinite alternate;
}
@keyframes drawCurve {
  0%   { stroke-dashoffset: 240; }
  100% { stroke-dashoffset: 0; }
}
.step-anim[data-step-anim="learn"] .learn-points circle {
  fill: var(--citrine);
  filter: drop-shadow(0 0 4px rgba(244,230,166, 0.7));
}

.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 48;
  line-height: 1.1;
  margin-top: var(--s-1);
  color: var(--slate);
}
.step-desc {
  font-size: 14px;
  color: var(--slate-soft);
  line-height: 1.6;
  margin-top: var(--s-1);
}

/* ═══════════════════════════════════════════════════════════
   Live Agent
   ═══════════════════════════════════════════════════════════ */
.agent {
  padding-top: 0;
  padding-bottom: var(--s-8);
  position: relative;
}
.agent-shell {
  position: relative;
  border: 1px solid var(--hud-line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(20,24,29,0.85), rgba(14,16,20,0.85));
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow:
    0 30px 80px -40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(244,245,247,0.04);
}
.agent-shell::before, .agent-shell::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--slate); z-index: 3;
}
.agent-shell::before { top: -1px; left: -1px;     border-right: 0; border-bottom: 0; }
.agent-shell::after  { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }

.agent-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--s-3);
  border-bottom: 1px solid var(--hud-line);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-soft);
  background: rgba(7, 8, 10, 0.35);
  flex-wrap: wrap; gap: 10px;
}
.agent-topbar-l, .agent-topbar-r {
  display: flex; align-items: center; gap: 14px;
}
.agent-traffic { display: inline-flex; gap: 6px; }
.agent-traffic span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--slate-dim); opacity: 0.5;
}
.agent-traffic span:nth-child(1) { background: var(--lilac);   opacity: 1; }
.agent-traffic span:nth-child(2) { background: var(--mint);    opacity: 1; }
.agent-traffic span:nth-child(3) { background: var(--citrine); opacity: 1; }
.agent-pulse {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--slate);
}
.agent-pulse .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5fb878;
  box-shadow: 0 0 8px #5fb878;
  animation: pulse 1.8s ease-in-out infinite;
}

.agent-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 540px;
  position: relative;
}
@media (min-width: 920px) {
  .agent-body { grid-template-columns: 1fr 1fr; }
}

.agent-source {
  position: relative;
  padding: var(--s-3);
  border-right: 1px solid var(--hud-line);
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 22px,
      rgba(244,245,247,0.025) 22px 23px
    );
  overflow: hidden;
}
.agent-pane-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-soft);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hud-line);
  margin-bottom: var(--s-2);
}
.agent-pane-head .badge {
  padding: 3px 8px;
  background: var(--lilac); color: var(--ink);
  border-radius: 999px;
  font-size: 9px; letter-spacing: 0.16em;
}
.agent-doc {
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 22px;
  color: var(--slate);
  position: relative;
  white-space: pre-wrap;
}
.agent-doc .row {
  display: grid;
  grid-template-columns: 28px 70px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 0;
}
.agent-doc .row .ln {
  color: var(--slate-dim); opacity: 0.8;
  text-align: right;
  font-size: 10px;
}
.agent-doc .row .id {
  color: var(--lilac);
  font-weight: 600;
  font-size: 11px;
}
.agent-doc .row .qtext {
  position: relative;
  color: var(--slate);
  transition: color 0.3s;
}
.agent-doc .row.is-scanning .qtext::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; top: -2px; bottom: -2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(199,134,240,0.40),
    transparent);
  background-size: 200% 100%;
  animation: scanrow 1.6s linear infinite;
  pointer-events: none;
  border-radius: 4px;
}
@keyframes scanrow {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
.agent-doc .row.is-done .qtext {
  color: var(--slate-soft);
  text-decoration: line-through;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 1px;
}
.agent-doc .row .tk {
  display: inline-block;
  padding: 0 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.4s, color 0.4s;
}
.agent-doc .row.is-scanning .tk.cited {
  background: rgba(244, 230, 166, 0.35);
  color: var(--citrine);
}

.agent-canvas {
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
}

.agent-answer {
  padding: var(--s-3);
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-2);
  background:
    radial-gradient(80% 60% at 70% 0%, rgba(199,134,240,0.12), transparent 70%),
    linear-gradient(180deg, rgba(20,24,29,0.55), rgba(7,8,10,0.30));
  overflow: hidden;
}

.agent-q {
  font-family: var(--font-display);
  font-size: 20px; line-height: 1.25;
  letter-spacing: -0.014em;
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  color: var(--slate);
  min-height: 50px;
  position: relative;
}

.agent-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-meta .tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--shell-3);
  color: var(--slate-soft);
  border-radius: 999px;
  border: 1px solid var(--hud-line);
}

.agent-confidence {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: rgba(14,16,20,0.55);
  border: 1px solid var(--hud-line);
  border-radius: 4px;
  position: relative;
}
.agent-confidence .label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--slate-soft);
  text-transform: uppercase;
}
.agent-confidence .bar {
  flex: 1; height: 6px;
  background: var(--shell-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.agent-confidence .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--lilac), var(--mint));
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 8px rgba(199,134,240,0.6);
}
.agent-confidence .val {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--slate);
  min-width: 40px; text-align: right;
}

.agent-draft {
  background: rgba(14,16,20,0.55);
  border: 1px solid var(--hud-line);
  border-radius: 4px;
  padding: 14px;
  position: relative;
  min-height: 200px;
}
.agent-draft .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--hud-line);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--slate-soft);
  text-transform: uppercase;
}
.agent-draft .body {
  font-size: 14px; line-height: 1.65; color: var(--slate);
}
.agent-draft .body .cite {
  display: inline-block;
  padding: 0 5px;
  margin: 0 1px;
  background: rgba(244, 230, 166, 0.18);
  color: var(--citrine);
  font-family: var(--font-mono);
  font-size: 10px;
  border-radius: 3px;
  vertical-align: 0.05em;
  border: 1px solid rgba(244, 230, 166, 0.35);
}
.agent-draft .body .caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--lilac);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.agent-bottombar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--s-3);
  border-top: 1px solid var(--hud-line);
  background: rgba(7,8,10,0.35);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-soft);
  flex-wrap: wrap; gap: 10px;
}
.agent-bottombar .progress-wrap {
  flex: 1; max-width: 280px;
  display: flex; align-items: center; gap: 10px;
}
.agent-bottombar .bar {
  flex: 1; height: 4px;
  background: var(--hud-line);
  border-radius: 999px;
  overflow: hidden;
}
.agent-bottombar .bar .fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--lilac), var(--mint), var(--citrine));
  transition: width 0.4s cubic-bezier(.2,.8,.2,1);
}

/* ═══════════════════════════════════════════════════════════
   Constellation (Coverage)
   ═══════════════════════════════════════════════════════════ */
.constellation {
  position: relative;
  height: clamp(440px, 50vh, 620px);
  border: 1px solid var(--hud-line);
  border-radius: 6px;
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(199,134,240,0.06), transparent 70%),
    var(--ink);
  overflow: hidden;
  margin-bottom: var(--s-8);
}
.constellation::before, .constellation::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--slate);
  z-index: 3;
}
.constellation::before { top: -1px; left: -1px;     border-right: 0; border-bottom: 0; }
.constellation::after  { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }

.constellation-canvas {
  position: absolute; inset: 0; z-index: 1;
}
.constellation-overlay {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}

/* Node bubbles */
.cnode {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--slate);
  text-transform: uppercase;
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.7);
  border: 1px solid var(--hud-line-strong);
  backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1),
              border-color 0.3s, background 0.3s, box-shadow 0.3s;
  transform: translate(-50%, -50%);
  user-select: none;
  line-height: 1.1;
  padding: 0 6px;
}
.cnode .cnode-pulse {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--lilac);
  opacity: 0;
  animation: nodePulse 3.4s ease-out infinite;
  pointer-events: none;
}
@keyframes nodePulse {
  0%   { transform: scale(0.7); opacity: 0.0; }
  20%  { opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}
.cnode.is-active,
.cnode:hover {
  border-color: var(--lilac);
  background: rgba(199, 134, 240, 0.18);
  box-shadow: 0 0 28px rgba(199, 134, 240, 0.35);
  transform: translate(-50%, -50%) scale(1.06);
}

/* Cluster-color variants */
.cnode--mint    { border-color: rgba(183,226,216,0.3); }
.cnode--mint .cnode-pulse { border-color: var(--mint); }
.cnode--mint.is-active, .cnode--mint:hover {
  border-color: var(--mint);
  background: rgba(183, 226, 216, 0.18);
  box-shadow: 0 0 28px rgba(183, 226, 216, 0.35);
}
.cnode--citrine { border-color: rgba(244,230,166,0.3); }
.cnode--citrine .cnode-pulse { border-color: var(--citrine); }
.cnode--citrine.is-active, .cnode--citrine:hover {
  border-color: var(--citrine);
  background: rgba(244, 230, 166, 0.18);
  box-shadow: 0 0 28px rgba(244, 230, 166, 0.35);
}

/* Detail panel */
.constellation-detail {
  position: absolute;
  left: var(--s-3); bottom: var(--s-3);
  width: clamp(260px, 36%, 360px);
  background: linear-gradient(180deg,
    rgba(20,24,29,0.85),
    rgba(14,16,20,0.85));
  border: 1px solid var(--hud-line-strong);
  border-radius: 4px;
  padding: var(--s-3);
  z-index: 3;
  backdrop-filter: blur(12px);
}
.constellation-detail::before, .constellation-detail::after {
  content: ""; position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--slate);
}
.constellation-detail::before { top: -2px; left: -2px;     border-right: 0; border-bottom: 0; }
.constellation-detail::after  { bottom: -2px; right: -2px; border-left: 0;  border-top: 0; }

.cd-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--hud-line);
  margin-bottom: 12px;
}
.cd-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 48;
  color: var(--slate);
}
.cd-desc {
  font-size: 13px;
  color: var(--slate-soft);
  margin-top: 6px;
  line-height: 1.55;
}
.cd-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.cd-meta .cd-pill {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  padding: 3px 8px;
  background: var(--shell-3);
  border: 1px solid var(--hud-line);
  color: var(--slate-soft);
  border-radius: 999px;
}

@media (max-width: 720px) {
  .section-head {
    padding-top: var(--s-6);
    padding-bottom: var(--s-3);
  }
  .section-title {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.08;
    max-width: 100%;
  }
  .section-sub {
    font-size: 15px;
    line-height: 1.7;
    max-width: 100%;
  }
  .constellation {
    height: 780px;
  }
  .constellation-detail {
    left: var(--s-2);
    right: var(--s-2);
    bottom: var(--s-2);
    width: auto;
    padding: 18px;
    max-height: 252px;
    overflow: hidden;
  }
  .cd-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .cd-title {
    font-size: 23px;
    line-height: 1.08;
  }
  .cd-desc {
    font-size: 12.5px;
    line-height: 1.5;
  }
  .cd-meta {
    gap: 6px;
  }
  .cd-meta .cd-pill {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.cta {
  background: var(--ink);
  color: var(--slate);
  padding: var(--s-10) 0;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--hud-line);
}
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 80% 0%, rgba(199,134,240,0.18), transparent 70%),
    radial-gradient(50% 60% at 20% 100%, rgba(183,226,216,0.10), transparent 70%),
    radial-gradient(30% 40% at 50% 50%, rgba(244,230,166,0.06), transparent 70%);
  pointer-events: none;
  animation: ctaShift 24s ease-in-out infinite alternate;
}
@keyframes ctaShift {
  0%   { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(20px,-30px) rotate(1.5deg); }
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,245,247,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,245,247,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-5); align-items: end;
}
@media (min-width: 860px) {
  .cta-inner { grid-template-columns: 1.6fr 1fr; }
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  max-width: 14ch;
  color: var(--slate);
}
.cta-aside { display: flex; flex-direction: column; gap: var(--s-3); }
.cta-desc {
  font-size: 15px;
  color: var(--slate-soft);
  line-height: 1.6;
  max-width: 36ch;
}
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: var(--s-2);
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: var(--slate-soft);
  padding: var(--s-4) 0 var(--s-4);
  border-top: 1px solid var(--hud-line);
  position: relative; z-index: 2;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-2);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--slate);
  font-variation-settings: "opsz" 48;
}
.footer-meta {
  display: flex; gap: var(--s-3);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   Reveals
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1),
              transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   Mobile tweaks
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .hud-corner { display: none; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero {
    min-height: auto;
  }
  .hero-inner {
    padding-top: var(--s-4);
    padding-bottom: var(--s-4);
  }
  .hero-wordmark {
    font-size: clamp(58px, 18vw, 92px);
    letter-spacing: -0.035em;
  }
  .hero-tagline {
    max-width: 100%;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-panel-row .val {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .cluster {
    padding: var(--s-5) 0;
  }
  .step       { min-height: 0; }
  .step {
    padding: var(--s-3);
  }
  .step-desc {
    font-size: 13.5px;
  }
  .agent-body { grid-template-columns: 1fr; }
  .agent-source { border-right: 0; border-bottom: 1px solid var(--hud-line); }
  .agent-topbar,
  .agent-bottombar,
  .agent-pane-head {
    letter-spacing: 0.08em;
  }
  .agent-topbar-l,
  .agent-topbar-r {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .agent-doc {
    font-size: 11px;
    line-height: 20px;
  }
  .agent-doc .row {
    grid-template-columns: 22px 76px 1fr;
    gap: 6px;
  }
  .agent-draft .head {
    display: block;
    line-height: 1.5;
  }
  .cluster-cell { grid-template-columns: 70px 1fr; }
  .dial { width: 70px; height: 70px; }
  .cta {
    padding: var(--s-7) 0;
  }
  .cta-title {
    font-size: clamp(38px, 12vw, 58px);
    max-width: 100%;
  }
  .cta-desc {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .constellation {
    margin-bottom: var(--s-6);
  }
  .constellation-overlay,
  .constellation-canvas {
    display: block;
  }
  .cnode {
    width: 58px;
    height: 58px;
    font-size: 8px;
    letter-spacing: 0.1em;
    padding: 0 5px;
  }
  .cnode.is-active,
  .cnode:hover {
    transform: translate(-50%, -50%) scale(1.04);
  }
  .cnode .cnode-pulse {
    inset: -6px;
  }
}
