/* Okto Nexus · spatial on-rails landing experience */

:root {
  color-scheme: dark;
  --bg: #030308;
  --bg-deep: #010104;
  --panel: rgba(7, 8, 18, 0.78);
  --panel-strong: rgba(9, 10, 23, 0.94);
  --panel-soft: rgba(12, 13, 29, 0.58);
  --ink: #f5f4ff;
  --ink-soft: #b9b7cb;
  --ink-dim: #77758b;
  --hair: rgba(206, 201, 255, 0.14);
  --hair-bright: rgba(206, 201, 255, 0.28);
  --violet: #7765ff;
  --violet-bright: #a796ff;
  --cyan: #30d7ff;
  --green: #62f6bd;
  --pink: #ef5da8;
  --purple: #b950ff;
  --scene-accent: #7765ff;
  --scroll-progress: 0;
  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 72px;
  --radius: 18px;
  --radius-sm: 10px;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(119, 101, 255, 0.75) #06060c;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

::selection {
  background: rgba(119, 101, 255, 0.48);
  color: #fff;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

h1,
h2,
h3,
p,
dl,
dd,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: #080914;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- fixed spatial scene ---------- */
.scene {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--scene-accent) 12%, transparent), transparent 38%),
    linear-gradient(180deg, #05050d 0%, #020207 100%);
  transition: background 1.2s ease;
}

#nexusScene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.94;
}

.scene__bloom,
.scene__grid,
.scene__noise,
.scene__vignette {
  position: absolute;
  inset: 0;
}

.scene__bloom {
  opacity: 0.62;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--scene-accent) 9%, transparent), transparent 34%),
    radial-gradient(circle at 70% 12%, rgba(48, 215, 255, 0.05), transparent 24%);
  mix-blend-mode: screen;
  transition: background 900ms ease;
}

.scene__grid {
  top: 50%;
  bottom: -30%;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(155, 146, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 146, 255, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent 88%);
  transform: perspective(520px) rotateX(68deg) scale(1.9) translateY(18%);
  transform-origin: center bottom;
}

.scene__noise {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.scene__vignette {
  background:
    linear-gradient(90deg, rgba(2, 2, 7, 0.64), transparent 24%, transparent 76%, rgba(2, 2, 7, 0.48)),
    radial-gradient(ellipse at center, transparent 42%, rgba(1, 1, 4, 0.72) 100%);
}

.scene-hud {
  position: fixed;
  z-index: 6;
  right: clamp(1.1rem, 2.5vw, 2.5rem);
  bottom: 1.5rem;
  left: clamp(1.1rem, 2.5vw, 2.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.scene-hud__status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-dim);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(98, 246, 189, 0.08), 0 0 16px var(--green);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.scene-hud__telemetry {
  display: flex;
  gap: 1.6rem;
  padding: 0.65rem 0.8rem;
  border-right: 1px solid var(--hair);
  background: linear-gradient(90deg, transparent, rgba(5, 5, 13, 0.64));
}

.scene-hud__telemetry span {
  display: grid;
  gap: 0.08rem;
  min-width: 52px;
}

.scene-hud__telemetry small {
  color: var(--ink-dim);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.scene-hud__telemetry strong {
  overflow: hidden;
  max-width: 16ch;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-hud__telemetry b {
  color: var(--ink);
  font-weight: 500;
}

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

/* ---------- right-side rail map ---------- */
.rail-nav {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: clamp(1rem, 2.2vw, 2rem);
  display: grid;
  gap: 0;
  width: 138px;
  transform: translateY(-50%);
}

.rail-nav__title {
  margin: 0 0 0.8rem auto;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 18px 1fr;
  align-items: center;
  gap: 0.5rem;
  min-height: 34px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  transition: color 300ms ease;
}

.rail-nav a::after {
  position: absolute;
  top: 50%;
  left: calc(1.5rem + 8px);
  width: 1px;
  height: 100%;
  background: var(--hair);
  content: "";
}

.rail-nav a:last-child::after {
  display: none;
}

.rail-nav a span {
  opacity: 0;
  transition: opacity 300ms ease;
}

.rail-nav a i {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  margin: auto;
  border: 1px solid rgba(195, 190, 255, 0.46);
  border-radius: 50%;
  background: #05050c;
  transition: width 300ms var(--ease), height 300ms var(--ease), border-color 300ms ease, box-shadow 300ms ease;
}

.rail-nav a em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(5px);
  transition: opacity 300ms ease, transform 300ms var(--ease);
}

.rail-nav:hover a span,
.rail-nav:hover a em,
.rail-nav a:focus-visible span,
.rail-nav a:focus-visible em,
.rail-nav a.is-active span,
.rail-nav a.is-active em {
  opacity: 1;
  transform: none;
}

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

.rail-nav a.is-active i {
  width: 12px;
  height: 12px;
  border-color: var(--scene-accent);
  background: color-mix(in srgb, var(--scene-accent) 70%, #fff);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--scene-accent) 10%, transparent), 0 0 20px var(--scene-accent);
}

/* ---------- global navigation ---------- */
.nav {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(207, 201, 255, 0.08);
  background: linear-gradient(180deg, rgba(3, 3, 9, 0.94), rgba(3, 3, 9, 0.58));
  backdrop-filter: blur(18px) saturate(140%);
}

.nav__inner {
  display: flex;
  align-items: center;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__brand {
  flex: 0 0 auto;
}

.nav__logo {
  width: 154px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-left: clamp(2rem, 5vw, 5rem);
}

.nav__links a,
.nav__ext {
  position: relative;
  padding: 0.4rem 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--scene-accent);
  box-shadow: 0 0 8px var(--scene-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

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

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

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

.nav__toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav__toggle span {
  grid-area: 1 / 1;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transform: translateY(-3px);
  transition: transform 220ms ease;
}

.nav__toggle span + span {
  transform: translateY(3px);
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.nav__progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green));
  box-shadow: 0 0 10px var(--scene-accent);
  transform: scaleX(var(--scroll-progress));
  transform-origin: left;
}

.mobile-menu {
  position: fixed;
  z-index: 55;
  inset: var(--nav-h) 0 auto;
  display: grid;
  gap: 1px;
  padding: 0.75rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--hair);
  background: rgba(4, 4, 11, 0.97);
  backdrop-filter: blur(18px);
}

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

.mobile-menu a {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(205, 199, 255, 0.08);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- reusable controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--hair-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 240ms ease, background 240ms ease, transform 240ms var(--ease), box-shadow 240ms ease;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.btn--primary {
  border-color: rgba(166, 150, 255, 0.65);
  background: linear-gradient(115deg, rgba(119, 101, 255, 0.94), rgba(81, 54, 224, 0.94));
  box-shadow: 0 12px 40px rgba(91, 63, 238, 0.24), inset 0 1px rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  border-color: #c6bbff;
  background: linear-gradient(115deg, #8b79ff, #6246ed);
  box-shadow: 0 16px 48px rgba(91, 63, 238, 0.34), inset 0 1px rgba(255, 255, 255, 0.22);
}

.btn--quiet {
  color: var(--ink-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(7, 7, 17, 0.54);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.tag--live::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  content: "";
}

.terminal {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 56px;
  padding: 0.72rem 0.78rem 0.72rem 0.95rem;
  overflow: hidden;
  border: 1px solid var(--hair-bright);
  border-radius: var(--radius-sm);
  background: linear-gradient(110deg, rgba(12, 12, 27, 0.94), rgba(6, 7, 17, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.terminal::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, var(--scene-accent), transparent);
  content: "";
}

.terminal--inline {
  min-width: min(100%, 340px);
}

.terminal__sigil {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.terminal code {
  overflow: hidden;
  color: #ddd9ff;
  font-family: var(--font-mono);
  font-size: clamp(0.67rem, 1vw, 0.78rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal__copy {
  padding: 0.42rem 0.58rem;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.terminal__copy:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.terminal[data-copied="1"] .terminal__copy {
  border-color: rgba(98, 246, 189, 0.45);
  color: var(--green);
}

.chapter-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-mark i {
  width: clamp(38px, 6vw, 82px);
  height: 1px;
  background: linear-gradient(90deg, var(--scene-accent), transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--scene-accent) 45%, transparent);
}

.chapter-mark span:first-child {
  color: color-mix(in srgb, var(--scene-accent) 72%, white);
}

.chapter-mark--center {
  justify-content: center;
}

/* ---------- hero / origin ---------- */
main {
  position: relative;
  z-index: 2;
}

.hero {
  --local-accent: #7765ff;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 110svh;
  padding: calc(var(--nav-h) + 5vh) 0 8vh;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 8, 0.98) 0%, rgba(3, 3, 8, 0.84) 36%, rgba(3, 3, 8, 0.18) 66%, rgba(3, 3, 8, 0.48) 100%),
    linear-gradient(180deg, rgba(3, 3, 8, 0.5), transparent 45%, rgba(3, 3, 8, 0.94));
  content: "";
}

.hero__veil {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 78% 44%, transparent 0, rgba(3, 3, 8, 0.12) 23%, transparent 46%);
}

.hero__inner {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__inner > * {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__title {
  max-width: 12ch;
  margin-top: clamp(1.6rem, 3vw, 2.7rem);
  font-size: clamp(3.6rem, 7.6vw, 8.3rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero__title span {
  display: block;
}

.hero__title span:first-child {
  color: #fff;
  text-shadow: 0 0 42px rgba(119, 101, 255, 0.12);
}

.hero__title span:last-child {
  margin-top: 0.11em;
  background: linear-gradient(105deg, #9d8fff 0%, #efecff 40%, #7be8ff 82%, #62f6bd 110%);
  background-clip: text;
  color: transparent;
  font-size: 0.57em;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__lead {
  max-width: 690px;
  margin-top: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: clamp(2.2rem, 4vw, 3.6rem);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(90deg, transparent, rgba(8, 8, 20, 0.5), transparent);
}

.hero__stats div {
  position: relative;
  padding: 1.1rem 1rem 1.15rem 0;
}

.hero__stats div:not(:last-child)::after {
  position: absolute;
  top: 22%;
  right: 0;
  bottom: 22%;
  width: 1px;
  background: var(--hair);
  content: "";
}

.hero__stats dt {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.hero__stats dd {
  margin-top: 0.38rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero__continue {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.35rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.hero__continue i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hair);
  border-radius: 50%;
}

.hero__continue svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

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

.hero__continue:hover i {
  border-color: var(--violet-bright);
  box-shadow: 0 0 18px rgba(119, 101, 255, 0.24);
}

.hero__assurance {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__assurance i,
.install__assurance i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(98, 246, 189, 0.85);
}

.hero__assurance span {
  color: var(--hair-bright);
}

/* ---------- Pulse / Nexus positioning bridge ---------- */
.product-bridge {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background:
    linear-gradient(90deg, rgba(6, 6, 16, 0.98), rgba(10, 9, 24, 0.88) 50%, rgba(5, 7, 17, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(119, 101, 255, 0.14), transparent 52%);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.product-bridge__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(480px, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(2.2rem, 4.5vw, 4rem) var(--gutter);
}

.product-bridge__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-bridge__statement h2 {
  max-width: 19ch;
  color: var(--ink-soft);
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.product-bridge__statement strong {
  display: block;
  background: linear-gradient(105deg, #a99cff, #f2efff 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.product-bridge__products {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.product-bridge__products article {
  min-height: 142px;
  padding: 1.25rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(14, 14, 31, 0.82), rgba(6, 7, 16, 0.75));
}

.product-bridge__products article:last-child {
  border-color: rgba(48, 215, 255, 0.22);
  box-shadow: inset 0 0 30px rgba(48, 215, 255, 0.035);
}

.product-bridge__products article > span {
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-bridge__products article:last-child > span {
  color: var(--cyan);
}

.product-bridge__products p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.product-bridge__products > i {
  color: var(--ink-dim);
}

.product-bridge__products svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

/* DOM topology adds a tactile 3D read without carrying any semantic content */
.topology {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: absolute;
  z-index: 1;
  top: 49%;
  right: clamp(5rem, 10vw, 11rem);
  width: clamp(330px, 35vw, 580px);
  aspect-ratio: 1;
  perspective: 900px;
  transform: translateY(-50%) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform 260ms ease-out;
}

.topology__ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(145, 132, 255, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(119, 101, 255, 0.04), 0 0 30px rgba(119, 101, 255, 0.05);
  transform: rotateX(62deg) rotateZ(4deg);
  animation: orbit-ring 24s linear infinite;
}

.topology__ring::before,
.topology__ring::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.topology__ring::before {
  inset: -4px;
  border-top: 2px solid rgba(48, 215, 255, 0.58);
  border-right: 2px solid transparent;
  filter: drop-shadow(0 0 8px rgba(48, 215, 255, 0.7));
}

.topology__ring::after {
  inset: 22%;
  border: 1px dashed rgba(197, 190, 255, 0.18);
}

.topology__ring--inner {
  inset: 27%;
  border-color: rgba(98, 246, 189, 0.22);
  transform: rotateY(67deg) rotateZ(14deg);
  animation-direction: reverse;
  animation-duration: 17s;
}

.topology__axis {
  position: absolute;
  top: 50%;
  left: 7%;
  width: 86%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 171, 255, 0.3), transparent);
  transform: rotate(-19deg);
}

.topology__axis::after {
  position: absolute;
  inset: 0;
  background: inherit;
  content: "";
  transform: rotate(73deg);
}

.topology__core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(180, 171, 255, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 14, 35, 0.96), rgba(5, 5, 14, 0.84));
  box-shadow: 0 0 0 10px rgba(119, 101, 255, 0.035), 0 0 75px rgba(119, 101, 255, 0.24), inset 0 0 30px rgba(119, 101, 255, 0.13);
  transform: translate(-50%, -50%) translateZ(70px);
}

.topology__core img {
  width: 44px;
}

.topology__core small,
.topology__core strong {
  position: absolute;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

.topology__core small {
  top: 18px;
  color: var(--ink-dim);
  font-size: 0.48rem;
}

.topology__core strong {
  bottom: 18px;
  color: #c4bcff;
  font-size: 0.56rem;
  font-weight: 500;
}

.topology__agent {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(5, 5, 14, 0.78);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.topology__agent i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.topology__agent--a { top: 15%; left: 9%; transform: translateZ(35px); }
.topology__agent--b { top: 19%; right: 2%; transform: translateZ(5px); }
.topology__agent--c { right: 0; bottom: 22%; transform: translateZ(46px); }
.topology__agent--d { bottom: 14%; left: 5%; transform: translateZ(-10px); }
.topology__agent--b i { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.topology__agent--c i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.topology__agent--d i { background: var(--purple); box-shadow: 0 0 10px var(--purple); }

.topology__packet {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px var(--cyan);
  animation: packet-a 4.6s var(--ease) infinite;
}

.topology__packet--b {
  animation: packet-b 5.4s var(--ease) 1.2s infinite;
  box-shadow: 0 0 8px 2px var(--pink);
}

@keyframes orbit-ring {
  to { transform: rotateX(62deg) rotateZ(364deg); }
}

@keyframes packet-a {
  0%, 12% { top: 20%; left: 18%; opacity: 0; }
  20% { opacity: 1; }
  70% { top: 50%; left: 50%; opacity: 1; }
  86%, 100% { top: 73%; left: 87%; opacity: 0; }
}

@keyframes packet-b {
  0%, 10% { top: 26%; left: 86%; opacity: 0; }
  18% { opacity: 1; }
  62% { top: 50%; left: 50%; opacity: 1; }
  82%, 100% { top: 77%; left: 18%; opacity: 0; }
}

/* ---------- shared chapter structure ---------- */
.section {
  --local-progress: 0;
  --local-accent: #7765ff;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: clamp(6rem, 12vh, 10rem) 0;
  isolation: isolate;
  scroll-margin-top: var(--nav-h);
}

.section::before {
  position: absolute;
  z-index: -1;
  inset: 3% 0;
  content: "";
  pointer-events: none;
}

.section--left::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 9, 0.96), rgba(3, 3, 9, 0.79) 50%, rgba(3, 3, 9, 0.14) 78%, transparent),
    radial-gradient(circle at 10% 50%, color-mix(in srgb, var(--local-accent) 8%, transparent), transparent 35%);
}

.section--right::before {
  background:
    linear-gradient(270deg, rgba(3, 3, 9, 0.96), rgba(3, 3, 9, 0.79) 50%, rgba(3, 3, 9, 0.14) 78%, transparent),
    radial-gradient(circle at 90% 50%, color-mix(in srgb, var(--local-accent) 8%, transparent), transparent 35%);
}

#demo { --local-accent: #30d7ff; }
#pain { --local-accent: #ef5da8; }
#outcomes { --local-accent: #30d7ff; }
#evidence { --local-accent: #a96bff; }
#how { --local-accent: #62f6bd; }
#mesh { --local-accent: #c19aff; }
#install { --local-accent: #62f6bd; }

.section__inner {
  position: relative;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 var(--gutter);
  transform-style: preserve-3d;
}

.section__header {
  max-width: 920px;
  margin-bottom: clamp(2.5rem, 5vw, 4.8rem);
}

.section__header--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.7fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  max-width: none;
}

.section__title {
  max-width: 14ch;
  font-size: clamp(2.7rem, 5.4vw, 6.1rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

.section__title em {
  display: block;
  margin-bottom: -0.13em;
  padding-bottom: 0.13em;
  background: linear-gradient(105deg, color-mix(in srgb, var(--local-accent) 85%, white), #f2efff 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  line-height: 1.04;
  overflow: visible;
}

.section__lede,
.section__copy {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.section__lede {
  max-width: 680px;
  margin-top: 1.6rem;
}

.section__lede--right {
  max-width: 500px;
  margin-top: 0;
}

.section__copy {
  max-width: 620px;
}

.section__copy p + p {
  margin-top: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}

.context-icon {
  --icon-a: var(--violet);
  --icon-b: var(--cyan);
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--icon-a) 35%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--icon-a) 18%, transparent), transparent 70%);
  color: color-mix(in srgb, var(--icon-b) 70%, white);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--icon-a) 8%, transparent);
}

.context-icon::after {
  position: absolute;
  inset: -3px;
  border-top: 1px solid color-mix(in srgb, var(--icon-b) 72%, transparent);
  border-right: 1px solid transparent;
  border-radius: 50%;
  content: "";
  opacity: 0.55;
}

.context-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

/* ---------- live relay / narrative agent flow ---------- */
.section--demo {
  align-items: flex-start;
  min-height: auto;
  background:
    linear-gradient(180deg, rgba(3, 3, 9, 0.9), rgba(3, 3, 9, 0.46) 16%, rgba(3, 3, 9, 0.64) 84%, rgba(3, 3, 9, 0.92)),
    radial-gradient(circle at 68% 32%, rgba(48, 215, 255, 0.075), transparent 34%);
}

.flow-demo {
  --flow-accent: var(--cyan);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(181, 177, 235, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(10, 11, 26, 0.96), rgba(4, 5, 13, 0.94));
  box-shadow: 0 48px 130px rgba(0, 0, 0, 0.46), 0 0 90px rgba(48, 215, 255, 0.055);
  backdrop-filter: blur(18px);
}

.flow-demo::before {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, var(--flow-accent), transparent);
  content: "";
  opacity: 0.62;
}

.flow-demo__bar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(120px, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 72px;
  padding: 0.8rem 1rem 0.8rem 1.25rem;
  border-bottom: 1px solid var(--hair);
  background: rgba(8, 9, 21, 0.88);
}

.flow-demo__scenario {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
}

.flow-demo__scenario strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.flow-demo__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.flow-demo__live b {
  font-weight: 500;
}

.flow-demo__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: status-pulse 2.4s ease-in-out infinite;
}

.flow-demo[data-playing="false"] .flow-demo__live i {
  background: var(--ink-dim);
  box-shadow: none;
  animation: none;
}

.flow-demo[data-playing="false"][data-step="5"] .flow-demo__live i {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.flow-demo__progress {
  height: 1px;
  overflow: hidden;
  background: var(--hair);
}

.flow-demo__progress span {
  display: block;
  width: var(--flow-progress, 16.666%);
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
  transition: width 420ms var(--ease);
}

.flow-demo__controls {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

html.js .flow-demo.is-ready .flow-demo__controls {
  display: flex;
}

.flow-demo__controls button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.62rem;
  border: 1px solid var(--hair);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.flow-demo__controls button:hover {
  border-color: var(--hair-bright);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.flow-demo__controls button:disabled {
  border-color: rgba(206, 201, 255, 0.07);
  color: rgba(119, 117, 139, 0.42);
  cursor: not-allowed;
}

.flow-demo__controls svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.flow-demo__play,
.flow-demo[data-playing="false"] .flow-demo__pause {
  display: none;
}

.flow-demo[data-playing="false"] .flow-demo__play {
  display: block;
}

.flow-demo__body {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.58fr);
  min-height: 660px;
}

.flow-demo__stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--hair);
  background:
    linear-gradient(rgba(154, 145, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 145, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(119, 101, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(7, 8, 20, 0.82), rgba(3, 4, 11, 0.92));
  background-size: 34px 34px, 34px 34px, auto, auto;
  contain: paint;
  isolation: isolate;
}

.flow-demo__stage::after {
  position: absolute;
  z-index: -1;
  inset: 8%;
  border: 1px solid rgba(119, 101, 255, 0.06);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 80px rgba(119, 101, 255, 0.015), 0 0 0 160px rgba(119, 101, 255, 0.008);
}

.flow-demo__routes {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-demo__routes path {
  fill: none;
  stroke: rgba(176, 169, 224, 0.15);
  stroke-dasharray: 5 9;
  stroke-linecap: round;
  stroke-width: 1.5;
  transition: stroke 320ms ease, opacity 320ms ease, stroke-width 320ms ease;
}

.flow-demo__routes path.is-complete {
  stroke: rgba(98, 246, 189, 0.24);
  stroke-dasharray: none;
}

.flow-demo__routes path.is-active {
  stroke: var(--flow-accent);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 7px rgba(48, 215, 255, 0.55));
}

.flow-demo__packet {
  fill: #fff;
  filter: url(#flow-glow);
  opacity: 0;
}

.flow-demo__packet.is-moving {
  opacity: 1;
}

.flow-agent {
  --agent-accent: var(--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);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(14, 15, 33, 0.94), rgba(6, 7, 17, 0.9));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  opacity: 0.44;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 360ms ease, transform 520ms var(--ease), border-color 360ms ease, box-shadow 360ms ease;
}

.flow-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;
}

.flow-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);
}

.flow-agent strong,
.flow-agent small {
  position: relative;
}

.flow-agent strong {
  align-self: end;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.flow-agent small {
  align-self: start;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-agent__index {
  position: absolute;
  top: 0.52rem;
  right: 0.6rem;
  color: color-mix(in srgb, var(--agent-accent) 58%, transparent);
  font-family: var(--font-mono);
  font-size: 0.5rem;
}

.flow-agent--human { --agent-accent: #f5b94d; top: 25.4%; left: 18%; }
.flow-agent--codex { --agent-accent: var(--cyan); top: 25.4%; left: 82%; }
.flow-agent--claude { --agent-accent: var(--pink); top: 74.6%; left: 82%; }
.flow-agent--antigravity { --agent-accent: var(--green); top: 74.6%; left: 18%; }

.flow-agent.is-complete {
  border-color: color-mix(in srgb, var(--agent-accent) 24%, var(--hair));
  opacity: 0.74;
}

.flow-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);
}

.flow-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  border: 1px solid rgba(169, 154, 255, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 18, 47, 0.98), rgba(6, 6, 17, 0.94));
  box-shadow: 0 0 0 11px rgba(119, 101, 255, 0.035), 0 0 78px rgba(119, 101, 255, 0.26), inset 0 0 32px rgba(119, 101, 255, 0.14);
  filter: saturate(0.48);
  opacity: 0.48;
  transform: translate(-50%, -50%);
  transition: opacity 360ms ease, filter 360ms ease, box-shadow 360ms ease;
}

.flow-core.is-active {
  filter: none;
  opacity: 1;
}

html:not(.js) .flow-core {
  filter: none;
  opacity: 1;
}

.flow-core__orbit {
  position: absolute;
  inset: -15px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid transparent;
  border-bottom: 1px solid rgba(119, 101, 255, 0.24);
  border-left: 1px solid transparent;
  border-radius: 50%;
  opacity: 0.62;
  animation: orbit-ring 16s linear infinite;
}

.flow-core img {
  width: 38px;
}

.flow-core strong {
  color: #d8d2ff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-core small {
  max-width: 15ch;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.flow-demo__work {
  position: absolute;
  z-index: 4;
  top: calc(50% + 94px);
  left: 50%;
  display: grid;
  gap: 0.2rem;
  min-width: 176px;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(48, 215, 255, 0.2);
  border-radius: 8px;
  background: rgba(6, 8, 19, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  text-align: center;
  transform: translateX(-50%);
}

.flow-demo__work span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.08em;
}

.flow-demo__work strong {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 500;
}

.flow-demo__story {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 2.6vw, 2.15rem);
  background: linear-gradient(180deg, rgba(10, 11, 25, 0.9), rgba(5, 6, 15, 0.94));
}

.flow-demo__readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hair);
}

.flow-demo__readout > span {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.flow-demo__readout b {
  color: var(--cyan);
  font-weight: 500;
}

.flow-demo__readout > strong {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.flow-steps {
  display: grid;
  margin-top: 1rem;
}

.flow-steps li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.1rem;
  border-left: 1px solid var(--hair);
  transition: opacity 320ms ease, border-color 320ms ease;
}

.flow-steps li::before {
  position: absolute;
  top: 1.25rem;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-dim);
  content: "";
  transition: background 320ms ease, box-shadow 320ms ease, transform 320ms var(--ease);
}

.flow-steps button {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.45rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.flow-steps button span {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.flow-steps button strong {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.flow-steps p {
  margin: 0.5rem 0 0 1.85rem;
  color: var(--ink-dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

html.js .flow-demo.is-ready .flow-steps li {
  opacity: 0.34;
}

html.js .flow-demo.is-ready .flow-steps li.is-complete {
  opacity: 0.62;
}

html.js .flow-demo.is-ready .flow-steps li.is-active {
  border-left-color: var(--cyan);
  opacity: 1;
}

html.js .flow-demo.is-ready .flow-steps li.is-active::before {
  background: var(--cyan);
  box-shadow: 0 0 11px var(--cyan);
  transform: scale(1.4);
}

html.js .flow-demo.is-ready .flow-steps li.is-complete::before {
  background: var(--green);
}

html.js .flow-demo.is-ready .flow-steps p {
  display: none;
}

html.js .flow-demo.is-ready .flow-steps li.is-active p {
  display: block;
}

.flow-demo__summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.flow-demo__summary strong {
  color: var(--green);
  font-weight: 500;
}

/* ---------- fracture / pain nodes ---------- */
.section--tight {
  padding-top: clamp(7rem, 14vh, 12rem);
}

.provocation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--hair);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.24);
  perspective: 1200px;
}

.provocation-card,
.verb-card,
.audit-row {
  position: relative;
  background: linear-gradient(145deg, rgba(12, 12, 27, 0.9), rgba(5, 6, 14, 0.88));
  backdrop-filter: blur(14px);
}

.provocation-card {
  min-height: 250px;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  overflow: hidden;
  transition: background 300ms ease, transform 400ms var(--ease), box-shadow 300ms ease;
}

.provocation-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(239, 93, 168, 0.16), transparent 58%),
    linear-gradient(115deg, transparent 72%, rgba(239, 93, 168, 0.045));
  content: "";
  opacity: 0;
  transition: opacity 300ms ease;
}

.provocation-card::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(239, 93, 168, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 14px rgba(239, 93, 168, 0.025), 0 0 0 28px rgba(239, 93, 168, 0.015);
}

.provocation-card:hover {
  z-index: 2;
  background: linear-gradient(145deg, rgba(18, 13, 33, 0.98), rgba(7, 7, 17, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(239, 93, 168, 0.24);
  transform: translateZ(30px) translateY(-5px);
}

.provocation-card:hover::before {
  opacity: 1;
}

.provocation-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.provocation-card .context-icon {
  --icon-a: #ef5da8;
  --icon-b: #ff9fcb;
}

.card-index {
  color: rgba(239, 93, 168, 0.68);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.provocation-card h3,
.verb-card h3,
.audit-row h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.provocation-card > h3 {
  position: relative;
  z-index: 1;
  max-width: 17ch;
  margin-top: 2.5rem;
  font-size: clamp(1.22rem, 1.75vw, 1.6rem);
}

.provocation-card p,
.verb-card p,
.audit-row p {
  position: relative;
  z-index: 1;
  color: var(--ink-dim);
}

.provocation-card p {
  max-width: 34ch;
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

/* ---------- protocol / verbs ---------- */
.verbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.2rem);
  perspective: 1200px;
}

.verb-card {
  --route: var(--cyan);
  min-height: 390px;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  transform-origin: center bottom;
  transition: border-color 300ms ease, transform 400ms var(--ease), background 300ms ease;
}

.verb-card:nth-child(1) { transform: rotateY(4deg) translateZ(-8px); }
.verb-card:nth-child(2) { --route: var(--pink); transform: translateZ(14px); }
.verb-card:nth-child(3) { --route: #f5a742; transform: rotateY(-4deg) translateZ(-8px); }

.verb-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--route) 14%, transparent), transparent 44%),
    linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--route) 5%, transparent));
  content: "";
}

.verb-card::after {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  left: 1.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--route), transparent);
  content: "";
  opacity: 0.45;
  box-shadow: 0 0 10px var(--route);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 520ms var(--ease);
}

.verb-card:hover {
  z-index: 2;
  border-color: color-mix(in srgb, var(--route) 42%, transparent);
  background: linear-gradient(145deg, rgba(14, 15, 32, 0.98), rgba(6, 7, 16, 0.96));
  transform: translateY(-8px) translateZ(36px);
}

.verb-card:hover::after {
  transform: scaleX(1);
}

.verb-card__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.verb-card__icon {
  --icon-a: var(--route);
  --icon-b: var(--route);
}

.verb-card__head {
  min-width: 0;
}

.verb-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.verb-card__tag {
  display: block;
  margin-top: 0.5rem;
  color: color-mix(in srgb, var(--route) 74%, white);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.verb-card > p {
  margin-top: 2.6rem;
  font-size: 0.97rem;
}

.verb-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
}

.verb-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.verb-card li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--route);
  box-shadow: 0 0 8px var(--route);
  content: "";
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(90deg, transparent, rgba(8, 9, 21, 0.72), transparent);
}

.capability-strip div {
  position: relative;
  padding: 1.25rem;
}

.capability-strip div:not(:last-child)::after {
  position: absolute;
  top: 22%;
  right: 0;
  bottom: 22%;
  width: 1px;
  background: var(--hair);
  content: "";
}

.capability-strip dt {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
}

.capability-strip dd {
  margin-top: 0.42rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- observatory / evidence tunnel ---------- */
.section--observatory {
  align-items: flex-start;
  min-height: auto;
  background:
    linear-gradient(180deg, rgba(3, 3, 9, 0.93) 0%, rgba(3, 3, 9, 0.52) 10%, rgba(3, 3, 9, 0.52) 90%, rgba(3, 3, 9, 0.93)),
    radial-gradient(circle at 50% 22%, rgba(169, 107, 255, 0.08), transparent 35%);
}

.stage-ev {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.stage-ev__frame {
  position: sticky;
  top: calc(var(--nav-h) + 8vh);
  overflow: hidden;
  border: 1px solid rgba(196, 184, 255, 0.25);
  border-radius: 16px;
  background: #070710;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.52), 0 0 80px rgba(119, 101, 255, 0.09);
  transform: perspective(1300px) rotateY(calc((0.5 - var(--local-progress)) * 2deg)) rotateX(1deg);
  transform-origin: center;
}

.stage-ev__frame::after {
  position: absolute;
  inset: 34px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(119, 101, 255, 0.05);
}

.showcase__bar {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 36px;
  padding: 0 0.8rem;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(90deg, #0d0d19, #080811);
}

.showcase__bar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b4a5c;
}

.showcase__bar .dot:nth-child(1) { background: #ef5d75; }
.showcase__bar .dot:nth-child(2) { background: #f4be4d; }
.showcase__bar .dot:nth-child(3) { background: #52d59a; }

.showcase__path {
  overflow: hidden;
  margin-left: 0.5rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-ev__shots {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070710;
  cursor: zoom-in;
  perspective: 1200px;
}

.stage-ev__shots picture {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: saturate(0.84) contrast(1.02);
  transform: translateZ(-280px) scale(0.9);
  transition: opacity 650ms ease, transform 900ms var(--ease), filter 650ms ease;
  transform-style: preserve-3d;
}

.stage-ev__shots picture::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(119, 101, 255, 0.08), transparent 30%, rgba(48, 215, 255, 0.03));
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
}

.stage-ev__shots picture.is-active,
.stage-ev__shots[data-active="0"] picture[data-shot="0"],
.stage-ev__shots[data-active="1"] picture[data-shot="1"],
.stage-ev__shots[data-active="2"] picture[data-shot="2"],
.stage-ev__shots[data-active="3"] picture[data-shot="3"],
.stage-ev__shots[data-active="4"] picture[data-shot="4"],
.stage-ev__shots[data-active="5"] picture[data-shot="5"],
.stage-ev__shots[data-active="6"] picture[data-shot="6"] {
  z-index: 2;
  opacity: 1;
  filter: saturate(1) contrast(1);
  transform: translateZ(0) scale(1);
}

.stage-ev__shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-ev__copy {
  position: relative;
}

.stage-ev__copy::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.55rem;
  width: 1px;
  background: linear-gradient(transparent, rgba(169, 107, 255, 0.38) 8%, rgba(169, 107, 255, 0.15) 92%, transparent);
  content: "";
}

.stage-ev__chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding: 3rem 0;
  opacity: 0.3;
  transform: translateX(10px) scale(0.97);
  transform-origin: left center;
  transition: opacity 500ms ease, transform 600ms var(--ease);
}

.stage-ev__chapter::before {
  position: absolute;
  top: 50%;
  left: calc(-1.55rem - 4px);
  width: 9px;
  height: 9px;
  border: 1px solid rgba(169, 107, 255, 0.5);
  border-radius: 50%;
  background: #06060e;
  content: "";
  transform: translateY(-50%);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.stage-ev__chapter.is-active {
  opacity: 1;
  transform: none;
}

.stage-ev__chapter.is-active::before {
  background: #b98aff;
  box-shadow: 0 0 0 5px rgba(169, 107, 255, 0.1), 0 0 20px #a96bff;
}

.stage-ev__label {
  color: #bc97ff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-ev__chapter h3 {
  max-width: 16ch;
  margin-top: 0.85rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.stage-ev__chapter p {
  max-width: 42ch;
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- screenshot lightbox ---------- */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 1, 5, 0.9);
  cursor: zoom-out;
  backdrop-filter: blur(22px);
}

.lightbox__frame {
  position: relative;
  width: min(94vw, 1440px);
  overflow: hidden;
  border: 1px solid var(--hair-bright);
  border-radius: 14px;
  background: #070710;
  box-shadow: 0 40px 160px rgba(0, 0, 0, 0.7), 0 0 90px rgba(119, 101, 255, 0.12);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.lightbox__close {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__image {
  width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

/* ---------- control plane / audit spine ---------- */
.audit-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.audit-layout > div:first-child {
  position: sticky;
  top: calc(var(--nav-h) + 10vh);
}

.audit-list {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.audit-list::before {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 35px;
  width: 1px;
  background: linear-gradient(transparent, rgba(98, 246, 189, 0.5), transparent);
  content: "";
  box-shadow: 0 0 10px rgba(98, 246, 189, 0.18);
}

.audit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  min-height: 126px;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 14px;
  transition: border-color 250ms ease, background 250ms ease, transform 360ms var(--ease);
}

.audit-row::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 246, 189, 0.5));
  content: "";
}

.audit-row:hover {
  z-index: 2;
  border-color: rgba(98, 246, 189, 0.26);
  background: linear-gradient(145deg, rgba(11, 23, 25, 0.94), rgba(5, 8, 15, 0.94));
  transform: translateX(-8px) translateZ(18px);
}

.audit-row .context-icon {
  --icon-a: var(--green);
  --icon-b: var(--cyan);
  z-index: 1;
  width: 44px;
  height: 44px;
  background: #070b12;
}

.audit-row h3 {
  font-size: 1.12rem;
}

.audit-row p {
  margin-top: 0.38rem;
  font-size: 0.9rem;
}

/* ---------- mesh thesis ---------- */
.section--thesis {
  display: grid;
  place-items: center;
  min-height: 120svh;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 52%, rgba(119, 101, 255, 0.12), transparent 22%),
    radial-gradient(circle at 50% 52%, transparent 0 28%, rgba(169, 107, 255, 0.04) 28.2%, transparent 28.6%),
    linear-gradient(180deg, rgba(3, 3, 9, 0.82), rgba(3, 3, 9, 0.18) 48%, rgba(3, 3, 9, 0.9));
}

.section--thesis::before,
.section--thesis::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(74vw, 880px);
  aspect-ratio: 1;
  border: 1px solid rgba(180, 166, 255, 0.1);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%) rotateX(65deg);
  animation: thesis-ring 32s linear infinite;
}

.section--thesis::after {
  width: min(52vw, 620px);
  border-style: dashed;
  border-color: rgba(98, 246, 189, 0.1);
  animation-direction: reverse;
  animation-duration: 24s;
}

.thesis__statement {
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(2.7rem, 6vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.96;
  text-wrap: balance;
}

.thesis__statement strong {
  display: block;
  margin: 0.22em 0 -0.13em;
  padding-bottom: 0.13em;
  background: linear-gradient(105deg, #aa9dff, #f4f1ff 48%, #71e9ff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  line-height: 1.04;
  overflow: visible;
}

.thesis__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--hair);
  text-align: left;
}

.thesis__pillars li {
  display: grid;
  gap: 2rem;
  min-height: 180px;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(13, 12, 29, 0.92), rgba(6, 6, 15, 0.9));
  transition: background 260ms ease, transform 360ms var(--ease);
}

.thesis__pillars li:hover {
  z-index: 1;
  background: linear-gradient(145deg, rgba(21, 18, 43, 0.98), rgba(8, 8, 19, 0.96));
  transform: translateY(-6px);
}

.thesis__pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thesis__pillar-k {
  color: #aa9dff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.thesis__pillar-v {
  align-self: end;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

@keyframes thesis-ring {
  to { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(360deg); }
}

/* ---------- activation / install ---------- */
.section--install {
  min-height: 105svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 50%, rgba(98, 246, 189, 0.11), transparent 25%),
    linear-gradient(90deg, rgba(3, 3, 9, 0.96), rgba(3, 3, 9, 0.72) 55%, rgba(3, 3, 9, 0.42));
}

.section--install::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 8%;
  width: min(45vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(98, 246, 189, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 246, 189, 0.08), transparent 62%);
  content: "";
  box-shadow: 0 0 0 45px rgba(98, 246, 189, 0.012), 0 0 0 90px rgba(119, 101, 255, 0.012);
  transform: translateY(-50%);
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
}

.install__assurance {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  margin-top: 1.25rem;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.install__terminal {
  position: relative;
  display: grid;
  gap: 0.75rem;
  perspective: 1000px;
}

.install__terminal::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: -1.5rem;
  width: 1px;
  background: linear-gradient(transparent, var(--green), transparent);
  content: "";
  box-shadow: 0 0 12px rgba(98, 246, 189, 0.35);
}

.install__terminal .terminal {
  min-height: 68px;
  transition: border-color 260ms ease, transform 400ms var(--ease), box-shadow 260ms ease;
}

.install__terminal .terminal:nth-child(1) { transform: translateX(-1.2rem) translateZ(-12px); }
.install__terminal .terminal:nth-child(2) { transform: translateX(0) translateZ(12px); }
.install__terminal .terminal:nth-child(3) { transform: translateX(1.2rem) translateZ(-12px); }

.install__terminal .terminal:hover {
  z-index: 2;
  border-color: rgba(98, 246, 189, 0.34);
  box-shadow: 0 18px 65px rgba(0, 0, 0, 0.32), 0 0 24px rgba(98, 246, 189, 0.06);
  transform: translateX(0) translateZ(30px);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--hair);
  background: rgba(3, 3, 8, 0.94);
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  min-height: 86px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.footer__inner img {
  width: 24px;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.footer__inner > a {
  margin-left: 1.2rem;
  color: var(--ink-soft);
}

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

/* ---------- scroll and pointer enhancements ---------- */
.glow-track {
  --mx: 50%;
  --my: 50%;
}

html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
}

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

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;
  filter: blur(6px);
  transform: translateY(0.55em) translateZ(-30px);
  transition: opacity 560ms var(--ease), filter 680ms var(--ease), transform 720ms var(--ease);
  transition-delay: calc(var(--w, 0) * 36ms);
}

html.js-reveal [data-kinetic].is-in .kword {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1260px) {
  .topology {
    right: 4rem;
    width: min(38vw, 500px);
    opacity: 0.76;
  }

  .hero__inner > * {
    max-width: 720px;
  }

  .hero__title {
    font-size: clamp(3.5rem, 7.2vw, 7rem);
  }

  .rail-nav {
    width: 34px;
  }

  .rail-nav__title,
  .rail-nav a span,
  .rail-nav a em {
    display: none;
  }

  .rail-nav a {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rail-nav a::after {
    left: 50%;
  }
}

@media (min-width: 1261px) {
  /* Keep interactive chapter content clear of the fixed depth map. */
  .section__inner {
    padding-right: max(var(--gutter), 10rem);
  }

  .product-bridge__inner {
    padding-right: max(var(--gutter), 10rem);
  }
}

@media (max-width: 1060px) {
  :root {
    --nav-h: 64px;
  }

  .nav__links,
  .nav__ext,
  .nav__actions .btn {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
  }

  .nav__toggle {
    display: grid;
  }

  .topology {
    right: -6rem;
    width: 54vw;
    opacity: 0.42;
  }

  .product-bridge__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-bridge__statement h2 {
    max-width: 28ch;
  }

  .product-bridge__products {
    max-width: 760px;
  }

  .split,
  .audit-layout,
  .install,
  .section__header--split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 2rem;
  }

  .section__copy,
  .section__lede--right {
    max-width: 760px;
  }

  .provocation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .flow-demo__bar {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .flow-demo__progress {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .flow-demo__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-demo__stage {
    min-height: 600px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
    contain: paint;
  }

  .flow-demo__story {
    padding: 2rem;
  }

  .verb-card {
    min-height: 0;
  }

  .verb-card:nth-child(n) {
    transform: none;
  }

  .stage-ev {
    grid-template-columns: 1fr;
  }

  .stage-ev__frame {
    top: calc(var(--nav-h) + 1rem);
    z-index: 10;
    transform: none;
  }

  .stage-ev__copy::before {
    left: 0;
  }

  .stage-ev__chapter {
    min-height: clamp(220px, 38vh, 360px);
    padding-left: 2rem;
  }

  .stage-ev__chapter::before {
    left: -4px;
  }

  .audit-layout > div:first-child {
    position: relative;
    top: auto;
  }

  .audit-list {
    margin-top: 1rem;
  }

  .install {
    gap: 3rem;
  }

  .install__terminal {
    width: min(100%, 720px);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 1.15rem;
    --radius: 14px;
  }

  .scene__vignette {
    background: radial-gradient(ellipse at center, transparent 25%, rgba(1, 1, 4, 0.7) 100%);
  }

  .scene__grid {
    opacity: 0.12;
  }

  .scene-hud {
    display: none;
  }

  .rail-nav {
    right: 0.35rem;
    opacity: 0.7;
  }

  .nav__logo {
    width: 136px;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 4.5rem;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 3, 8, 0.96), rgba(3, 3, 8, 0.64)),
      linear-gradient(180deg, transparent 40%, rgba(3, 3, 8, 0.96));
  }

  .topology {
    top: 34%;
    right: -34%;
    width: 88vw;
    opacity: 0.2;
  }

  .chapter-mark {
    margin-bottom: 1.25rem;
    font-size: 0.55rem;
  }

  .hero__meta .tag:last-child {
    display: none;
  }

  .hero__assurance {
    flex-wrap: wrap;
    font-size: 0.57rem;
  }

  .hero__title {
    max-width: 10ch;
    margin-top: 1.4rem;
    font-size: clamp(3.2rem, 16vw, 5.2rem);
    line-height: 0.88;
  }

  .hero__title span:last-child {
    font-size: 0.58em;
  }

  .hero__lead {
    margin-top: 1.2rem;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .hero__actions {
    align-items: stretch;
    margin-top: 1.25rem;
  }

  .hero__actions .terminal {
    flex: 1 1 100%;
  }

  .hero__actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
    padding-inline: 0.55rem;
    font-size: 0.59rem;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.8rem;
  }

  .product-bridge__inner {
    padding-block: 2.5rem;
  }

  .product-bridge__products {
    grid-template-columns: 1fr;
  }

  .product-bridge__products > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .product-bridge__products article {
    min-height: 0;
  }

  .hero__stats div:nth-child(2)::after {
    display: none;
  }

  .hero__stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hair);
  }

  .section {
    min-height: 0;
    padding: 6rem 0;
  }

  .section--thesis,
  .section--install {
    min-height: 100svh;
  }

  .section__title {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .section__lede,
  .section__copy {
    font-size: 0.98rem;
  }

  .provocation-grid {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .provocation-card {
    min-height: 210px;
  }

  .flow-demo__bar {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem;
  }

  .flow-demo__controls {
    grid-row: 2;
    justify-content: space-between;
  }

  .flow-demo__progress {
    grid-row: 3;
  }

  .flow-demo__controls button {
    min-width: 42px;
    height: 42px;
  }

  .flow-demo__stage {
    min-height: 490px;
  }

  .flow-agent {
    width: 128px;
    min-height: 74px;
    padding: 0.72rem;
  }

  .flow-core {
    width: 122px;
    height: 122px;
  }

  .flow-core__orbit {
    inset: -11px;
  }

  .flow-demo__work {
    top: calc(50% + 78px);
    min-width: 152px;
  }

  .flow-demo__story {
    padding: 1.25rem;
  }

  html.js .flow-demo.is-ready .flow-steps li,
  html.js .flow-demo.is-ready .flow-steps li.is-complete {
    opacity: 0.84;
  }

  html.js .flow-demo.is-ready .flow-steps li.is-active {
    opacity: 1;
  }

  html.js .flow-demo.is-ready .flow-steps p,
  html.js .flow-demo.is-ready .flow-steps li.is-active p {
    display: block;
    color: var(--ink-soft);
    opacity: 0.78;
  }

  .capability-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-strip div:nth-child(2)::after {
    display: none;
  }

  .capability-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hair);
  }

  .verb-card {
    padding: 1.25rem;
  }

  .stage-ev__frame {
    top: calc(var(--nav-h) + 0.5rem);
    border-radius: 10px;
  }

  .showcase__bar {
    min-height: 30px;
  }

  .stage-ev__chapter {
    min-height: 260px;
  }

  .stage-ev__chapter h3 {
    font-size: 2rem;
  }

  .audit-row {
    padding: 1rem;
  }

  .thesis__statement {
    font-size: clamp(2.8rem, 12vw, 4.6rem);
  }

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

  .thesis__pillars li {
    min-height: 140px;
  }

  .section--install::before {
    right: -50%;
    width: 120vw;
  }

  .install__terminal::before {
    left: -0.45rem;
  }

  .install__terminal .terminal:nth-child(n) {
    transform: none;
  }

  .terminal {
    min-width: 0;
  }

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

  .footer__inner {
    flex-wrap: wrap;
    min-height: 110px;
    padding-block: 1.2rem 3.1rem;
  }

  .footer__status {
    display: none;
  }

  .footer__inner > a {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .scene-hud__status span:last-child {
    display: none;
  }

  .rail-nav {
    display: none;
  }

  .hero__actions .btn {
    flex-basis: 100%;
  }

  .terminal__copy {
    padding-inline: 0.42rem;
  }

  .flow-demo__stage {
    min-height: 420px;
  }

  .flow-agent {
    width: 104px;
    min-height: 62px;
    padding: 0.65rem;
  }

  .flow-agent small,
  .flow-agent__index {
    display: none;
  }

  .flow-agent strong {
    font-size: 0.78rem;
  }

  .flow-core {
    width: 98px;
    height: 98px;
  }

  .flow-core img {
    width: 28px;
  }

  .flow-core small {
    display: none;
  }

  .flow-demo__work {
    display: none;
  }

  .flow-demo__readout {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .topology,
  .stage-ev__frame,
  .flow-agent,
  .flow-core__orbit,
  .verb-card:nth-child(n),
  .install__terminal .terminal:nth-child(n) {
    transform: none;
  }

  .flow-demo__packet {
    display: none;
  }

  .flow-demo__controls [data-flow-action="toggle"],
  .flow-demo__controls [data-flow-action="replay"] {
    display: none;
  }

  .flow-demo__routes path {
    filter: none;
    stroke-dasharray: none;
  }

  html.js .flow-demo.is-ready .flow-steps li,
  html.js .flow-demo.is-ready .flow-steps li.is-complete {
    opacity: 0.88;
  }

  html.js .flow-demo.is-ready .flow-steps li.is-active {
    opacity: 1;
  }

  html.js .flow-demo.is-ready .flow-steps p,
  html.js .flow-demo.is-ready .flow-steps li.is-active p {
    display: block;
  }

  html.js-reveal [data-reveal],
  html.js-reveal [data-kinetic] .kword {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav,
  .terminal,
  .flow-demo,
  .flow-agent,
  .provocation-card,
  .verb-card,
  .audit-row {
    backdrop-filter: none;
  }

  .nav {
    background: #05050c;
  }

  .flow-demo {
    background: #070814;
  }

  .flow-agent {
    background: #0b0c1b;
  }
}
