:root {
  --ink: #171522;
  --ink-soft: #302d3d;
  --muted: #6f6b79;
  --paper: #fbfaf8;
  --paper-deep: #f2f0eb;
  --white: #ffffff;
  --line: rgba(23, 21, 34, 0.12);
  --purple: #8f68de;
  --purple-deep: #6544b8;
  --purple-soft: #ede7fa;
  --red: #d96c76;
  --gold: #d3a63c;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 70px rgba(31, 24, 48, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(143, 104, 222, 0.5);
  outline-offset: 3px;
}

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

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Navigation */

.project-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  background: rgba(23, 21, 34, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  position: relative;
  display: flex;
  width: min(1240px, calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: "Google Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 22px;
  color: #ae8bef;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Google Sans", sans-serif;
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-menu a:not(.nav-paper)::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  background: #b392f0;
  transition: transform 160ms ease;
}

.nav-menu a:hover {
  color: var(--white);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.nav-paper {
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-paper:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
}

.nav-paper-disabled,
.nav-paper-disabled:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.04);
  cursor: default;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.project-hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 48px;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 34%, rgba(129, 85, 205, 0.28), transparent 31%),
    radial-gradient(circle at 7% 8%, rgba(68, 93, 146, 0.17), transparent 26%),
    #171522;
}

.project-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(176, 141, 240, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-one {
  top: -440px;
  right: -240px;
  width: 900px;
  height: 900px;
}

.hero-orbit-two {
  top: -280px;
  right: -80px;
  width: 580px;
  height: 580px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}

.eyebrow,
.section-kicker,
.card-index,
.result-context,
.callout-label,
.rollout-kicker {
  margin: 0 0 18px;
  font-family: "Google Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c6b3ec;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a57fe9;
  box-shadow: 0 0 0 6px rgba(165, 127, 233, 0.12);
}

.hero-copy h1 {
  margin: 0;
  font-family: "Google Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.signal-word {
  display: block;
  margin-bottom: 24px;
  font-size: clamp(4rem, 7.5vw, 7.5rem);
  line-height: 0.88;
  color: transparent;
  background: linear-gradient(120deg, #ffffff 10%, #d7c5f7 50%, #8f68de 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.paper-title {
  display: block;
  max-width: 620px;
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  line-height: 1.18;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Google Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button-primary {
  color: var(--ink);
  background: var(--white);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.button-disabled {
  opacity: 0.76;
  cursor: default;
  user-select: none;
}

.button-disabled:hover {
  transform: none;
}

.button-glyph {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.button-glyph-play {
  font-size: 0.76rem;
}

.release-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
}

.hero-media-wrap {
  position: relative;
}

.hero-media-glow {
  position: absolute;
  inset: 10% 8% -8%;
  filter: blur(60px);
  opacity: 0.55;
  background: #5e3c9b;
}

.hero-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: #050505;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media figcaption {
  display: flex;
  padding: 13px 18px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  background: #0d0c12;
  font-family: "Google Sans", sans-serif;
  font-size: 0.78rem;
  line-height: 1.3;
}

.hero-media figcaption span:first-child {
  color: rgba(255, 255, 255, 0.86);
}

.media-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 82px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.metric {
  display: flex;
  min-width: 0;
  padding: 24px 28px;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  font-family: "Google Sans", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.metric-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

/* Shared sections */

.section-block {
  padding: 112px 0;
}

.section-kicker {
  color: var(--purple-deep);
}

.section-title {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: "Google Sans", sans-serif;
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading-row {
  display: grid;
  margin-bottom: 58px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: end;
}

.section-intro {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* Overview */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(56px, 10vw, 130px);
  align-items: start;
}

.overview-copy {
  padding-top: 8px;
  color: var(--muted);
}

.overview-copy p {
  margin: 0 0 24px;
}

.overview-copy .lead-paragraph {
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.72;
}

.principle-grid {
  display: grid;
  margin-top: 76px;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
  gap: 16px;
}

.principle-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.principle-card h3 {
  margin: 52px 0 12px;
  color: var(--ink);
  font-family: "Google Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.principle-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.principle-card-dark {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(143, 104, 222, 0.4), transparent 34%),
    var(--ink);
}

.principle-card-dark::after {
  position: absolute;
  right: -50px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.principle-card-dark .card-index {
  color: rgba(255, 255, 255, 0.46);
}

.equation {
  margin: 45px 0 34px !important;
  color: var(--white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem) !important;
  letter-spacing: -0.04em;
  line-height: 1.1 !important;
}

.equation sub {
  font-size: 0.55em;
}

.signal-flow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.58);
  font-family: "Google Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-flow i {
  color: #a985ec;
  font-size: 1rem;
  font-style: normal;
}

.principle-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--purple-deep);
  background: var(--purple-soft);
  font-family: "Google Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Method */

.method-section {
  background: var(--paper-deep);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
}

.paper-figure {
  margin: 0;
}

.paper-figure-inner {
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(23, 21, 34, 0.08);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.paper-figure img {
  width: 100%;
}

.paper-figure figcaption {
  max-width: 680px;
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.method-steps {
  display: flex;
  flex-direction: column;
}

.method-step {
  display: grid;
  padding: 24px 0;
  grid-template-columns: 42px 1fr;
  gap: 17px;
  border-bottom: 1px solid var(--line);
}

.method-step:first-child {
  padding-top: 0;
}

.step-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(101, 68, 184, 0.22);
  border-radius: 50%;
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.6);
  font-family: "Google Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.method-step h3 {
  margin: 3px 0 7px;
  font-family: "Google Sans", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.structure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.structure-row span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  font-family: "Google Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Results */

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.result-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.result-card-featured {
  color: var(--white);
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(143, 104, 222, 0.96), rgba(82, 52, 148, 0.98)),
    var(--purple-deep);
}

.result-card-featured::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 42px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.result-context {
  display: block;
  min-height: 34px;
  color: var(--purple-deep);
}

.result-card-featured .result-context {
  color: rgba(255, 255, 255, 0.62);
}

.result-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 42px 0 4px;
  color: var(--ink);
  font-family: "Google Sans", sans-serif;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.result-card-featured strong {
  color: var(--white);
}

.result-card h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 20px;
  color: var(--ink);
  font-family: "Google Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.result-card-featured h3 {
  color: var(--white);
}

.result-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.result-card-featured p {
  color: rgba(255, 255, 255, 0.72);
}

.hardware-callout {
  display: grid;
  margin-top: 16px;
  padding: 30px 34px;
  grid-template-columns: auto minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
}

.hardware-icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #c5aef0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.2rem;
}

.callout-label {
  margin-bottom: 7px;
  color: #b99be9;
  font-size: 0.68rem;
}

.hardware-callout h3 {
  margin: 0;
  font-family: "Google Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.hardware-callout > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.65;
}

.results-source {
  margin: 12px 4px 0;
  color: #686472;
  font-size: 0.72rem;
}

/* Rollouts */

.rollout-section {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 8%, rgba(111, 76, 185, 0.28), transparent 25%),
    #121116;
}

.section-kicker-light,
.rollout-kicker {
  color: #b799eb;
}

.section-title-light {
  color: var(--white);
}

.section-intro-light {
  color: rgba(255, 255, 255, 0.56);
}

.rollout-heading {
  align-items: start;
}

.method-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Google Sans", sans-serif;
  font-size: 0.72rem;
}

.method-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dial {
  background: var(--red);
}

.legend-signal {
  background: var(--purple);
  box-shadow: 0 0 10px rgba(143, 104, 222, 0.7);
}

.legend-mppi {
  background: var(--gold);
}

.task-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 0 0 18px;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.task-tab {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.035);
  font-family: "Google Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.task-tab:hover {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.25);
}

.task-tab.is-active {
  border-color: #9c78e2;
  color: var(--white);
  background: rgba(143, 104, 222, 0.22);
}

.rollout-viewer {
  display: grid;
  margin-top: 30px;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: stretch;
}

.comparison-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: #050505;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.comparison-video-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.comparison-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.video-loading {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: none;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: #9f7be5;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.comparison-video-frame.is-loading .video-loading {
  display: block;
}

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

.rollout-copy {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.rollout-kicker {
  margin-bottom: 14px;
}

.rollout-summary > h3 {
  margin: 0 0 20px;
  font-family: "Google Sans", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.rollout-summary > p:not(.rollout-kicker) {
  max-width: 530px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.75;
}

.comparison-guide {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-guide article {
  display: grid;
  padding: 17px 0;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-guide article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comparison-guide strong {
  font-family: "Google Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.comparison-guide span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  text-align: right;
}

.guide-line {
  width: 25px;
  height: 2px;
  border-radius: 2px;
}

.guide-dial {
  background: var(--red);
}

.guide-signal {
  background: var(--purple);
  box-shadow: 0 0 10px rgba(143, 104, 222, 0.7);
}

.guide-mppi {
  background: var(--gold);
}

.guide-signal-card strong {
  color: #c4a9f0;
}

.viewer-note {
  display: flex;
  margin: 25px 0 0;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  line-height: 1.5;
}

.viewer-note > span {
  flex: 0 0 auto;
  margin-top: -1px;
  color: #8f68de;
  font-size: 1.1rem;
  line-height: 1;
}

/* CTA and footer */

.paper-cta {
  padding: 82px 0;
  color: var(--white);
  background: var(--purple-deep);
}

.paper-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.paper-cta .section-kicker {
  color: #d5c5f3;
}

.paper-cta h2 {
  max-width: 830px;
  margin: 0;
  font-family: "Google Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.paper-cta p:last-child {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.button-primary-light {
  min-width: 145px;
  color: var(--purple-deep);
}

.site-footer {
  padding: 38px 0;
  color: rgba(255, 255, 255, 0.58);
  background: #0d0c10;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
}

.site-footer p a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-note {
  white-space: nowrap;
}

/* Responsive */

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

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

  .hero-media-wrap {
    width: min(100%, 760px);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .metric:nth-child(3) {
    padding-left: 0;
  }

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

  .principle-card-dark {
    grid-column: 1 / -1;
  }

  .principle-card-dark {
    min-height: 250px;
  }

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

  .method-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .method-step {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .method-step h3 {
    margin-top: 18px;
  }

  .structure-row {
    grid-column: 1 / -1;
  }

  .result-card {
    min-height: 325px;
    padding: 24px;
  }

  .hardware-callout {
    grid-template-columns: auto 1fr;
  }

  .hardware-callout > p {
    grid-column: 2;
  }

  .rollout-viewer {
    gap: 36px;
  }

  .rollout-copy {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .nav-inner {
    width: min(100% - 32px, 1180px);
  }

  .project-nav {
    background: rgba(23, 21, 34, 0.94);
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    right: -16px;
    left: -16px;
    display: none;
    padding: 16px 16px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(23, 21, 34, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  }

  .nav-menu.is-active {
    display: flex;
  }

  .nav-menu a {
    padding: 11px 12px;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-paper {
    margin-top: 8px;
    text-align: center;
  }

  .project-hero {
    padding-top: 118px;
  }

  .signal-word {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  .hero-metrics {
    margin-top: 58px;
  }

  .metric {
    padding: 18px 14px;
  }

  .metric:first-child,
  .metric:nth-child(3) {
    padding-left: 0;
  }

  .section-block {
    padding: 82px 0;
  }

  .section-heading-row,
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-heading-row {
    margin-bottom: 42px;
  }

  .overview-copy {
    padding-top: 0;
  }

  .principle-grid {
    margin-top: 52px;
    grid-template-columns: 1fr;
  }

  .principle-card-dark {
    grid-column: auto;
  }

  .principle-card {
    min-height: 245px;
  }

  .method-steps {
    display: flex;
  }

  .method-step {
    display: grid;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }

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

  .result-card {
    min-height: 300px;
  }

  .hardware-callout {
    padding: 26px;
    grid-template-columns: auto 1fr;
  }

  .rollout-viewer {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .comparison-video-frame {
    width: min(100%, 380px);
    aspect-ratio: 16 / 27;
    justify-self: center;
  }

  .rollout-copy {
    max-width: none;
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .paper-cta .button-primary {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 460px) {
  .project-hero {
    padding-top: 105px;
  }

  .paper-title {
    font-size: 1.42rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .metric-value {
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.68rem;
  }

  .section-title {
    font-size: 2.35rem;
  }

  .signal-flow {
    gap: 7px;
    font-size: 0.65rem;
  }

  .method-step {
    grid-template-columns: 38px 1fr;
    gap: 13px;
  }

  .hardware-callout {
    grid-template-columns: 1fr;
  }

  .hardware-callout > p {
    grid-column: auto;
  }

  .comparison-guide article div {
    display: block;
  }

  .comparison-guide span {
    display: block;
    margin-top: 2px;
    text-align: left;
  }
}

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

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