/* =====================================================================
   Okto Pulse · Landing Page
   Minimalist technical-editorial aesthetic.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  /* Backgrounds — deep obsidian with barely-there elevation */
  --bg: #060608;
  --bg-alt: #0a0b0f;
  --surface: #0e0f14;
  --surface-2: #13151c;
  --surface-3: #181a23;

  /* Hairlines */
  --hair: rgba(255, 255, 255, 0.055);
  --hair-strong: rgba(255, 255, 255, 0.11);
  --hair-faint: rgba(255, 255, 255, 0.03);

  /* Text */
  --ink: #f4f5f9;
  --ink-dim: #a1a6b4;
  --ink-mid: #6b7181;
  --ink-faint: #3d424e;

  /* Brand — Pulse gradient (from EKG logo: cyan → magenta) */
  --pulse-cyan: #22d3ee;
  --pulse-blue: #3b82f6;
  --pulse-violet: #a855f7;
  --pulse-magenta: #ec4899;
  --pulse-hot: #ff2d8b;

  /* Narrative danger state — the unresolved delivery environment. */
  --chaos-red: #ff3d4c;
  --chaos-hot: #ff684c;
  --chaos-soft: #ff9b82;
  --chaos-pink: #ff4778;
  --chaos-deep: #6f1020;
  --chaos-glow: rgba(255, 61, 76, 0.22);

  /* Brand — Labs accent (from octopus logo: cyan → violet) */
  --labs-cyan: #36e0f5;
  --labs-violet: #7b4eff;

  /* Pulse brand gradient — cyan-dominant (engineering/monitor feel) */
  --gradient-pulse: linear-gradient(
    95deg,
    #22d3ee 0%,
    #3b82f6 55%,
    #1e40af 100%
  );
  --gradient-pulse-soft: linear-gradient(
    95deg,
    rgba(34, 211, 238, 0.14) 0%,
    rgba(59, 130, 246, 0.12) 55%,
    rgba(30, 64, 175, 0.1) 100%
  );

  /* Typography */
  --font-display: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-sans: var(--font-body);
  --font-mono: "IBM Plex Mono", "Menlo", ui-monospace, monospace;

  /* Shared graph labels — node types and workflow actions speak one language. */
  --graph-label-font: var(--font-mono);
  --graph-label-size: clamp(0.6rem, 0.66vw, 0.68rem);
  --graph-label-weight: 500;
  --graph-label-tracking: 0.07em;
  --graph-label-leading: 1;

  /* Measurements */
  --max: 1600px;
  --gutter: clamp(1.25rem, 2.8vw, 2.75rem);
  --section-y: clamp(4rem, 6vw, 6rem);
  --radius: 4px;
  --radius-lg: 10px;

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

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

code,
pre {
  font-family: var(--font-mono);
}

em {
  font-style: italic;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

p {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--pulse-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}

/* ---------- ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.055) 0.9px, transparent 1.1px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, transparent 85%);
  opacity: 0.55;
}

.ambient__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(34, 211, 238, 0.12) 0%,
    rgba(59, 130, 246, 0.08) 30%,
    transparent 60%
  );
}

.ambient__aurora {
  position: absolute;
  width: min(1400px, 100vw);
  height: 720px;
  left: 0;
  right: 0;
  top: -320px;
  margin: 0 auto;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, 0.2), transparent 70%) 0 0/70% 100% no-repeat,
    radial-gradient(closest-side, rgba(59, 130, 246, 0.14), transparent 70%) 100% 0/55% 90%
      no-repeat;
  filter: blur(60px);
  opacity: 0.9;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(to bottom, rgba(6, 6, 8, 0.82), rgba(6, 6, 8, 0.55));
  border-bottom: 1px solid var(--hair);
}

.nav__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  flex-shrink: 0;
}

.nav__wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
}

.nav__mark {
  width: 32px;
  height: 32px;
  display: block;
}

.nav__labs {
  font-weight: 500;
}

.nav__divider {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 0 0.1rem;
}

.nav__product {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-dim);
}

.nav__links a {
  position: relative;
  transition: color 180ms var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gradient-pulse);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0;
}

.nav__ext {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-dim);
  transition: color 180ms var(--ease);
}

.nav__ext:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav__links,
  .nav__ext[href*="pypi"],
  .nav__ext-arrow {
    display: none;
  }
  .nav__cta {
    gap: 0.6rem;
  }
}

@media (max-width: 680px) {
  .nav__inner {
    justify-content: space-between;
  }

  .nav__ext {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav__inner {
    padding-block: 12px;
  }

  .nav__mark {
    width: 28px;
    height: 28px;
  }

  .nav__wordmark {
    font-size: 15px;
  }

  .nav__cta .btn {
    padding-inline: 14px;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    border-color 180ms var(--ease), color 180ms var(--ease);
  white-space: nowrap;
}

.btn--primary {
  position: relative;
  color: var(--bg);
  background: var(--gradient-pulse);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 14px 40px -10px rgba(34, 211, 238, 0.35),
    0 8px 26px -10px rgba(236, 72, 153, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 16px 52px -8px rgba(34, 211, 238, 0.55),
    0 12px 36px -10px rgba(236, 72, 153, 0.55);
}

.btn--quiet {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
}

.btn--quiet:hover {
  background: var(--surface-2);
  border-color: rgba(34, 211, 238, 0.35);
}

.btn--large {
  padding: 14px 24px;
  font-size: 13px;
}

.btn__mono {
  font-family: var(--font-mono);
  color: var(--ink-mid);
}

.btn__arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 180ms var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------- utility: tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-mid);
}

.tag--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-pulse);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
  animation: pulse-dot 1.8s ease-in-out 3;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.tag--thin {
  color: var(--ink-faint);
}

.bracket {
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--pulse-cyan);
}

/* ---------- crosshairs (hero corners) ---------- */
.crosshair {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--hair-strong);
}

.crosshair::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-0.5px);
}

.crosshair::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  transform: translateY(-0.5px);
}

.crosshair--tl { top: 26px; left: 26px; }
.crosshair--tr { top: 26px; right: 26px; }
.crosshair--bl { bottom: 26px; left: 26px; }
.crosshair--br { bottom: 26px; right: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: clamp(680px, calc(100svh - 72px), 900px);
  max-width: none;
  margin: 0;
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter) clamp(3rem, 5vw, 4.5rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 8, 1) 0%, rgba(6, 6, 8, 0.98) 30%, rgba(6, 6, 8, 0.9) 38%, rgba(6, 6, 8, 0.55) 42%, rgba(6, 6, 8, 0.12) 47%, transparent 54%),
    linear-gradient(180deg, transparent 76%, rgba(6, 6, 8, 0.08) 100%);
  pointer-events: none;
}

.hero__inner {
  position: static;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  grid-template-areas: "copy";
  align-content: center;
  align-items: center;
  gap: clamp(1.75rem, 3.2vw, 3.75rem);
}

.hero__inner::before {
  content: none;
}

.hero__copy,
.hero__stats {
  position: relative;
  z-index: 3;
}

.hero__copy {
  grid-area: copy;
  max-width: 720px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: clamp(1.4rem, 2vw, 2rem);
  flex-wrap: wrap;
}

.hero__title {
  max-width: 12ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.6rem, 6.1vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin-bottom: clamp(1.3rem, 2vw, 2rem);
}

.hero__title .line {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
  animation: lift 900ms var(--ease) forwards;
}

.hero__title .line:nth-child(1) { animation-delay: 80ms; }
.hero__title .line:nth-child(2) { animation-delay: 200ms; }
.hero__title .line:nth-child(3) { animation-delay: 340ms; }

.hero__title .line--brand {
  color: #fff;
  text-shadow: 0 0 42px rgba(34, 211, 238, 0.12);
}

.hero__title .line--promise {
  margin-top: 0.11em;
  background: linear-gradient(105deg, #72eaff 0%, #f4f5f9 40%, #70a5ff 76%, #b45cf5 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.58em;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__title .line--promise + .line--promise {
  margin-top: 0.03em;
}

@keyframes lift {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__lead {
  max-width: 640px;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  color: var(--ink-dim);
  margin-bottom: 0.95rem;
  line-height: 1.65;
}

.hero__trust {
  max-width: 560px;
  margin-bottom: clamp(1.7rem, 2.6vw, 2.5rem);
  color: rgba(226, 232, 240, 0.72);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero__visual {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(0.75rem, 1.25vw, 1.75rem);
  width: min(62vw, 1160px);
  min-width: 0;
  opacity: 1;
  transform: translateY(-50%);
}

.hero__caption {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* inline terminal ------------------------------------------------ */
.terminal {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 12px 14px 12px 18px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  transition: border-color 180ms var(--ease);
  position: relative;
}

.terminal:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.terminal__prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
}

.terminal__sigil {
  color: var(--pulse-cyan);
}

.terminal__copy {
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-mid);
  border: 1px solid var(--hair-strong);
  border-radius: 3px;
  transition: all 180ms var(--ease);
}

.terminal__copy:hover {
  color: var(--ink);
  border-color: var(--pulse-cyan);
}

.terminal[data-copied="1"] .terminal__copy-label::before {
  content: "Copied ";
}
.terminal[data-copied="1"] .terminal__copy-label {
  color: var(--pulse-cyan);
}

/* hero stats ----------------------------------------------------- */
.hero__stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem 2rem;
  padding-top: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 1px solid var(--hair);
  max-width: 760px;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}

.stat__unit {
  font-size: 0.55em;
  color: var(--ink-mid);
  margin-left: 0.1em;
}

.stat__label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--ink-mid);
}

@media (max-width: 680px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .hero {
    display: block;
    min-height: 0;
    padding-bottom: clamp(36rem, 70vw, 48rem);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 6, 8, 1) 0%, rgba(6, 6, 8, 0.98) 38%, rgba(6, 6, 8, 0.62) 48%, rgba(6, 6, 8, 0.12) 58%, transparent 70%),
      linear-gradient(90deg, rgba(6, 6, 8, 0.42), transparent 68%);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy";
  }

  .hero__copy {
    max-width: 780px;
  }

  .hero__visual {
    top: auto;
    right: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(2rem, 4vw, 3.5rem);
    width: min(96vw, 1000px);
    opacity: 1;
    transform: none;
  }

  .hero__stats {
    max-width: none;
  }
}

@media (min-width: 1181px) and (max-width: 1550px) {
  .hero__copy {
    max-width: 650px;
  }

  .hero__visual {
    right: clamp(0.75rem, 1.5vw, 1.5rem);
    width: min(62vw, 1160px);
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: clamp(2.1rem, 8vw, 3.2rem);
    padding-bottom: clamp(34rem, 145vw, 42rem);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(6, 6, 8, 1) 0%, rgba(6, 6, 8, 0.98) 42%, rgba(6, 6, 8, 0.55) 51%, rgba(6, 6, 8, 0.08) 59%, transparent 68%);
  }

  .hero__visual {
    right: 0.75rem;
    bottom: 1.5rem;
    width: 108vw;
    opacity: 1;
  }

  .hero__inner {
    gap: 1.6rem;
  }

  .hero__title {
    max-width: 11ch;
    font-size: clamp(3.1rem, 15.5vw, 5.1rem);
  }

  .hero__title .line--promise {
    font-size: 0.62em;
  }

  .hero__actions {
    align-items: stretch;
    gap: 0.8rem;
  }

  .hero__actions .btn,
  .terminal--inline {
    width: 100%;
    justify-content: space-between;
  }

  .hero__caption {
    text-align: left;
  }
}

/* ---------- showcase frame ---------- */
.showcase {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  width: 100%;
  max-width: none;
  margin: 0;
}

.showcase__frame {
  position: relative;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 80px 160px -60px rgba(6, 8, 14, 0.9),
    0 40px 120px -40px rgba(34, 211, 238, 0.18),
    0 40px 120px -40px rgba(236, 72, 153, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.showcase__frame--hero {
  opacity: 0;
  transform: translateY(12px) scale(0.995);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  animation:
    hero-frame-in 520ms var(--ease) 180ms forwards,
    hero-screen-frame-cycle 30s var(--ease) infinite;
}

@keyframes hero-screen-frame-cycle {
  0%,
  20% {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  24%,
  96% {
    border-color: var(--hair-strong);
    background: var(--surface);
    box-shadow:
      0 80px 160px -70px rgba(6, 8, 14, 0.95),
      0 34px 100px -40px rgba(34, 211, 238, 0.22),
      0 28px 90px -46px rgba(59, 130, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  100% {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
}

.showcase__frame--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 0%,
      transparent 42%,
      rgba(34, 211, 238, 0.16) 50%,
      rgba(59, 130, 246, 0.11) 54%,
      transparent 64%,
      transparent 100%
    );
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: hero-scan 960ms var(--ease) 820ms forwards;
}

@keyframes hero-frame-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-scan {
  to {
    transform: translateX(120%);
  }
}

.showcase__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 20%,
    transparent 80%,
    rgba(34, 211, 238, 0.04) 100%
  );
  z-index: 2;
}

.showcase__frame--hero::before {
  opacity: 0;
  animation: hero-screen-overlay-cycle 30s var(--ease) infinite;
}

@keyframes hero-screen-overlay-cycle {
  0%,
  20% {
    opacity: 0;
  }
  24%,
  96% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.showcase__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.hero-slider .showcase__bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  opacity: 0;
  transform: translateY(-8px);
  animation: hero-screen-bar-cycle 30s var(--ease) infinite;
}

@keyframes hero-screen-bar-cycle {
  0%,
  20% {
    opacity: 0;
    transform: translateY(-8px);
  }
  24%,
  96% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.hero-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08), transparent 58%),
    var(--bg-alt);
  overflow: hidden;
}

.hero-slider__viewport {
  animation: hero-viewport-cycle 30s var(--ease) infinite;
}

@keyframes hero-viewport-cycle {
  0%,
  20% {
    background: transparent;
  }
  24%,
  96% {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08), transparent 58%),
      var(--bg-alt);
  }
  100% {
    background: transparent;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  box-sizing: border-box;
  margin: 0;
  opacity: 0;
  transform: translateX(12px) scale(0.995);
  pointer-events: none;
  animation-duration: 30s;
  animation-timing-function: var(--ease);
  animation-iteration-count: infinite;
}

.hero-slide--pulse {
  transform: translateX(0) scale(1);
  animation-name: hero-slide-pulse;
}

.hero-slide--cards {
  animation-name: hero-slide-cards;
}

.hero-slide--analytics {
  animation-name: hero-slide-analytics;
}

.hero-slide--architecture {
  animation-name: hero-slide-architecture;
}

.hero-slide--graph {
  animation-name: hero-slide-graph;
}

.hero-slide--cards,
.hero-slide--analytics,
.hero-slide--architecture,
.hero-slide--graph {
  padding-top: 44px;
}

@keyframes hero-slide-pulse {
  0%,
  20% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  24%,
  100% {
    opacity: 0;
    transform: translateX(-12px) scale(0.995);
  }
}

@keyframes hero-slide-cards {
  0%,
  22% {
    opacity: 0;
    transform: translateX(12px) scale(0.995);
  }
  26%,
  40% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  44%,
  100% {
    opacity: 0;
    transform: translateX(-12px) scale(0.995);
  }
}

@keyframes hero-slide-analytics {
  0%,
  42% {
    opacity: 0;
    transform: translateX(12px) scale(0.995);
  }
  46%,
  58% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  62%,
  100% {
    opacity: 0;
    transform: translateX(-12px) scale(0.995);
  }
}

@keyframes hero-slide-architecture {
  0%,
  60% {
    opacity: 0;
    transform: translateX(12px) scale(0.995);
  }
  64%,
  76% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: translateX(-12px) scale(0.995);
  }
}

@keyframes hero-slide-graph {
  0%,
  78% {
    opacity: 0;
    transform: translateX(12px) scale(0.995);
  }
  82%,
  95% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-12px) scale(0.995);
  }
}

.hero-slide picture,
.hero-slide .showcase__img {
  width: 100%;
  height: 100%;
}

.hero-slide .showcase__img {
  object-fit: contain;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--hair-strong);
}

.showcase__bar .dot:nth-child(1) { background: #ff5f56; border-color: rgba(255, 95, 86, 0.6); }
.showcase__bar .dot:nth-child(2) { background: #ffbd2e; border-color: rgba(255, 189, 46, 0.6); }
.showcase__bar .dot:nth-child(3) { background: #27c93f; border-color: rgba(39, 201, 63, 0.6); }

.showcase__path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  margin-left: 1rem;
}

.showcase__img {
  width: 100%;
  display: block;
}

.showcase__frame--hero .showcase__img {
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}

.showcase__frame--hero:hover .showcase__img {
  transform: scale(1.008);
  filter: saturate(1.06);
}

.showcase__caption {
  margin-top: 1.4rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mid);
  letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .hero-slider .showcase__path {
    display: none;
  }
}
/* ---------- hero: live SDD / SDLC knowledge graph ---------- */
.hero-system {
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-stage-rgb: 34, 211, 238;
  position: relative;
  min-width: 0;
  overflow: visible;
  isolation: isolate;
  contain: layout style;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  animation: hero-system-enter 820ms var(--ease) 180ms forwards;
}

.hero-system[data-active="1"] { --hero-stage-rgb: 74, 222, 241; }
.hero-system[data-active="2"] { --hero-stage-rgb: 59, 130, 246; }
.hero-system[data-active="3"] { --hero-stage-rgb: 106, 119, 255; }
.hero-system[data-active="4"] { --hero-stage-rgb: 180, 92, 245; }

@keyframes hero-system-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-system__mark {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 1%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(46%, 420px);
  margin: 0;
  color: rgba(122, 224, 238, 0.72);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  pointer-events: none;
  text-transform: uppercase;
}

.hero-system__mark i {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.48), rgba(59, 130, 246, 0.12), transparent);
}

.hero-system__mark span:last-child {
  color: rgba(121, 130, 150, 0.62);
}

.hero-system__bar {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}

.hero-system__bar .dot:nth-child(1) {
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(34, 211, 238, 0.72);
}

.hero-system__bar .dot:nth-child(2) {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.72);
}

.hero-system__bar .dot:nth-child(3) {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.72);
}

.hero-system__path {
  min-width: 0;
  margin-left: 0.45rem;
  overflow: hidden;
  color: rgba(161, 166, 180, 0.72);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.075em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-system__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  color: rgba(116, 233, 246, 0.88);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-system__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pulse-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  animation: hero-system-status 2.4s ease-in-out infinite;
}

@keyframes hero-system-status {
  50% { opacity: 0.32; }
}

.hero-system__viewport {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: visible;
  background:
    radial-gradient(circle at 84% 48%, rgba(168, 85, 247, 0.075), transparent 28%),
    radial-gradient(circle at 18% 55%, rgba(34, 211, 238, 0.065), transparent 31%);
  touch-action: pan-y;
}

.hero-system__viewport::before,
.hero-system__viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-system__viewport::before {
  z-index: 0;
  inset: -20% -10% -6%;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0%, transparent 72%);
  opacity: 0.58;
  transform: perspective(760px) rotateX(59deg) scale(1.12) translateY(7%);
  transform-origin: 50% 78%;
}

.hero-system__viewport::after {
  display: none;
}

@media (min-width: 1181px) and (max-width: 1700px) {
  .hero-system__viewport::after {
    z-index: 2;
    inset: -12% 0 -8% -8%;
    display: block;
    background: linear-gradient(90deg, rgba(6, 6, 8, 0.92) 0%, rgba(6, 6, 8, 0.82) 8%, rgba(6, 6, 8, 0.34) 16%, rgba(6, 6, 8, 0.08) 22%, transparent 30%);
  }
}

.hero-system__canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-system__core {
  position: absolute;
  z-index: 3;
  top: 48%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(84px, 11vw, 132px);
  aspect-ratio: 1;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 18, 30, 0.62), rgba(6, 8, 16, 0.14) 64%, transparent 70%);
  color: rgba(226, 252, 255, 0.86);
  font-family: var(--font-mono);
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%) translate3d(var(--hero-shift-x), var(--hero-shift-y), 0);
  transition: transform 160ms ease-out;
}

.hero-system__core::before,
.hero-system__core::after {
  content: "";
  position: absolute;
  border: 1px solid transparent;
  border-radius: 50%;
  pointer-events: none;
}

.hero-system__core::before {
  inset: -23%;
  border-top-color: rgba(34, 211, 238, 0.38);
  border-right-color: rgba(59, 130, 246, 0.16);
  animation: hero-core-orbit 15s linear infinite;
}

.hero-system__core::after {
  inset: -43%;
  border-bottom-color: rgba(168, 85, 247, 0.28);
  border-left-color: rgba(34, 211, 238, 0.12);
  animation: hero-core-orbit 21s linear infinite reverse;
}

@keyframes hero-core-orbit {
  to { transform: rotate(360deg); }
}

.hero-system__core span,
.hero-system__core small {
  font-size: clamp(6px, 0.55vw, 8px);
  letter-spacing: 0.13em;
}

.hero-system__core span {
  align-self: end;
  color: rgba(161, 166, 180, 0.72);
}

.hero-system__core strong {
  color: #eefcff;
  font-size: clamp(12px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.hero-system__core small {
  align-self: start;
  color: rgba(34, 211, 238, 0.66);
}

.hero-system__nodes {
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.hero-system__node {
  position: absolute;
  transform: translate(-50%, -50%);
}

.hero-system__node.is-active {
  z-index: 2;
}

.hero-system__node--idea { top: 57%; left: 13%; }
.hero-system__node--sdd { top: 25%; left: 31%; }
.hero-system__node--sdlc { top: 70%; left: 51%; }
.hero-system__node--evidence { top: 24%; left: 70%; }
.hero-system__node--graph { top: 57%; left: 86%; }

.hero-system__node button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  pointer-events: auto;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.hero-system__node--evidence button,
.hero-system__node--graph button {
  flex-direction: row-reverse;
  text-align: right;
}

.hero-system__node button:hover,
.hero-system__node button:focus-visible,
.hero-system__node.is-active button {
  border-color: transparent;
  background: transparent;
  transform: translateY(-2px);
}

.hero-system__node button:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.74);
  outline-offset: 2px;
}

.hero-system__beacon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(135, 218, 242, 0.36);
  border-radius: 50%;
  background: rgba(4, 10, 18, 0.86);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.025);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.hero-system__beacon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: inherit;
  opacity: 0;
}

.hero-system__beacon i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(170, 228, 241, 0.72);
}

.hero-system__node.is-active .hero-system__beacon {
  border-color: rgba(91, 234, 249, 0.88);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.42), 0 0 0 5px rgba(34, 211, 238, 0.05);
  transform: scale(1.08);
}

.hero-system__node.is-active .hero-system__beacon::after {
  animation: hero-beacon-ring 2.6s ease-out infinite;
}

.hero-system__node.is-active .hero-system__beacon i {
  background: #dffcff;
  box-shadow: 0 0 9px rgba(34, 211, 238, 0.9);
}

.hero-system__node--sdlc.is-active .hero-system__beacon,
.hero-system__node--evidence.is-active .hero-system__beacon {
  border-color: rgba(112, 165, 255, 0.92);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.44), 0 0 0 5px rgba(59, 130, 246, 0.05);
}

.hero-system__node--graph.is-active .hero-system__beacon {
  border-color: rgba(196, 137, 255, 0.94);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.48), 0 0 0 5px rgba(168, 85, 247, 0.06);
}

.hero-system__node--graph.is-active .hero-system__beacon i {
  background: #ead8ff;
  box-shadow: 0 0 10px rgba(180, 92, 245, 0.92);
}

@keyframes hero-beacon-ring {
  0% { opacity: 0.7; transform: scale(0.72); }
  70%, 100% { opacity: 0; transform: scale(1.65); }
}

.hero-system__node-copy {
  display: grid;
  min-width: 0;
  font-family: var(--font-mono);
  line-height: 1.15;
}

.hero-system__node-copy small {
  color: rgba(121, 130, 150, 0.84);
  font-size: clamp(6px, 0.55vw, 8px);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-system__node-copy strong {
  max-width: 16ch;
  color: rgba(210, 225, 236, 0.78);
  font-size: clamp(8px, 0.72vw, 10px);
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 180ms var(--ease), text-shadow 180ms var(--ease);
}

.hero-system__node.is-active .hero-system__node-copy strong {
  color: #eefcff;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.28);
}

.hero-system__node.is-active .hero-system__node-copy small {
  color: rgba(var(--hero-stage-rgb), 0.94);
  text-shadow: 0 0 12px rgba(var(--hero-stage-rgb), 0.32);
}

.hero-system__readout {
  position: absolute;
  z-index: 5;
  left: 3.2%;
  bottom: 3.5%;
  width: min(52%, 420px);
  min-block-size: 7.5rem;
  padding: 0.58rem 3.2rem 0.64rem 1rem;
  border: 0;
  border-left: 2px solid rgba(var(--hero-stage-rgb), 0.94);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(var(--hero-stage-rgb), 0.16), transparent 58%),
    linear-gradient(90deg, rgba(4, 8, 15, 0.92), rgba(4, 8, 15, 0.68) 68%, transparent 100%);
  box-shadow: -18px 0 42px rgba(var(--hero-stage-rgb), 0.11);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
  transition: border-color 280ms var(--ease), background 280ms var(--ease), box-shadow 280ms var(--ease);
}

.hero-system__readout-kicker,
.hero-system__readout-count {
  color: rgba(var(--hero-stage-rgb), 0.96);
  font-family: var(--font-mono);
  font-size: clamp(8px, 0.66vw, 9px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-system__readout > strong {
  display: block;
  margin-top: 0.3rem;
  color: #f5fbff;
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.25;
}

.hero-system__readout p {
  max-width: 42ch;
  margin-top: 0.34rem;
  color: rgba(224, 232, 242, 0.94);
  font-size: clamp(0.75rem, 0.92vw, 0.86rem);
  line-height: 1.48;
}

.hero-system__readout-count {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  color: rgba(218, 228, 241, 0.72);
}

.hero-system__equation {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.8rem);
  width: min(44%, 420px);
  padding: 0.5rem 0 0;
  border-top: 0;
  background: transparent;
  font-family: var(--font-mono);
  pointer-events: none;
}

.hero-system__equation span {
  display: grid;
  min-width: 0;
}

.hero-system__equation b {
  color: rgba(232, 248, 255, 0.92);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.hero-system__equation span:nth-of-type(2) b { color: #77b9ff; }
.hero-system__equation span:nth-of-type(3) b { color: #c489ff; }

.hero-system__equation small {
  overflow: hidden;
  color: rgba(121, 130, 150, 0.76);
  font-size: clamp(6px, 0.52vw, 8px);
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-system__equation > i {
  color: rgba(34, 211, 238, 0.5);
  font-size: 12px;
  font-style: normal;
}

.hero-system.is-paused .hero-system__status i,
.hero-system.is-paused .hero-system__core::before,
.hero-system.is-paused .hero-system__core::after,
.hero-system.is-paused .hero-system__beacon::after {
  animation-play-state: paused;
}

.hero-system.is-static {
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-system.is-static .hero-system__status i,
.hero-system.is-static .hero-system__core::before,
.hero-system.is-static .hero-system__core::after,
.hero-system.is-static .hero-system__beacon::after {
  animation: none;
}

@media (max-width: 680px) {
  .hero-system__bar {
    min-height: 38px;
    padding-inline: 0.72rem;
  }

  .hero-system__mark {
    margin-bottom: 0;
    font-size: 7px;
  }

  .hero-system__path {
    font-size: 7.5px;
  }

  .hero-system__viewport {
    min-height: clamp(420px, 120vw, 500px);
    aspect-ratio: auto;
  }

  .hero-system__core {
    top: 39%;
    width: 94px;
  }

  .hero-system__node--idea { top: 16%; left: 17%; }
  .hero-system__node--sdd { top: 23%; left: 72%; }
  .hero-system__node--sdlc { top: 40%; left: 25%; }
  .hero-system__node--evidence { top: 49%; left: 72%; }
  .hero-system__node--graph { top: 65%; left: 40%; }

  .hero-system__node--evidence button,
  .hero-system__node--graph button {
    flex-direction: row;
    text-align: left;
  }

  .hero-system__node-copy small {
    font-size: 6px;
  }

  .hero-system__node-copy strong {
    font-size: 8px;
  }

  .hero-system__readout {
    left: calc(50% + 4vw + 0.75rem);
    right: auto;
    bottom: 2.5%;
    width: min(calc(100vw - 2rem), 420px);
    min-block-size: 7.75rem;
    padding-block: 0.65rem;
    transform: translateX(-50%);
  }

  .hero-system__readout p {
    font-size: 0.8rem;
  }

  .hero-system__equation {
    position: relative;
    right: auto;
    bottom: auto;
    gap: 0.28rem;
    width: 100%;
    padding-inline: 0.65rem;
  }

  .hero-system__equation b {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .hero-system__readout {
    min-block-size: 8.5rem;
  }
}

@media (max-width: 520px) {
  .hero-system__path {
    display: none;
  }

  .hero-system__status {
    font-size: 7.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-system {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-system__status i,
  .hero-system__core::before,
  .hero-system__core::after,
  .hero-system__beacon::after {
    animation: none !important;
  }

}

/* ---------- section scaffolding ---------- */
.section {
  padding: var(--section-y) var(--gutter);
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
}

/* (the repeating EKG divider above each section was removed — the
   scroll-drawn spine and the resuscitation spike carry the motif now) */

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: end;
  max-width: 100%;
}

@media (max-width: 900px) {
  .section__head--split {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hair-strong);
  margin-bottom: 1.6rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--ink);
}

.section__title em {
  font-style: normal;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-line {
  display: block;
}

.title-line--keep {
  white-space: nowrap;
}

.section__lede {
  margin-top: 1.6rem;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  max-width: 58ch;
}

.section__lede strong {
  color: var(--ink);
  font-weight: 600;
}

.section__lede--right {
  margin-top: 0;
  max-width: 44ch;
  justify-self: end;
}

/* ---------- pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.section--adlc .pipeline {
  grid-template-columns: repeat(4, 1fr);
}

.pipeline__step {
  background: var(--bg);
  padding: 2rem;
  position: relative;
  transition: background 180ms var(--ease);
}

.pipeline__step:hover {
  background: var(--surface);
}

.pipeline__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-pulse);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
  transition-delay: calc(var(--step-i) * 80ms);
}

.pipeline__step:hover::before,
.pipeline:hover .pipeline__step::before {
  transform: scaleX(1);
}

.card-meta,
.highlight__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-meta {
  margin-bottom: 1.2rem;
}

.pipeline__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}

.card-meta .pipeline__num {
  margin-bottom: 0;
}

.context-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--pulse-blue);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--gradient-pulse) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 48px -34px rgba(34, 211, 238, 0.75);
}

.context-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--gradient-pulse-soft);
  opacity: 0.72;
}

.context-icon svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  overflow: visible;
}

.context-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pipeline__step:hover .context-icon,
.highlight:hover .context-icon {
  color: var(--pulse-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 56px -30px rgba(59, 130, 246, 0.8);
}

.pipeline__body h3 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.pipeline__body p {
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .section--adlc .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pipeline {
    grid-template-columns: 1fr;
  }

  .section--adlc .pipeline {
    grid-template-columns: 1fr;
  }
}

/* ---------- features grid ---------- */
.grid--features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature__icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.feature {
  position: relative;
  background: var(--bg);
  padding: 2rem;
  transition: background 180ms var(--ease);
}

.feature:hover {
  background: var(--surface);
}

.feature--highlight {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(236, 72, 153, 0.09), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(34, 211, 238, 0.09), transparent 60%),
    var(--bg);
}

.feature--highlight:hover {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(236, 72, 153, 0.14), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--surface);
}

.feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0;
}

.feature__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--gradient-pulse) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 48px -32px rgba(34, 211, 238, 0.7);
}

.feature__icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--gradient-pulse-soft);
  opacity: 0.72;
}

.feature__icon svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  overflow: visible;
}

.feature:hover .feature__icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 56px -30px rgba(59, 130, 246, 0.8);
}

.feature h3 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.feature p {
  font-size: 0.935rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

.feature code {
  font-size: 0.88em;
  color: var(--pulse-cyan);
  background: rgba(34, 211, 238, 0.08);
  padding: 1px 5px;
  border-radius: 2px;
}

@media (max-width: 980px) {
  .grid--features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--features {
    grid-template-columns: 1fr;
  }
}

/* ---------- multi-agent ---------- */
.section--agents {
  position: relative;
}

.agents {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 1100px) {
  .agents {
    grid-template-columns: 1fr;
  }
}

.agents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 780px) {
  .agents__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .agents__grid {
    grid-template-columns: 1fr;
  }
}

.agent {
  position: relative;
  background: var(--bg);
  padding: 2rem;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.agent:hover {
  background: var(--surface);
}

.agent--centerpiece {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.11), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.1), transparent 55%),
    var(--bg);
}

.agent--centerpiece::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-pulse);
  opacity: 0.8;
}

.agent--custom {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 8px,
      rgba(255, 255, 255, 0.018) 8px,
      rgba(255, 255, 255, 0.018) 9px
    ),
    var(--bg);
}

.agent--custom .agent__name {
  color: var(--ink-dim);
}

.agent__perms--single {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.agent__head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.agent__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.agent__name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  flex-grow: 1;
}

.agent__tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 3px 7px;
  border: 1px solid var(--hair-strong);
  border-radius: 2px;
  background: var(--surface-2);
}

.agent__tag--accent {
  color: var(--pulse-cyan);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}

.agent__desc {
  font-size: 0.895rem;
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 1.3rem;
}

.agent__perms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--hair);
}

.agent__perms div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent__perms dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.agent__perms dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.dd-y { color: var(--pulse-cyan); }
.dd-n { color: var(--ink-mid); }
.dd-p { color: var(--pulse-magenta); }

/* agents proof (screenshot) */
.agents__proof {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 1100px) {
  .agents__proof {
    position: static;
  }
}

.agents__frame {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.85),
    0 20px 60px -20px rgba(34, 211, 238, 0.15),
    0 20px 60px -20px rgba(236, 72, 153, 0.12);
}

.agents__frame img {
  width: 100%;
  border-radius: 4px;
}

.agents__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-mid);
  padding: 0 0.4rem;
}

/* ---------- tabs showcase ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.6rem;
}

.tab-frame {
  display: grid;
  grid-template-rows: minmax(7.25rem, auto) auto;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.tab-frame__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 7.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hair);
}

.tab-frame__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.tab-frame h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.tab-frame p {
  font-size: 0.87rem;
  color: var(--ink-mid);
  margin-top: 0.3rem;
}

.tab-frame img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--hair-strong);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.tab-frame:hover img {
  transform: translateY(-3px);
  box-shadow:
    0 24px 70px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(34, 211, 238, 0.35);
}

@media (max-width: 980px) {
  .tabs {
    grid-template-columns: 1fr;
  }

  .tab-frame {
    grid-template-rows: auto auto;
  }

  .tab-frame__meta {
    min-height: 0;
  }
}

/* ---------- analytics section ---------- */
.section--analytics {
  position: relative;
}

.analytics__frame {
  position: relative;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 80px 160px -60px rgba(6, 8, 14, 0.9),
    0 40px 120px -40px rgba(168, 85, 247, 0.18),
    0 40px 120px -40px rgba(34, 211, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.analytics__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 22%,
    transparent 78%,
    rgba(168, 85, 247, 0.06) 100%
  );
}

.analytics__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.analytics__bar .dot:nth-child(1) { background: #ff5f56; border-color: rgba(255, 95, 86, 0.6); }
.analytics__bar .dot:nth-child(2) { background: #ffbd2e; border-color: rgba(255, 189, 46, 0.6); }
.analytics__bar .dot:nth-child(3) { background: #27c93f; border-color: rgba(39, 201, 63, 0.6); }

.analytics__path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  margin-left: 1rem;
}

.analytics__frame img {
  display: block;
  width: 100%;
}

.analytics__screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.analytics__screen {
  position: relative;
  margin: 0;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 40px 100px -60px rgba(6, 8, 14, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.analytics__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0%,
    transparent 28%,
    transparent 78%,
    rgba(34, 211, 238, 0.045) 100%
  );
}

.analytics__screen img {
  display: block;
  width: 100%;
}

.analytics__screen figcaption {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-mid);
  font-size: 0.88rem;
  line-height: 1.45;
}

.analytics__screen figcaption span {
  color: var(--ink);
  font-weight: 500;
}

.analytics__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.highlight {
  position: relative;
  background: var(--bg);
  padding: 2rem;
  transition: background 180ms var(--ease);
}

.highlight:hover {
  background: var(--surface);
}

.highlight__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.highlight__top {
  margin-bottom: 1.25rem;
}

.highlight__top .highlight__label {
  margin-bottom: 0;
}

.highlight h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.highlight p {
  font-size: 0.895rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .analytics__screens,
  .analytics__highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .analytics__screens,
  .analytics__highlights {
    grid-template-columns: 1fr;
  }
}

/* ---------- knowledge graph section ---------- */
.section--knowledge {
  position: relative;
}

.knowledge__frame {
  position: relative;
  margin: 0 0 clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 80px 170px -70px rgba(6, 8, 14, 0.92),
    0 44px 120px -54px rgba(34, 211, 238, 0.18),
    0 36px 110px -52px rgba(59, 130, 246, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.knowledge__frame::before,
.knowledge__frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.knowledge__frame::before {
  inset: 52px 0 0;
  background:
    radial-gradient(circle at 54% 45%, rgba(34, 211, 238, 0.18), transparent 22%),
    radial-gradient(circle at 64% 30%, rgba(59, 130, 246, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 30%, rgba(34, 211, 238, 0.035));
  mix-blend-mode: screen;
  opacity: 0.66;
  animation: knowledge-graph-glow 7s ease-in-out infinite alternate;
}

.knowledge__frame::after {
  left: -20%;
  right: -20%;
  top: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.65), transparent);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.35);
  transform: translateY(0);
  opacity: 0.45;
  animation: knowledge-scan 6.5s linear infinite;
}

.knowledge__bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.035), transparent);
}

.knowledge__bar .dot:nth-child(1) { background: #ff5f56; border-color: rgba(255, 95, 86, 0.6); }
.knowledge__bar .dot:nth-child(2) { background: #ffbd2e; border-color: rgba(255, 189, 46, 0.6); }
.knowledge__bar .dot:nth-child(3) { background: #27c93f; border-color: rgba(39, 201, 63, 0.6); }

.knowledge__path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  margin-left: 1rem;
}

.knowledge__frame picture {
  display: block;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.knowledge__frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.012);
  transform-origin: 55% 45%;
  animation: knowledge-image-drift 13s ease-in-out infinite alternate;
}

.knowledge__caption {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0.35rem;
  padding: 1rem clamp(1rem, 2vw, 1.35rem) 1.15rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.knowledge__caption span {
  color: var(--ink);
  font-weight: 500;
}

.knowledge__flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--hair);
  overflow: hidden;
}

.knowledge__node {
  position: relative;
  padding: clamp(1.35rem, 2vw, 1.85rem);
  background: var(--bg);
  transition:
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.knowledge__node::before {
  content: "";
  position: absolute;
  left: clamp(1.35rem, 2vw, 1.85rem);
  top: 0;
  width: 42px;
  height: 2px;
  background: var(--gradient-pulse);
  opacity: 0.85;
}

.knowledge__node:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.knowledge__node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.knowledge__node:hover .context-icon {
  color: var(--pulse-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 56px -30px rgba(59, 130, 246, 0.8);
}

.knowledge__node-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.15rem;
}

.knowledge__node-top .knowledge__node-label {
  margin-bottom: 0;
}

.knowledge__node h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.knowledge__node p {
  font-size: 0.895rem;
  color: var(--ink-dim);
  line-height: 1.62;
}

@keyframes knowledge-graph-glow {
  from { opacity: 0.5; transform: scale(0.99); }
  to { opacity: 0.82; transform: scale(1.02); }
}

@keyframes knowledge-scan {
  from { transform: translateY(0); }
  to { transform: translateY(62vw); }
}

@keyframes knowledge-image-drift {
  from { transform: scale(1.012) translate3d(-0.2%, -0.15%, 0); }
  to { transform: scale(1.026) translate3d(0.25%, 0.18%, 0); }
}

@media (max-width: 980px) {
  .knowledge__flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .knowledge__path {
    margin-left: 0.35rem;
    font-size: 10.5px;
  }

  .knowledge__flow {
    grid-template-columns: 1fr;
  }

  .knowledge__frame img {
    min-height: 260px;
    object-fit: cover;
    object-position: 55% 50%;
  }

  .knowledge__node:hover {
    transform: none;
  }
}

/* ---------- mcp section ---------- */
.mcp {
  display: grid;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  align-items: start;
}

@media (max-width: 900px) {
  .mcp {
    grid-template-columns: 1fr;
  }
}

.mcp__code {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mcp__code-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.mcp__code-bar .dot:nth-child(1) { background: #ff5f56; border-color: rgba(255, 95, 86, 0.6); }
.mcp__code-bar .dot:nth-child(2) { background: #ffbd2e; border-color: rgba(255, 189, 46, 0.6); }
.mcp__code-bar .dot:nth-child(3) { background: #27c93f; border-color: rgba(39, 201, 63, 0.6); }

.mcp__code-title {
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
}

.mcp__code-body {
  margin: 0;
  padding: 1.5rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  overflow-x: auto;
}

@media (max-width: 560px) {
  .mcp__code-body {
    padding: 1rem;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .mcp__code-body code,
  .mcp__code-body span {
    overflow-wrap: anywhere;
  }
}

.tk-p { color: var(--ink-mid); }
.tk-k { color: var(--pulse-cyan); }
.tk-s { color: var(--pulse-magenta); }

/* ---------- install ---------- */
.install {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hair);
  margin-bottom: 2.25rem;
}

.install__step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--bg-alt);
  align-items: center;
  min-width: 0;
  transition: background 180ms var(--ease);
}

.install__step:hover {
  background:
    radial-gradient(ellipse at 0 0, rgba(34, 211, 238, 0.075), transparent 70%),
    var(--surface);
}

.install__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

.install__body {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

.install__step h3 {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

.install__step .terminal {
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  padding: 10px 12px 10px 14px;
}

.install__step .terminal__prompt {
  min-width: 0;
}

.install__step code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.install__hint {
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 56ch;
}

.install__note {
  max-width: 46ch;
  margin-top: 1rem;
  color: rgba(226, 232, 240, 0.72);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .install {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .install__step {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem;
    align-items: start;
  }

  .install__num {
    width: max-content;
    height: auto;
    justify-content: flex-start;
    padding: 0.35rem 0.55rem;
  }
}

.install__license {
  text-align: center;
  color: var(--okto-ink-50, rgba(255 255 255 / .5));
  font-size: var(--step--1, .875rem);
  letter-spacing: .04em;
  margin-block: 2rem 0;
}
.install__license a {
  color: var(--okto-ink-70, rgba(255 255 255 / .7));
  text-decoration: underline;
  text-underline-offset: .2em;
}
.install__license a:hover {
  color: var(--okto-ink, #f0f0f0);
}

.install__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- problem narrative ---------- */
.section--problem {
  padding-top: clamp(3rem, 5vw, 5rem);
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.risk-card {
  position: relative;
  min-height: 230px;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--surface);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.risk-card::before {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.58), rgba(239, 68, 68, 0.38), transparent);
  opacity: 0.8;
}

.risk-card:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 113, 113, 0.28);
  background:
    linear-gradient(180deg, rgba(239, 68, 68, 0.055), transparent 48%),
    var(--surface);
}

.risk-card__label {
  display: inline-flex;
  margin-bottom: 4rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(248, 113, 113, 0.9);
}

.risk-card__top {
  display: flex;
  align-items: center;
  margin-bottom: clamp(2.3rem, 4vw, 4rem);
}

.risk-card__icon {
  width: 42px;
  height: 42px;
  color: rgba(248, 113, 113, 0.96);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, rgba(248, 113, 113, 0.86), rgba(239, 68, 68, 0.3)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 48px -34px rgba(248, 113, 113, 0.78);
}

.risk-card__icon::after {
  background:
    radial-gradient(circle at 40% 20%, rgba(248, 113, 113, 0.18), transparent 58%),
    rgba(239, 68, 68, 0.055);
  opacity: 1;
}

.risk-card:hover .risk-card__icon {
  color: rgba(254, 202, 202, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 62px -34px rgba(248, 113, 113, 0.86);
}

.risk-card h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--ink);
}

.risk-card p {
  color: var(--ink-dim);
  font-size: 0.94rem;
  line-height: 1.58;
}

.problem__bottom {
  max-width: 860px;
  margin: clamp(1.4rem, 3vw, 2.4rem) auto 0;
}

.loss-console {
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(239, 68, 68, 0.08), transparent 48%),
    var(--bg-alt);
  overflow: hidden;
}

.loss-console__chrome {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.025);
}

.loss-console__chrome span {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.loss-console__chrome span:first-child {
  background: rgba(239, 68, 68, 0.72);
}

.loss-console__chrome span:nth-child(2) {
  background: rgba(245, 158, 11, 0.72);
}

.loss-console__chrome span:nth-child(3) {
  background: rgba(34, 211, 238, 0.72);
}

.loss-console__chrome strong {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.loss-console pre {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  color: var(--ink-dim);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  line-height: 1.9;
  white-space: pre-wrap;
}

.loss-console__line {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) auto minmax(6rem, 0.54fr);
  gap: 0.8rem;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  animation: console-line-in 560ms var(--ease) forwards;
  animation-delay: calc(var(--line-i) * 95ms);
}

.loss-console__key,
.loss-console__value {
  display: inline-block;
  min-height: 1.9em;
  padding: 0.05rem 0;
}

.loss-console__key {
  color: rgba(226, 232, 240, 0.76);
}

.loss-console__op {
  color: rgba(34, 211, 238, 0.72);
}

.loss-console__value {
  color: rgba(248, 113, 113, 0.9);
}

[data-scramble].is-composing {
  color: var(--pulse-cyan);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.36);
}

.problem__mid {
  max-width: 900px;
  margin: clamp(2.2rem, 4vw, 3.6rem) auto 0;
  text-align: center;
  color: rgba(226, 232, 240, 0.88);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.7vw, 3.8rem);
  font-weight: 600;
  line-height: 1.06;
}

.problem__mid span {
  display: block;
  margin-top: 0.16em;
  color: rgba(248, 113, 113, 0.92);
}

.problem__close {
  max-width: 960px;
  margin: clamp(2.4rem, 4.4vw, 4.2rem) auto 0;
  padding: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 5.35rem);
  font-weight: 600;
  line-height: 1.04;
  color: var(--ink);
}

.problem__close span {
  display: block;
  margin-top: 0.2em;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes console-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- control plane ---------- */
.system-map {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: stretch;
}

.system-map__copy {
  display: grid;
  gap: 1rem;
}

.system-map__copy article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--surface);
}

.system-map__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.system-map__card--not {
  border-color: rgba(248, 113, 113, 0.24) !important;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(239, 68, 68, 0.11), transparent 56%),
    var(--surface) !important;
}

.system-map__card--not::before {
  right: auto;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.26), transparent 42%);
  width: 3px;
}

.system-map__answer,
.system-map__card--is {
  border-color: rgba(34, 211, 238, 0.28) !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.17), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(59, 130, 246, 0.1), transparent 48%),
    var(--surface) !important;
}

.system-map__card--is::before {
  right: auto;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.34), transparent 44%);
  width: 3px;
}

.system-map__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-map__card--not .system-map__tag {
  color: rgba(248, 113, 113, 0.95);
}

.system-map__card--is .system-map__tag {
  color: var(--pulse-cyan);
}

.system-map__copy li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-dim);
}

.system-map__copy li + li {
  margin-top: 0.65rem;
}

.system-map__copy li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: rgba(248, 113, 113, 0.92);
  font-family: var(--font-mono);
}

.system-map__copy p {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.system-map__evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.system-map__evidence span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.72rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient-pulse) border-box;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.control-plane {
  position: relative;
  min-height: clamp(410px, 35vw, 560px);
  margin: 0;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--hair-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-faint) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.1), transparent 62%),
    var(--bg-alt);
  background-size: 28px 28px, 28px 28px, auto, auto;
  overflow: hidden;
}

.control-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.12), transparent);
  transform: translateX(-120%);
  animation: control-scan 7s var(--ease) infinite;
}

.control-plane__rail {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), rgba(59, 130, 246, 0.35), transparent);
}

.control-plane__rail--top {
  top: 35%;
}

.control-plane__rail--bottom {
  top: 62%;
}

.control-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius);
  background: rgba(14, 15, 20, 0.88);
  box-shadow:
    0 18px 50px -24px rgba(34, 211, 238, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  animation: control-node-float 5.5s ease-in-out infinite alternate;
}

.control-node--idea { left: 7%; top: 26%; animation-delay: 0ms; }
.control-node--spec { left: 34%; top: 26%; animation-delay: 220ms; }
.control-node--agent { left: 66%; top: 26%; animation-delay: 440ms; }
.control-node--code { left: 18%; top: 54%; animation-delay: 660ms; }
.control-node--test { left: 48%; top: 54%; animation-delay: 880ms; }
.control-node--kg { left: 70%; top: 54%; animation-delay: 1100ms; }

.control-plane figcaption {
  position: absolute;
  left: clamp(1rem, 2vw, 1.4rem);
  right: clamp(1rem, 2vw, 1.4rem);
  bottom: clamp(1rem, 2vw, 1.4rem);
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
}

.control-plane.solution-map {
  min-height: clamp(600px, 48vw, 740px);
}

.control-plane.solution-map::before {
  opacity: 0.58;
}

.solution-map__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.86;
}

.solution-map__links path {
  fill: none;
  stroke: url("#pulse-line");
  stroke-width: 0.22;
  stroke-linecap: round;
  stroke-dasharray: 1.4 1.1;
  animation: solution-link-flow 12s linear infinite;
}

.solution-map__cluster {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  gap: 0.55rem;
  width: min(20%, 214px);
  padding: 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius);
  background: rgba(9, 17, 31, 0.78);
  box-shadow: 0 28px 80px -58px rgba(34, 211, 238, 0.8);
  backdrop-filter: blur(14px);
}

.solution-map__cluster span:not(.solution-map__label) {
  display: block;
  padding: 0.54rem 0.62rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-dim);
  font-size: 0.82rem;
  line-height: 1.25;
}

.solution-map__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pulse-cyan);
}

.solution-map__cluster--intent {
  left: 6.5%;
  top: 10%;
}

.solution-map__cluster--agents {
  right: 6.5%;
  top: 10%;
}

.solution-map__cluster--evidence {
  right: 6.5%;
  bottom: 18%;
}

.solution-map__hub {
  --solution-hub-size: clamp(282px, 21.5vw, 320px);
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  place-items: center;
  width: var(--solution-hub-size);
  height: var(--solution-hub-size);
  min-width: 0;
  aspect-ratio: auto;
  padding: 1.25rem;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(34, 211, 238, 0.2), transparent 46%),
    rgba(8, 15, 28, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 32px 120px -56px rgba(34, 211, 238, 0.95);
  transform: translate(-50%, -50%);
}

.solution-map__hub::before,
.solution-map__hub::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: inherit;
  animation: solution-hub-pulse 4.5s ease-in-out infinite;
}

.solution-map__hub::after {
  inset: -28px;
  animation-delay: 1.2s;
}

.solution-map__mark {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--pulse-cyan);
  text-transform: uppercase;
}

.solution-map__hub strong {
  margin-top: 0.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
  line-height: 1;
  text-align: center;
}

.solution-map__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  width: 70%;
  margin: 0.72rem 0 0.5rem;
}

.solution-map__board span,
.solution-map__board i {
  min-height: 0.52rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.34);
}

.solution-map__board i {
  grid-column: span 1;
  min-height: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
}

.solution-map__surfaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}

.solution-map__surfaces span {
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: var(--ink-mid);
  font-size: 0.64rem;
}

.solution-map__surfaces span:last-child {
  color: rgba(226, 232, 240, 0.84);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.08);
}

.solution-map__graph {
  position: absolute;
  left: 6.5%;
  bottom: 18%;
  width: min(20%, 214px);
  min-height: 138px;
  padding: 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius);
  background: rgba(9, 17, 31, 0.74);
}

.solution-map__graph i {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pulse-cyan);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.42);
}

.solution-map__graph-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.solution-map__graph-links path {
  fill: none;
  stroke: rgba(34, 211, 238, 0.32);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 7;
  animation: solution-link-flow 12s linear infinite;
}

.solution-map__graph .solution-map__label {
  position: relative;
  z-index: 2;
}

.solution-map__graph i:nth-of-type(1) { left: 22%; top: 48%; }
.solution-map__graph i:nth-of-type(2) { left: 45%; top: 30%; }
.solution-map__graph i:nth-of-type(3) { left: 58%; top: 66%; }
.solution-map__graph i:nth-of-type(4) { left: 76%; top: 42%; }
.solution-map__graph i:nth-of-type(5) { left: 34%; top: 76%; }

@keyframes control-scan {
  0%, 42% { transform: translateX(-120%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes control-node-float {
  to {
    transform: translateY(-8px);
  }
}

@keyframes solution-link-flow {
  to {
    stroke-dashoffset: -18;
  }
}

@keyframes solution-hub-pulse {
  0%, 100% {
    opacity: 0.32;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.03);
  }
}

/* ---------- control mesh: interactive control plane ---------- */
.control-plane.control-mesh {
  --mesh-accent: var(--pulse-cyan);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 0;
  border-color: rgba(34, 211, 238, 0.2);
  border-radius: calc(var(--radius-lg) * 1.6);
  background:
    radial-gradient(ellipse at 50% 36%, rgba(34, 211, 238, 0.1), transparent 42%),
    radial-gradient(ellipse at 84% 72%, rgba(59, 130, 246, 0.08), transparent 34%),
    var(--bg-alt);
  overflow: hidden;
}

.control-mesh[data-active="2"],
.control-mesh[data-active="3"] {
  --mesh-accent: var(--pulse-blue);
}

.control-mesh[data-active="4"] {
  --mesh-accent: var(--pulse-violet);
}

.control-plane.control-mesh::before {
  z-index: 0;
  opacity: 1;
  transform: none;
  animation: none;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--mesh-accent) 12%, transparent), transparent 34%),
    linear-gradient(120deg, transparent 32%, color-mix(in srgb, var(--mesh-accent) 5%, transparent), transparent 68%);
  transition: background 380ms var(--ease);
}

.control-mesh::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(var(--hair-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-faint) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 52% 44%, rgba(0, 0, 0, 1) 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 52% 44%, rgba(0, 0, 0, 1) 0%, transparent 76%);
  opacity: 0.7;
  pointer-events: none;
}

.control-mesh__scene {
  position: relative;
  z-index: 1;
  min-height: clamp(430px, 34vw, 570px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.control-mesh__hud {
  position: absolute;
  z-index: 6;
  top: 1rem;
  right: 1.1rem;
  left: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.control-mesh__hud > span:first-child {
  color: var(--pulse-cyan);
}

.control-mesh__hud > span:last-child {
  color: var(--mesh-accent);
  transition: color 280ms var(--ease);
}

.control-mesh__hud i {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.32), rgba(59, 130, 246, 0.1), transparent);
}

.control-mesh__toggle {
  min-height: 28px;
  padding: 0.24rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--mesh-accent) 28%, transparent);
  border-radius: 999px;
  color: var(--ink-mid);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease);
}

.control-mesh__toggle:hover,
.control-mesh__toggle:focus-visible {
  border-color: var(--mesh-accent);
  background: color-mix(in srgb, var(--mesh-accent) 9%, transparent);
  color: var(--ink);
}

.control-mesh__toggle:focus-visible {
  outline: 1px solid var(--mesh-accent);
  outline-offset: 2px;
}

.control-mesh__orbit {
  position: absolute;
  z-index: 1;
  top: 46%;
  left: 50%;
  width: clamp(210px, 23vw, 310px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--mesh-accent) 24%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 70px color-mix(in srgb, var(--mesh-accent) 8%, transparent),
    inset 0 0 48px rgba(6, 6, 8, 0.72);
  transform: translate(-50%, -50%);
  transition: border-color 320ms var(--ease), box-shadow 320ms var(--ease);
  pointer-events: none;
}

.control-mesh__orbit::before,
.control-mesh__orbit::after,
.control-mesh__orbit i {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--mesh-accent) 16%, transparent);
  border-radius: 50%;
}

.control-mesh__orbit::before { inset: 12%; }
.control-mesh__orbit::after { inset: -11%; border-style: dashed; animation: control-mesh-spin 28s linear infinite; }
.control-mesh__orbit i:first-child { inset: -24%; border-top-color: transparent; border-left-color: transparent; animation: control-mesh-spin 18s linear infinite reverse; }
.control-mesh__orbit i:last-child { inset: 29%; border-right-color: transparent; border-bottom-color: transparent; animation: control-mesh-spin 13s linear infinite; }

.control-mesh__edges {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.control-mesh__edges > span {
  position: absolute;
  top: 46%;
  left: 50%;
  width: var(--edge-length);
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--mesh-accent) 42%, transparent), rgba(161, 166, 180, 0.08));
  opacity: 0.24;
  transform: rotate(var(--edge-angle));
  transform-origin: 0 50%;
  transition: opacity 300ms var(--ease), height 300ms var(--ease), background 300ms var(--ease);
}

.control-mesh__edges > span::before,
.control-mesh__edges > span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.control-mesh__edges > span::before {
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid color-mix(in srgb, var(--mesh-accent) 58%, transparent);
  background: var(--bg-alt);
}

.control-mesh__edges > span::after {
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--mesh-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--mesh-accent) 72%, transparent);
  opacity: 0;
}

.control-mesh__edges > span.is-active {
  height: 2px;
  opacity: 0.96;
  background: linear-gradient(90deg, var(--mesh-accent), color-mix(in srgb, var(--mesh-accent) 22%, transparent));
}

.control-mesh__edges > span.is-active::after {
  opacity: 1;
  animation: control-mesh-packet 1.8s linear infinite;
}

.control-mesh__hub {
  position: absolute;
  z-index: 3;
  top: 46%;
  left: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  width: clamp(148px, 14vw, 190px);
  aspect-ratio: 1;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--mesh-accent) 48%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--mesh-accent) 17%, transparent), transparent 54%),
    rgba(10, 11, 15, 0.94);
  box-shadow:
    0 0 52px color-mix(in srgb, var(--mesh-accent) 12%, transparent),
    inset 0 1px 0 var(--hair-strong);
  text-align: center;
  transform: translate(-50%, -50%);
  transition: border-color 320ms var(--ease), box-shadow 320ms var(--ease), background 320ms var(--ease);
}

.control-mesh__hub > span,
.control-mesh__hub > small {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.control-mesh__hub > span {
  color: var(--mesh-accent);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.control-mesh__hub > strong {
  max-width: 8ch;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1;
}

.control-mesh__hub > small {
  min-height: 2.3em;
  margin-top: 0.45rem;
  color: var(--ink-dim);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  line-height: 1.35;
}

.control-mesh__metrics {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.55rem;
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  text-transform: uppercase;
}

.control-mesh__metrics b {
  color: var(--ink);
  font-weight: 500;
}

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

.control-mesh__node {
  position: absolute;
  top: var(--node-top);
  left: var(--node-left);
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: opacity 480ms var(--ease);
  transition-delay: calc(var(--node-i) * 65ms);
}

.control-mesh.is-armed:not(.is-ready) .control-mesh__node {
  opacity: 0.18;
}

.control-mesh__node button {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 148px;
  min-height: 52px;
  padding: 0.45rem 0.58rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  text-align: left;
  pointer-events: auto;
  transition: color 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.control-mesh__node:nth-child(n + 3) button {
  flex-direction: row-reverse;
  text-align: right;
}

.control-mesh__node button:hover,
.control-mesh__node button:focus-visible,
.control-mesh__node.is-active button {
  border-color: color-mix(in srgb, var(--mesh-accent) 34%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--mesh-accent) 10%, transparent), rgba(10, 11, 15, 0.38));
  transform: translateY(-2px);
}

.control-mesh__node button:focus-visible {
  outline: 1px solid var(--mesh-accent);
  outline-offset: 2px;
}

.control-mesh__beacon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(161, 166, 180, 0.34);
  border-radius: 50%;
  background: var(--bg-alt);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.control-mesh__beacon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid color-mix(in srgb, var(--mesh-accent) 24%, transparent);
  border-radius: inherit;
  opacity: 0;
}

.control-mesh__beacon i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-mid);
}

.control-mesh__node.is-active .control-mesh__beacon {
  border-color: var(--mesh-accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--mesh-accent) 42%, transparent);
  transform: scale(1.08);
}

.control-mesh__node.is-active .control-mesh__beacon::after {
  opacity: 1;
  animation: hero-beacon-ring 2.6s ease-out infinite;
}

.control-mesh:not(.is-visible) .control-mesh__orbit::after,
.control-mesh:not(.is-visible) .control-mesh__orbit i,
.control-mesh:not(.is-visible) .control-mesh__edges > span::after,
.control-mesh:not(.is-visible) .control-mesh__beacon::after,
.control-mesh.is-paused .control-mesh__orbit::after,
.control-mesh.is-paused .control-mesh__orbit i,
.control-mesh.is-paused .control-mesh__edges > span::after,
.control-mesh.is-paused .control-mesh__beacon::after {
  animation-play-state: paused;
}

.control-mesh.is-static .control-mesh__orbit::after,
.control-mesh.is-static .control-mesh__orbit i,
.control-mesh.is-static .control-mesh__edges > span::after,
.control-mesh.is-static .control-mesh__beacon::after {
  animation: none !important;
}

.control-mesh__node.is-active .control-mesh__beacon i {
  background: var(--ink);
  box-shadow: 0 0 10px var(--mesh-accent);
}

.control-mesh__node-copy {
  display: grid;
  min-width: 0;
  font-family: var(--font-mono);
  line-height: 1.1;
}

.control-mesh__node-copy small {
  color: var(--ink-mid);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.control-mesh__node-copy strong {
  margin-top: 0.22rem;
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 500;
}

.control-mesh__node-copy em {
  margin-top: 0.28rem;
  color: var(--ink-faint);
  font-size: 0.57rem;
  font-style: normal;
  white-space: nowrap;
}

.control-mesh__node.is-active .control-mesh__node-copy small {
  color: var(--mesh-accent);
}

.control-mesh__node.is-active .control-mesh__node-copy strong {
  color: var(--ink);
}

.control-mesh__node.is-active .control-mesh__node-copy em {
  color: var(--ink-dim);
}

.control-mesh__readouts {
  position: relative;
  z-index: 2;
  min-block-size: 176px;
  margin: 0 1.15rem 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--mesh-accent) 22%, transparent);
  overflow: hidden;
  transition: border-color 280ms var(--ease);
}

.control-mesh__readout {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  grid-template-rows: auto auto 1fr;
  gap: 0.25rem clamp(1rem, 2vw, 2rem);
  align-content: center;
  padding: 1rem 0.25rem 0.2rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 420ms var(--ease);
}

.control-mesh__readout.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.control-mesh__readout > span {
  color: var(--mesh-accent);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.11em;
}

.control-mesh__readout > strong {
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 600;
  line-height: 1.25;
}

.control-mesh__readout > p {
  max-width: 56ch;
  color: var(--ink-dim);
  font-size: 0.82rem;
  line-height: 1.48;
}

.control-mesh__facts {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 0.45rem;
}

.control-mesh__facts span {
  padding: 0.3rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--mesh-accent) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--mesh-accent) 6%, transparent);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  white-space: nowrap;
}

@keyframes control-mesh-spin {
  to { transform: rotate(360deg); }
}

@keyframes control-mesh-packet {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}

@media (max-width: 680px) {
  .control-plane.control-mesh {
    display: grid;
    min-height: 0;
    padding: 0;
  }

  .control-mesh__scene {
    min-height: 360px;
    aspect-ratio: auto;
  }

  .control-mesh__hud {
    top: 0.8rem;
    right: 0.75rem;
    left: 0.75rem;
    font-size: 0.51rem;
  }

  .control-mesh__orbit {
    top: 43%;
    width: 190px;
  }

  .control-mesh__hub {
    top: 43%;
    width: 138px;
  }

  .control-mesh__metrics {
    display: none;
  }

  .control-mesh__edges {
    display: none;
  }

  .control-mesh__nodes {
    top: auto;
    right: 0.45rem;
    bottom: 0.65rem;
    left: 0.45rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .control-mesh__node {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .control-mesh__node button,
  .control-mesh__node:nth-child(n + 3) button {
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 0.35rem 0.12rem;
    text-align: center;
  }

  .control-mesh__beacon {
    width: 18px;
    height: 18px;
  }

  .control-mesh__node-copy small,
  .control-mesh__node-copy em {
    display: none;
  }

  .control-mesh__node-copy strong {
    margin: 0;
    font-size: clamp(0.56rem, 2.6vw, 0.68rem);
  }

  .control-mesh__readouts {
    min-block-size: 240px;
    margin: 0 0.75rem 0.75rem;
  }

  .control-mesh__readout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
    padding: 0.9rem 0.1rem 0.2rem;
  }

  .control-mesh__facts {
    grid-column: 1;
    grid-row: auto;
    align-content: flex-start;
    margin-top: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .control-mesh__orbit::after,
  .control-mesh__orbit i,
  .control-mesh__edges > span::after,
  .control-mesh__beacon::after {
    animation: none !important;
  }

  .control-mesh__readout,
  .control-mesh__node,
  .control-mesh__node button {
    transition: none !important;
  }
}

/* ---------- flow/value rewrite ---------- */
.section--pipeline .pipeline {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.when {
  position: relative;
}

.when__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.when__list li {
  position: relative;
  overflow: hidden;
  min-height: clamp(150px, 13vw, 190px);
  padding: clamp(1.05rem, 2vw, 1.45rem);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(34, 211, 238, 0.12), transparent 54%),
    radial-gradient(ellipse at 100% 100%, rgba(59, 130, 246, 0.07), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--surface);
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}

.when__list li > span:last-child {
  display: block;
  max-width: 22ch;
}

.when__icon {
  width: 42px;
  height: 42px;
  margin-bottom: clamp(1.15rem, 3vw, 2.5rem);
}

.when__list li:hover .when__icon {
  color: var(--pulse-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 56px -30px rgba(59, 130, 246, 0.8);
}

.when__list li::after {
  content: "";
  position: absolute;
  left: clamp(1.25rem, 2.5vw, 2rem);
  right: clamp(1.25rem, 2.5vw, 2rem);
  bottom: 0;
  height: 1px;
  background: var(--gradient-pulse);
  opacity: 0.52;
  transform-origin: left;
  animation: when-signal 4.8s var(--ease) infinite;
  animation-delay: calc(var(--when-i, 0) * 0.36s);
}

.when__list li:nth-child(1) { --when-i: 0; }
.when__list li:nth-child(2) { --when-i: 1; }
.when__list li:nth-child(3) { --when-i: 2; }
.when__list li:nth-child(4) { --when-i: 3; }

.when__impact {
  position: relative;
  max-width: 900px;
  margin: clamp(2rem, 4vw, 3.4rem) auto 0;
  padding: 0;
  color: var(--ink);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
}

.when__impact span {
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes when-signal {
  0%, 18% {
    transform: scaleX(0);
    opacity: 0;
  }
  42%, 78% {
    transform: scaleX(1);
    opacity: 0.72;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

.value-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.value-compare--control {
  align-items: stretch;
}

.value-compare--secondary {
  margin-top: 1rem;
}

.value-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(380px, 34vw, 560px);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
}

.value-card--compact {
  min-height: clamp(320px, 24vw, 420px);
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  pointer-events: none;
}

.value-card--before {
  border-color: rgba(248, 113, 113, 0.22);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(239, 68, 68, 0.1), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(248, 113, 113, 0.04), transparent 48%),
    var(--surface);
}

.value-card--before::before {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.76), rgba(239, 68, 68, 0.12));
}

.value-card--after {
  border-color: rgba(34, 211, 238, 0.26);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.13), transparent 48%),
    radial-gradient(ellipse at 0% 100%, rgba(59, 130, 246, 0.08), transparent 52%),
    var(--surface);
}

.value-card--after::before {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.82), rgba(59, 130, 246, 0.12));
}

.value-card__label {
  display: inline-flex;
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.value-card--before .value-card__label {
  color: rgba(248, 113, 113, 0.92);
}

.value-card--after .value-card__label {
  color: var(--pulse-cyan);
}

.value-card h3 {
  margin: clamp(1.6rem, 4vw, 3.8rem) 0 1.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 3.25rem);
  line-height: 1.02;
}

.value-card li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.value-card li + li {
  margin-top: 0.85rem;
}

.value-card li::before {
  position: absolute;
  left: 0;
  color: rgba(248, 113, 113, 0.85);
}

.value-card--before li::before {
  content: "×";
}

.value-card--after li::before {
  content: "✓";
  color: var(--pulse-cyan);
}

/* ---------- regain control showcase ---------- */
.control-recovery {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.control-recovery__copy {
  position: sticky;
  top: 96px;
  align-self: start;
  min-height: 560px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(239, 68, 68, 0.08), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(34, 211, 238, 0.08), transparent 48%),
    var(--surface);
}

.control-recovery__label,
.surface-card__head span,
.surface-panel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-recovery__label {
  color: rgba(248, 113, 113, 0.9);
}

.control-recovery__copy h3 {
  margin: clamp(2rem, 4vw, 4rem) 0 1.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 3.25rem);
  line-height: 1.02;
}

.control-recovery__copy li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-dim);
}

.control-recovery__copy li + li {
  margin-top: 0.85rem;
}

.control-recovery__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: rgba(248, 113, 113, 0.85);
}

.control-recovery__stage {
  display: grid;
  gap: 1rem;
}

.surface-card {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 48%),
    var(--surface);
  overflow: hidden;
  margin: 0;
  box-shadow: 0 44px 120px -76px rgba(6, 8, 14, 0.95);
}

.surface-card__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.surface-card__head span {
  color: var(--pulse-cyan);
}

.surface-card__head strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.surface-card--design {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.surface-card--design .design-lab {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.surface-card--design .design-lab__bar {
  display: none;
}

.surface-card--design .design-lab__body {
  padding: 1rem;
}

.surface-card--design .architecture-mini,
.surface-card--design .mockup-mini {
  min-height: 240px;
}

.surface-card--design p {
  padding: 0 1rem 1rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

.surface-card--image picture {
  position: relative;
  display: block;
  background: var(--bg-alt);
}

.surface-card--image picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, 0.08), rgba(6, 6, 8, 0.28)),
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.1), transparent 58%);
  mix-blend-mode: multiply;
}

.surface-card--image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  filter: brightness(0.84) contrast(1.12) saturate(1.08);
}

.surface-card--image figcaption {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-mid);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- evidence section ---------- */
.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 1rem;
}

.evidence-shot,
.design-lab {
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  margin: 0;
  box-shadow: 0 44px 110px -70px rgba(6, 8, 14, 0.95);
}

.evidence-shot--wide {
  grid-row: span 2;
}

.evidence-shot picture,
.evidence-shot img {
  width: 100%;
}

.evidence-shot picture {
  position: relative;
  display: block;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08), transparent 58%),
    var(--bg-alt);
}

.evidence-shot picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, 0.1), rgba(6, 6, 8, 0.28)),
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.08), transparent 54%);
  mix-blend-mode: multiply;
}

.evidence-shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  filter: brightness(0.82) contrast(1.12) saturate(1.08);
}

.evidence-shot figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.15rem 1.2rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-mid);
  font-size: 0.9rem;
  line-height: 1.55;
}

.evidence-shot figcaption span {
  color: var(--ink);
  font-weight: 500;
}

.surface-story {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.surface-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.08), transparent 46%),
    var(--surface);
}

.surface-panel--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
}

.surface-panel--reverse .surface-panel__copy {
  order: 2;
}

.surface-panel__copy {
  padding: clamp(0.5rem, 2vw, 1rem);
}

.surface-panel__label {
  display: inline-flex;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  color: var(--pulse-cyan);
}

.surface-panel h3 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.75rem);
  line-height: 1.05;
}

.surface-panel p {
  color: var(--ink-dim);
  line-height: 1.7;
}

.surface-panel .evidence-shot {
  box-shadow: none;
}

.design-lab__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.design-lab__body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.architecture-mini {
  position: relative;
  min-height: 300px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--hair-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-faint) 1px, transparent 1px),
    var(--bg-alt);
  background-size: 20px 20px;
  overflow: hidden;
}

.arch-node {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius);
  background: rgba(19, 21, 28, 0.95);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.arch-node--web { left: 8%; top: 12%; }
.arch-node--api { left: 48%; top: 18%; }
.arch-node--worker { left: 29%; top: 52%; }
.arch-node--db { left: 62%; top: 66%; }

.arch-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.65), rgba(59, 130, 246, 0.3));
  transform-origin: left center;
  animation: arch-flow 3s linear infinite;
}

.arch-line--a {
  left: 31%;
  top: 24%;
  width: 28%;
  transform: rotate(8deg);
}

.arch-line--b {
  left: 49%;
  top: 41%;
  width: 20%;
  transform: rotate(74deg);
}

.arch-line--c {
  left: 42%;
  top: 64%;
  width: 28%;
  transform: rotate(14deg);
}

.mockup-mini {
  min-height: 300px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.1), transparent 52%),
    var(--bg-alt);
}

.mockup-mini__top,
.mockup-mini__hero,
.mockup-mini__row,
.mockup-mini__cta {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.mockup-mini__top {
  width: 42%;
  height: 12px;
  margin-bottom: 1.1rem;
}

.mockup-mini__hero {
  height: 92px;
  margin-bottom: 1rem;
  background: var(--gradient-pulse-soft);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.mockup-mini__row {
  height: 11px;
  margin-bottom: 0.7rem;
}

.mockup-mini__row--short {
  width: 72%;
}

.mockup-mini__cta {
  width: 46%;
  height: 32px;
  margin-top: 1.2rem;
  background: var(--gradient-pulse);
}

.design-lab h3 {
  padding: 0 1.25rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.design-lab p {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-dim);
  font-size: 0.94rem;
  line-height: 1.6;
}

@keyframes arch-flow {
  0% { opacity: 0.25; filter: saturate(0.8); }
  50% { opacity: 1; filter: saturate(1.4); }
  100% { opacity: 0.25; filter: saturate(0.8); }
}

/* ---------- audience / claims ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.audience-card {
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  background: var(--surface);
  min-height: 260px;
}

.audience-card--lead {
  border-color: rgba(34, 211, 238, 0.25);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.13), transparent 50%),
    var(--surface);
}

.audience-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.audience-card__label::before {
  content: "";
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--gradient-pulse);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.48);
}

.audience-card h3 {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.audience-card p {
  color: var(--ink-dim);
  line-height: 1.6;
}

.mcp {
  gap: 1rem;
}

.mcp__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.mcp__tools span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.claims-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.claims-grid span {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--surface);
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

.claims-grid span::before {
  content: "✓";
  display: block;
  margin-bottom: 1.7rem;
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
}

.section__impact {
  max-width: 820px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  text-align: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
}

.section__impact strong {
  display: block;
  margin-top: 0.2em;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.18), transparent 52%),
    radial-gradient(ellipse at 0% 100%, rgba(59, 130, 246, 0.1), transparent 48%),
    var(--surface);
}

.final-cta h2 {
  margin: 0.5rem 0 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.final-cta h2 em {
  font-style: normal;
  background: var(--gradient-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.final-cta p {
  color: var(--ink-dim);
}

.final-cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1320px) {
  .problem__grid,
  .claims-grid,
  .when__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section--pipeline .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .system-map,
  .problem__bottom,
  .evidence-grid,
  .control-recovery,
  .surface-panel,
  .surface-panel--reverse,
  .audience,
  .value-compare {
    grid-template-columns: 1fr;
  }

  .control-recovery__copy {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .surface-panel--reverse .surface-panel__copy {
    order: 0;
  }

  .evidence-shot--wide {
    grid-row: auto;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .problem__grid,
  .claims-grid,
  .when__list,
  .section--pipeline .pipeline {
    grid-template-columns: 1fr;
  }

  .risk-card,
  .when__list li,
  .audience-card,
  .claims-grid span {
    min-height: auto;
  }

  .when::after {
    display: none;
  }

  .risk-card__label,
  .audience-card__label {
    margin-bottom: 1.25rem;
  }

  .title-line--keep {
    white-space: normal;
  }

  .control-plane {
    min-height: 520px;
  }

  .control-plane.solution-map {
    min-height: 760px;
  }

  .solution-map__links {
    display: none;
  }

  .solution-map__cluster,
  .solution-map__graph {
    left: 1rem !important;
    right: 1rem !important;
    width: auto;
  }

  .solution-map__cluster--intent {
    top: 1rem;
  }

  .solution-map__cluster--agents {
    top: 12rem;
  }

  .solution-map__cluster--evidence {
    bottom: 8rem;
  }

  .solution-map__hub {
    --solution-hub-size: clamp(240px, 66vw, 280px);
    top: 50%;
    width: var(--solution-hub-size);
    height: var(--solution-hub-size);
    min-width: 0;
  }

  .solution-map__graph {
    bottom: 1rem;
  }

  .control-node {
    left: 50% !important;
    min-width: 124px;
    transform: translateX(-50%);
  }

  .control-node--idea { top: 8%; }
  .control-node--spec { top: 22%; }
  .control-node--agent { top: 36%; }
  .control-node--code { top: 50%; }
  .control-node--test { top: 64%; }
  .control-node--kg { top: 78%; }

  .control-plane__rail {
    left: 50%;
    right: auto;
    top: 8%;
    bottom: 16%;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.4), transparent);
  }

  .design-lab__body {
    grid-template-columns: 1fr;
  }

  .surface-card--design .architecture-mini,
  .surface-card--design .mockup-mini {
    min-height: 210px;
  }

  .final-cta__actions .btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- footer ---------- */
.foot {
  padding: clamp(4rem, 7vw, 6rem) var(--gutter) 3rem;
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--hair);
}

.foot__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .foot__inner {
    grid-template-columns: 1fr;
  }
}

.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.foot__logo {
  width: 240px;
  height: auto;
  display: block;
}

.foot__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 640px) {
  .foot__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.foot__cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
  font-weight: 400;
}

.foot__cols ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.foot__cols a {
  font-size: 0.935rem;
  color: var(--ink-dim);
  transition: color 180ms var(--ease);
}

.foot__cols a:hover {
  color: var(--ink);
}

.foot__rule {
  height: 1px;
  background: var(--hair);
  margin: 3rem 0 1.6rem;
}

.foot__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot__labs {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.foot__labs:hover {
  color: var(--ink);
}

.foot__labs img {
  width: 22px;
  height: 22px;
  display: block;
}

.foot__labs strong {
  color: var(--ink);
  font-weight: 500;
}

.foot__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- entrance animations removed ----------
   The hero lines already have a keyframe animation that always plays.
   Avoid reveal-on-scroll so captures and no-JS visitors both see the
   final layout instantly. */

/* ---------- Consent banner (LGPD) ---------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  transform: translateX(-50%);
  width: min(calc(100vw - 1.5rem), 720px);
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(19, 21, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  animation: consent-in 320ms var(--ease);
}

.consent[hidden] {
  display: none;
}

.consent__text {
  flex: 1 1 420px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.consent__link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--ink-faint);
  transition: text-decoration-color 180ms var(--ease);
}

.consent__link:hover {
  text-decoration-color: var(--ink);
}

.consent__actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.consent__btn {
  font-size: 12px;
  padding: 0.45rem 0.9rem;
}

.consent__btn--primary {
  background: var(--ink);
  color: var(--surface-2);
  border-color: var(--ink);
}

.consent__btn--primary:hover {
  background: var(--ink-dim);
  border-color: var(--ink-dim);
  color: var(--surface-2);
}

@keyframes consent-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 520px) {
  .consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    transform: none;
    gap: 0.75rem;
    padding: 0.75rem;
    align-items: stretch;
    gap: 0.6rem;
  }
  .consent__text {
    flex: 0 0 auto;
  }
  .consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    width: 100%;
  }
  .consent__btn {
    width: 100%;
  }
}

@keyframes consent-mobile-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   Modernization layer
   Progressive enhancement only: every rule below is gated on JS-added
   classes (`js-reveal`, `is-open`, `glow-track`…) or viewport size.
   No-JS visitors and crawlers see the final layout untouched.
   ===================================================================== */

/* ---------- anchor offset under the sticky nav ---------- */
html {
  scroll-padding-top: 84px;
}

main section[id] {
  scroll-margin-top: 84px;
}

/* ---------- nav: scroll progress + condensed state + scrollspy ---------- */
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gradient-pulse);
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  opacity: 0.85;
  pointer-events: none;
}

.nav.is-scrolled {
  background: linear-gradient(to bottom, rgba(6, 6, 8, 0.94), rgba(6, 6, 8, 0.78));
  box-shadow: 0 18px 48px -32px rgba(0, 0, 0, 0.85);
}

.nav__links a.is-active {
  color: var(--ink);
}

.nav__links a.is-active::after {
  transform: scaleX(1);
}

/* ---------- nav: hamburger toggle ---------- */
.nav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.nav__toggle:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.nav__toggle-line {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 280ms var(--ease), top 280ms var(--ease);
}

.nav__toggle-line:nth-child(1) { top: 15px; }
.nav__toggle-line:nth-child(2) { top: 23px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }
}

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 39; /* below the sticky nav (40) so the brand bar stays on top */
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 84px var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.07), transparent 55%),
    rgba(6, 6, 8, 0.96);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu[hidden] {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu__links {
  display: grid;
  counter-reset: menu-i;
}

.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.1;
  counter-increment: menu-i;
  transition: color 180ms var(--ease), padding-left 220ms var(--ease);
}

.mobile-menu__links a::before {
  content: "0" counter(menu-i);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.mobile-menu__links a:active,
.mobile-menu__links a:hover {
  color: var(--pulse-cyan);
  padding-left: 0.4rem;
}

.mobile-menu__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mobile-menu__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.95rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.mobile-menu__meta a:hover {
  color: var(--ink);
  border-color: rgba(34, 211, 238, 0.35);
}

.mobile-menu__cta {
  justify-content: space-between;
  padding-block: 14px;
}

.mobile-menu.is-open .mobile-menu__links a,
.mobile-menu.is-open .mobile-menu__meta,
.mobile-menu.is-open .mobile-menu__cta {
  animation: menu-item-in 460ms var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- pulse spine: EKG line drawn by scroll (JS-generated) ---------- */
.spine {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* over the fixed ambient layer, under all content */
  pointer-events: none;
}

.spine svg {
  display: block;
  overflow: visible;
}

.spine__guide {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spine__trace {
  fill: none;
  stroke: url("#spineGradient");
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5));
}

.spine__node {
  fill: var(--surface-3);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  transition: fill 320ms var(--ease), stroke 320ms var(--ease);
}

.spine__node.is-lit {
  fill: var(--pulse-cyan);
  stroke: rgba(34, 211, 238, 0.55);
  filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.85));
}

.spine__head {
  fill: #e9fbff;
  opacity: 0;
  filter: drop-shadow(0 0 9px rgba(34, 211, 238, 0.95));
  transition: opacity 240ms var(--ease);
}

/* ---------- scroll reveals (JS-gated, no-JS sees everything) ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

html.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 75ms);
}

/* ---------- pointer-tracking glow on cards (desktop only) ---------- */
.glow-track {
  position: relative;
}

.glow-spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(34, 211, 238, 0.12),
    rgba(59, 130, 246, 0.06) 42%,
    transparent 68%
  );
  mix-blend-mode: screen;
  transition: opacity 320ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .glow-track:hover .glow-spot {
    opacity: 1;
  }
}

/* ---------- animated hero counters ---------- */
.stat__value {
  font-variant-numeric: tabular-nums;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: rgba(14, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-dim);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.to-top svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  color: var(--ink);
  border-color: rgba(34, 211, 238, 0.4);
}

/* Keep the floating button clear of the consent banner on small screens */
@media (max-width: 520px) {
  .to-top {
    width: 40px;
    height: 40px;
  }
}

/* =====================================================================
   Narrative layer — Act 1 (pinned problem scene), Act 2 (resuscitation),
   Act 3 (horizontal flow + evidence stage), compare slider, kinetic type.
   Defaults are static stacked layouts that work without JS; the
   choreographed variants are gated on html.js-pin / js-stage / js-compare.
   ===================================================================== */

/* ---------- nav: current-section context ---------- */
.nav__context {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}

.nav__context.is-on {
  opacity: 1;
  transform: none;
}

@media (max-width: 560px) {
  .nav__context {
    display: none;
  }
}

/* ---------- Act 1: defaults (stacked flow, also the mobile layout) ---------- */
.act1__stage {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.act1__ekg {
  display: none;
}

.act1__head .section__lede {
  margin-top: 1.6rem;
}

.act1__when-lede {
  max-width: 52ch;
  margin: clamp(1.8rem, 3vw, 2.6rem) auto 1rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.act1__when {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.act1__when li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.7rem 0.9rem;
  text-align: center;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.09), transparent 62%),
    var(--surface);
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .act1__when {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .act1__when {
    grid-template-columns: 1fr;
  }
}

.act1__scene--finale .when__impact {
  margin-top: clamp(1.4rem, 2.5vw, 2.2rem);
}

/* ---------- Act 1: pinned choreography (desktop + JS only) ---------- */
@media (min-width: 1024px) and (min-height: 600px) {
  html.js-pin .section--problem {
    padding: 0;
  }

  html.js-pin .act1__track {
    height: 380vh;
  }

  html.js-pin .act1__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: block;
    overflow: hidden;
  }

  html.js-pin .act1__ekg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  html.js-pin .act1__scene {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 110px var(--gutter) 56px;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
    pointer-events: none;
  }

  html.js-pin .act1__stage[data-phase="0"] .act1__scene--head,
  html.js-pin .act1__stage[data-phase="1"] .act1__scene--cards,
  html.js-pin .act1__stage[data-phase="2"] .act1__scene--console,
  html.js-pin .act1__stage[data-phase="3"] .act1__scene--finale {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  html.js-pin .act1__head {
    margin: 0;
    max-width: 900px;
    text-align: center;
  }

  html.js-pin .act1__head .section__eyebrow {
    border-bottom: 0;
    padding-bottom: 0;
  }

  html.js-pin .act1__head .section__lede {
    margin-inline: auto;
  }

  html.js-pin .act1__scene--cards .problem__grid {
    max-width: 1320px;
    width: 100%;
  }

  html.js-pin .act1__scene--console .problem__mid {
    margin: 0 0 clamp(1.4rem, 3vh, 2.4rem);
    font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  }

  html.js-pin .act1__scene--console .problem__bottom {
    width: min(860px, 100%);
    margin: 0;
  }

  html.js-pin .act1__scene--console .act1__when-lede {
    margin-top: clamp(1.4rem, 3vh, 2.2rem);
  }

  html.js-pin .act1__scene--finale {
    text-align: center;
  }

  html.js-pin .act1__scene--finale .problem__close {
    margin-top: 0;
  }

  html.js-pin .act1__scene--finale .when__impact {
    margin-top: clamp(1.6rem, 3vh, 2.6rem);
  }
}

/* ---------- Act 2: resuscitation divider ---------- */
.resus {
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
}

.resus--divider {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2.4rem) var(--gutter);
  border-bottom: 1px solid var(--hair);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--chaos-red) 5%, transparent), color-mix(in srgb, var(--pulse-cyan) 4%, transparent)),
    var(--bg);
}

.resus--divider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--pulse-cyan) 7%, transparent), transparent 58%);
  pointer-events: none;
}

.resus--divider svg {
  position: relative;
  z-index: 1;
}

.resus svg {
  display: block;
  width: 100%;
  height: clamp(64px, 9vw, 120px);
  overflow: visible;
}

.resus__flat {
  fill: none;
  stroke: rgba(248, 113, 113, 0.45);
  stroke-width: 1.5;
  transition: opacity 900ms var(--ease);
}

.resus__spike {
  fill: none;
  stroke: url("#resusGradient");
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.55));
}

.resus.is-armed .resus__spike {
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  opacity: 0.08;
}

.resus.is-armed.is-alive .resus__spike {
  animation: resus-draw 1650ms var(--ease) 80ms forwards;
}

.resus.is-armed.is-alive .resus__flat {
  animation: resus-flatline 1500ms var(--ease) 240ms forwards;
}

@keyframes resus-draw {
  0% {
    stroke-dashoffset: 100;
    opacity: 0.08;
  }
  18% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes resus-flatline {
  from { opacity: 1; }
  to { opacity: 0.12; }
}

/* ---------- Act 2: control plane assembles with scroll ---------- */
.solution-map.sys-armed .solution-map__cluster,
.solution-map.sys-armed .solution-map__hub,
.solution-map.sys-armed .solution-map__graph {
  opacity: 0.22;
  transform: translateY(12px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

.solution-map.sys-armed .solution-map__hub {
  transform: translate(-50%, -50%) scale(0.97);
}

.solution-map.sys-armed .solution-map__cluster.is-on,
.solution-map.sys-armed .solution-map__graph.is-on {
  opacity: 1;
  transform: translateY(0);
}

.solution-map.sys-armed .solution-map__hub.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile: the absolute collage overlaps once clusters grow, so the map
   becomes a stacked flow — intent → hub → agents → evidence → memory */
@media (max-width: 680px) {
  .control-plane.solution-map {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 0;
    padding: 1rem;
  }

  .solution-map__cluster,
  .solution-map__graph,
  .solution-map__hub {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto;
    bottom: auto;
    width: 100%;
  }

  .solution-map__hub {
    width: min(260px, 74vw);
    height: min(260px, 74vw);
    margin: 0.6rem auto;
    transform: none;
  }

  .solution-map__hub::after {
    inset: -18px;
  }

  .solution-map.sys-armed .solution-map__hub {
    transform: translateY(12px) scale(0.97);
  }

  .solution-map.sys-armed .solution-map__hub.is-on {
    transform: translateY(0) scale(1);
  }
}

/* ---------- Act 3: pipeline — snap carousel on small screens ---------- */
@media (max-width: 1023px) {
  .section--pipeline .pipeline {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.8rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 0.85rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .section--pipeline .pipeline::-webkit-scrollbar {
    display: none;
  }

  .section--pipeline .pipeline__step {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: center;
    border: 1px solid var(--hair);
    border-radius: var(--radius-lg);
    background: var(--surface);
  }
}

/* ---------- Act 3: pipeline — the full rail lights up in sequence ---------- */
.pipeline {
  position: relative;
}

html.js-reveal .pipeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent) no-repeat -25% 0 / 22% 100%,
    var(--gradient-pulse);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1600ms var(--ease) 150ms;
}

html.js-reveal .pipeline.is-live::after {
  transform: scaleX(1);
  animation: pipeline-shimmer 5.5s linear 2s infinite;
}

@keyframes pipeline-shimmer {
  0% {
    background-position: -25% 0, 0 0;
  }
  45%,
  100% {
    background-position: 125% 0, 0 0;
  }
}

html.js-reveal .pipeline .context-icon {
  transition: color 420ms var(--ease), box-shadow 420ms var(--ease);
}

html.js-reveal .pipeline.is-live .pipeline__step .context-icon {
  color: var(--pulse-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 56px -30px rgba(59, 130, 246, 0.8);
  transition-delay: calc(var(--step-i, 0) * 220ms);
}

/* ---------- audience — aurora cards with a conic-border lead ---------- */
@property --aud-spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.audience {
  counter-reset: aud;
  perspective: 1200px;
}

.audience-card {
  position: relative;
  overflow: hidden;
  counter-increment: aud;
}

.audience-card > * {
  position: relative;
  z-index: 1;
}

.audience-card::before {
  content: "0" counter(aud);
  position: absolute;
  z-index: 1;
  top: 1.15rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.audience-card::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 30%, rgba(34, 211, 238, 0.15), transparent 42%),
    radial-gradient(circle at 72% 72%, rgba(123, 78, 255, 0.13), transparent 46%);
  filter: blur(34px);
  opacity: 0;
  transition: opacity 640ms var(--ease);
  animation: aud-drift 9s ease-in-out infinite alternate;
}

.audience-card:hover::after {
  opacity: 1;
}

@keyframes aud-drift {
  from {
    transform: rotate(0deg) translate3d(-3%, -2%, 0);
  }
  to {
    transform: rotate(9deg) translate3d(3%, 2.5%, 0);
  }
}

.audience-card--lead {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(
      from var(--aud-spin),
      rgba(34, 211, 238, 0) 0deg,
      rgba(34, 211, 238, 0.85) 80deg,
      rgba(59, 130, 246, 0.6) 160deg,
      rgba(168, 85, 247, 0.55) 240deg,
      rgba(236, 72, 153, 0.6) 300deg,
      rgba(34, 211, 238, 0) 360deg
    ) border-box;
  animation: aud-spin 7s linear infinite;
}

@keyframes aud-spin {
  to {
    --aud-spin: 360deg;
  }
}

/* ---------- Act 3: evidence — sticky product stage ---------- */
.stage-ev {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
}

.stage-ev__copy {
  display: grid;
  gap: clamp(2.5rem, 9vh, 5rem);
  padding-block: clamp(1rem, 5vh, 3rem);
}

.stage-ev__chapter {
  max-width: 48ch;
}

html.js-stage .stage-ev__chapter {
  min-height: clamp(220px, 42vh, 380px);
  display: grid;
  align-content: center;
  opacity: 0.35;
  transition: opacity 420ms var(--ease);
}

html.js-stage .stage-ev__chapter.is-active {
  opacity: 1;
}

.stage-ev__chapter .surface-panel__label {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--pulse-cyan);
}

.stage-ev__chapter h3 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  line-height: 1.05;
}

.stage-ev__chapter p {
  color: var(--ink-dim);
  line-height: 1.7;
}

.stage-ev__frame {
  position: sticky;
  top: 92px;
  order: 2;
  margin: 0;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 70px 150px -60px rgba(6, 8, 14, 0.92),
    0 36px 110px -44px rgba(34, 211, 238, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stage-ev__shots {
  position: relative;
}

.stage-ev__shots img {
  width: 100%;
  display: block;
}

html.js-stage .stage-ev__shots {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.07), transparent 58%),
    var(--bg-alt);
}

html.js-stage .stage-ev__shots picture {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: saturate(0.84) contrast(1.02);
  transform: translateZ(-260px) scale(0.9);
  transform-style: preserve-3d;
  transition: opacity 620ms var(--ease), transform 880ms var(--ease), filter 620ms var(--ease);
}

html.js-stage .stage-ev__shots picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.08), transparent 30%, rgba(168, 85, 247, 0.04));
  mix-blend-mode: screen;
  pointer-events: none;
}

html.js-stage .stage-ev__shots img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

html.js-stage .stage-ev__shots picture.is-active,
html.js-stage .stage-ev__shots[data-active="0"] picture[data-shot="0"],
html.js-stage .stage-ev__shots[data-active="1"] picture[data-shot="1"],
html.js-stage .stage-ev__shots[data-active="2"] picture[data-shot="2"],
html.js-stage .stage-ev__shots[data-active="3"] picture[data-shot="3"],
html.js-stage .stage-ev__shots[data-active="4"] picture[data-shot="4"],
html.js-stage .stage-ev__shots[data-active="5"] picture[data-shot="5"] {
  z-index: 2;
  opacity: 1;
  filter: saturate(1) contrast(1);
  transform: translateZ(0) scale(1);
}

.stage-ev__zoom {
  position: absolute;
  z-index: 4;
  inset: 36px 0 0;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: pan-y;
}

html.js-stage .stage-ev__zoom {
  display: flex;
}

.stage-ev__zoom span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(6, 6, 10, 0.82);
  color: rgba(232, 242, 250, 0.88);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.68;
  transform: translateY(3px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), border-color 180ms var(--ease);
  pointer-events: none;
}

.stage-ev__zoom:hover span,
.stage-ev__zoom:focus-visible span {
  opacity: 1;
  transform: none;
  border-color: rgba(34, 211, 238, 0.48);
}

.stage-ev__zoom:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.72);
  outline-offset: -4px;
}

/* ---------- Evidence screenshot lightbox ---------- */
body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 211, 238, 0.06), transparent 48%),
    rgba(1, 1, 5, 0.94);
  cursor: zoom-out;
}

.lightbox__frame {
  position: relative;
  z-index: 1;
  width: min(95vw, 1500px);
  max-height: calc(100svh - 1.5rem);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  box-shadow: 0 40px 160px rgba(0, 0, 0, 0.76), 0 0 90px rgba(34, 211, 238, 0.1);
  animation: lightbox-enter 260ms var(--ease) both;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.lightbox__bar figcaption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__close {
  flex: 0 0 auto;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox__close:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100svh - 100px);
  object-fit: contain;
  background: var(--bg-alt);
}

@keyframes lightbox-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (hover: none) {
  .stage-ev__zoom span {
    opacity: 0.9;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .stage-ev {
    grid-template-columns: 1fr;
  }

  .stage-ev__frame {
    order: 0;
    top: 64px;
    z-index: 10;
  }

  .stage-ev__copy {
    order: 1;
  }

  html.js-stage .stage-ev__chapter {
    min-height: clamp(190px, 34vh, 300px);
  }
}

/* ---------- compare slider (Value) ---------- */
.compare {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.compare__sub {
  margin: 1.7rem 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.compare__panel h3 {
  margin: clamp(1.2rem, 2vw, 2rem) 0 1.2rem;
  font-size: clamp(1.5rem, 2.3vw, 2.5rem);
}

.compare__panel {
  min-height: 0;
}

.compare__handle,
.compare__range,
.compare__hint {
  display: none;
}

html.js-compare .compare {
  grid-template-columns: 1fr;
}

html.js-compare .compare__panel {
  grid-area: 1 / 1;
}

/* Each side keeps its copy in its own half, so the divider wipes the
   opposing background over it instead of slicing lines of text. */
html.js-compare .compare__panel--before {
  padding-right: 52%;
}

html.js-compare .compare__panel--after {
  clip-path: inset(0 0 0 var(--cut, 50%));
  padding-left: 52%;
}

html.js-compare .compare__handle {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cut, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--gradient-pulse);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
  z-index: 3;
  pointer-events: none;
}

html.js-compare .compare__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html.js-compare .compare__handle span::before {
  content: "◂ ▸";
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--pulse-cyan);
}

html.js-compare .compare__range {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}

html.js-compare .compare__hint {
  display: inline;
  color: var(--pulse-cyan);
}

/* On narrow screens the wipe has no room: fall back to stacked panels */
@media (max-width: 860px) {
  html.js-compare .compare {
    grid-template-columns: 1fr;
  }

  html.js-compare .compare__panel {
    grid-area: auto;
  }

  html.js-compare .compare__panel--before {
    padding-right: clamp(1.25rem, 3vw, 2rem);
  }

  html.js-compare .compare__panel--after {
    clip-path: none;
    padding-left: clamp(1.25rem, 3vw, 2rem);
  }

  html.js-compare .compare__handle,
  html.js-compare .compare__range,
  html.js-compare .compare__hint {
    display: none;
  }
}

/* ---------- claims — outcome cards under the compare panel ---------- */
.claims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.claim {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  align-content: start;
  min-height: 168px;
  padding: clamp(1.1rem, 1.6vw, 1.4rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--surface);
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    background 220ms var(--ease);
}

.claim::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0;
  height: 1px;
  background: var(--gradient-pulse);
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 620ms var(--ease);
}

.claim:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.3);
}

.claim:hover::after {
  transform: scaleX(1);
}

.claim__icon {
  width: 42px;
  height: 42px;
}

.claim:hover .claim__icon {
  color: var(--pulse-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 56px -30px rgba(59, 130, 246, 0.8);
}

.claim p {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
}

.claim__no {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.85);
}

.claim__no--only {
  color: var(--pulse-cyan);
}

.claim--lead {
  border-color: rgba(34, 211, 238, 0.3);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.14), transparent 52%),
    radial-gradient(ellipse at 0% 100%, rgba(59, 130, 246, 0.08), transparent 48%),
    var(--surface);
}

@media (max-width: 1320px) {
  .claims {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .claims {
    grid-template-columns: 1fr;
  }

  .claim {
    min-height: 0;
  }
}

/* ---------- kinetic type (word-by-word statements) ---------- */
html.js-reveal [data-reveal][data-kinetic] {
  opacity: 1;
  transform: none;
}

.kword {
  font-style: normal;
}

html.js-reveal [data-kinetic] .kword:not(.kword--unit) {
  display: inline-block;
}

html.js-reveal [data-kinetic] .kword {
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
  transition-delay: calc(var(--w, 0) * 45ms);
}

html.js-reveal [data-kinetic].is-in .kword {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.resus__stop--chaos {
  stop-color: var(--chaos-red);
}

.resus__stop--chaos-hot {
  stop-color: var(--chaos-hot);
}

/* =====================================================================
   Spatial depth journey
   The viewport stays visually fixed while chapter planes travel through
   the camera. Canvas is decorative; the semantic document remains native.
   ===================================================================== */

.pulse-depth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}

.pulse-depth-canvas[data-depth-renderer="ready"] {
  opacity: 0.55;
}

.depth-hud {
  display: none;
}

/* Wrappers are deliberately inert outside the full desktop experience. */
.depth-plane-shell {
  min-width: 0;
}

.depth-plane-shell--grid-card,
.depth-plane-shell--grid-card > * {
  height: 100%;
}

.depth-plane-shell--hero-copy {
  grid-area: copy;
}

.depth-plane-shell--hero-visual {
  grid-area: visual;
  min-width: 0;
}

.depth-plane-shell--hero-stats {
  grid-area: stats;
}

/* The problem is a complete red environment, not a handful of red cards. */
.section--problem {
  --scene-accent: var(--chaos-red);
  --scene-accent-hot: var(--chaos-hot);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(255, 61, 76, 0.105), transparent 36%),
    radial-gradient(ellipse at 8% 68%, rgba(111, 16, 32, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(23, 5, 10, 0.22), rgba(6, 6, 8, 0.04));
}

.section--problem .section__eyebrow {
  color: rgba(255, 126, 111, 0.96);
}

.section--problem .section__eyebrow::before {
  background: var(--chaos-red);
  box-shadow: 0 0 18px rgba(255, 61, 76, 0.75);
}

.section--problem .section__title em,
.section--problem .problem__close span,
.section--problem .when__impact span {
  color: transparent;
  background: linear-gradient(96deg, var(--chaos-soft) 0%, var(--chaos-red) 48%, var(--chaos-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.section--problem .loss-console {
  border-color: rgba(255, 61, 76, 0.2);
  box-shadow:
    0 38px 110px -72px rgba(255, 61, 76, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.section--problem .risk-card {
  background:
    linear-gradient(180deg, rgba(255, 61, 76, 0.04), transparent 46%),
    rgba(13, 8, 12, 0.84);
}

/* The definition is intentionally static: understand the product before watching it move. */
.section--definition {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--hair);
  background:
    radial-gradient(circle at 18% 28%, color-mix(in srgb, var(--pulse-cyan) 10%, transparent), transparent 34%),
    radial-gradient(circle at 84% 76%, color-mix(in srgb, var(--pulse-violet) 8%, transparent), transparent 31%),
    color-mix(in srgb, var(--bg) 92%, var(--surface));
}

.section--definition::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--hair-strong) 0.7px, transparent 0.9px);
  background-size: 28px 28px;
  opacity: 0.24;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
}

.pulse-definition {
  width: 100%;
}

.pulse-definition__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.pulse-definition__intro .section__head {
  max-width: 840px;
  margin-bottom: 0;
}

.pulse-definition__plain {
  position: relative;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--pulse-cyan) 24%, var(--hair-strong));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pulse-cyan) 7%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pulse-definition__plain::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: var(--gradient-pulse);
  box-shadow: 0 0 20px color-mix(in srgb, var(--pulse-cyan) 38%, transparent);
}

.pulse-definition__plain > span,
.pulse-definition__capabilities > li > span {
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pulse-definition__plain p {
  margin-top: 0.8rem;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
}

.pulse-definition__capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.25rem, 4.5vw, 4rem);
  padding: 1px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--hair-strong);
  overflow: hidden;
}

.pulse-definition__capabilities > li {
  position: relative;
  min-height: 218px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: color-mix(in srgb, var(--bg) 89%, var(--surface));
}

.pulse-definition__capabilities > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-pulse);
  opacity: 0.72;
}

.pulse-definition__capabilities strong {
  display: block;
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
}

.pulse-definition__capabilities p {
  max-width: 42ch;
  margin-top: 0.85rem;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .pulse-definition__intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pulse-definition__capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pulse-definition__capabilities {
    grid-template-columns: 1fr;
  }

  .pulse-definition__capabilities > li {
    min-height: 0;
  }

  .pulse-definition__capabilities strong {
    margin-top: 1.1rem;
  }

}

.section--system {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.085), transparent 31%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.03), transparent 18%);
}

@media (min-width: 1024px) and (min-height: 700px) {
  html.js-depth .ambient__grid {
    opacity: 0.3;
  }

  html.js-depth .ambient__aurora {
    opacity: 0.34;
  }

  html.js-depth .spine {
    display: none;
  }

  html.js-depth .depth-hud {
    position: fixed;
    left: max(18px, calc(var(--gutter) * 0.65));
    bottom: clamp(20px, 3.3vh, 38px);
    z-index: 28;
    width: min(248px, 18vw);
    display: grid;
    grid-template-columns: 2px 1fr;
    column-gap: 13px;
    color: rgba(166, 238, 247, 0.76);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
    pointer-events: none;
    transition: color 480ms var(--ease), opacity 360ms var(--ease);
  }

  html.js-depth .depth-hud__rail {
    position: relative;
    grid-row: 1 / span 2;
    width: 1px;
    height: 64px;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  html.js-depth .depth-hud__rail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: scaleY(var(--depth-progress, 0));
    transform-origin: top;
    box-shadow: 0 0 12px currentColor;
  }

  html.js-depth .depth-hud__chapter {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    min-width: 0;
  }

  html.js-depth .depth-hud__index {
    color: var(--ink);
    font-size: 11px;
  }

  html.js-depth .depth-hud__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.js-depth .depth-hud__telemetry {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid currentColor;
    color: rgba(161, 166, 180, 0.62);
    letter-spacing: 0.08em;
  }

  /* Native document panels are counter-scrolled toward a single horizon. */
  html.js-depth .depth-plane-shell {
    position: relative;
    z-index: 1;
    opacity: var(--dp-opacity, 1);
    transform:
      perspective(1500px)
      translate3d(var(--dp-x, 0px), var(--dp-y, 0px), var(--dp-z, 0px))
      rotateX(var(--dp-rx, 0deg))
      rotateY(var(--dp-ry, 0deg))
      scale(var(--dp-scale, 1));
    transform-origin: 50% 48%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: opacity 100ms linear;
  }

  html.js-depth .depth-plane-shell[data-depth-plane-state="active"],
  html.js-depth .depth-plane-shell[data-depth-plane-state="travel"] {
    will-change: transform, opacity;
  }

  html.js-depth .depth-plane-shell[data-depth-plane-state="far"] {
    pointer-events: none;
  }

  html.js-depth .depth-plane-shell.is-depth-focused {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    will-change: auto;
  }

  html.js-depth .depth-plane-shell--hero-copy {
    transform-origin: 24% 50%;
  }

  html.js-depth .depth-plane-shell--hero-visual {
    transform-origin: 76% 50%;
  }

  /* Red act: each scene starts deep, reaches the horizon, then crosses us. */
  html.js-depth.js-pin .act1__stage {
    perspective: 1280px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    isolation: isolate;
    background:
      radial-gradient(ellipse at 50% 50%, rgba(255, 61, 76, 0.065), transparent 49%),
      linear-gradient(180deg, rgba(6, 6, 8, 0.18), rgba(18, 4, 9, 0.05));
  }

  html.js-depth.js-pin .act1__stage::before,
  html.js-depth.js-pin .act1__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  html.js-depth.js-pin .act1__stage::before {
    z-index: 0;
    background:
      repeating-linear-gradient(90deg, transparent 0 13vw, rgba(255, 61, 76, 0.035) 13vw calc(13vw + 1px)),
      repeating-linear-gradient(0deg, transparent 0 11vh, rgba(255, 61, 76, 0.025) 11vh calc(11vh + 1px));
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  }

  html.js-depth.js-pin .act1__stage::after {
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(255, 61, 76, 0.05), transparent 13%, transparent 87%, rgba(255, 61, 76, 0.05)),
      radial-gradient(ellipse at center, transparent 46%, rgba(6, 6, 8, 0.55) 100%);
  }

  html.js-depth.js-pin .act1__ekg {
    z-index: 1;
  }

  html.js-depth.js-pin .act1__scene {
    z-index: 2;
    opacity: 0;
    transform: translate3d(0, 0, -1050px) scale(0.72);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: opacity 720ms var(--ease), transform 980ms var(--ease);
  }

  html.js-depth.js-pin .act1__stage[data-phase="0"] .act1__scene--head,
  html.js-depth.js-pin .act1__stage[data-phase="1"] .act1__scene--cards,
  html.js-depth.js-pin .act1__stage[data-phase="2"] .act1__scene--console,
  html.js-depth.js-pin .act1__stage[data-phase="3"] .act1__scene--finale {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  html.js-depth.js-pin .act1__stage[data-phase="1"] .act1__scene--head,
  html.js-depth.js-pin .act1__stage[data-phase="2"] .act1__scene--head,
  html.js-depth.js-pin .act1__stage[data-phase="2"] .act1__scene--cards,
  html.js-depth.js-pin .act1__stage[data-phase="3"] .act1__scene--head,
  html.js-depth.js-pin .act1__stage[data-phase="3"] .act1__scene--cards,
  html.js-depth.js-pin .act1__stage[data-phase="3"] .act1__scene--console {
    opacity: 0;
    transform: translate3d(0, 0, 390px) scale(1.16);
    pointer-events: none;
  }

  /* Evidence screenshots now overtake the camera instead of crossfading flat. */
  html.js-depth.js-stage .stage-ev__frame {
    perspective: 1500px;
    transform-style: preserve-3d;
  }

  html.js-depth.js-stage .stage-ev__shots {
    perspective: 1500px;
    transform-style: preserve-3d;
  }

  html.js-depth.js-stage .stage-ev__shots picture {
    opacity: 0;
    transform: perspective(1500px) translate3d(0, 0, -920px) scale(0.7);
    transform-origin: 50% 44%;
    backface-visibility: hidden;
    transition: opacity 620ms var(--ease), transform 920ms var(--ease);
  }

  html.js-depth.js-stage .stage-ev__shots[data-active="0"] picture[data-shot="0"],
  html.js-depth.js-stage .stage-ev__shots[data-active="1"] picture[data-shot="1"],
  html.js-depth.js-stage .stage-ev__shots[data-active="2"] picture[data-shot="2"],
  html.js-depth.js-stage .stage-ev__shots[data-active="3"] picture[data-shot="3"],
  html.js-depth.js-stage .stage-ev__shots[data-active="4"] picture[data-shot="4"],
  html.js-depth.js-stage .stage-ev__shots[data-active="5"] picture[data-shot="5"] {
    opacity: 1;
    transform: perspective(1500px) translate3d(0, 0, 0) scale(1);
    will-change: transform, opacity;
  }

  html.js-depth.js-stage .stage-ev__shots[data-active="1"] picture[data-shot="0"],
  html.js-depth.js-stage .stage-ev__shots[data-active="2"] picture:is([data-shot="0"], [data-shot="1"]),
  html.js-depth.js-stage .stage-ev__shots[data-active="3"] picture:is([data-shot="0"], [data-shot="1"], [data-shot="2"]),
  html.js-depth.js-stage .stage-ev__shots[data-active="4"] picture:not([data-shot="4"], [data-shot="5"]),
  html.js-depth.js-stage .stage-ev__shots[data-active="5"] picture:not([data-shot="5"]) {
    opacity: 0;
    transform: perspective(1500px) translate3d(0, 0, 510px) scale(1.13);
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 1023px), (max-height: 699px) {
  .pulse-depth-canvas[data-depth-renderer="ready"] {
    opacity: 0.28;
  }

  .depth-hud {
    display: none !important;
  }

  .depth-plane-shell {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================================
   Outcome-first narrative · product bridge + project-memory demo
   ===================================================================== */

.hero__copy {
  position: relative;
  z-index: 3;
}

.hero__title .line--promise:last-child {
  max-width: 15ch;
  white-space: normal;
  font-size: 0.44em;
  line-height: 1.05;
}

.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero__trust i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pulse-cyan);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pulse-cyan) 55%, transparent);
}

.product-bridge {
  position: relative;
  width: 100%;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  border-block: 1px solid var(--hair);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pulse-cyan) 7%, transparent), transparent 38%, color-mix(in srgb, var(--pulse-violet) 6%, transparent)),
    color-mix(in srgb, var(--bg) 90%, var(--surface));
  overflow: hidden;
}

.product-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--hair-strong) 0.7px, transparent 0.9px);
  background-size: 24px 24px;
  opacity: 0.28;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.product-bridge__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.product-bridge__eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-bridge__statement h2 {
  max-width: 18ch;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1.12;
}

.product-bridge__statement strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.product-bridge__products {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.product-bridge__product {
  min-height: 156px;
  padding: 1.25rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.product-bridge__product--pulse {
  border-color: color-mix(in srgb, var(--pulse-cyan) 30%, var(--hair-strong));
}

.product-bridge__product--nexus {
  border-color: color-mix(in srgb, var(--pulse-violet) 28%, var(--hair-strong));
}

.product-bridge__product > span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
}

.product-bridge__product p {
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.product-bridge__products > i {
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-style: normal;
}

.section--knowledge-demo {
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 44%, color-mix(in srgb, var(--pulse-violet) 10%, transparent), transparent 34%),
    radial-gradient(circle at 38% 62%, color-mix(in srgb, var(--pulse-cyan) 8%, transparent), transparent 32%);
}

.kg-questions-intro span {
  flex: 0 0 auto;
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kg-ingest {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 5.4rem);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg) 88%, var(--surface));
  box-shadow: 0 32px 90px color-mix(in srgb, var(--bg) 70%, transparent);
}

.kg-ingest__head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.kg-ingest__head span,
.kg-ingest__column-label {
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kg-ingest__head span {
  display: block;
  margin-bottom: 0.65rem;
}

.kg-ingest__head h3 {
  max-width: 29ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.12;
}

.kg-ingest__head h3 em {
  color: var(--pulse-cyan);
  font-style: normal;
}

.kg-ingest__head p {
  max-width: 44ch;
}

.kg-ingest__canvas {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(150px, 0.58fr) minmax(410px, 1.7fr);
  align-items: stretch;
  background:
    linear-gradient(var(--hair-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-faint) 1px, transparent 1px),
    radial-gradient(circle at 73% 52%, color-mix(in srgb, var(--pulse-violet) 9%, transparent), transparent 34%);
  background-size: 32px 32px, 32px 32px, auto;
}

.kg-ingest__routes {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.kg-ingest__routes path {
  fill: none;
  stroke: rgba(161, 166, 180, 0.2);
  stroke-dasharray: 5 9;
  stroke-linecap: round;
  stroke-width: 1.5;
  opacity: 0.32;
  vector-effect: non-scaling-stroke;
  transition: stroke 260ms ease, opacity 260ms ease, stroke-width 260ms ease;
}

.kg-ingest__routes path.is-active,
.kg-ingest__routes path.is-complete {
  stroke: var(--pulse-cyan);
  opacity: 1;
}

.kg-ingest__routes path.is-active {
  stroke-width: 2.25;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--pulse-cyan) 58%, transparent));
}

.kg-ingest__routes path.is-complete {
  stroke-width: 1.65;
  opacity: 0.55;
}

.kg-ingest__packet {
  fill: #fff;
  filter: url(#kg-ingest-glow);
  opacity: 0;
}

.kg-ingest__packet.is-moving {
  opacity: 1;
}

.kg-ingest__sources,
.kg-ingest__pulse,
.kg-ingest__graph {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.kg-ingest__sources {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  padding: 2.5rem clamp(1rem, 2vw, 1.6rem);
}

.kg-ingest__column-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink-mid);
}

.kg-ingest__source {
  position: relative;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--bg) 56%, transparent);
  opacity: 0.58;
  transition: opacity 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease), transform 280ms var(--ease);
}

.kg-ingest__source::after {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pulse-cyan);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pulse-cyan) 64%, transparent);
  content: "";
  opacity: 0.45;
  transform: translateY(-50%);
}

.kg-ingest__source small,
.kg-ingest__pulse small,
.kg-ingest__kg-node small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.kg-ingest__source strong {
  color: var(--ink-dim);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.kg-ingest__source.is-active,
.kg-ingest__source.is-complete {
  opacity: 1;
  border-color: color-mix(in srgb, var(--pulse-cyan) 48%, var(--hair-strong));
}

.kg-ingest__source.is-active {
  box-shadow: 0 0 30px color-mix(in srgb, var(--pulse-cyan) 14%, transparent);
  transform: translateX(4px);
}

.kg-ingest__pulse {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}

.kg-ingest__pulse-mark {
  position: relative;
  width: clamp(106px, 10vw, 136px);
  aspect-ratio: 1;
  margin-bottom: 0.55rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--pulse-cyan) 32%, var(--hair-strong));
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--pulse-cyan) 13%, transparent), transparent 62%),
    var(--surface-2);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--pulse-cyan) 3%, transparent), 0 0 70px color-mix(in srgb, var(--pulse-cyan) 9%, transparent);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.kg-ingest__pulse-mark::before,
.kg-ingest__pulse-mark::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--pulse-cyan) 16%, transparent);
  border-radius: 50%;
  content: "";
}

.kg-ingest__pulse-mark::before { inset: -13px; }
.kg-ingest__pulse-mark::after { inset: 13px; border-style: dashed; }

.kg-ingest__pulse-mark img {
  width: 47%;
  height: 47%;
  object-fit: contain;
}

.kg-ingest__pulse > strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.kg-ingest__pulse.is-active .kg-ingest__pulse-mark,
.kg-ingest__pulse.is-complete .kg-ingest__pulse-mark {
  border-color: var(--pulse-cyan);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--pulse-cyan) 5%, transparent), 0 0 76px color-mix(in srgb, var(--pulse-cyan) 22%, transparent);
}

.kg-ingest__pulse.is-active .kg-ingest__pulse-mark {
  transform: scale(1.04);
}

.kg-ingest__graph {
  min-height: 440px;
}

.kg-ingest__graph > .kg-ingest__column-label {
  position: absolute;
  z-index: 3;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
}

.kg-ingest__kg-node {
  --ingest-node-accent: var(--pulse-cyan);
  position: absolute;
  z-index: 2;
  width: 80px;
  aspect-ratio: 1;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--ingest-node-accent) 13%, transparent), transparent 66%),
    var(--surface-2);
  box-shadow: 0 12px 36px color-mix(in srgb, var(--bg) 58%, transparent);
  opacity: 0.38;
  text-align: center;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.kg-ingest__kg-node small {
  font-size: 0.57rem;
}

.kg-ingest__kg-node strong {
  color: var(--ink-dim);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.1;
}

.kg-ingest__kg-node.is-active,
.kg-ingest__kg-node.is-complete {
  opacity: 1;
  border-color: color-mix(in srgb, var(--ingest-node-accent) 62%, var(--hair-strong));
}

.kg-ingest__kg-node.is-active {
  box-shadow: 0 0 36px color-mix(in srgb, var(--ingest-node-accent) 22%, transparent);
  transform: translate(-50%, -50%) scale(1.05);
}

.kg-ingest__kg-node.is-active small,
.kg-ingest__kg-node.is-complete small {
  color: var(--ingest-node-accent);
}

.kg-ingest__kg-node.is-active strong,
.kg-ingest__kg-node.is-complete strong {
  color: var(--ink);
}

.kg-ingest__kg-node--core {
  width: 106px;
  left: 50%;
  top: 50%;
  --ingest-node-accent: var(--pulse-violet);
}

.kg-ingest__kg-node--core small { font-size: 0.65rem; }
.kg-ingest__kg-node--core strong { font-size: 0.72rem; }
.kg-ingest__kg-node--ideation { left: 23%; top: 24%; }
.kg-ingest__kg-node--refinement { left: 67%; top: 22%; --ingest-node-accent: var(--pulse-violet); }
.kg-ingest__kg-node--spec { left: 84%; top: 42%; --ingest-node-accent: var(--pulse-violet); }
.kg-ingest__kg-node--task { left: 72%; top: 78%; --ingest-node-accent: var(--pulse-blue); }
.kg-ingest__kg-node--test { left: 35%; top: 83%; }
.kg-ingest__kg-node--bug { left: 15%; top: 58%; --ingest-node-accent: var(--chaos-red); }

.kg-ingest__footer {
  position: relative;
  z-index: 3;
  min-height: 54px;
  padding: 0.8rem clamp(1.25rem, 2.5vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  border-top: 1px solid var(--hair);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
}

.kg-ingest__footer > span {
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.kg-ingest__footer p {
  max-width: 64ch;
  color: var(--ink-dim);
  font-size: 0.72rem;
  line-height: 1.5;
}

.kg-questions-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-bottom: 1.25rem;
}

.kg-questions-intro span {
  display: block;
  margin-bottom: 0.65rem;
}

.kg-questions-intro h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.kg-questions-intro h3 em {
  color: var(--pulse-cyan);
  font-style: normal;
}

.kg-questions-intro p {
  max-width: 48ch;
  padding-bottom: 0.2rem;
  color: var(--ink-dim);
  font-size: 0.82rem;
  line-height: 1.55;
}

.kg-demo {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.55fr);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  box-shadow: 0 32px 90px color-mix(in srgb, var(--bg) 72%, transparent);
  overflow: hidden;
}

.kg-demo:not(.is-ready) {
  grid-template-columns: 1fr;
}

.kg-demo:not(.is-ready) .kg-demo__questions,
.kg-demo:not(.is-ready) .kg-demo__toggle,
.kg-demo:not(.is-ready) .kg-demo__graph,
.kg-demo:not(.is-ready) .kg-demo__hud {
  display: none;
}

.kg-demo:not(.is-ready) .kg-demo__stage {
  min-height: 0;
  display: block;
}

.kg-demo__questions {
  position: relative;
  z-index: 2;
  min-width: 0;
  border-right: 1px solid var(--hair-strong);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.kg-demo__questions-head,
.kg-demo__hud {
  min-height: 58px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--hair);
}

.kg-demo__questions-head {
  justify-content: space-between;
}

.kg-demo__questions-head div {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.kg-demo__questions-head span,
.kg-demo__hud span,
.kg-demo__answer > span {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kg-demo__questions-head strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}

.kg-demo__toggle {
  min-width: 58px;
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.kg-demo__toggle:hover,
.kg-demo__toggle:focus-visible {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--pulse-cyan) 48%, var(--hair-strong));
  background: color-mix(in srgb, var(--pulse-cyan) 7%, transparent);
}

.kg-demo__questions li + li {
  border-top: 1px solid var(--hair);
}

.kg-demo__questions li > button {
  width: 100%;
  min-height: 104px;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  text-align: left;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.kg-demo__questions li > button > span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
}

.kg-demo__questions li > button > strong {
  color: var(--ink-dim);
  font-size: clamp(1.02rem, 1.15vw, 1.15rem);
  font-weight: 400;
  line-height: 1.38;
}

.kg-demo__questions mark {
  padding: 0;
  background: transparent;
  color: var(--pulse-cyan);
  font-weight: 600;
  box-shadow: inset 0 -0.16em color-mix(in srgb, var(--pulse-cyan) 18%, transparent);
}

.kg-demo__questions li > button:hover,
.kg-demo__questions li > button.is-active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--pulse-cyan) 11%, transparent), transparent);
}

.kg-demo__questions li > button.is-active > span {
  color: var(--pulse-cyan);
}

.kg-demo__questions li > button.is-active > strong {
  color: var(--ink);
}

.kg-demo__stage {
  position: relative;
  min-width: 0;
  min-height: 700px;
  display: grid;
  grid-template-rows: auto minmax(390px, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(var(--hair-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-faint) 1px, transparent 1px);
  background-size: 32px 32px;
}

.kg-demo__hud {
  position: relative;
  z-index: 3;
}

.kg-demo__hud i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hair-strong), color-mix(in srgb, var(--pulse-cyan) 45%, transparent), var(--hair-strong));
}

.kg-demo__graph {
  position: relative;
  min-height: 390px;
  margin: 0.8rem 1.2rem 0;
}

.kg-demo__graph::before,
.kg-demo__graph::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.kg-demo__graph::before {
  inset: 11% 23%;
  border: 1px solid var(--hair);
  box-shadow: 0 0 70px color-mix(in srgb, var(--pulse-cyan) 8%, transparent) inset;
}

.kg-demo__graph::after {
  inset: 23% 35%;
  border: 1px dashed var(--hair-strong);
}

.kg-demo__node {
  --kg-node-accent: var(--pulse-cyan);
  position: absolute;
  z-index: 2;
  width: clamp(96px, 9vw, 118px);
  min-height: 0;
  aspect-ratio: 1;
  padding: 0.72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--kg-node-accent) 14%, transparent), transparent 66%),
    var(--surface-2);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--bg) 55%, transparent);
  opacity: 0.52;
  text-align: center;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 360ms var(--ease), transform 420ms var(--ease), border-color 360ms var(--ease), box-shadow 360ms var(--ease);
}

.kg-demo__node small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.66vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1;
}

.kg-demo__node strong {
  color: var(--ink-dim);
  font-size: clamp(0.64rem, 0.72vw, 0.76rem);
  font-weight: 500;
  line-height: 1.2;
}

.kg-demo__node.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  border-color: color-mix(in srgb, var(--kg-node-accent) 58%, var(--hair-strong));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--kg-node-accent) 8%, transparent), 0 0 34px color-mix(in srgb, var(--kg-node-accent) 18%, transparent);
}

.kg-demo__node.is-active small {
  color: var(--kg-node-accent);
}

.kg-demo__node.is-active strong {
  color: var(--ink);
}

.kg-demo__node.is-dim {
  opacity: 0.1;
}

.kg-demo__node--spec { left: 9%; top: 45%; }
.kg-demo__node--prior { --kg-node-accent: var(--pulse-violet); left: 23%; top: 13%; }
.kg-demo__node--decision { --kg-node-accent: var(--pulse-violet); left: 43%; top: 36%; }
.kg-demo__node--alternative { --kg-node-accent: var(--ink-mid); left: 69%; top: 12%; }
.kg-demo__node--constraint { --kg-node-accent: var(--pulse-magenta); left: 82%; top: 39%; }
.kg-demo__node--bug { --kg-node-accent: var(--chaos-red); left: 16%; top: 76%; }
.kg-demo__node--learning { --kg-node-accent: var(--pulse-blue); left: 40%; top: 76%; }
.kg-demo__node--task { --kg-node-accent: var(--pulse-blue); left: 64%; top: 76%; }
.kg-demo__node--test { left: 88%; top: 76%; }

.kg-demo__routes {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.kg-demo__routes path {
  fill: none;
  stroke: rgba(161, 166, 180, 0.16);
  stroke-dasharray: 5 9;
  stroke-linecap: round;
  stroke-width: 1.5;
  opacity: 0.16;
  vector-effect: non-scaling-stroke;
  transition: stroke 320ms ease, opacity 320ms ease, stroke-width 320ms ease;
}

.kg-demo__routes path.is-active {
  stroke: var(--pulse-cyan);
  stroke-width: 2.25;
  opacity: 1;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--pulse-cyan) 58%, transparent));
}

.kg-demo__packet {
  fill: #fff;
  filter: url(#kg-route-glow);
  opacity: 0;
}

.kg-demo__packet.is-moving {
  opacity: 1;
}

.kg-demo__answers {
  position: relative;
  z-index: 3;
  min-height: 218px;
  border-top: 1px solid var(--hair-strong);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.kg-demo.is-ready .kg-demo__answer {
  display: none;
}

.kg-demo.is-ready .kg-demo__answer.is-active {
  display: block;
}

.kg-demo__answer {
  padding: clamp(1.15rem, 2.4vw, 1.8rem);
}

.kg-demo__answer.is-active {
  animation: kg-answer-in 480ms var(--ease) both;
}

@keyframes kg-answer-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.kg-demo__answer h3 {
  max-width: 34ch;
  margin: 0.55rem 0 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.2;
}

.kg-demo__answer p {
  max-width: 68ch;
  color: var(--ink-dim);
  font-size: 0.86rem;
  line-height: 1.55;
}

.kg-demo__answer ul {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kg-demo__answer li {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  color: var(--ink-dim);
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.kg-demo__note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.2rem);
  align-items: center;
  overflow: hidden;
  margin-top: clamp(1.25rem, 2.6vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border: 1px solid color-mix(in srgb, var(--pulse-cyan) 26%, var(--hair-strong));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--pulse-cyan) 8%, transparent), transparent 46%),
    color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.kg-demo__note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-pulse);
  box-shadow: 0 0 18px color-mix(in srgb, var(--pulse-cyan) 45%, transparent);
}

.kg-demo__note > span {
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kg-demo__note p {
  max-width: 86ch;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.kg-demo__note strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 680px) {
  .kg-demo__note {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}

.audience--situations {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audience--situations .audience-card {
  min-height: 290px;
}

@media (max-width: 1180px) {
  .hero__title .line--promise:last-child {
    max-width: 19ch;
  }

  .product-bridge__inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .product-bridge__statement h2 {
    max-width: 24ch;
  }

  .audience--situations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 980px) {
  .kg-ingest__canvas {
    grid-template-columns: minmax(170px, 0.9fr) minmax(120px, 0.55fr) minmax(320px, 1.55fr);
  }

  .kg-questions-intro {
    align-items: flex-start;
  }

  .kg-demo {
    grid-template-columns: 1fr;
  }

  .kg-demo__questions {
    border-right: 0;
    border-bottom: 1px solid var(--hair-strong);
  }

  .kg-demo__questions ol {
    display: grid;
    grid-template-columns: repeat(6, minmax(220px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .kg-demo__questions li {
    scroll-snap-align: start;
  }

  .kg-demo__questions li + li {
    border-top: 0;
    border-left: 1px solid var(--hair);
  }

  .kg-demo__questions li > button {
    min-height: 128px;
  }
}

@media (max-width: 680px) {
  .hero__title .line--promise:last-child {
    max-width: 15ch;
    font-size: 0.45em;
  }

  .product-bridge__products {
    grid-template-columns: 1fr;
  }

  .product-bridge__products > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .kg-ingest__head,
  .kg-ingest__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .kg-ingest__canvas {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 190px 360px;
  }

  .kg-ingest__sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.3rem;
  }

  .kg-ingest__sources > .kg-ingest__column-label {
    grid-column: 1 / -1;
  }

  .kg-ingest__source {
    min-height: 62px;
    padding: 0.65rem 0.7rem;
  }

  .kg-ingest__source.is-active {
    transform: translateY(-3px);
  }

  .kg-ingest__pulse {
    min-height: 190px;
  }

  .kg-ingest__pulse-mark {
    width: 104px;
  }

  .kg-ingest__graph {
    min-height: 360px;
  }

  .kg-ingest__kg-node {
    width: 72px;
  }

  .kg-ingest__kg-node--core {
    width: 94px;
  }

  .kg-ingest__kg-node small {
    font-size: 0.57rem;
  }

  .kg-ingest__kg-node strong {
    font-size: 0.64rem;
  }

  .kg-questions-intro {
    flex-direction: column;
  }

  .kg-demo__stage {
    grid-template-rows: auto minmax(390px, 1fr) auto;
  }

  .kg-demo__graph {
    min-height: 390px;
    margin-inline: 0.25rem;
  }

  .kg-demo__node {
    width: 76px;
    min-height: 0;
    padding: 0.4rem;
  }

  .kg-demo__node.is-dim {
    opacity: 0.07;
  }

  .kg-demo__node strong {
    font-size: 0.57rem;
  }

  .kg-demo__node small {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }

  .kg-demo__node--spec { left: 11%; }
  .kg-demo__node--prior { left: 23%; }
  .kg-demo__node--decision { left: 43%; }
  .kg-demo__node--alternative { left: 69%; }
  .kg-demo__node--constraint { left: 82%; }
  .kg-demo__node--bug { left: 13%; top: 76%; }
  .kg-demo__node--learning { left: 38%; top: 76%; }
  .kg-demo__node--task { left: 63%; top: 76%; }
  .kg-demo__node--test { left: 88%; top: 76%; }

  .audience--situations {
    grid-template-columns: 1fr;
  }

  .audience--situations .audience-card {
    min-height: 0;
  }
}

.no-js .kg-demo__questions,
.no-js .kg-demo__toggle,
.no-js .kg-demo__graph,
.no-js .kg-demo__hud {
  display: none;
}

.no-js .kg-ingest__routes,
.no-js .kg-ingest__packet {
  display: none;
}

.no-js .kg-ingest__source,
.no-js .kg-ingest__kg-node {
  opacity: 1;
}

.no-js .kg-demo__stage {
  min-height: 0;
  display: block;
}

.no-js .kg-demo__answer + .kg-demo__answer {
  border-top: 1px solid var(--hair);
}

@media (prefers-reduced-motion: reduce) {
  .kg-ingest__source,
  .kg-ingest__pulse-mark,
  .kg-ingest__kg-node,
  .kg-ingest__routes path,
  .kg-demo__node,
  .kg-demo__routes path,
  .kg-demo__answer {
    transition: none !important;
    animation: none !important;
  }

  .kg-ingest__packet,
  .kg-demo__packet {
    display: none;
  }
}

/* ---------- Pulse + Nexus delivery relay ---------- */
.pulse-relay {
  --relay-accent: var(--pulse-cyan);
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(13, 15, 22, 0.98), rgba(5, 6, 10, 0.96)),
    var(--surface);
  box-shadow: 0 48px 130px rgba(0, 0, 0, 0.38), 0 0 90px rgba(34, 211, 238, 0.045);
  isolation: isolate;
  scroll-margin-top: clamp(5.5rem, 10vh, 7rem);
}

.pulse-relay[data-phase="refinement"] {
  --relay-accent: var(--pulse-blue);
}

.pulse-relay[data-phase="refinement-validation"] {
  --relay-accent: var(--pulse-violet);
}

.pulse-relay[data-phase="execution"] {
  --relay-accent: var(--pulse-cyan);
}

.pulse-relay[data-phase="task-validation"] {
  --relay-accent: var(--pulse-magenta);
}

.pulse-relay[data-phase="closeout"] {
  --relay-accent: var(--pulse-violet);
}

.pulse-relay::before {
  position: absolute;
  z-index: 5;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, var(--relay-accent), transparent);
  content: "";
  opacity: 0.7;
  pointer-events: none;
}

.pulse-relay__bar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(120px, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: center;
  min-height: 72px;
  padding: 0.8rem 1rem 0.8rem 1.25rem;
  border-bottom: 1px solid var(--hair-strong);
  background: rgba(8, 9, 13, 0.9);
}

.pulse-relay__scenario {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
}

.pulse-relay__scenario > strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.pulse-relay__scenario > small {
  color: var(--relay-accent);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-relay__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-relay__live b {
  font-weight: 500;
}

.pulse-relay__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.pulse-relay[data-playing="false"] .pulse-relay__live {
  color: var(--ink-mid);
}

.pulse-relay[data-playing="false"][data-step="11"] .pulse-relay__live {
  color: var(--pulse-cyan);
}

.pulse-relay__progress {
  height: 1px;
  overflow: hidden;
  background: var(--hair-strong);
}

.pulse-relay__progress span {
  display: block;
  width: var(--delivery-progress, 8.333%);
  height: 100%;
  background: linear-gradient(90deg, var(--pulse-violet), var(--relay-accent));
  box-shadow: 0 0 10px var(--relay-accent);
  transition: width 420ms var(--ease), background 320ms ease;
}

.pulse-relay__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-relay__controls[hidden],
.pulse-relay__controls button[hidden] {
  display: none;
}

.pulse-relay__controls button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border: 1px solid var(--hair-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pulse-relay__controls button:hover,
.pulse-relay__controls button:focus-visible {
  border-color: color-mix(in srgb, var(--relay-accent) 58%, transparent);
  background: color-mix(in srgb, var(--relay-accent) 8%, transparent);
  color: var(--ink);
}

.pulse-relay__controls button:disabled {
  border-color: var(--hair);
  color: var(--ink-faint);
  cursor: not-allowed;
}

.pulse-relay__play,
.pulse-relay[data-playing="false"] .pulse-relay__pause {
  display: none;
}

.pulse-relay[data-playing="false"] .pulse-relay__play {
  display: block;
}

.pulse-relay__body {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(350px, 0.58fr);
  min-height: 690px;
}

.pulse-relay__stage {
  position: relative;
  min-width: 0;
  min-height: 690px;
  overflow: hidden;
  border-right: 1px solid var(--hair-strong);
  background:
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 41% 50%, rgba(34, 211, 238, 0.09), transparent 26%),
    radial-gradient(circle at 60% 50%, rgba(168, 85, 247, 0.09), transparent 25%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.9), rgba(4, 5, 8, 0.96));
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  contain: paint;
  isolation: isolate;
}

.pulse-relay__stage::after {
  position: absolute;
  z-index: -1;
  inset: 10%;
  border: 1px solid rgba(34, 211, 238, 0.05);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 80px rgba(59, 130, 246, 0.012), 0 0 0 160px rgba(168, 85, 247, 0.008);
}

.pulse-relay__routes {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pulse-relay__routes path {
  fill: none;
  stroke: rgba(161, 166, 180, 0.16);
  stroke-dasharray: 5 9;
  stroke-linecap: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: stroke 320ms ease, opacity 320ms ease, stroke-width 320ms ease;
}

.pulse-relay__routes path.is-complete {
  stroke: rgba(34, 211, 238, 0.22);
  stroke-dasharray: none;
}

.pulse-relay__routes path.is-active {
  stroke: var(--relay-accent);
  stroke-width: 2.25;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--relay-accent) 58%, transparent));
}

.pulse-relay__packet {
  fill: #fff;
  filter: url(#pulse-relay-glow);
  opacity: 0;
}

.pulse-relay__packet.is-moving {
  opacity: 1;
}

.pulse-relay__agent {
  --agent-accent: var(--pulse-cyan);
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  align-items: center;
  width: 158px;
  min-height: 82px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 19, 27, 0.96), rgba(8, 9, 13, 0.92));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  opacity: 0.42;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 360ms ease, transform 520ms var(--ease), border-color 360ms ease, box-shadow 360ms ease;
}

.pulse-relay__agent::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 0 50%, color-mix(in srgb, var(--agent-accent) 13%, transparent), transparent 58%);
  content: "";
  pointer-events: none;
}

.pulse-relay__agent::after {
  position: absolute;
  right: 0.55rem;
  bottom: -0.55rem;
  display: none;
  padding: 0.18rem 0.35rem;
  border: 1px solid color-mix(in srgb, var(--agent-accent) 48%, transparent);
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--agent-accent);
  font-family: var(--font-mono);
  font-size: 0.44rem;
  letter-spacing: 0.08em;
}

.pulse-relay__agent > i {
  position: relative;
  grid-row: 1 / span 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--agent-accent);
  box-shadow: 0 0 14px var(--agent-accent);
}

.pulse-relay__agent strong,
.pulse-relay__agent small {
  position: relative;
}

.pulse-relay__agent strong {
  align-self: end;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.pulse-relay__agent small {
  align-self: start;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pulse-relay__agent-index {
  position: absolute;
  top: 0.48rem;
  right: 0.58rem;
  color: color-mix(in srgb, var(--agent-accent) 58%, transparent);
  font-family: var(--font-mono);
  font-size: 0.48rem;
}

.pulse-relay__agent--human {
  --agent-accent: var(--pulse-magenta);
  top: 20%;
  left: 15%;
}

.pulse-relay__agent--claude {
  --agent-accent: var(--pulse-violet);
  top: 20%;
  left: 85%;
}

.pulse-relay__agent--antigravity {
  --agent-accent: var(--pulse-blue);
  top: 80%;
  left: 15%;
}

.pulse-relay__agent--codex {
  --agent-accent: var(--pulse-cyan);
  top: 80%;
  left: 85%;
}

.pulse-relay__agent.is-complete {
  border-color: color-mix(in srgb, var(--agent-accent) 24%, var(--hair));
  opacity: 0.72;
}

.pulse-relay__agent.is-active {
  border-color: color-mix(in srgb, var(--agent-accent) 62%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 38px color-mix(in srgb, var(--agent-accent) 16%, transparent);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}

.pulse-relay__agent.is-candidate {
  border-style: dashed;
  opacity: 0.84;
}

.pulse-relay__agent.is-candidate::after {
  display: block;
  content: "ELIGIBLE";
}

.pulse-relay__agent.is-owner {
  border-style: solid;
  opacity: 1;
}

.pulse-relay__agent.is-owner::after {
  display: block;
  content: "CLAIMED";
}

.pulse-relay__core {
  --application-accent: var(--pulse-cyan);
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.12rem;
  width: 144px;
  height: 144px;
  padding: 1.15rem 0.8rem 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 31, 39, 0.98), rgba(6, 10, 14, 0.96));
  box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.025), inset 0 0 28px rgba(34, 211, 238, 0.1);
  filter: saturate(0.52);
  opacity: 0.48;
  transform: translate(-50%, -50%);
  transition: opacity 360ms ease, filter 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
}

.pulse-relay__core--pulse {
  left: 40.5%;
}

.pulse-relay__core--nexus {
  --application-accent: var(--pulse-violet);
  left: 59.5%;
  border-color: rgba(168, 85, 247, 0.34);
  background: radial-gradient(circle, rgba(31, 21, 45, 0.98), rgba(9, 7, 14, 0.96));
  box-shadow: 0 0 0 10px rgba(168, 85, 247, 0.025), inset 0 0 28px rgba(168, 85, 247, 0.11);
}

.pulse-relay__core.is-active {
  border-color: color-mix(in srgb, var(--application-accent) 62%, transparent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--application-accent) 3%, transparent), 0 0 58px color-mix(in srgb, var(--application-accent) 19%, transparent), inset 0 0 30px color-mix(in srgb, var(--application-accent) 12%, transparent);
  filter: none;
  opacity: 1;
}

.pulse-relay__core.is-complete {
  filter: saturate(0.8);
  opacity: 0.74;
}

.pulse-relay__orbit {
  position: absolute;
  inset: -13px;
  border-top: 1px solid var(--application-accent);
  border-right: 1px solid transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--application-accent) 26%, transparent);
  border-left: 1px solid transparent;
  border-radius: 50%;
  opacity: 0.62;
}

.pulse-relay__orbit::before {
  position: absolute;
  inset: 8px;
  border: 1px dashed color-mix(in srgb, var(--application-accent) 18%, transparent);
  border-radius: 50%;
  content: "";
}

.pulse-relay__orbit::after {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--application-accent);
  box-shadow: 0 0 12px var(--application-accent);
  content: "";
}

.pulse-relay[data-playing="true"] .pulse-relay__core.is-active .pulse-relay__orbit {
  animation: pulse-relay-application-orbit 7s linear infinite;
}

.pulse-relay[data-playing="true"] .pulse-relay__core--nexus.is-active > img {
  animation: pulse-relay-application-breathe 2.2s ease-in-out infinite;
}

.pulse-relay[data-playing="true"] .pulse-relay__core--pulse.is-active > img {
  animation: pulse-relay-application-beat 1.8s ease-in-out infinite;
}

.pulse-relay__core > img {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--application-accent) 28%, transparent));
}

.pulse-relay__core > b,
.pulse-relay__core > img,
.pulse-relay__core > strong,
.pulse-relay__core > small {
  position: relative;
  z-index: 1;
}

.pulse-relay__core > b {
  position: absolute;
  top: 0.72rem;
  color: var(--application-accent);
  font-family: var(--font-mono);
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.pulse-relay__core > strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pulse-relay__core > small {
  max-width: 15ch;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.47rem;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

@keyframes pulse-relay-application-orbit {
  to { transform: rotate(360deg); }
}

@keyframes pulse-relay-application-breathe {
  0%, 100% {
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--application-accent) 24%, transparent));
    transform: scale(0.96);
  }
  50% {
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--application-accent) 62%, transparent));
    transform: scale(1.08);
  }
}

@keyframes pulse-relay-application-beat {
  0%, 36%, 100% {
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--application-accent) 28%, transparent));
    transform: scale(1);
  }
  10% {
    filter: drop-shadow(0 0 19px color-mix(in srgb, var(--application-accent) 68%, transparent));
    transform: scale(1.12);
  }
  18% { transform: scale(0.96); }
  26% { transform: scale(1.07); }
}

.pulse-relay__work {
  position: absolute;
  z-index: 4;
  top: calc(50% + 96px);
  left: 50%;
  display: grid;
  gap: 0.2rem;
  min-width: 190px;
  max-width: 260px;
  padding: 0.62rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--relay-accent) 28%, transparent);
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  text-align: center;
  transform: translateX(-50%);
}

.pulse-relay__work span {
  color: var(--relay-accent);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

.pulse-relay__work strong {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 500;
}

.pulse-relay__story {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, rgba(14, 15, 21, 0.92), rgba(7, 8, 12, 0.96));
  flex-direction: column;
}

.pulse-relay__readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hair-strong);
}

.pulse-relay__readout > span {
  flex: 0 0 auto;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.pulse-relay__readout b {
  color: var(--relay-accent);
  font-weight: 500;
}

.pulse-relay__readout > strong {
  color: var(--pulse-cyan);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.pulse-relay__steps {
  display: grid;
  margin-top: 0.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--hair-strong) transparent;
}

html.js .pulse-relay.is-ready .pulse-relay__steps {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 535px;
}

.pulse-relay__steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 0.95rem;
  border-left: 1px solid var(--hair-strong);
  transition: opacity 300ms ease, border-color 300ms ease;
}

.pulse-relay__steps li::before {
  position: absolute;
  top: 1.17rem;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-mid);
  content: "";
  transition: background 300ms ease, box-shadow 300ms ease, transform 300ms var(--ease);
}

.pulse-relay__steps button {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 0.55rem;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
}

.pulse-relay__steps button:disabled {
  cursor: default;
}

.pulse-relay__steps button > span {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}

.pulse-relay__steps button b {
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.pulse-relay__steps button small {
  color: var(--ink-dim);
  font-size: 0.42rem;
  letter-spacing: 0.055em;
  line-height: 1.25;
}

.pulse-relay__steps button > strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.pulse-relay__steps p {
  margin: 0.45rem 0 0 3.3rem;
  color: var(--ink-dim);
  font-size: 0.74rem;
  line-height: 1.5;
}

html.js .pulse-relay.is-ready .pulse-relay__steps li {
  opacity: 1;
}

html.js .pulse-relay.is-ready .pulse-relay__steps li.is-complete {
  opacity: 0.92;
}

html.js .pulse-relay.is-ready .pulse-relay__steps li.is-active {
  border-left-color: var(--relay-accent);
  opacity: 1;
}

html.js .pulse-relay.is-ready .pulse-relay__steps li.is-active::before {
  background: var(--relay-accent);
  box-shadow: 0 0 11px var(--relay-accent);
  transform: scale(1.4);
}

html.js .pulse-relay.is-ready .pulse-relay__steps li.is-complete::before {
  background: var(--pulse-cyan);
}

html.js .pulse-relay.is-ready .pulse-relay__steps p {
  display: none;
}

html.js .pulse-relay.is-ready .pulse-relay__steps li.is-active p {
  display: block;
}

.pulse-relay__summary {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--hair-strong);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.pulse-relay__summary strong {
  color: var(--pulse-cyan);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .pulse-relay__bar {
    grid-template-columns: minmax(220px, auto) 1fr auto;
  }

  .pulse-relay__body {
    grid-template-columns: 1fr;
  }

  .pulse-relay__stage {
    min-height: 610px;
    border-right: 0;
    border-bottom: 1px solid var(--hair-strong);
  }

  .pulse-relay__story {
    min-height: auto;
  }

  .pulse-relay__steps {
    grid-template-columns: 1fr;
    max-height: none !important;
    overflow: visible;
  }

  .pulse-relay__summary {
    margin-top: 1rem;
  }
}

@media (max-width: 720px) {
  .pulse-relay__bar {
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
  }

  .pulse-relay__progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pulse-relay__stage {
    min-height: 540px;
  }

  .pulse-relay__controls button {
    min-width: 44px;
    height: 44px;
  }

  .pulse-relay__agent {
    width: 122px;
    min-height: 72px;
    padding: 0.72rem;
  }

  .pulse-relay__agent--human,
  .pulse-relay__agent--antigravity {
    left: 17%;
  }

  .pulse-relay__agent--claude,
  .pulse-relay__agent--codex {
    left: 83%;
  }

  .pulse-relay__agent small {
    font-size: 0.43rem;
  }

  .pulse-relay__core--pulse {
    left: 39%;
  }

  .pulse-relay__core--nexus {
    left: 61%;
  }

  .pulse-relay__core {
    width: 110px;
    height: 110px;
    padding: 1rem 0.55rem 0.55rem;
  }

  .pulse-relay__core > small {
    max-width: 13ch;
    font-size: 0.41rem;
  }

  .pulse-relay__core > img {
    width: 34px;
    height: 34px;
  }

  .pulse-relay__work {
    top: calc(50% + 84px);
    min-width: 172px;
  }

  .pulse-relay__steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .pulse-relay__bar {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .pulse-relay__progress,
  .pulse-relay__controls {
    grid-column: 1;
  }

  .pulse-relay__controls {
    justify-content: flex-start;
  }

  .pulse-relay__stage {
    min-height: 500px;
  }

  .pulse-relay__agent {
    width: 108px;
    min-height: 68px;
    column-gap: 0.45rem;
    padding: 0.65rem;
  }

  .pulse-relay__agent--human,
  .pulse-relay__agent--antigravity {
    left: 18%;
  }

  .pulse-relay__agent--claude,
  .pulse-relay__agent--codex {
    left: 82%;
  }

  .pulse-relay__agent > i {
    width: 7px;
    height: 7px;
  }

  .pulse-relay__agent strong {
    font-size: 0.76rem;
  }

  .pulse-relay__agent small {
    font-size: 0.37rem;
  }

  .pulse-relay__agent-index {
    font-size: 0.4rem;
  }

  .pulse-relay__core--pulse {
    left: 37.5%;
  }

  .pulse-relay__core--nexus {
    left: 62.5%;
  }

  .pulse-relay__core {
    width: 90px;
    height: 90px;
    padding: 0.85rem 0.4rem 0.4rem;
  }

  .pulse-relay__core > b {
    top: 0.48rem;
    font-size: 0.34rem;
  }

  .pulse-relay__core > img {
    width: 28px;
    height: 28px;
  }

  .pulse-relay__core > strong {
    font-size: 0.54rem;
  }

  .pulse-relay__core > small {
    max-width: 11ch;
    font-size: 0.35rem;
  }

  .pulse-relay__work {
    top: calc(50% + 77px);
    min-width: 150px;
    max-width: 190px;
    padding: 0.5rem 0.6rem;
  }

  .pulse-relay__work strong {
    font-size: 0.64rem;
  }

  .pulse-relay__story {
    padding: 1rem;
  }

  .pulse-relay__readout {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .pulse-relay__readout > strong {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .pulse-relay__agent {
    width: 100px;
  }

  .pulse-relay__agent--human,
  .pulse-relay__agent--antigravity {
    left: 23%;
  }

  .pulse-relay__agent--claude,
  .pulse-relay__agent--codex {
    left: 77%;
  }

  .pulse-relay__core--pulse {
    left: 34%;
  }

  .pulse-relay__core--nexus {
    left: 66%;
  }

  .pulse-relay__core {
    width: 72px;
    height: 72px;
    padding: 0.75rem 0.3rem 0.3rem;
  }

  .pulse-relay__orbit {
    inset: -8px;
  }

  .pulse-relay__orbit::before {
    inset: 5px;
  }

  .pulse-relay__core > b {
    top: 0.32rem;
    font-size: 0.28rem;
  }

  .pulse-relay__core > img {
    width: 22px;
    height: 22px;
  }

  .pulse-relay__core > strong {
    font-size: 0.46rem;
  }

  .pulse-relay__core > small {
    max-width: 10ch;
    font-size: 0.29rem;
  }

  .pulse-relay__work {
    top: calc(50% + 67px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-relay__packet {
    display: none !important;
  }

  .pulse-relay__progress span,
  .pulse-relay__routes path,
  .pulse-relay__agent,
  .pulse-relay__core,
  .pulse-relay__steps li,
  .pulse-relay__steps li::before {
    transition: none !important;
  }

  .pulse-relay__controls [data-delivery-action="toggle"],
  .pulse-relay__controls [data-delivery-action="replay"] {
    display: none !important;
  }

  .pulse-relay__orbit,
  .pulse-relay__core > img {
    animation: none !important;
  }
}

.no-js .pulse-relay__agent,
.no-js .pulse-relay__core {
  filter: none;
  opacity: 1;
}

/* ---------- shared graph label typography ---------- */
.kg-demo__node small,
.kg-ingest__kg-node small,
.pulse-relay__agent small,
.pulse-relay__core > small {
  font-family: var(--graph-label-font);
  font-size: var(--graph-label-size);
  font-weight: var(--graph-label-weight);
  letter-spacing: var(--graph-label-tracking);
  line-height: var(--graph-label-leading);
}

@media (max-width: 680px) {
  :root {
    --graph-label-size: 0.52rem;
    --graph-label-tracking: 0.04em;
  }
}
