:root {
  --bg: #050606;
  --bg-soft: #0a0b0c;
  --panel: rgba(18, 20, 21, 0.78);
  --panel-solid: #111314;
  --panel-strong: #17191a;
  --line: rgba(218, 226, 220, 0.22);
  --line-strong: rgba(229, 238, 230, 0.46);
  --text: #f1f3ee;
  --muted: #a3a9a5;
  --faint: #626864;
  --accent: #d6f23a;
  --accent-dim: rgba(214, 242, 58, 0.4);
  --amber: #c5a842;
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", "Menlo", monospace;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --condensed: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 4.25rem;
  --view-section: calc(100vh - var(--nav-h));
  --section-pad: 4.8rem;
  --hair: 1px solid var(--line);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 52% 0%, rgba(214, 242, 58, 0.05), transparent 26rem),
    linear-gradient(180deg, #020303, #080909 46%, #030404);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, #fff 0.65px, transparent 0.7px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background: #050606;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  border-bottom: var(--hair);
  background: linear-gradient(180deg, rgba(4, 5, 5, 0.82), rgba(4, 5, 5, 0.38));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  font-family: var(--condensed);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-slash {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 3.25rem;
  color: #d4d8d3;
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.section {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  padding: var(--section-pad);
}

.section h1,
.section h2,
.section h3,
.section p {
  margin: 0;
}

.section h2 {
  font-weight: 300;
  color: var(--text);
}

.section-code {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.75rem;
}

.section-code span {
  display: inline-block;
  width: 2rem;
  height: 2px;
  margin-right: 0.8rem;
  vertical-align: middle;
  background: var(--accent);
}

.btn,
.section-link,
.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
  color: var(--accent);
}

.btn {
  min-height: 4rem;
  padding: 0 3rem;
  border: 1px solid var(--accent-dim);
  background: rgba(5, 6, 6, 0.2);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.btn:hover,
.scene-card:hover {
  transform: translateY(-2px);
}

.btn-primary {
  box-shadow: inset 0 0 0 1px rgba(214, 242, 58, 0.12), 0 0 30px rgba(214, 242, 58, 0.06);
}

.btn-ghost {
  color: #f4f6f0;
  border-color: var(--line-strong);
}

.btn.wide {
  width: 100%;
  justify-content: space-between;
}

.section-link,
.link-arrow {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
}

.metal-card,
.deck-card,
.system-stack article,
.case-dossier,
.control-panel,
.scene-dock {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(25, 27, 28, 0.92), rgba(12, 13, 14, 0.86));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
}

.hero-section {
  min-height: 100vh;
  display: grid;
  place-items: end center;
  padding: 5rem 4rem 3.4rem;
}

.hero-bg,
.case-bg,
.relation-bg,
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
}

.hero-bg {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62) 74%, rgba(0, 0, 0, 0.88)),
    url("./assets/generated/dynamics-lab/hero-lab-chassis-bg.png");
}

.hero-section::before,
.motion-section::before,
.identity-section::before,
.evidence-section::before,
.content-section::before,
.final-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 52% 54%, rgba(214, 242, 58, 0.08), transparent 28rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 30%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(94rem, 100%);
  text-align: center;
  margin-bottom: 0.5rem;
}

.hero-content h1 {
  font-family: var(--condensed);
  font-size: clamp(4.8rem, 5.35vw, 6.45rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  margin-top: 1rem;
  color: #d0d5d0;
  font-family: var(--mono);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  margin-top: 1.4rem;
}

.hero-metrics {
  position: absolute;
  top: 20%;
  right: 4.6rem;
  z-index: 4;
  width: 18rem;
  border-left: 1px solid var(--accent-dim);
  border-right: 1px solid rgba(214, 242, 58, 0.18);
  background: linear-gradient(90deg, rgba(9, 12, 12, 0.26), rgba(9, 12, 12, 0.06));
}

.hero-metrics div {
  min-height: 6rem;
  padding: 1.3rem 1.7rem;
  border-bottom: var(--hair);
  position: relative;
}

.hero-metrics div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.2rem;
  width: 5rem;
  height: 2.1rem;
  transform: translateY(-50%);
  background-image: radial-gradient(circle, var(--accent) 1.2px, transparent 1.4px);
  background-size: 8px 8px;
  opacity: 0.8;
}

.hero-metrics strong {
  display: block;
  font-weight: 300;
  font-size: 2rem;
}

.hero-metrics span,
.signal-label span,
.signal-label strong {
  display: block;
  font-family: var(--mono);
  color: #cbd0cb;
}

.hero-metrics span {
  margin-top: 0.25rem;
}

.signal-label {
  position: absolute;
  z-index: 4;
  padding: 0.7rem;
  min-width: 7.6rem;
  border-left: 1px solid var(--accent-dim);
  border-top: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
}

.signal-label strong {
  color: var(--accent);
  margin-top: 0.2rem;
}

.signal-roll {
  left: 19%;
  top: 39%;
}

.signal-pitch {
  left: 49%;
  top: 16%;
}

.arc-line {
  position: absolute;
  z-index: 3;
  height: 12rem;
  border-top: 2px dotted rgba(214, 242, 58, 0.55);
  border-radius: 50%;
  opacity: 0.85;
}

.arc-a {
  top: 22%;
  left: 22%;
  width: 45%;
  transform: rotate(-6deg);
}

.arc-b {
  top: 27%;
  left: 36%;
  width: 48%;
  border-color: rgba(255, 255, 255, 0.36);
  transform: rotate(5deg);
}

.hud-cross {
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
}

.hud-cross::before,
.hud-cross::after {
  content: "";
  position: absolute;
  background: rgba(220, 226, 220, 0.35);
}

.hud-cross::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.hud-cross::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.top-left {
  top: 1.8rem;
  left: 1.4rem;
}

.top-right {
  top: 2.1rem;
  right: 2.4rem;
}

.identity-section {
  min-height: max(var(--view-section), 64rem);
  padding-left: 9.2rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 60% 38%, rgba(214, 242, 58, 0.03), transparent 28rem),
    #0b0c0c;
  background-size: 12rem 100%, auto, auto;
}

.side-rail {
  position: absolute;
  inset: 0 auto 0 2rem;
  width: 4rem;
  border-left: var(--hair);
  border-right: var(--hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8.5rem 0 4rem;
  color: #9ba09c;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.6em;
  writing-mode: vertical-rl;
}

.side-rail small {
  color: var(--accent);
  letter-spacing: 0.16em;
}

.identity-section h2 {
  margin-top: 1rem;
  width: min(46rem, 100%);
  font-size: 4.9rem;
  line-height: 1.02;
}

.identity-copy {
  width: 19rem;
  margin-top: 2.2rem;
  color: #c0c5c0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.mode-stack {
  position: absolute;
  inset: 13.5rem 4.5rem auto auto;
  width: min(66rem, 68%);
  height: 34rem;
}

.mode-card {
  position: absolute;
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1rem;
  min-height: 13.5rem;
  padding: 1.7rem;
}

.mode-card h3 {
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 400;
}

.mode-card p {
  margin-top: 1.2rem;
  color: #c1c6c1;
  line-height: 1.5;
  font-size: 0.86rem;
}

.mode-card small,
.card-num {
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mode-one {
  top: 0;
  left: 0;
  width: 41rem;
}

.mode-two {
  top: 13rem;
  left: 16rem;
  width: 43rem;
}

.mode-three {
  top: 26rem;
  left: 24rem;
  width: 40rem;
  min-height: 13rem;
}

.mini-blueprint {
  min-height: 10rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    url("./assets/generated/dynamics-lab/technical-blueprint-bg.png");
  background-size: 2rem 2rem, 2rem 2rem, cover;
  background-position: center;
  opacity: 0.78;
}

.pipeline-icons {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  align-self: center;
  justify-self: end;
}

.pipeline-icons span {
  width: 3.3rem;
  height: 3.3rem;
  border: var(--hair);
  border-radius: 0.65rem;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1.5px) center / 10px 10px,
    rgba(255, 255, 255, 0.03);
}

.pipeline-icons i {
  width: 2rem;
  height: 1px;
  background: var(--line-strong);
}

.mode-three img {
  width: 100%;
  align-self: center;
  filter: saturate(0.85) contrast(1.08);
}

.identity-link {
  position: absolute;
  right: 5rem;
  bottom: 5.2rem;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0.34em;
}

.motion-section {
  min-height: max(var(--view-section), 60rem);
  padding: 2.6rem 2.6rem 4rem;
  background:
    radial-gradient(circle at 56% 42%, rgba(214, 242, 58, 0.08), transparent 24rem),
    linear-gradient(180deg, #050606, #090a0b);
}

.motion-topline {
  display: flex;
  gap: 1.7rem;
  align-items: center;
  font-family: var(--sans);
  text-transform: uppercase;
  color: #c9cec9;
  height: 2rem;
}

.motion-topline span {
  color: #c3c8c3;
}

.motion-topline b,
.motion-topline span:last-child {
  color: var(--accent);
}

.motion-copy {
  position: relative;
  z-index: 5;
  width: 31rem;
  margin-top: 3rem;
}

.motion-copy h2 {
  font-size: 4rem;
  line-height: 1.05;
}

.motion-copy h2::after {
  content: ".";
  color: var(--accent);
}

.motion-copy p {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.warning-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.65rem 1rem;
  border: var(--hair);
  border-radius: 2rem;
  color: #b7beb8;
  background: rgba(255, 255, 255, 0.03);
}

.warning-chip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
}

.vehicle-stage {
  position: absolute;
  left: 22%;
  top: 8.2rem;
  width: 67%;
  height: 35rem;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(214, 242, 58, 0.11), transparent 39%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
  border-radius: 2rem;
  opacity: 0.94;
}

.vehicle-cutout {
  position: absolute;
  left: -4%;
  top: 7%;
  width: 95%;
  max-width: none;
  filter: drop-shadow(0 48px 40px rgba(0, 0, 0, 0.65));
}

.travel-tag {
  position: absolute;
  z-index: 6;
  font-family: var(--mono);
  color: #e7ece6;
}

.travel-tag small,
.travel-tag strong {
  display: block;
}

.travel-tag small {
  color: #c8cec8;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.travel-tag strong {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #fff;
}

.tag-a { left: -2%; top: 46%; }
.tag-b { left: 44%; top: 0; }
.tag-c { right: 5%; top: 24%; }
.tag-d { left: 30%; bottom: 5%; }

.motion-curve {
  position: absolute;
  z-index: 5;
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.8;
}

.curve-one {
  width: 48%;
  height: 10rem;
  left: 20%;
  top: 15%;
}

.curve-two {
  width: 34%;
  height: 7rem;
  left: 45%;
  top: 35%;
  border-style: dashed;
}

.scene-dock {
  position: absolute;
  left: 1.6rem;
  right: 24rem;
  bottom: 4.8rem;
  z-index: 8;
  min-height: 9rem;
  display: grid;
  grid-template-columns: 5rem repeat(8, minmax(6rem, 1fr));
  gap: 0.9rem;
  padding: 1rem;
  clip-path: none;
  border-radius: 0.8rem;
}

.dock-label {
  align-self: center;
  color: #b8bdb7;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  line-height: 1.5;
}

.scene-card {
  border: var(--hair);
  color: #dfe4df;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0.45rem;
  padding: 0.45rem;
  min-width: 0;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.scene-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: var(--hair);
  opacity: 0.72;
}

.scene-card span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
}

.scene-card.is-active {
  border-color: var(--accent);
  background: rgba(214, 242, 58, 0.06);
}

.scene-card.is-active img {
  opacity: 1;
}

.control-panel {
  position: absolute;
  right: 2.6rem;
  bottom: 5rem;
  z-index: 8;
  width: 20rem;
  padding: 1.2rem;
  clip-path: none;
  border-radius: 0.8rem;
}

.view-icons {
  display: flex;
  gap: 0.6rem;
}

.view-icons span {
  width: 2.8rem;
  height: 2rem;
  border: var(--hair);
  border-radius: 0.25rem;
  background: linear-gradient(135deg, transparent 45%, rgba(214, 242, 58, 0.25));
}

.control-panel label,
.range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.1rem;
  color: #d8ddd8;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.control-panel input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 0.8rem;
}

.trace-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
  border: var(--hair);
}

.trace-tabs button {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: var(--hair);
  min-height: 2.1rem;
}

.trace-tabs button:last-child {
  border-right: 0;
}

.trace-tabs .is-active {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-dim);
}

.motion-link {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
}

.evidence-section {
  display: grid;
  grid-template-columns: minmax(30rem, 1fr) minmax(24rem, 32rem);
  gap: 5rem;
  align-items: center;
  min-height: max(var(--view-section), 58rem);
  background: #060707;
}

.system-stack {
  position: relative;
  padding: 0.9rem;
  border: var(--hair);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}

.system-stack::before {
  content: "";
  position: absolute;
  left: 3.2rem;
  top: 4rem;
  bottom: 5.5rem;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-dim);
}

.system-stack article {
  min-height: 6.9rem;
  display: grid;
  grid-template-columns: 4rem 4.5rem minmax(18rem, 1fr) 12rem;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.45rem;
  padding: 1rem 1.3rem;
  position: relative;
}

.system-stack article::after {
  content: "";
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: stretch;
  height: 3.7rem;
  margin-left: 13rem;
  opacity: 0.34;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0 7px, transparent 7px 13px) left top / 74% 13px repeat-y,
    linear-gradient(180deg, rgba(214,242,58,.65) 0 5px, transparent 5px 12px) right top / 3.2rem 12px repeat-y;
}

.system-stack article span {
  grid-column: 1;
  grid-row: 1 / 3;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
  justify-self: center;
}

.system-stack article i {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 3rem;
  height: 3rem;
  border: var(--hair);
  border-radius: 0.5rem;
}

.system-stack h3 {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  font-size: 1.55rem;
  font-weight: 500;
  z-index: 1;
}

.system-stack p {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  margin-top: 0.3rem;
  color: var(--muted);
  z-index: 1;
}

.system-stack b {
  grid-column: 4;
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #dfe3dd;
  justify-self: end;
  align-self: center;
  text-align: right;
}

.system-stack footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.4rem 1rem 0.7rem;
  color: #d8ddd8;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.system-stack footer b {
  color: var(--accent);
}

.icon-doc { background: linear-gradient(90deg, rgba(255,255,255,.2), transparent); }
.icon-structure { background: radial-gradient(circle, var(--line-strong) 2px, transparent 3px) center / 13px 13px; }
.icon-index { background: radial-gradient(circle, var(--accent) 2px, transparent 3px) center / 12px 12px; }
.icon-search { background: radial-gradient(circle at 45% 45%, transparent 0 28%, var(--line-strong) 29% 35%, transparent 36%), linear-gradient(45deg, transparent 58%, var(--line-strong) 59% 62%, transparent 63%); }
.icon-stack { background: repeating-linear-gradient(180deg, transparent, transparent 8px, var(--line-strong) 9px, transparent 18px); }
.icon-shield { background: radial-gradient(circle at 50% 45%, rgba(214,242,58,.18), transparent 35%); }

.evidence-copy h2 {
  margin-top: 5rem;
  font-size: 4.5rem;
  line-height: 1.12;
}

.evidence-copy em {
  color: var(--accent);
  font-style: normal;
}

.evidence-copy p:not(.section-code) {
  margin-top: 2.4rem;
  max-width: 25rem;
  color: #c5cbc6;
  line-height: 1.8;
  font-family: var(--mono);
}

.evidence-copy .section-link {
  margin-top: 2.3rem;
}

.relation-section {
  display: grid;
  grid-template-columns: 31rem 1fr;
  align-items: center;
  min-height: max(var(--view-section), 58rem);
  background: #070808;
}

.relation-bg {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.44)),
    url("./assets/generated/dynamics-lab/technical-blueprint-bg.png");
  opacity: 0.42;
}

.relation-copy {
  z-index: 3;
}

.relation-copy h2 {
  margin-top: 2rem;
  font-size: 4.5rem;
  line-height: 1.1;
}

.relation-copy p:not(.section-code) {
  margin-top: 1.6rem;
  color: #c9cec9;
  line-height: 1.65;
  font-family: var(--mono);
}

.relation-copy .btn {
  margin-top: 2rem;
}

.relation-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4.5rem;
  border-top: var(--hair);
}

.relation-stats span {
  min-height: 7rem;
  padding-top: 1rem;
  border-right: var(--hair);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.relation-stats span:last-child {
  border-right: 0;
}

.relation-stats strong {
  display: block;
  color: var(--text);
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.relation-map {
  position: relative;
  z-index: 2;
  height: 34rem;
}

.relation-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-lines path {
  fill: none;
  stroke-width: 2;
}

.network-lines .a {
  stroke: var(--accent);
}

.network-lines .b {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-dasharray: 8 8;
}

.network-lines .c {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-dasharray: 2 10;
}

.network-dots circle {
  fill: var(--accent);
  filter: url("#nodeGlow");
}

.relation-node {
  position: absolute;
  min-width: 12rem;
  padding: 1rem 1.25rem;
  border: var(--hair);
  background: rgba(18, 19, 20, 0.85);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.relation-node small {
  display: block;
  margin-top: 0.4rem;
  color: var(--accent);
}

.n1 { left: 20%; top: 3%; }
.n2 { right: 13%; top: 16%; }
.n3 { left: 6%; top: 35%; }
.n4 { left: 19%; bottom: 16%; }
.n5 { right: 28%; bottom: 12%; }
.n6 { right: 4%; top: 46%; }

.legend {
  position: absolute;
  right: 3rem;
  bottom: 1rem;
  width: 21rem;
  padding: 1.2rem;
  border: var(--hair);
  background: rgba(9, 10, 11, 0.78);
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.legend strong,
.legend span {
  display: block;
}

.legend strong {
  margin-bottom: 0.8rem;
  color: #e8ece7;
}

.legend span {
  margin-top: 0.7rem;
}

.legend i {
  display: inline-block;
  width: 4rem;
  margin-right: 1rem;
  vertical-align: middle;
  border-top: 2px solid var(--accent);
}

.legend .line-b {
  border-color: rgba(255, 255, 255, 0.8);
  border-top-style: dashed;
}

.legend .line-c {
  border-color: rgba(255, 255, 255, 0.4);
  border-top-style: dotted;
}

.caution {
  position: absolute;
  top: 5rem;
  right: 3rem;
  z-index: 4;
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(197, 168, 66, 0.7);
  color: var(--amber);
  font-family: var(--mono);
  text-transform: uppercase;
}

.case-section {
  min-height: max(var(--view-section), 58rem);
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: end;
  gap: 2rem;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.case-bg {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.5)),
    url("./assets/generated/dynamics-lab/suspension-macro-bg.png");
  background-position: center;
}

.case-copy {
  z-index: 3;
  padding-bottom: 2rem;
}

.case-copy h2 {
  margin-top: 21rem;
  font-size: 4.1rem;
  line-height: 1.15;
}

.case-copy h2::after {
  content: ".";
  color: var(--accent);
}

.case-copy p:not(.section-code) {
  margin-top: 1.3rem;
  color: #c2c9c3;
  font-size: 1.06rem;
}

.boundary-row {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  color: #e7ece6;
}

.boundary-row span {
  padding-right: 1.5rem;
  border-right: var(--hair);
}

.boundary-row span::before {
  content: "⊘";
  margin-right: 0.65rem;
  color: var(--accent);
}

.case-dossier {
  position: relative;
  z-index: 3;
  align-self: center;
  min-height: 42rem;
  padding: 1.4rem 1.7rem;
}

.case-dossier::before {
  content: "";
  position: absolute;
  inset: 4.9rem 1.7rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 242, 58, 0.24), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.case-dossier header {
  display: grid;
  grid-template-columns: 8rem 1fr 1fr 7rem;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: var(--hair);
}

.case-dossier small,
.case-dossier span,
.case-dossier strong,
.case-dossier p,
.case-dossier b {
  font-family: var(--mono);
  text-transform: uppercase;
}

.case-dossier small {
  color: var(--muted);
  font-size: 0.68rem;
}

.case-dossier header strong {
  display: block;
  margin: 0.4rem 0;
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text);
}

.case-dossier header span,
.case-dossier b {
  color: var(--accent);
}

.case-dossier header i,
.snapshot-grid i,
.evidence-plate i {
  display: block;
  height: 0.75rem;
  margin: 0.5rem 0 0.9rem;
  background: #020303;
}

.confidence {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 0.55rem solid rgba(214, 242, 58, 0.24);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.confidence span {
  font-size: 1.45rem;
}

.dimension-tags {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.6rem;
  margin: 1.3rem 0 1.8rem;
}

.dimension-tags span {
  min-height: 2.8rem;
  display: grid;
  place-items: center;
  border: var(--hair);
  border-radius: 0.25rem;
  font-size: 0.68rem;
  color: #dce0dc;
}

.dimension-tags span::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: var(--accent);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.snapshot-grid section {
  border: var(--hair);
  padding: 1rem;
}

.snapshot-grid small {
  display: flex;
  justify-content: space-between;
}

.method-chain {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr;
  gap: 0.8rem;
  margin-top: 1.7rem;
  align-items: center;
}

.method-chain span {
  min-height: 4.5rem;
  display: grid;
  place-items: center;
  border: var(--hair);
  color: #cfd4cf;
}

.method-chain b {
  text-align: center;
}

.evidence-plate {
  position: relative;
  display: grid;
  grid-template-columns: 12rem 1fr 11rem;
  gap: 1.2rem;
  margin-top: 1.7rem;
  padding: 1.2rem;
  border: 1px solid var(--accent-dim);
  background:
    radial-gradient(circle at 6% 14%, rgba(0, 0, 0, 0.55) 0 0.32rem, transparent 0.36rem),
    radial-gradient(circle at 96% 12%, rgba(0, 0, 0, 0.55) 0 0.32rem, transparent 0.36rem),
    radial-gradient(circle at 5% 88%, rgba(0, 0, 0, 0.48) 0 0.28rem, transparent 0.32rem),
    radial-gradient(circle at 97% 88%, rgba(0, 0, 0, 0.48) 0 0.28rem, transparent 0.32rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    #50504c;
  color: #111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);
}

.plate-chart {
  position: relative;
  min-height: 9rem;
  border-left: 1px solid rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  background:
    linear-gradient(135deg, transparent 35%, var(--accent) 36% 38%, transparent 39%),
    linear-gradient(155deg, transparent 50%, rgba(214, 242, 58, 0.45) 51% 52%, transparent 53%),
    linear-gradient(rgba(0, 0, 0, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14) 1px, transparent 1px);
  background-size: auto, auto, 2rem 2rem, 2rem 2rem;
}

.plate-chart::before,
.plate-chart::after {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.52rem;
  color: rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
}

.plate-chart::before {
  content: "metric (anon.)";
  top: 0.35rem;
  left: 0.65rem;
}

.plate-chart::after {
  content: "norm. travel";
  right: 0.55rem;
  bottom: 0.35rem;
}

.evidence-plate strong {
  display: block;
  margin: 0 0 0.5rem;
  color: #151716;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.evidence-plate small {
  display: block;
  color: rgba(15, 16, 15, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.evidence-plate b {
  display: block;
  margin: 0.25rem 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.25;
}

.content-section {
  min-height: max(var(--view-section), 58rem);
  display: grid;
  grid-template-columns: 31rem 1fr;
  gap: 4rem;
  align-items: center;
  background:
    radial-gradient(circle at 72% 26%, rgba(214, 242, 58, 0.05), transparent 26rem),
    #080909;
}

.content-section::after {
  content: "";
  position: absolute;
  top: 6rem;
  right: 5rem;
  width: 36rem;
  height: 11rem;
  z-index: 0;
  opacity: 0.18;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.7) 10px 11px, transparent 12px 18px);
  background-size: 4rem 4rem, 4rem 4rem, auto;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}

.content-copy,
.media-deck {
  position: relative;
  z-index: 2;
}

.content-copy h2 {
  margin-top: 2.2rem;
  font-size: 4.5rem;
  line-height: 1.08;
}

.content-copy h2::after {
  content: ".";
  color: var(--accent);
}

.content-copy p:not(.section-code) {
  margin-top: 1.5rem;
  color: #c4cac5;
  font-family: var(--mono);
  line-height: 1.7;
}

.content-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 4rem 0 2.5rem;
  border-top: var(--hair);
  border-left: var(--hair);
}

.content-stats span {
  min-height: 6.5rem;
  padding: 1.2rem;
  border-right: var(--hair);
  border-bottom: var(--hair);
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
}

.content-stats strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  color: var(--text);
  font-size: 2rem;
  font-weight: 300;
}

.media-deck {
  position: relative;
  min-height: 43rem;
}

.media-deck::after {
  content: "";
  position: absolute;
  left: 6rem;
  bottom: 1.5rem;
  width: 35rem;
  height: 7.5rem;
  z-index: 0;
  opacity: 0.22;
  background:
    linear-gradient(170deg, transparent 38%, rgba(214, 242, 58, 0.72) 39% 40%, transparent 41%),
    linear-gradient(155deg, transparent 55%, rgba(214, 242, 58, 0.42) 56% 57%, transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 2.4rem 2rem, 2.4rem 2rem;
}

.deck-card {
  position: absolute;
  width: 31rem;
  min-height: 12rem;
  padding: 1.2rem;
  color: #dce1db;
}

.deck-card::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: calc(100% + 28rem) 0 0 rgba(255, 255, 255, 0.16);
}

.deck-card span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1rem;
  margin-right: 0.7rem;
}

.deck-card strong {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.deck-card p,
.deck-card pre {
  color: #b9c0ba;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
}

.card-tts {
  left: 2rem;
  top: 0;
}

.card-lesson {
  left: 16rem;
  top: 9rem;
  z-index: 2;
}

.card-json {
  right: 8rem;
  top: 16rem;
  z-index: 3;
}

.card-draft {
  right: 1rem;
  top: 25rem;
  width: 19rem;
  z-index: 4;
}

.card-archive {
  right: 0;
  bottom: 0;
  width: 16rem;
  min-height: 10rem;
  z-index: 5;
}

.card-archive p {
  position: relative;
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.card-archive p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(214, 242, 58, 0.45);
}

.card-lesson img {
  display: block;
  width: 100%;
  margin-top: 1rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: var(--hair);
}

.waveform {
  height: 3rem;
  margin: 1rem 0;
  background:
    linear-gradient(90deg, transparent, rgba(214, 242, 58, 0.2), transparent),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.5) 9px 10px, transparent 11px 15px);
  mask-image: linear-gradient(180deg, transparent 10%, #000 40%, #000 60%, transparent 90%);
}

.timeline {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}

.timeline i {
  flex: 1;
  height: 2rem;
  border: var(--hair);
}

.final-section {
  min-height: var(--view-section);
  display: grid;
  place-items: center;
  padding-top: 5rem;
  padding-bottom: 7rem;
  background: #060707;
}

.final-bg {
  background-image:
    linear-gradient(180deg, rgba(3,4,4,0.48), rgba(3,4,4,0.84)),
    url("./assets/generated/dynamics-lab/final-chassis-wireframe-bg.png");
}

.ghost-slash {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--condensed);
  font-size: 26rem;
  line-height: 1;
}

.final-content {
  position: relative;
  z-index: 4;
  text-align: center;
}

.final-content h2 {
  font-family: var(--condensed);
  font-size: 5.3rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.final-content h2::after {
  content: ".";
  color: var(--accent);
}

.final-content p {
  max-width: 46rem;
  margin: 1.5rem auto 2.4rem;
  color: #c9cfc9;
  font-family: var(--mono);
  line-height: 1.8;
}

.final-content .section-link {
  display: flex;
  width: max-content;
  margin: 1.4rem auto 0;
}

.final-content .btn {
  border-radius: 4rem;
}

.footer {
  position: absolute;
  inset: auto 0 0;
  min-height: 6.25rem;
  display: grid;
  grid-template-columns: 21rem 1fr minmax(30rem, 45rem);
  gap: 2rem;
  align-items: center;
  padding: 0 4rem;
  border-top: var(--hair);
  background: rgba(0, 0, 0, 0.24);
}

.footer nav,
.footer-tags {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  color: #b8beb8;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.footer nav span {
  color: var(--accent);
}

.footer-tags {
  justify-content: flex-end;
  gap: 1.4rem;
}

.footer-tags span::before {
  content: "⊘";
  margin-right: 0.55rem;
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scene-dock.reveal,
.scene-dock.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.scene-dock.reveal .dock-label,
.scene-dock.reveal .scene-card {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 160ms ease,
    background 160ms ease;
}

.scene-dock.is-visible .dock-label,
.scene-dock.is-visible .scene-card {
  opacity: 1;
  transform: translateX(0);
}

.scene-dock.is-visible .scene-card:hover {
  transform: translateY(-2px);
  transition-delay: 0ms;
}

.scene-dock.reveal .scene-card:nth-child(2) { transition-delay: 0ms; }
.scene-dock.reveal .scene-card:nth-child(3) { transition-delay: 70ms; }
.scene-dock.reveal .scene-card:nth-child(4) { transition-delay: 140ms; }
.scene-dock.reveal .scene-card:nth-child(5) { transition-delay: 210ms; }
.scene-dock.reveal .scene-card:nth-child(6) { transition-delay: 280ms; }
.scene-dock.reveal .scene-card:nth-child(7) { transition-delay: 350ms; }
.scene-dock.reveal .scene-card:nth-child(8) { transition-delay: 420ms; }
.scene-dock.reveal .scene-card:nth-child(9) { transition-delay: 490ms; }

.scene-dock.reveal.is-visible .scene-card:hover {
  transform: translateY(-2px);
  transition-delay: 0ms;
}

@media (max-width: 1180px) {
  :root {
    --section-pad: 3.2rem;
  }

  .topbar {
    padding: 0 2rem;
  }

  .hero-metrics {
    display: none;
  }

  .hero-content h1,
  .final-content h2 {
    font-size: 4.2rem;
  }

  .mode-stack {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-top: 3rem;
  }

  .mode-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-bottom: 1rem;
  }

  .identity-link {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
  }

  .scene-dock {
    right: 2rem;
    grid-template-columns: repeat(4, 1fr);
  }

  .dock-label,
  .control-panel {
    display: none;
  }

  .evidence-section,
  .relation-section,
  .case-section,
  .content-section {
    grid-template-columns: 1fr;
  }

  .relation-map {
    min-height: 38rem;
  }

  .case-copy h2 {
    margin-top: 4rem;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 4rem;
    --section-pad: 1.5rem;
  }

  .section {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .topbar {
    height: 4rem;
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: 44rem;
    padding: 5rem 1rem 2rem;
  }

  .hero-content h1,
  .identity-section h2,
  .motion-copy h2,
  .evidence-copy h2,
  .relation-copy h2,
  .case-copy h2,
  .content-copy h2,
  .final-content h2 {
    font-size: clamp(2.35rem, 11vw, 3rem);
    letter-spacing: 0.035em;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(2.85rem, 12vw, 3.45rem);
    line-height: 1.02;
    letter-spacing: 0.04em;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1.2rem;
  }

  .signal-label,
  .arc-line,
  .side-rail {
    display: none;
  }

  .identity-section {
    padding-left: 1.5rem;
  }

  .mode-card {
    display: block;
  }

  .mini-blueprint,
  .pipeline-icons,
  .mode-three img {
    margin-top: 1.2rem;
  }

  .vehicle-stage {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 18rem;
    margin-top: 2rem;
  }

  .vehicle-cutout {
    left: -12%;
    top: 18%;
    width: 118%;
  }

  .scene-dock {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .system-stack article,
  .system-stack footer,
  .case-dossier header,
  .dimension-tags,
  .snapshot-grid,
  .method-chain,
  .evidence-plate,
  .content-stats {
    grid-template-columns: 1fr;
  }

  .system-stack article {
    gap: 0.7rem;
  }

  .system-stack::before {
    display: none;
  }

  .relation-map {
    height: 46rem;
  }

  .relation-node,
  .legend {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 0.7rem 0;
  }

  .relation-map svg {
    opacity: 0.35;
  }

  .relation-stats,
  .boundary-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .case-dossier {
    padding: 1rem;
  }

  .media-deck {
    min-height: auto;
  }

  .deck-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin-bottom: 1rem;
  }

  .footer {
    position: relative;
    min-height: auto;
  }

  .footer nav,
  .footer-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
  }
}
