@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-sans-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void-950: #05080a;
  --void-900: #081014;
  --void-850: #0c171c;
  --panel: rgba(8, 14, 17, 0.78);
  --panel-strong: rgba(10, 19, 23, 0.92);
  --ink: #ecfbff;
  --muted: #a5c3cb;
  --dim: #68868e;
  --line: rgba(90, 223, 238, 0.16);
  --line-strong: rgba(90, 223, 238, 0.3);
  --cyan: #00e5ff;
  --cyan-rgb: 0, 229, 255;
  --green: #62d3a4;
  --green-rgb: 98, 211, 164;
  --seal: #ff2b68;
  --seal-rgb: 255, 43, 104;
  --amber: #f5c15f;
  --amber-rgb: 245, 193, 95;
  --max: 1180px;
  --header-h: 64px;
  font-family: "Geist", "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--void-950);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(118deg, rgba(var(--cyan-rgb), 0.08), transparent 42%),
    linear-gradient(302deg, rgba(var(--seal-rgb), 0.06), transparent 52%),
    linear-gradient(180deg, #05080a, #071014 54%, #05080a);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--cyan-rgb), 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cyan-rgb), 0.024) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(110deg, transparent 0 22%, rgba(var(--cyan-rgb), 0.035) 22% 22.2%, transparent 22.2% 58%, rgba(var(--seal-rgb), 0.03) 58% 58.2%, transparent 58.2%),
    linear-gradient(70deg, transparent 0 38%, rgba(236, 251, 255, 0.026) 38% 38.15%, transparent 38.15%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 7px;
}

main:focus,
.section:focus {
  outline: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 80;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(var(--cyan-rgb), 0.42);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(5, 8, 10, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  font-weight: 760;
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(var(--cyan-rgb), 0.12);
  background: rgba(5, 8, 10, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 124px;
}

.brand img {
  display: block;
  width: 126px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(var(--cyan-rgb), 0.12));
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  min-width: 0;
}

.nav a,
.header-action {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #baf6ff;
  font-weight: 650;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.header-action {
  min-width: 92px;
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
  border-radius: 7px;
  background: rgba(5, 8, 10, 0.48);
}

.section-indicator {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: auto minmax(0, 88px);
  gap: 12px;
  align-items: center;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: auto;
}

.indicator-current {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--cyan-rgb), 0.26);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(5, 8, 10, 0.68);
  font: 820 0.72rem/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  box-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.12);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.section-indicator:hover .indicator-current,
.section-indicator:focus-within .indicator-current {
  border-color: rgba(var(--cyan-rgb), 0.58);
  box-shadow:
    0 0 30px rgba(var(--cyan-rgb), 0.2),
    0 0 0 6px rgba(var(--cyan-rgb), 0.04);
  transform: translateX(-2px);
}

.section-indicator ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: auto;
}

.has-js .section-indicator ol {
  opacity: 0;
  pointer-events: none;
  transform: translateX(7px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.has-js .section-indicator:hover ol,
.has-js .section-indicator:focus-within ol {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.section-indicator a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6px;
  color: rgba(165, 195, 203, 0.72);
  font: 760 0.74rem/1.08 "Geist", "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  transition: color 160ms ease;
}

.section-indicator a::after {
  content: "";
  width: 18px;
  height: 1px;
  margin-left: 8px;
  background: rgba(var(--cyan-rgb), 0.24);
  transition: width 160ms ease, background 160ms ease;
}

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

.section-indicator a.is-active::after {
  width: 34px;
  background: var(--cyan);
}

.mobile-section-readout {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(var(--cyan-rgb), 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(5, 8, 10, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.mobile-section-readout span {
  color: var(--cyan);
  font: 820 0.72rem/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.mobile-section-readout strong {
  font-size: 0.74rem;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, var(--max)) minmax(24px, 1fr);
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--cyan-rgb), 0.12);
  --hero-bg-x: 0px;
  --hero-bg-y: 0px;
  --hero-glow-x: 50%;
  --hero-glow-y: 45%;
  --hero-scroll-y: 0px;
  --hero-scroll-opacity: 1;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(1.08) contrast(1.04) brightness(0.9);
  transform: translate3d(var(--hero-bg-x), var(--hero-bg-y), 0) scale(1.03);
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--hero-glow-x) var(--hero-glow-y), rgba(var(--cyan-rgb), 0.18), transparent 300px),
    linear-gradient(90deg, rgba(5, 8, 10, 0.8), rgba(5, 8, 10, 0.38) 44%, rgba(5, 8, 10, 0.06) 76%),
    linear-gradient(180deg, rgba(5, 8, 10, 0.1), rgba(5, 8, 10, 0.56));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 16% 0 auto 0;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), 0.32), transparent);
  opacity: 0.6;
}

.hero-cursor-glow {
  position: absolute;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.16), rgba(var(--seal-rgb), 0.08) 42%, transparent 68%);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 180ms ease;
}

.hero.is-pointer-active .hero-cursor-glow {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  grid-column: 2;
  width: min(930px, 72vw);
  padding: calc(var(--header-h) + 34px) 0 34px;
  opacity: var(--hero-scroll-opacity);
  transform: translate3d(0, var(--hero-scroll-y), 0);
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: 90px -44px 118px -44px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 34% 42%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.38) 42%, transparent 74%);
  filter: blur(18px);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.badge-row span,
.section-label,
.kicker,
.hero-metrics dt,
.large-card span,
.cell-diagram span,
.branch-grid span,
.proof-grid span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0;
}

.badge-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
  border-radius: 999px;
  color: #baf6ff;
  background: rgba(var(--cyan-rgb), 0.055);
  font-size: 0.7rem;
  font-weight: 820;
  box-shadow: inset 0 1px 0 rgba(236, 251, 255, 0.08);
}

.badge-row span:nth-child(3) {
  border-color: rgba(var(--amber-rgb), 0.34);
  color: #ffe0a1;
  background: rgba(var(--amber-rgb), 0.07);
}

.kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 840;
}

.hero h1 {
  max-width: 860px;
  margin: 0 0 22px;
  font-size: clamp(3.1rem, 6.4vw, 5.7rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow:
    0 0 28px rgba(var(--cyan-rgb), 0.18),
    0 14px 60px rgba(0, 0, 0, 0.9);
}

.lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(236, 251, 255, 0.86);
  font-size: clamp(1.08rem, 1.48vw, 1.32rem);
  line-height: 1.48;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(var(--cyan-rgb), 0.22);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(7, 12, 14, 0.72);
  font-weight: 740;
  box-shadow: inset 0 1px 0 rgba(236, 251, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  color: #041113;
  border-color: rgba(var(--cyan-rgb), 0.82);
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(var(--cyan-rgb), 0.22);
}

.button.secondary {
  color: #c8f8ff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #72f1ff;
  box-shadow: 0 0 34px rgba(var(--cyan-rgb), 0.32);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(var(--cyan-rgb), 0.42);
  background: rgba(var(--cyan-rgb), 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
  margin: 0;
}

.hero-metrics div {
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--cyan-rgb), 0.16);
  border-radius: 7px;
  background: rgba(5, 8, 10, 0.56);
}

.hero-metrics dt {
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 820;
}

.hero-metrics dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
}

main {
  display: grid;
  gap: 100px;
  padding: 42px 0 92px;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 820;
}

.section h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.15rem, 4.8vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-heading p,
.split-section > div > p,
.large-card p,
.cell-diagram p,
.branch-grid p,
.proof-grid p,
.closing-panel p {
  color: var(--muted);
}

.thesis-grid,
.branch-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.large-card,
.cell-diagram article,
.branch-grid article,
.proof-grid article,
.closing-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--cyan-rgb), 0.07), transparent 38%),
    var(--panel);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.large-card {
  min-height: 320px;
  padding: 28px;
}

.large-card.accent {
  border-color: rgba(var(--green-rgb), 0.26);
  background:
    radial-gradient(circle at 82% 18%, rgba(var(--green-rgb), 0.13), transparent 240px),
    linear-gradient(135deg, rgba(var(--cyan-rgb), 0.06), transparent 44%),
    var(--panel-strong);
}

.large-card span,
.cell-diagram span,
.branch-grid span,
.proof-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 54px;
  padding: 0 10px;
  border: 1px solid rgba(var(--cyan-rgb), 0.22);
  border-radius: 4px;
  color: #9ff6ff;
  background: rgba(5, 8, 10, 0.54);
  font-size: 0.68rem;
  font-weight: 820;
}

.large-card h3 {
  max-width: 560px;
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.94;
}

.large-card p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.03rem;
}

.cell-diagram {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cell-diagram article {
  min-height: 220px;
  padding: 22px;
}

.cell-diagram span {
  margin-bottom: 44px;
  color: var(--green);
}

.cell-diagram strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1.24rem;
}

.cell-diagram p {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 34px;
  align-items: center;
  min-height: 640px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--green-rgb), 0.07), transparent 48%),
    rgba(7, 12, 14, 0.72);
}

.split-section h2 {
  margin-bottom: 20px;
}

.lane-stack {
  display: grid;
  gap: 10px;
}

.lane-stack div {
  min-height: 74px;
  display: grid;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid rgba(var(--cyan-rgb), 0.18);
  border-radius: 7px;
  background: rgba(5, 8, 10, 0.52);
}

.lane-stack span {
  margin-bottom: 4px;
  color: var(--cyan);
  font: 780 0.7rem/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.lane-stack strong {
  color: var(--ink);
  font-size: 0.98rem;
}

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

.branch-grid article {
  min-height: 260px;
  padding: 24px;
}

.branch-grid span {
  margin-bottom: 62px;
}

.branch-grid article:nth-child(2) span {
  border-color: rgba(var(--amber-rgb), 0.3);
  color: #ffe0a1;
}

.branch-grid article:nth-child(3) span {
  border-color: rgba(var(--seal-rgb), 0.28);
  color: #ffadc1;
}

.branch-grid h3 {
  margin-bottom: 10px;
  font-size: 1.48rem;
}

.branch-grid p {
  margin: 0;
}

.export-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.export-list li {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(var(--cyan-rgb), 0.18);
  border-radius: 7px;
  background: rgba(5, 8, 10, 0.5);
}

.export-list strong {
  color: var(--cyan);
  font: 780 0.74rem/1.2 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.export-list span {
  color: var(--ink);
  font-weight: 680;
}

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

.proof-grid article {
  min-height: 214px;
  padding: 22px;
}

.proof-grid span {
  margin-bottom: 50px;
  color: var(--green);
}

.proof-grid p {
  margin: 0;
  font-weight: 680;
}

.closing-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 24px;
}

.closing-panel p {
  max-width: 760px;
  margin: 0;
}

footer {
  border-top: 1px solid rgba(var(--cyan-rgb), 0.12);
  padding: 28px 0 40px;
  color: var(--dim);
}

.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin: 0 auto;
  font: 740 0.74rem/1.3 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.footer-inner span {
  margin-right: auto;
}

.footer-inner a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #baf6ff;
}

.has-js .hero .badge-row,
.has-js .hero .kicker,
.has-js .hero h1,
.has-js .hero .lead,
.has-js .hero .hero-actions,
.has-js .hero .hero-metrics,
.has-js .section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.has-js .hero.is-booted .badge-row,
.has-js .hero.is-booted .kicker,
.has-js .hero.is-booted h1,
.has-js .hero.is-booted .lead,
.has-js .hero.is-booted .hero-actions,
.has-js .hero.is-booted .hero-metrics,
.has-js .section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.has-js .hero.is-booted .kicker { transition-delay: 40ms; }
.has-js .hero.is-booted h1 { transition-delay: 70ms; }
.has-js .hero.is-booted .lead { transition-delay: 100ms; }
.has-js .hero.is-booted .hero-actions { transition-delay: 130ms; }
.has-js .hero.is-booted .hero-metrics { transition-delay: 160ms; }

@media (max-width: 1360px) {
  .section-indicator {
    display: none;
  }

  .mobile-section-readout {
    display: inline-flex;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 18px;
  }

  .nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
  }

  .nav a {
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav a:nth-child(1),
  .nav a:nth-child(4) {
    display: none;
  }

  .hero-inner {
    width: min(760px, 78vw);
  }

  .section-heading,
  .split-section,
  .thesis-grid,
  .cell-diagram,
  .branch-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    min-height: 0;
  }

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

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }

  .site-header {
    gap: 12px;
  }

  .brand {
    min-width: auto;
  }

  .header-action {
    min-width: 76px;
    padding: 0 10px;
  }

  .nav a {
    padding: 0 7px;
    font-size: 0.78rem;
  }

  .nav a:not([aria-current="page"]) {
    display: none;
  }

  .hero {
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    min-height: 84svh;
  }

  .hero-background img {
    object-position: 60% center;
  }

  .hero-background::after {
    background:
      radial-gradient(circle at var(--hero-glow-x) var(--hero-glow-y), rgba(var(--cyan-rgb), 0.14), transparent 260px),
      linear-gradient(90deg, rgba(5, 8, 10, 0.76), rgba(5, 8, 10, 0.34) 72%, rgba(5, 8, 10, 0.1)),
      linear-gradient(180deg, rgba(5, 8, 10, 0.08), rgba(5, 8, 10, 0.58));
  }

  .hero-inner {
    width: 100%;
    padding: calc(var(--header-h) + 18px) 0 24px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13.2vw, 3.62rem);
    line-height: 0.9;
  }

  .lead {
    font-size: 1.02rem;
    line-height: 1.42;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button.secondary {
    display: none;
  }

  .hero-metrics,
  .proof-grid,
  .cell-diagram {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    display: none;
  }

  main {
    gap: 66px;
    padding: 34px 0 70px;
  }

  .section {
    width: calc(100% - 36px);
  }

  .mobile-section-readout {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .mobile-section-readout strong {
    display: none;
  }

  .branch-grid h3,
  .branch-grid p {
    max-width: calc(100% - 58px);
  }

  .section h2 {
    font-size: 2.24rem;
  }

  .large-card,
  .split-section,
  .cell-diagram article,
  .branch-grid article,
  .proof-grid article,
  .closing-panel {
    padding: 20px;
  }

  .large-card {
    min-height: 270px;
  }

  .large-card h3 {
    font-size: 2.36rem;
  }

  .closing-panel {
    display: grid;
  }

  .footer-inner {
    width: calc(100% - 36px);
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 8px;
    padding: 0 12px;
  }

  .header-action {
    min-width: 68px;
    padding: 0 8px;
  }

  .hero-inner {
    padding: calc(var(--header-h) + 26px) 0 28px;
  }

  .badge-row span:nth-child(n+2),
  .hero-metrics {
    display: none;
  }

  .hero h1 {
    font-size: 2.84rem;
  }
}

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

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