/* WorkStreamer ConsultOS - Homepage
   Self-contained stylesheet. Dark theme lock, single emerald accent,
   sharp radii, Cabinet Grotesk display / Geist body / Geist Mono labels. */

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("assets/fonts/CabinetGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("assets/fonts/CabinetGrotesk-Extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dark derivation of the WorkStreamer design system:
     Momentum #FF889A = action, Context #2C698F = intelligence (lifted for dark),
     Ink #17303D = base hue family, amber reserved for external-route caution. */
  --bg-0: #081019;
  --bg-1: #0b141d;
  --bg-2: #101c27;
  --bg-3: #172736;
  --ink: #f1f6f9;
  --body-c: #a7bac6;
  --muted: #87a0af;
  --faint: #35485a;
  --line: rgba(151, 180, 200, 0.14);
  --line-strong: rgba(151, 180, 200, 0.28);
  --accent: #ff889a;
  --accent-ink: #17303d;
  --accent-dim: rgba(255, 136, 154, 0.1);
  --intel: #6ba7cc;
  --intel-dim: rgba(107, 167, 204, 0.12);
  --warn: #d9a441;
  --display: "Cabinet Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --sans: "Geist", "Avenir Next", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(22px, 5vw, 84px);
  --header-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--body-c);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: var(--gutter);
  z-index: 40;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  top: 12px;
}

/* ---------- Chrome: header, footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 34px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(11, 20, 29, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 26px;
  height: 26px;
}

.brand b {
  font-weight: 400;
  color: var(--muted);
}

.site-header nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-header nav a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--body-c);
  white-space: nowrap;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  transition: transform 0.2s var(--ease-out), filter 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

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

.mobile-menu {
  position: sticky;
  top: var(--header-h);
  z-index: 29;
  display: grid;
  gap: 2px;
  padding: 14px var(--gutter) 22px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--body-c);
  font-size: 17px;
  padding: 10px 0;
}

.mobile-menu .mobile-cta {
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 44px;
  padding: 46px var(--gutter) 60px;
  border-top: 1px solid var(--line);
  background: var(--bg-0);
}

.site-footer p {
  color: var(--muted);
  font-size: 14.5px;
}

.footer-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.footer-links a {
  color: var(--body-c);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}

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

/* ---------- Shared primitives ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot {
    animation: live-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.waitlist-form input {
  flex: 1 1 240px;
  min-width: 0;
  background: rgba(16, 28, 39, 0.7);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border-radius: 0;
  transition: border-color 0.2s;
}

.waitlist-form input::placeholder {
  color: var(--muted);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist-form input:disabled {
  opacity: 0.72;
}

.waitlist-form button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  padding: 13px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), filter 0.2s;
}

.waitlist-form button svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease-out);
}

.waitlist-form button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.waitlist-form button:hover svg {
  transform: translateX(3px);
}

.waitlist-form button:active {
  transform: translateY(0) scale(0.98);
}

.waitlist-form button:disabled {
  cursor: default;
  filter: saturate(0.6) brightness(0.92);
  transform: none;
}

.form-status {
  flex-basis: 100%;
  font-size: 14px;
  min-height: 22px;
  color: var(--accent);
}

.form-status.is-error {
  color: var(--warn);
}

.aweber-display-pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.waitlist-toast {
  position: fixed;
  top: calc(var(--header-h) + 18px);
  right: clamp(18px, 3vw, 44px);
  z-index: 1000;
  width: min(420px, calc(100vw - 36px));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 18px 20px;
  background: rgba(13, 27, 38, 0.98);
  border: 1px solid color-mix(in srgb, var(--accent) 54%, var(--line));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
}

.waitlist-toast[hidden] {
  display: none;
}

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

.waitlist-toast-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.waitlist-toast-message > svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  color: var(--accent);
}

.waitlist-toast-message p {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
}

.waitlist-toast-message strong {
  color: var(--ink);
  font-size: 15px;
}

.waitlist-toast > button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -5px -5px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.waitlist-toast > button:hover,
.waitlist-toast > button:focus-visible {
  color: var(--ink);
}

.waitlist-toast > button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.waitlist-toast > button svg {
  width: 18px;
  height: 18px;
}

/* ---------- 01 · Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 30%, #0e1b28 0%, var(--bg-0) 62%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(140, 170, 195, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 195, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.8);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 16, 25, 0.94) 0%, rgba(8, 16, 25, 0.72) 44%, rgba(8, 16, 25, 0.32) 72%, rgba(8, 16, 25, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 16, 25, 0.5) 0%, rgba(8, 16, 25, 0) 30%, rgba(8, 16, 25, 0) 62%, var(--bg-0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
}

.hero-copy {
  max-width: 860px;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(54px, 5.8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 0.96;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 em {
  display: block;
  font-style: normal;
}

.hero-deck {
  max-width: 46ch;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.55;
  margin-bottom: 34px;
}

.hero-form {
  max-width: 520px;
}

/* ---------- Boundary flow diagram (hero + boundary story) ---------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "sources boundary outputs"
    ". cloud .";
  column-gap: clamp(30px, 3.4vw, 54px);
  row-gap: 36px;
  align-items: center;
}

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

.flow-line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.25;
  transition: stroke 0.4s;
}

.flow-line-cloud {
  stroke-dasharray: 3 5;
}

.flow.lv1 .flow-line-in,
.flow.lv3 .flow-line-out {
  stroke: var(--intel);
  stroke-dasharray: 3 5;
  animation: flow-dash 0.9s linear infinite;
}

.flow.lv4 .flow-line-cloud {
  stroke: var(--warn);
  animation: flow-dash 0.9s linear infinite;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -8;
  }
}

.flow-gate {
  fill: var(--bg-1);
  stroke: var(--line-strong);
  transition: stroke 0.4s;
}

.flow.lv1 .flow-gate-in,
.flow.lv3 .flow-gate-out {
  stroke: var(--intel);
}

.flow.lv4 .flow-gate-cloud {
  stroke: var(--warn);
}

.flow-sources,
.flow-outputs {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.flow-sources {
  grid-area: sources;
}

.flow-outputs {
  grid-area: outputs;
}

.flow-sources li,
.flow-outputs li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.4s, border-color 0.4s;
}

.flow-sources li svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.flow-sources li:nth-child(2) {
  transition-delay: 90ms;
}

.flow-sources li:nth-child(3) {
  transition-delay: 180ms;
}

.flow-sources li:nth-child(4) {
  transition-delay: 270ms;
}

.flow.lv1 .flow-sources li {
  color: var(--ink);
  border-color: rgba(107, 167, 204, 0.55);
}

.flow-outputs li {
  justify-content: space-between;
  gap: 14px;
}

.flow-outputs li b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--faint);
  transition: color 0.4s;
}

.flow-outputs li:nth-child(2) {
  transition-delay: 110ms;
}

.flow-outputs li:nth-child(3) {
  transition-delay: 220ms;
}

.flow.lv3 .flow-outputs li {
  color: var(--ink);
  border-color: rgba(107, 167, 204, 0.55);
}

.flow.lv3 .flow-outputs li b {
  color: var(--intel);
}

.flow-boundary {
  grid-area: boundary;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: clamp(30px, 3vw, 42px) clamp(16px, 2vw, 28px);
  border: 1px dashed rgba(107, 167, 204, 0.34);
  background: rgba(107, 167, 204, 0.04);
  transition: border-color 0.5s;
}

.flow.lv2 .flow-boundary {
  border-color: rgba(107, 167, 204, 0.62);
}

.flow-boundary-label {
  position: absolute;
  top: 11px;
  left: 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.flow-core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  background: rgba(8, 16, 25, 0.85);
  border: 1px solid var(--line-strong);
  padding: 18px 20px;
  min-width: 0;
  max-width: 100%;
}

.flow-core small {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.flow-core strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--intel);
  max-width: 21ch;
}

.flow-core::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(107, 167, 204, 0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .flow.lv2 .flow-core::after {
    animation: core-pulse 2.2s ease-in-out infinite;
  }
}

@keyframes core-pulse {
  0%,
  100% {
    border-color: rgba(107, 167, 204, 0);
  }
  50% {
    border-color: rgba(107, 167, 204, 0.5);
  }
}

.flow-cloud {
  grid-area: cloud;
  justify-self: center;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 9px;
  padding: 9px 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s, border-color 0.4s;
}

.flow-cloud svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.flow-cloud b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s;
}

.flow.lv4 .flow-cloud {
  color: var(--warn);
  border-color: rgba(217, 164, 65, 0.55);
}

.flow.lv4 .flow-cloud b {
  color: var(--warn);
}

/* ---------- 02 · Problem ---------- */

.problem {
  padding: clamp(110px, 14vw, 200px) var(--gutter);
  border-top: 1px solid var(--line);
}

.problem h2 {
  max-width: 21ch;
  font-size: clamp(34px, 4.4vw, 66px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
}

.stakes {
  margin: clamp(56px, 7vw, 110px) 0;
}

.stakes li {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 68px);
  letter-spacing: -0.028em;
  line-height: 1.06;
  color: var(--ink);
  padding: clamp(6px, 1vw, 14px) 0;
}

.stakes li:nth-child(2) {
  margin-left: clamp(0px, 7vw, 130px);
}

.stakes li:nth-child(3) {
  margin-left: clamp(0px, 14vw, 260px);
}

.stakes li:nth-child(4) {
  margin-left: clamp(0px, 21vw, 390px);
}

.stakes li:nth-child(5) {
  margin-left: clamp(0px, 28vw, 520px);
}

.problem-resolve {
  max-width: 54ch;
  margin-left: auto;
  display: grid;
  gap: 18px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.problem-resolve p:last-child {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 03 · Boundary story ---------- */

.boundary {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
}

.boundary-viewport {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: center;
  padding: clamp(90px, 11vw, 160px) var(--gutter);
  max-width: 1520px;
  margin: 0 auto;
}

.story-stage {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  padding: clamp(24px, 3vw, 42px) clamp(18px, 2.4vw, 34px);
}

/* Compact scale for the flow inside the narrower story stage */
.story-stage .flow {
  column-gap: clamp(18px, 2vw, 30px);
}

.story-stage .flow-sources li,
.story-stage .flow-outputs li {
  font-size: 11.5px;
  padding: 7px 9px;
  gap: 7px;
}

.story-stage .flow-outputs li b {
  font-size: 9.5px;
}

.story-stage .flow-core {
  padding: 14px 15px;
}

.story-stage .flow-core strong {
  font-size: 11px;
}

.story-stage .flow-boundary {
  min-height: 260px;
  padding: 38px 13px 24px;
}

.story-stage .flow-boundary-label {
  font-size: 10px;
  white-space: nowrap;
}

.boundary-acts {
  display: grid;
  gap: clamp(64px, 8vw, 120px);
}

.act h2 {
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.04;
  margin-bottom: 18px;
}

.act p {
  max-width: 52ch;
  margin-bottom: 22px;
}

.act ul {
  display: grid;
  gap: 10px;
}

.act li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
}

.act li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1px;
  background: var(--intel);
}

/* The stage rides alongside the acts as a sticky sidebar; no scroll hijack */

@media (min-width: 901px) {
  .boundary-viewport {
    align-items: start;
  }

  .story-stage {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

  .boundary-acts {
    padding-top: 12px;
  }
}

/* ---------- 04 · Hardware ---------- */

.hardware {
  position: relative;
  min-height: clamp(620px, 100vh, 940px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.hardware-media {
  position: absolute;
  inset: 0;
}

.hardware-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.06) brightness(0.8);
  will-change: transform;
}

.hardware-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(7, 9, 11, 0.92) 0%,
      rgba(7, 9, 11, 0.55) 38%,
      rgba(7, 9, 11, 0.18) 70%
    ),
    linear-gradient(to right, rgba(7, 9, 11, 0.5) 0%, transparent 55%);
}

.hardware-copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
  max-width: 820px;
}

.hardware-copy h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1;
  margin-bottom: 20px;
}

.hardware-copy > p {
  max-width: 52ch;
  color: #c6d4d1;
  margin-bottom: 40px;
}

.hardware-copy dl {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  margin: 0 0 30px;
}

.hardware-copy dt {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hardware-copy dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 1.9vw, 25px);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hardware-copy small {
  font-size: 12.5px;
  color: var(--muted);
}

.hardware-copy small a {
  color: inherit;
}

/* ---------- 05 · Control ---------- */

.control {
  padding: clamp(110px, 13vw, 190px) var(--gutter);
  border-top: 1px solid var(--line);
}

.control-heading {
  max-width: 760px;
  margin-bottom: clamp(52px, 6vw, 90px);
}

.control-heading h2 {
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin-bottom: 18px;
}

.control-heading p {
  max-width: 50ch;
  font-size: 17.5px;
}

.ledger {
  max-width: 1080px;
  margin-left: auto;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
  gap: 18px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-head {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.ledger-source {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
}

.ledger-source svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: none;
}

.ledger-cell {
  font-size: 14.5px;
  color: var(--body-c);
}

.ledger-external .ledger-cell:last-of-type {
  color: var(--warn);
}

.permission-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  justify-self: end;
}

.permission-toggle .toggle-track {
  position: relative;
  width: 34px;
  height: 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  transition: background 0.2s, border-color 0.2s;
  flex: none;
}

.permission-toggle .toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--muted);
  transition: transform 0.2s var(--ease-out), background 0.2s;
}

.permission-toggle.on {
  color: var(--ink);
}

.permission-toggle.on .toggle-track {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.permission-toggle.on .toggle-track::after {
  transform: translateX(16px);
  background: var(--accent);
}

/* ---------- 06 · Compute routes ---------- */

.routes {
  padding: clamp(110px, 13vw, 190px) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg-0);
}

.routes-heading h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1;
  margin-bottom: clamp(52px, 6vw, 90px);
}

.dock {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 44px);
  max-width: 1240px;
}

.dock-panel {
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  padding: clamp(24px, 3vw, 38px);
}

.dock-panel header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
}

.dock-panel header span {
  color: var(--muted);
}

.dock-panel header b {
  font-weight: 500;
  color: var(--intel);
}

.dock-external header b {
  color: var(--warn);
}

.harness-node {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.harness-node img {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
}

.harness-node span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.harness-node strong {
  color: var(--ink);
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.route-group {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.route-group button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--body-c);
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  text-align: left;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.route-group button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.route-group button.selected {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.dock-external .route-group button.selected {
  border-color: var(--warn);
  background: rgba(217, 164, 65, 0.08);
}

.route-group button svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}

.dock-external .route-group button svg {
  color: var(--warn);
}

.dock-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.dock-gate {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  gap: 12px;
  padding: 6px 0;
}

.dock-gate i {
  width: 1px;
  background: var(--line-strong);
}

.dock-gate b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  writing-mode: horizontal-tb;
  white-space: nowrap;
}

.route-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin-top: 34px;
  font-size: 15px;
  color: var(--body-c);
}

.route-disclosure svg {
  width: 18px;
  height: 18px;
  color: var(--intel);
  flex: none;
  margin-top: 2px;
}

/* ---------- 07 · Casework ---------- */

.casework {
  padding: clamp(110px, 13vw, 190px) var(--gutter);
  border-top: 1px solid var(--line);
}

.case-heading {
  margin-bottom: clamp(52px, 6vw, 90px);
}

.case-heading h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1;
  margin-bottom: 14px;
}

.case-heading p {
  color: var(--muted);
  font-size: 15px;
}

.case-stack {
  display: grid;
  gap: 26px;
  max-width: 780px;
  margin: 0 auto;
}

.case-paper {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  padding: clamp(26px, 3.4vw, 44px);
}

.js-cinema .case-paper {
  position: sticky;
  top: calc(var(--header-h) + 26px + var(--i) * 18px);
  will-change: transform;
}

.case-paper header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.paper-step {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}

.paper-code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.paper-kind {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.case-paper h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.case-paper p {
  max-width: 56ch;
  font-size: 15.5px;
}

.case-paper footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.case-paper footer b {
  font-weight: 500;
  color: var(--intel);
}

/* ---------- 08 · Knowledge ---------- */

.knowledge {
  padding: clamp(110px, 13vw, 190px) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg-0);
}

.knowledge-heading {
  max-width: 780px;
  margin-bottom: clamp(52px, 6vw, 90px);
}

.knowledge-heading h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1;
  margin-bottom: 18px;
}

.knowledge-heading p {
  max-width: 56ch;
  font-size: 17.5px;
}

.brain-map {
  max-width: 1100px;
}

.brain-individuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brain-individuals li {
  justify-self: center;
  width: min(100%, 224px);
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 16px 14px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.brain-individuals li span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.brain-individuals li span svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--muted);
}

.brain-individuals li b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--intel);
}

.brain-links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 30px;
}

.brain-link {
  position: relative;
  justify-self: center;
  width: 1px;
  height: 100%;
  background: rgba(107, 167, 204, 0.4);
}

.brain-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3.5px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  background: var(--bg-0);
  border: 1px solid var(--intel);
}

.brain-rail {
  position: absolute;
  left: calc(100% / 6);
  right: calc(100% / 6);
  bottom: 0;
  height: 1px;
  background: rgba(107, 167, 204, 0.4);
}

.brain-merge {
  position: relative;
  height: 56px;
}

.brain-merge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(107, 167, 204, 0.4);
}

.brain-merge span {
  position: absolute;
  left: calc(50% + 14px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.brain-firm {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  width: min(100%, 400px);
  margin: 0 auto;
  padding: 24px 26px;
  background: rgba(107, 167, 204, 0.05);
  border: 1px solid rgba(107, 167, 204, 0.4);
}

.brain-firm small {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.brain-firm strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--intel);
}

.knowledge-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin-top: 44px;
  font-size: 15px;
  color: var(--body-c);
}

.knowledge-note svg {
  width: 18px;
  height: 18px;
  color: var(--intel);
  flex: none;
  margin-top: 2px;
}

/* ---------- 09 · Outcomes ---------- */

.outcomes {
  padding: clamp(110px, 13vw, 190px) var(--gutter);
  border-top: 1px solid var(--line);
}

.outcomes-heading {
  max-width: 780px;
  margin-bottom: clamp(56px, 7vw, 100px);
}

.outcomes-heading h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1;
  margin-bottom: 18px;
}

.outcomes-heading p {
  max-width: 56ch;
  font-size: 17.5px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(44px, 7vw, 130px);
  row-gap: clamp(48px, 6vw, 90px);
  max-width: 1240px;
}

.outcome {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.outcome:nth-child(even) {
  margin-top: clamp(32px, 5vw, 88px);
}

.outcome h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.outcome p {
  max-width: 46ch;
  font-size: 16px;
}

/* ---------- 10 · Principles ---------- */

.principles {
  padding: clamp(110px, 13vw, 190px) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg-0);
}

.principles-lead {
  max-width: 780px;
  margin-bottom: clamp(56px, 7vw, 100px);
}

.principles-lead h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1;
  margin-bottom: 18px;
}

.principles-lead p {
  max-width: 56ch;
  font-size: 17.5px;
}

.principle-lines li {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 54px);
  letter-spacing: -0.026em;
  line-height: 1.08;
  color: var(--ink);
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.principle-lines li:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---------- 11 · Closing CTA ---------- */

.closing {
  padding: clamp(130px, 16vw, 230px) var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing .eyebrow {
  justify-content: center;
  margin-bottom: 26px;
}

.closing h2 {
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 22px;
}

.closing-deck {
  font-size: 17.5px;
  margin-bottom: 40px;
}

.closing-form {
  max-width: 520px;
  margin: 0 auto;
  justify-content: center;
}

.closing-form .form-status {
  text-align: center;
}

/* ---------- Responsive collapse ---------- */

@media (max-width: 1160px) {
  .site-header {
    gap: 24px;
  }

  .site-header nav {
    gap: 16px;
  }
}

@media (max-width: 1023px) {
  .site-header nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .boundary-viewport {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .dock-gate {
    grid-template-rows: none;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 2px 0;
  }

  .dock-gate i {
    width: auto;
    height: 1px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: clamp(56px, 14vw, 96px);
  }

  .hero-scrim {
    background: linear-gradient(180deg, rgba(8, 16, 25, 0.72) 0%, rgba(8, 16, 25, 0.74) 55%, var(--bg-0) 100%);
  }

  .flow {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sources"
      "boundary"
      "outputs"
      "cloud";
    row-gap: 16px;
    justify-items: stretch;
  }

  .flow-svg {
    display: none;
  }

  .flow-sources,
  .flow-outputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .flow-sources li,
  .flow-outputs li {
    white-space: normal;
  }

  .flow-outputs li:last-child {
    grid-column: 1 / -1;
  }

  .flow-boundary {
    min-height: 0;
    padding: 46px 18px 26px;
  }

  .flow-cloud {
    justify-self: start;
  }

  .stakes li:nth-child(n) {
    margin-left: 0;
  }

  .problem-resolve {
    margin-left: 0;
  }

  .ledger {
    max-width: none;
  }

  .ledger-head {
    display: none;
  }

  .ledger-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
    padding: 18px 0;
  }

  .ledger-source {
    grid-column: 1;
    grid-row: 1;
  }

  .permission-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .ledger-cell {
    grid-column: 1 / -1;
    font-size: 13.5px;
    color: var(--muted);
  }

  .ledger-cell + .ledger-cell {
    margin-top: -6px;
  }

  .hardware {
    min-height: 78vh;
  }

  .brain-individuals {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brain-individuals li {
    justify-self: stretch;
    width: auto;
  }

  .brain-links {
    display: none;
  }

  .brain-merge {
    height: 44px;
  }

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

  .outcome:nth-child(even) {
    margin-top: 0;
  }

  .case-stack {
    max-width: none;
  }

  .js-cinema .case-paper {
    position: static;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-links {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(38px, 10.3vw, 44px);
  }

  .waitlist-form button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .waitlist-toast {
    top: auto;
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }

  .case-paper footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Reduced motion ---------- */

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

  .hero-media {
    background: url("assets/newhomepagewebsite_video_202607182131-poster.jpg") center / cover no-repeat;
    filter: saturate(0.82) brightness(0.8);
  }

  .hero-media video {
    display: none;
  }

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