@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* BASE */

:root {
  --paper: #f8fbfd;
  --ink: #14282d;
  --muted: #52676d;
  --blue: #1460ee;
  --line: #cdd9de;
  --lime: #dcf47a;
  --pale: #eaf1f9;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    fill 0.4s ease,
    box-shadow 0.4s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 "DM Sans", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

p {
  color: var(--muted);
}

em {
  font-style: normal;
  color: var(--blue);
}

main {
  overflow: hidden;
}

.skip {
  position: fixed;
  top: -100px;
  z-index: 99;
  background: #fff;
  padding: 15px;
}

.skip:focus {
  top: 0;
}

.read-progress {
  height: 3px;
  background: var(--blue);
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  z-index: 50;
}

/* HEADER */

header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 23px 4.5%;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #f8fbfdf2;
  backdrop-filter: blur(14px);
  z-index: 20;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -1px;
  font-size: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-symbol {
  background: var(--ink);
  color: white;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-size: 22px;
}

.brand-symbol span {
  color: var(--lime);
  font-size: 15px;
}

.brand-team {
  font: 500 15px "DM Sans", sans-serif;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.brand-divider {
  color: var(--line);
  font-weight: 400;
  margin: 0 -2px;
}

.brand-product {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.5px;
  color: var(--ink);
}

nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}

nav a {
  font-size: 14px;
  text-decoration: none;
}

nav a:hover {
  color: var(--blue);
}

.small-button {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.icon-button .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-button .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-button .icon-moon {
  display: block;
}

/* SHARED LAYOUT */

.hero,
.section {
  padding: 65px 7%;
  max-width: 1600px;
  margin: auto;
}

.section {
  padding-top: 80px;
  padding-bottom: 90px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label {
  font: 600 12px/1.5 "Space Grotesk", sans-serif;
  letter-spacing: 1.6px;
}

.eyebrow {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.section-label {
  margin-bottom: 35px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
}

h2 {
  font-weight: 500;
  font-size: clamp(38px, 4.3vw, 65px);
  line-height: 1.1;
  letter-spacing: -3px;
  margin-bottom: 30px;
}

h3 {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 25px;
}

.section-heading > p {
  max-width: 340px;
}

.note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* HERO */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5%;
  padding: 42px 0 55px;
}

.side-note {
  font-size: 15px;
  color: var(--blue);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(60px, 6.5vw, 108px);
  line-height: 1.02;
  letter-spacing: -6px;
  font-weight: 500;
  margin-bottom: 27px;
}

.hero-copy {
  font-size: 18px;
  max-width: 500px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  gap: 36px;
  padding: 13px 22px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.button:hover {
  transform: translateY(-3px);
}

.text-link {
  font-size: 14px;
  text-underline-offset: 5px;
}

.status {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
}

/* SIGNAL DIAGRAM */

.signal-art {
  position: relative;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      #d8e7ff66,
      transparent 70%
    );
  padding: 12px 28px 0;
}

.diagram-label,
.diagram-caption {
  font: 11px "Space Grotesk", sans-serif;
  letter-spacing: 1px;
  color: var(--muted);
}

.diagram-label {
  margin-bottom: 15px;
}

.signal-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
}

.signal-row > span {
  font-size: 23px;
  font-weight: 500;
}

.signal-row svg {
  width: 100%;
  height: 70px;
  overflow: visible;
}

.signal-row small {
  grid-column: 2;
  font-size: 10px;
  letter-spacing: 1px;
  justify-self: end;
}

.wave {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-dasharray: 600;
  animation: trace 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.second .wave {
  stroke: #5f7d32;
  animation-delay: -2s;
}

.core {
  background: var(--ink);
  color: white;
  position: relative;
  max-width: 280px;
  margin: 28px auto 0;
  padding: 25px 30px;
  box-shadow: 10px 10px 0 #dae2e6;
  transform: rotate(-3deg);
}

.core:hover {
  transform: rotate(0);
}

.core::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 28px;
  background: var(--ink);
  top: -28px;
  left: 50%;
}

.core-kicker,
.core-foot {
  font-size: 10px;
  letter-spacing: 1px;
  display: block;
}

.core b {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.12;
  display: block;
  margin: 17px 0;
  color: var(--lime);
}

.core-foot {
  color: #c6d4d9;
  font-size: 9px;
}

.corner {
  position: absolute;
  right: 12px;
  top: 7px;
  color: var(--lime);
}

.diagram-output {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 25px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 10px;
  letter-spacing: 1px;
}

.diagram-caption {
  text-align: center;
  font-size: 10px;
}

/* FOUR-STAGE RAILWAY STRIP */

.rail-band {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding: 30px 0 18px;
  gap: 0;
  border-top: 2px solid #8aa6c6;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.rail-band::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 7px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 15px,
      #a9bccf 15px 17px
    );
  z-index: -1;
}

.rail-band > button {
  flex: 1;
  position: relative;
  background: none;
  border: 0;
  padding: 5px 0;
  text-align: left;
  color: var(--ink);
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 1px 8px;
}

.rail-band > button:not(:first-of-type) {
  padding-left: 15px;
}

.rail-band button > span {
  font: 12px "Space Grotesk", sans-serif;
  color: var(--blue);
  padding-top: 3px;
}

.rail-band b {
  font: 600 14px "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.rail-band small {
  grid-column: 2;
  font: 12px "DM Sans", sans-serif;
  color: var(--muted);
  margin-top: 5px;
}

.rail-band button:hover,
.rail-band button:focus-visible {
  color: var(--blue);
}

.rail-band button::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
}

.rail-traveller {
  position: absolute;
  left: 0;
  top: -39px;
  width: calc(100% - 44px);
  height: 34px;
  pointer-events: none;
  animation:
    rail-journey 18s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  will-change: transform;
}

.rail-train {
  display: block;
  width: 30px;
  height: 34px;
  color: var(--blue);
  fill: var(--paper);
  filter: drop-shadow(0 0 7px #1460ee55);
}

/* PROBLEM AND NEWS */

.lead {
  font-size: 23px;
  line-height: 1.5;
  color: var(--ink);
}

.fact-row {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 30px;
  display: flex;
  gap: 30px;
}

.fact-row strong {
  font: 55px/1.2 "Space Grotesk", sans-serif;
  white-space: nowrap;
}

.fact-row strong span {
  font-size: 22px;
}

.fact-row p {
  font-size: 14px;
  line-height: 1.6;
}

.fact-row a {
  display: block;
  color: var(--blue);
  margin-top: 8px;
  font-size: 13px;
}

.news-notebook {
  margin-top: 65px;
  border-top: 1px solid var(--line);
  padding-top: 35px;
}

.news-notebook .section-label {
  margin-bottom: 12px;
}

.news-notebook .section-heading h3 {
  font-size: 32px;
  margin-bottom: 0;
}

.news-notebook .section-heading > p {
  font-size: 14px;
  margin-bottom: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 170px 1fr 165px;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.news-meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}

.news-category {
  font: 600 12px "Space Grotesk", sans-serif;
  color: var(--blue);
  letter-spacing: 1px;
}

.news-story h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.news-story > p {
  font-size: 15px;
  margin-bottom: 13px;
}

.news-story > a {
  font-size: 13px;
  color: var(--blue);
  text-underline-offset: 4px;
}

.news-context {
  border: 0;
  margin-bottom: 13px;
}

.news-context summary {
  font: 500 14px "DM Sans", sans-serif;
  padding: 2px 0;
  justify-content: flex-start;
}

.news-context summary::after {
  margin: 0;
  font-size: 18px;
}

.news-context p {
  font-size: 14px;
  padding: 10px 0 0;
  margin: 0;
}

.news-stat {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.news-stat strong {
  font: 500 30px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -1px;
}

.news-stat span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.news-footnote {
  margin-top: 20px;
  max-width: 800px;
}

/* SYSTEM PIPELINE */

.system {
  background: #edf3fc;
  max-width: none;
  padding-left: max(7%, calc((100vw - 1376px) / 2));
  padding-right: max(7%, calc((100vw - 1376px) / 2));
}

.step-nav {
  display: flex;
  border-bottom: 1px solid #bdcce0;
}

.step-nav button {
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 18px 4px;
  color: var(--muted);
  font-weight: 500;
}

.step-nav button span {
  font-size: 12px;
  margin-right: 12px;
}

.step-nav button.active {
  border-color: var(--blue);
  color: var(--blue);
}

.stage-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  min-height: 330px;
  padding: 40px 0;
  transition: opacity 0.2s;
}

.stage-body.stage-enter {
  animation:
    stage-reveal 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stage-number {
  font: 150px/0.9 "Space Grotesk", sans-serif;
  color: #bfd2ed;
  letter-spacing: -12px;
}

.stage-body h3 {
  font-size: 34px;
  margin: 14px 0;
}

.stage-body p {
  max-width: 690px;
}

.stage-question {
  font-size: 14px;
  padding-left: 15px;
  border-left: 2px solid var(--blue);
}

/* EVIDENCE DEMO */

.demo {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 7%;
  border-top: 1px solid #bdcce0;
  padding-top: 45px;
}

.demo .section-label {
  margin-bottom: 18px;
}

.demo label,
.guide-controls > label {
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

select {
  width: 100%;
  background: #fff;
  border: 1px solid #a9bccd;
  color: var(--ink);
  padding: 12px;
  font-size: 14px;
  border-radius: 0;
}

.demo-console {
  min-width: 0;
}

.demo-console-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font: 11px "Space Grotesk", sans-serif;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.demo-badge {
  font-size: 10px;
  border: 1px solid #b6c9e2;
  border-radius: 4px;
  padding: 4px 7px;
  color: var(--blue);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding: 15px 40px 15px 15px;
  border-color: #93afd1;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px #14282d04;
}

.select-wrap > span {
  position: absolute;
  right: 15px;
  top: 7px;
  font-size: 25px;
  pointer-events: none;
  color: var(--blue);
}

#scenario-description {
  margin: 10px 0 15px;
}

.scenario-shortcuts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.scenario-shortcuts button {
  padding: 7px 12px;
  font-size: 12px;
  border: 1px solid #c4d3e6;
  background: transparent;
  color: var(--muted);
  border-radius: 20px;
}

.scenario-shortcuts button[aria-pressed="true"] {
  background: #dbe8ff;
  color: #1349a4;
  border-color: #97b6eb;
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.demo-toolbar button {
  background: transparent;
  border: 1px solid #b8cbe3;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 12px;
  color: var(--ink);
}

.demo-toolbar .demo-play {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.demo-toolbar button:hover {
  transform: translateY(-1px);
}

.demo-toolbar button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.demo-toolbar label {
  margin: 0 0 0 auto;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}

.demo-toolbar label select {
  padding: 7px 5px;
  font-size: 12px;
  background: transparent;
  border-radius: 5px;
  width: auto;
}

.demo-stops {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  margin: 27px 0 12px;
  font-size: 12px;
  counter-reset: stop;
}

.demo-stops li {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-stops li::before {
  counter-increment: stop;
  content: counter(stop);
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid #aabed8;
  font: 11px "Space Grotesk", sans-serif;
}

.demo-stops li.reached {
  color: var(--blue);
}

.demo-stops li.reached::before {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.demo-stops li.current {
  font-weight: 700;
}

.demo-progress {
  height: 3px;
  background: #cedbef;
  border-radius: 5px;
  overflow: hidden;
}

.demo-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.65s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.demo-caption {
  font-size: 14px;
  min-height: 46px;
  margin: 14px 0 0;
  color: var(--ink);
}

.evidence-lines {
  margin: 18px 0;
}

.evidence-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d3ddea;
  padding: 10px 0;
  font-size: 13px;
}

.evidence-lines b {
  font-weight: 500;
}

.demo .evidence-lines {
  margin-top: 4px;
}

.demo .evidence-lines > div {
  padding: 12px 0;
}

.decision {
  border-left: 4px solid #5b7825;
  padding: 8px 0 1px 20px;
  margin-top: 20px;
  min-height: 128px;
  transition: border-color 0.3s;
}

.decision > span {
  font: 26px "Space Grotesk", sans-serif;
}

.decision p {
  font-size: 14px;
  margin: 8px 0;
}

.demo .rationale-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  margin: 19px 0 8px;
}

.rationale-toggle input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

.demo #demo-rationale {
  min-height: 40px;
}

.demo #demo-rationale[hidden] {
  display: none;
}

/* DEPLOYMENT MODES */

.mode-list {
  margin-top: 40px;
}

.mode-list article {
  display: grid;
  grid-template-columns: 50px 1fr 1.5fr 160px;
  gap: 25px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.mode-index {
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  color: var(--blue);
}

.mode-list h3 {
  margin: 0;
}

.mode-list p {
  margin: 0;
  font-size: 15px;
}

.mode-use {
  font-size: 10px;
  letter-spacing: 1px;
  text-align: right;
  padding-top: 9px;
  color: var(--muted);
}

.hand-note {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 23px;
  color: var(--blue);
  transform: rotate(-2deg);
  text-align: right;
  margin: 25px 0 0;
}

/* FIELD GUIDE AND ACCORDIONS */

.guide-controls {
  margin: 25px 0;
}

input[type="search"] {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  width: 100%;
  padding: 10px 0 15px;
  color: var(--ink);
  font-size: 22px;
  border-radius: 0;
}

.filters {
  display: flex;
  gap: 12px;
  margin-top: 23px;
  flex-wrap: wrap;
}

.filters button {
  background: transparent;
  padding: 7px 17px;
  border: 1px solid var(--line);
  font-size: 14px;
  border-radius: 30px;
}

.filters button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  margin-left: auto;
  font-size: 25px;
  color: var(--blue);
}

details[open] > summary::after {
  content: "−";
}

.term-category {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
  min-width: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.term-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  padding: 0 0 25px 120px;
}

.term-body p {
  font-size: 15px;
}

.term-body aside {
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--lime);
  padding-left: 18px;
}

.term-body aside b {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

/* VALIDATION ROADMAP */

.reality {
  background: var(--lime);
  color: #14282d;
}

.reality em {
  color: #345820;
}

.reality .section-label {
  color: #475a2b;
}

.milestones article {
  display: flex;
  gap: 25px;
  border-top: 1px solid #abc456;
  padding-top: 22px;
}

.milestones article > span {
  font: 13px "Space Grotesk", sans-serif;
  padding-top: 7px;
}

.milestones h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.milestones p {
  font-size: 15px;
  color: #40522c;
}

.rollout {
  border-top: 1px solid #abc456;
  margin-top: 35px;
  padding-top: 24px;
  display: flex;
  gap: 50px;
  align-items: center;
}

.rollout > span {
  font-size: 11px;
  letter-spacing: 1px;
}

.rollout p {
  margin: 0;
  color: #304125;
  font-size: 19px;
}

.rollout b {
  font-weight: 400;
  margin: 0 13px;
}

/* QUESTIONS AND RESEARCH */

.questions summary {
  font-size: 22px;
}

.faq-answer {
  max-width: 900px;
  padding-bottom: 24px;
}

.questions .faq-answer p {
  max-width: none;
  padding: 0;
  margin: 0 0 18px;
}

.questions .faq-answer p:last-child {
  margin-bottom: 0;
}

.sources h2 {
  font-size: 42px;
}

.sources ol {
  margin: 0;
  padding-left: 22px;
}

.sources li {
  padding: 0 0 20px 10px;
  font-size: 14px;
}

.sources li a {
  text-underline-offset: 4px;
}

.sources li p {
  font-size: 13px;
  margin: 6px 0 0;
}

/* TEAM */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  margin-top: 40px;
}

.team-member {
  text-align: center;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  background: linear-gradient(145deg, #e4edff, #f8fbfd);
  border: 1px solid #bfd0e9;
  outline: 6px solid #eef4fc;
  overflow: hidden;
  color: var(--blue);
  font: 500 36px "Space Grotesk", sans-serif;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member:hover .profile-photo {
  transform: translateY(-4px);
}

.team-member h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.team-member p {
  font-size: 13px;
  margin: 0;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.team-socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  transition: all 0.25s ease;
}

.team-socials a svg {
  width: 16px;
  height: 16px;
}

.team-socials a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
  transform: translateY(-2px);
}

.team-id {
  font: 12px "Space Grotesk", sans-serif;
  letter-spacing: 1px;
  color: var(--muted);
}

/* FOOTER */

footer {
  display: flex;
  gap: 35px;
  align-items: center;
  padding: 35px 7%;
  background: var(--ink);
  color: white;
}

footer p {
  font-size: 13px;
  margin: 0;
  color: #c3d2d7;
}

footer > span {
  font-size: 10px;
  margin-left: auto;
  letter-spacing: 1px;
}

/* MOTION */

.button,
button,
.core {
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}

body.paused *,
body.paused *::before {
  animation-play-state: paused !important;
}

@keyframes trace {
  0% {
    stroke-dashoffset: 600;
  }

  50%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes rail-journey {
  0%,
  6% {
    transform: translate3d(0, 0, 0);
  }

  25%,
  31% {
    transform: translate3d(33.333%, 0, 0);
  }

  50%,
  56% {
    transform: translate3d(66.666%, 0, 0);
  }

  76%,
  83% {
    transform: translate3d(100%, 0, 0);
    opacity: 1;
  }

  88% {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
  }

  89% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }

  96%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes stage-reveal {
  from {
    opacity: 0.35;
    transform: translateY(6px);
  }

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

/* TABLET */

@media (max-width: 1000px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-team,
  .brand-divider {
    display: none;
  }

  .hero-grid {
    gap: 20px;
  }

  h1 {
    letter-spacing: -4px;
  }

  .hero,
  .section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .signal-art {
    padding-left: 0;
    padding-right: 0;
  }

  .mode-list article {
    grid-template-columns: 30px 1fr 1.5fr;
  }

  .mode-use {
    display: none;
  }

  .term-body {
    padding-left: 0;
  }

  .hero-actions {
    gap: 15px;
  }

  footer {
    flex-wrap: wrap;
  }

  .news-row {
    grid-template-columns: 135px 1fr 125px;
    gap: 20px;
  }

  .demo {
    grid-template-columns: 1fr 1.2fr;
    gap: 5%;
  }

  .rail-band b {
    font-size: 12px;
  }

  .rail-band small {
    font-size: 11px;
  }

  .rail-band > button {
    grid-template-columns: 20px 1fr;
    gap: 4px;
  }

  .demo-toolbar label {
    margin-left: 0;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  header {
    padding: 15px 5%;
  }

  .brand {
    font-size: 23px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  nav a {
    font-size: 12px;
  }

  .small-button {
    margin-left: auto;
  }

  .hero {
    padding-top: 30px;
  }

  .eyebrow {
    font-size: 10px;
    gap: 15px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 35px;
  }

  h1 {
    font-size: 64px;
    letter-spacing: -4px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .signal-art {
    max-width: 460px;
    width: 100%;
    margin: auto;
    padding: 20px;
  }

  .rail-band {
    padding-top: 23px;
  }

  .rail-band b {
    font-size: 10px;
    letter-spacing: 0;
  }

  .rail-band > button {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .rail-band > button:not(:first-of-type) {
    padding-left: 5px;
  }

  .rail-band button > span {
    font-size: 11px;
  }

  .rail-band small {
    display: none;
  }

  .rail-band button::before {
    top: -28px;
  }

  .section {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .split,
  .demo {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  h2 {
    font-size: 43px;
    letter-spacing: -2px;
  }

  .section-label {
    font-size: 10px;
    margin-bottom: 23px;
  }

  .lead {
    font-size: 20px;
  }

  .fact-row {
    gap: 22px;
  }

  .section-heading {
    display: block;
  }

  .step-nav button {
    font-size: 13px;
    text-align: center;
  }

  .step-nav button span {
    display: block;
    margin: 0 0 4px;
  }

  .stage-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 30px;
  }

  .stage-number {
    font-size: 75px;
    letter-spacing: -5px;
  }

  .stage-body h3 {
    font-size: 28px;
  }

  .mode-list article {
    grid-template-columns: 25px 1fr;
    gap: 12px;
  }

  .mode-list p {
    grid-column: 2;
  }

  .term-body {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .term-category {
    min-width: 75px;
    font-size: 9px;
  }

  summary {
    font-size: 18px;
    gap: 10px;
  }

  .questions summary {
    font-size: 18px;
  }

  .rollout {
    display: block;
  }

  .rollout p {
    font-size: 16px;
    margin-top: 12px;
  }

  .rollout b {
    margin: 0 5px;
  }

  .sources h2 {
    font-size: 38px;
  }

  .hand-note {
    font-size: 20px;
  }

  footer {
    gap: 15px;
  }

  footer > span {
    margin-left: 0;
    width: 100%;
  }

  .evidence-lines > div {
    flex-wrap: wrap;
    gap: 4px 15px;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 12px;
    position: relative;
  }

  .news-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .news-stat {
    flex-direction: row;
    text-align: left;
    gap: 10px;
    align-items: baseline;
    grid-row: 2;
  }

  .news-stat strong {
    font-size: 26px;
  }

  .news-stat span {
    margin: 0;
  }

  .news-story h3 {
    font-size: 22px;
  }

  .news-notebook .section-heading h3 {
    font-size: 27px;
    margin-bottom: 12px;
  }

  .news-notebook {
    margin-top: 40px;
  }

  .demo-stops {
    font-size: 11px;
    gap: 4px;
  }

  .demo-stops li {
    gap: 4px;
  }

  .demo-stops li::before {
    width: 18px;
    height: 18px;
  }

  .demo-toolbar button {
    padding: 10px;
    font-size: 12px;
  }

  .demo-console-heading {
    font-size: 10px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 20px;
  }

  .profile-photo {
    width: 105px;
    height: 105px;
    font-size: 28px;
  }

  .team-member h3 {
    font-size: 18px;
  }

  .team-socials a {
    width: 28px;
    height: 28px;
  }

  .team-socials a svg {
    width: 14px;
    height: 14px;
  }

  .team-id {
    display: block;
    margin-bottom: 20px;
  }
}

/* ============================================================
   DARK THEME
   ============================================================ */

[data-theme="dark"] {
  --paper: #10181d;
  --ink: #e6edf0;
  --muted: #93a7ac;
  --blue: #5b9bff;
  --line: #2a3940;
  --pale: #17242b;
  --inverse: #1c2a30;
}

[data-theme="dark"] body {
  background: var(--paper);
  color: var(--ink);
}

[data-theme="dark"] header {
  background: #10181dee;
}

[data-theme="dark"] .brand-symbol,
[data-theme="dark"] .core,
[data-theme="dark"] .core::before,
[data-theme="dark"] .filters button.active,
[data-theme="dark"] footer,
[data-theme="dark"] .team-socials a:hover {
  background: var(--inverse);
}

[data-theme="dark"] .filters button.active,
[data-theme="dark"] .team-socials a:hover {
  border-color: var(--inverse);
}

[data-theme="dark"] .core {
  box-shadow: 10px 10px 0 #05090b;
}

[data-theme="dark"] .core-foot {
  color: #7f9298;
}

[data-theme="dark"] .rail-train {
  fill: var(--paper);
}

[data-theme="dark"] .rail-band {
  border-top-color: #3a4d57;
}

[data-theme="dark"] .rail-band::before {
  background: repeating-linear-gradient(
    90deg,
    transparent 0 15px,
    #3a4d57 15px 17px
  );
}

[data-theme="dark"] .signal-art {
  background: radial-gradient(
    ellipse at 50% 50%,
    #1a2a3466,
    transparent 70%
  );
}

[data-theme="dark"] .stage-number {
  color: #2c3f49;
}

[data-theme="dark"] .system {
  background: #141f26;
}

[data-theme="dark"] .step-nav,
[data-theme="dark"] .demo {
  border-color: #2a3940;
}

[data-theme="dark"] select,
[data-theme="dark"] .select-wrap select {
  background: #1a262d;
  border-color: #33454e;
  color: var(--ink);
}

[data-theme="dark"] .select-wrap select {
  box-shadow: none;
}

[data-theme="dark"] .demo-badge {
  border-color: #33454e;
}

[data-theme="dark"] .scenario-shortcuts button {
  border-color: #33454e;
}

[data-theme="dark"] .scenario-shortcuts button[aria-pressed="true"] {
  background: #1e3352;
  color: #9cc0ff;
  border-color: #2f4d78;
}

[data-theme="dark"] .demo-toolbar button {
  border-color: #33454e;
  color: var(--ink);
}

[data-theme="dark"] .demo-stops li::before {
  border-color: #33454e;
}

[data-theme="dark"] .demo-progress {
  background: #23343c;
}

[data-theme="dark"] .evidence-lines > div {
  border-bottom-color: #263941;
}

[data-theme="dark"] .profile-photo {
  background: linear-gradient(145deg, #1c2c38, #10181d);
  border-color: #2c3f49;
  outline-color: #182229;
}

[data-theme="dark"] footer p {
  color: #9fb0b5;
}

/* BAREMETAL — SCOPED 3D DEVICE CONCEPTS */

.bm-devices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 38px 0 24px;
}

.bm-device {
  min-width: 0;
  margin: 0;
}

.bm-stage {
  position: relative;
  height: 300px;
  perspective: 850px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 65%, #1460ee12, transparent 65%);
}

.bm-shadow {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 37px;
  height: 26px;
  border-radius: 50%;
  background: #14282d28;
  filter: blur(12px);
}

.bm-world {
  --bm-angle: -28deg;
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-17deg) rotateY(var(--bm-angle));
  animation: bm-breathe 7s ease-in-out infinite;
}

.bm-device:nth-child(2) .bm-world {
  animation-delay: -2s;
}

.bm-device:nth-child(3) .bm-world {
  animation-delay: -4s;
}

.bm-part {
  position: absolute;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.bm-face {
  position: absolute;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  border: 1px solid #ffffff24;
  border-radius: 3px;
  color: #eaf5ff;
  font: 600 8px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: 1px;
  white-space: pre-line;
  text-align: center;
}

.bm-face.front {
  width: var(--w);
  height: var(--h);
  background: linear-gradient(135deg, #ffffff20, #00000012), var(--c);
  transform: translate(-50%, -50%) translateZ(var(--dz));
}

.bm-face.back {
  width: var(--w);
  height: var(--h);
  background: var(--c);
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(var(--dz));
}

.bm-face.right,
.bm-face.left {
  width: var(--d);
  height: var(--h);
  background: linear-gradient(#00000022, #00000044), var(--c);
}

.bm-face.right {
  transform: translate(-50%, -50%) rotateY(90deg) translateZ(var(--wx));
}

.bm-face.left {
  transform: translate(-50%, -50%) rotateY(-90deg) translateZ(var(--wx));
}

.bm-face.top,
.bm-face.bottom {
  width: var(--w);
  height: var(--d);
  background: linear-gradient(135deg, #ffffff55, #ffffff08), var(--c);
}

.bm-face.top {
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(var(--hy));
}

.bm-face.bottom {
  transform: translate(-50%, -50%) rotateX(-90deg) translateZ(var(--hy));
}

.bm-device figcaption {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.bm-device figcaption span {
  color: var(--blue);
  font: 11px "Space Grotesk", sans-serif;
  letter-spacing: 1.5px;
}

.bm-device figcaption strong {
  color: var(--ink);
  font: 500 21px "Space Grotesk", sans-serif;
}

.bm-rotation {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}

.bm-rotation input {
  width: 100%;
  min-width: 0;
  height: 24px;
  accent-color: var(--blue);
  cursor: ew-resize;
}

.bm-rotation input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

[data-theme="dark"] .bm-stage {
  background:
    radial-gradient(ellipse at 50% 65%, #5b9bff20, transparent 65%);
}

[data-theme="dark"] .bm-shadow {
  background: #00000070;
}

@keyframes bm-breathe {
  0%, 100% {
    transform: translateY(0) rotateX(-17deg) rotateY(var(--bm-angle));
  }
  50% {
    transform: translateY(-6px) rotateX(-17deg) rotateY(var(--bm-angle));
  }
}

@media (max-width: 1000px) {
  .bm-devices { gap: 15px; }
  .bm-stage { perspective: 1000px; }
  .bm-world { zoom: 0.82; }
}

@media (max-width: 700px) {
  .bm-devices {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bm-stage { height: 290px; }
  .bm-world { zoom: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-world { animation: none; }
}

/* Monochrome WebGL model presentation */

#modes .bm-stage {
  height: 350px;
  perspective: none;
  background: none;
}

#modes .bm-shadow {
  display: none;
}

#modes .bm-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  zoom: 1;
  transform: none;
  transform-style: flat;
  animation: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

#modes .bm-world canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#modes .bm-device figcaption span {
  color: var(--muted);
}

#modes .bm-rotation input {
  accent-color: #777;
}

@media (max-width: 700px) {
  #modes .bm-stage {
    height: 330px;
  }
}

/* CONCEPT FILM */

.bm-film-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 30px;
}

.bm-film-frame > div,
.bm-film-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.bm-film-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.bm-film-controls button {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.bm-film-controls button:disabled {
  opacity: 0.5;
  cursor: default;
}

.bm-film-controls button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.bm-film-controls a {
  color: var(--muted);
  font-size: 13px;
  text-underline-offset: 4px;
}

/* Allow space for the new navigation links */
header {
  flex-wrap: wrap;
}

header nav {
  flex-wrap: wrap;
  gap: 12px 20px;
}

header nav a {
  white-space: nowrap;
}

@media (max-width: 700px) {
  header nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }
}

/* MOBILE + TABLET SIDEBAR */

.bm-menu-toggle {
  display: none;
}

.bm-sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(360px, 90vw);
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bm-sidebar[open] {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: bm-menu-enter 250ms ease-out;
}

.bm-sidebar::backdrop {
  background: rgb(0 0 0 / 40%);
  backdrop-filter: blur(4px);
}

.bm-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bm-sidebar-heading strong {
  font: 500 23px "Space Grotesk", sans-serif;
}

.bm-sidebar-close,
.bm-menu-toggle {
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.bm-sidebar nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  margin: 0;
}

.bm-sidebar nav a {
  display: block;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font: 500 20px "Space Grotesk", sans-serif;
  text-decoration: none;
  color: var(--ink);
}

.bm-sidebar nav a:hover {
  color: var(--blue);
}

.bm-sidebar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.bm-sidebar-controls .small-button {
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 24px;
}

.bm-sidebar button:focus-visible,
.bm-sidebar a:focus-visible,
.bm-menu-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@keyframes bm-menu-enter {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

body.paused .bm-sidebar {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .bm-sidebar {
    animation: none;
  }
}

@media (max-width: 1024px) {
  header.bm-sidebar-ready {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }

  header.bm-sidebar-ready .brand {
    min-width: 0;
  }

  header.bm-sidebar-ready .bm-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
  }
}
/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}