:root {
  --paper: #f4f2ec;
  --paper-bright: #fbfaf6;
  --ink: #111922;
  --ink-soft: #48515b;
  --line: rgba(17, 25, 34, 0.17);
  --line-strong: rgba(17, 25, 34, 0.42);
  --blue: #1756d1;
  --blue-dark: #0d3d9f;
  --blue-pale: #dbe7ff;
  --steel: #7190aa;
  --lime: #b8e451;
  --amber: #f1ab36;
  --red: #d8564f;
  --night: #0b121b;
  --night-2: #111e2a;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --display: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --shell: min(1440px, calc(100vw - 72px));
  --header-h: 74px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(17, 25, 34, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 25, 34, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .14;
  background-image: repeating-linear-gradient(115deg, transparent 0 7px, rgba(17, 25, 34, .025) 7px 8px);
}

a { color: inherit; }

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

img { max-width: 100%; }

code {
  font-family: var(--mono);
  font-size: .85em;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  background: var(--blue);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

.grid-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 36px;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.scrolled {
  background: rgba(244, 242, 236, .96);
  border-color: var(--line);
  box-shadow: 0 8px 32px rgba(17, 25, 34, .05);
}

.story-rail {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: 18px;
  display: grid;
  justify-items: end;
  gap: 5px;
  transform: translateY(-50%);
}

.story-rail-title {
  margin: 0 1px 7px 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.story-rail-title b { color: var(--blue); }

.story-rail a {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 9px;
  min-height: 17px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.story-rail a i {
  width: 15px;
  height: 1px;
  background: var(--line-strong);
  transition: width .2s ease, height .2s ease, background .2s ease;
}

.story-rail a span {
  opacity: 0;
  transform: translateX(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.story-rail:hover a span,
.story-rail a:focus-visible span,
.story-rail a[aria-current="location"] span {
  opacity: 1;
  transform: translateX(0);
}

.story-rail a[aria-current="location"] { color: var(--blue); font-weight: 700; }
.story-rail a[aria-current="location"] i { width: 29px; height: 2px; background: var(--blue); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
}

.brand img { border-radius: 9px; }

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--display);
  letter-spacing: -.04em;
  line-height: 1;
}

.brand-copy strong { font-size: 21px; }
.brand-copy i {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .14em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  position: relative;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--blue);
  transition: right .25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { right: 0; }

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--ink);
  padding: 10px 13px 10px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}

.header-cta:hover,
.header-cta:focus-visible { background: var(--ink); color: white; }

.hero {
  min-height: 100svh;
  padding-top: var(--header-h);
  background:
    radial-gradient(circle at 74% 26%, rgba(23, 86, 209, .13), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.74), transparent 55%);
}

.hero-grid {
  min-height: calc(100svh - var(--header-h) - 55px);
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: 5vw;
  padding-block: 56px 42px;
}

.hero-copy { position: relative; z-index: 2; min-width: 0; }

.eyebrow,
.section-index,
.step-number {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(23, 86, 209, .1);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  50% { box-shadow: 0 0 0 10px rgba(23, 86, 209, 0); }
}

h1, h2, h3, p { text-wrap: balance; }

.hero h1,
.display-copy,
.section-heading h2,
.mobile-copy h2,
.final-content h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .92;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(62px, 6.8vw, 116px);
}

.hero h1 em,
.display-copy em,
.privacy h2 em,
.final-content h2 em {
  color: var(--blue);
  font-style: normal;
  font-weight: 400;
}

.hero-lede {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--blue); border-color: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-dark); }
.button-quiet:hover { border-color: var(--ink); background: rgba(255,255,255,.7); }
.button-light { background: white; border-color: white; color: var(--night); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0;
  margin-top: 54px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-facts span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid var(--line);
}
.hero-facts span:last-child { border: 0; margin: 0; padding: 0; }
.hero-facts b { color: var(--blue); }

.cad-stage {
  position: relative;
  min-height: min(68vh, 720px);
  overflow: hidden;
  background:
    radial-gradient(circle at 56% 45%, rgba(62, 115, 222, .16), transparent 34%),
    linear-gradient(145deg, #172432, #0a1119 68%);
  border: 1px solid rgba(112, 149, 183, .4);
  box-shadow: 0 45px 100px rgba(26, 41, 57, .24), 12px 14px 0 rgba(23, 86, 209, .08);
  cursor: grab;
  isolation: isolate;
}

.cad-stage:active { cursor: grabbing; }

#cad-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity .45s ease;
}

#cad-canvas.is-ready { opacity: 1; }

.stage-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.stage-fallback svg {
  width: 74%;
  fill: none;
  stroke: rgba(92, 147, 240, .55);
  stroke-width: 1;
}

.stage-grid,
.model-window-grid,
.final-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(151, 183, 213, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 183, 213, .11) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.stage-topline {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  color: rgba(218, 230, 241, .76);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.stage-topline span:last-child { color: var(--lime); }

.stage-loader {
  position: absolute;
  z-index: 5;
  top: 39px;
  left: 18px;
  right: 18px;
  height: 2px;
  overflow: hidden;
  background: rgba(218, 230, 241, .13);
  transition: opacity .45s ease .55s;
}

.stage-loader span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  box-shadow: 0 0 12px rgba(184, 228, 81, .4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.cad-stage.model-ready .stage-loader,
.cad-stage.model-static .stage-loader { opacity: 0; }
.cad-stage.model-static { cursor: default; }
.cad-stage.model-static .drag-hint { display: none; }

.stage-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  opacity: .35;
}

.stage-reticle span:first-child,
.stage-reticle span:last-child {
  position: absolute;
  background: white;
}
.stage-reticle span:first-child { top: 20px; left: 0; width: 42px; height: 1px; }
.stage-reticle span:last-child { left: 20px; top: 0; width: 1px; height: 42px; }

.stage-card {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .04em;
}
.stage-card::before { content: ""; width: 24px; height: 2px; margin-bottom: 6px; background: var(--blue); }
.stage-card small { color: rgba(255,255,255,.48); font-size: 8px; text-transform: uppercase; }
.stage-card span { color: rgba(255,255,255,.56); font-size: 8px; }
.stage-card-left { left: 20px; }
.stage-card-right { right: 20px; text-align: right; align-items: flex-end; }
.stage-card-right::before { background: var(--lime); }

.drag-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 19px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.44);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-marquee {
  height: 55px;
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-bright);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 53px;
  white-space: nowrap;
}

.hero-marquee > div { animation: marquee 24s linear infinite; }
.hero-marquee i { padding-inline: 18px; color: var(--blue); font-style: normal; }
@keyframes marquee { to { transform: translateX(-100%); } }

.section-pad { padding: clamp(100px, 12vw, 190px) 0; }

.statement { background: var(--paper-bright); border-bottom: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 36px; }
.display-copy { font-size: clamp(54px, 7vw, 122px); max-width: 1180px; }
.large-copy {
  max-width: 820px;
  margin: 52px 0 0 auto;
  color: var(--ink-soft);
  font-size: clamp(20px, 2vw, 31px);
  line-height: 1.45;
}

.workflow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 48vw) 1fr;
  background: #e9e7e1;
  border-bottom: 1px solid var(--line);
}

.workflow-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: calc(var(--header-h) + 34px) 0 34px 36px;
}

.model-window {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(23, 86, 209, .18), transparent 29%),
    var(--night);
  border: 1px solid rgba(112, 149, 183, .35);
}

.model-window::before,
.model-window::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  background: rgba(219, 231, 255, .16);
}
.model-window::before { width: 74%; height: 1px; transform: translate(-50%, -50%); }
.model-window::after { height: 74%; width: 1px; transform: translate(-50%, -50%); }

.model-window-orbit {
  position: absolute;
  z-index: 2;
  inset: 16% 12%;
  border: 1px solid rgba(112, 149, 183, .24);
  border-radius: 50%;
  transform: rotate(-14deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), border-color .4s;
}
.model-window-orbit::before,
.model-window-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(112, 149, 183, .14);
  border-radius: 50%;
}
.model-window-orbit::before { inset: 18% -8%; transform: rotate(31deg); }
.model-window-orbit::after { inset: -7% 20%; transform: rotate(68deg); }

.workflow[data-active-scene="bom"] .model-window-orbit { transform: rotate(12deg) scale(.9); border-color: rgba(184, 228, 81, .5); }
.workflow[data-active-scene="draft"] .model-window-orbit { transform: rotate(43deg) scale(.72, 1.1); border-color: rgba(23, 86, 209, .7); }
.workflow[data-active-scene="review"] .model-window-orbit { transform: rotate(80deg) scale(1.08); border-color: rgba(241, 171, 54, .65); }

.model-window-label {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  color: white;
  font-family: var(--mono);
}
.model-window-label span { color: var(--steel); font-size: 8px; letter-spacing: .12em; }
.model-window-label b { margin-top: 5px; font-size: 12px; letter-spacing: .04em; }

.workflow-content { padding: 20vh clamp(36px, 5vw, 92px) 20vh clamp(42px, 6vw, 112px); }

.workflow-step {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 650px;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.workflow-step:last-child { border: 0; }
.workflow-step h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(52px, 5vw, 82px);
  line-height: .93;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.workflow-step > p:not(.step-number):not(.caption) {
  max-width: 590px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
}
.caption {
  margin: 18px 0 0;
  color: #5d6670;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}

.validation-card,
.bom-mini,
.draft-plan,
.rule-note {
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  background: rgba(251,250,246,.65);
  box-shadow: 9px 9px 0 rgba(23, 86, 209, .07);
}

.validation-card { padding: 18px; }
.validation-card > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}
.validation-card span { color: #727b84; font-size: 9px; }
.validation-card .match {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  color: #277232;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.validation-card .match i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #dcebd7;
  border-radius: 50%;
  font-style: normal;
}

.bom-mini > div,
.draft-plan > div {
  display: grid;
  align-items: center;
  min-height: 49px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
}
.bom-mini > div { grid-template-columns: 52px 1fr 72px 34px; }
.draft-plan > div { grid-template-columns: 1.3fr 1fr 68px; }
.bom-mini > div:last-child,
.draft-plan > div:last-child { border: 0; }
.bom-mini .bom-head,
.draft-plan .plan-head {
  min-height: 32px;
  background: var(--ink);
  color: white;
  font-size: 8px;
  letter-spacing: .07em;
}
.tag,
.decision {
  width: fit-content;
  padding: 4px 7px;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
}
.tag-mfg,
.decision.go { background: var(--blue-pale); color: var(--blue-dark); }
.tag-std { background: #e2e5e8; color: #48515b; }
.decision.skip { background: #ede2ce; color: #765a23; }

.repair-loop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}
.repair-loop span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
}
.repair-loop i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dce0e4;
  font-style: normal;
}
.repair-loop .active { color: white; background: var(--blue); border-color: var(--blue); }
.repair-loop .active i { color: var(--blue); background: white; }
.repair-loop b { color: var(--steel); }

.rule-note { padding: 18px; }
.rule-note > span { color: #277232; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.rule-note > b { display: block; margin-top: 7px; font-family: var(--mono); font-size: 12px; }
.rule-note > p { margin: 6px 0 0; color: var(--ink-soft); font-family: var(--mono); font-size: 9px; line-height: 1.55; }

.evidence { background: var(--paper-bright); }
.section-heading { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 36px; align-items: end; margin-bottom: 70px; }
.section-heading .section-index { align-self: start; }
.section-heading h2 { font-size: clamp(62px, 7vw, 112px); }
.section-heading > p:last-child {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.report-shell {
  border: 1px solid var(--line-strong);
  background: white;
  box-shadow: 18px 22px 0 rgba(17, 25, 34, .07), 42px 48px 80px rgba(17, 25, 34, .12);
}
.report-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
}
.report-topbar > div { display: flex; align-items: center; gap: 11px; }
.report-topbar span { display: flex; flex-direction: column; }
.report-topbar small { color: var(--ink-soft); font-size: 8px; font-weight: 400; }

.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.report-summary > div {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  padding: 18px;
  border-right: 1px solid var(--line-strong);
  font-family: var(--mono);
}
.report-summary > div:last-child { border: 0; }
.report-summary span { grid-column: 1 / -1; color: var(--ink-soft); font-size: 9px; letter-spacing: .08em; }
.report-summary b { align-self: end; color: var(--blue); font-family: var(--display); font-size: clamp(55px, 7vw, 96px); line-height: .8; letter-spacing: -.07em; }
.report-summary small { align-self: end; color: var(--ink-soft); font-size: 9px; }

.report-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.report-list { border-right: 1px solid var(--line-strong); }
.report-list h3 { margin: 0; padding: 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.report-list > div {
  display: grid;
  grid-template-columns: 88px 1fr 1.4fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
}
.report-list > div:last-child { border: 0; }
.report-list small { color: var(--ink-soft); font-size: 8px; }
.status { width: fit-content; padding: 4px 6px; font-size: 7px; font-weight: 800; letter-spacing: .06em; }
.status.released { color: #22692e; background: #d9ead5; }
.status.blocked { color: #8e2521; background: #f1d5d2; }
.status.skipped { color: #765a23; background: #eee1c8; }

.report-callout { padding: 22px; background: #f2f4f6; }
.report-callout > span { color: var(--red); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.report-callout > strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 29px; letter-spacing: -.04em; text-transform: uppercase; }
.report-callout > p { margin: 10px 0 16px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.sheet-thumb { height: 160px; background: white; border: 1px solid var(--line); }
.sheet-thumb svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.sheet-thumb .warn { stroke: var(--red); }
.report-footer { display: flex; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--ink); color: var(--ink-soft); font-family: var(--mono); font-size: 8px; }

.controls { border-top: 1px solid var(--line); }
.controls-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 8vw, 130px); }
.controls .section-heading { display: block; margin: 0; }
.controls .section-heading h2 { font-size: clamp(56px, 6vw, 96px); }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mode-card {
  position: relative;
  min-height: 510px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(251,250,246,.72);
  box-shadow: 10px 10px 0 rgba(17,25,34,.05);
}
.mode-card.full { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 10px 10px 0 rgba(23,86,209,.18); }
.mode-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 95px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 18px;
}
.mode-card > span { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; opacity: .68; }
.mode-card h3 { margin: 6px 0 18px; font-family: var(--display); font-size: 52px; line-height: 1; letter-spacing: -.055em; text-transform: uppercase; }
.mode-card p { margin: 0; color: inherit; font-size: 14px; line-height: 1.65; opacity: .78; }
.mode-card ul { position: absolute; left: 28px; right: 28px; bottom: 24px; margin: 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.mode-card li { padding: 9px 0; border-bottom: 1px solid currentColor; font-family: var(--mono); font-size: 8px; letter-spacing: .03em; opacity: .72; }

.privacy {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: white;
}
.privacy-backdrop {
  position: absolute;
  bottom: -17vw;
  left: -2vw;
  color: rgba(255,255,255,.025);
  font-family: var(--display);
  font-size: 42vw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.1em;
}
.privacy-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: center; }
.section-heading.invert { display: block; margin: 0; }
.section-heading.invert h2 { font-size: clamp(56px, 6vw, 98px); }
.section-heading.invert h2 em { color: #7ea9ff; }
.section-heading.invert > p:last-child { max-width: 620px; margin-top: 30px; color: #9daab7; }

.privacy-ledger { border: 1px solid rgba(154, 179, 202, .35); background: rgba(18, 32, 46, .8); box-shadow: 20px 25px 0 rgba(23,86,209,.13); }
.privacy-ledger > div { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 18px; align-items: center; min-height: 65px; padding: 12px 16px; border-bottom: 1px solid rgba(154, 179, 202, .18); font-family: var(--mono); font-size: 9px; }
.privacy-ledger > div:last-child { border: 0; }
.privacy-ledger span { color: #8293a3; font-size: 8px; letter-spacing: .08em; }
.privacy-ledger i { color: var(--lime); font-size: 8px; font-style: normal; }
.privacy-ledger .ledger-top { min-height: 42px; grid-template-columns: 1fr auto; color: white; background: var(--blue); }
.privacy-ledger .ledger-top span,
.privacy-ledger .ledger-top i { color: white; }
.privacy-ledger .ledger-export { background: rgba(23,86,209,.09); }
.privacy-ledger .ledger-export i { color: var(--amber); }

.mobile-section { background: var(--paper-bright); }
.mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: center; }
.phone-wrap { position: relative; min-height: 720px; }
.phone {
  position: absolute;
  width: 295px;
  height: 600px;
  padding: 12px;
  border: 2px solid #243442;
  border-radius: 46px;
  background: #0a1017;
  box-shadow: 0 42px 80px rgba(17,25,34,.25), inset 0 0 0 1px rgba(255,255,255,.2);
}
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 74px; height: 18px; transform: translateX(-50%); border-radius: 12px; background: #070b10; }
.phone-front { z-index: 2; top: 0; left: 25%; transform: rotate(-3deg); }
.phone-back { top: 80px; left: 53%; transform: rotate(9deg); opacity: .86; }
.phone-screen { height: 100%; overflow: hidden; padding: 55px 16px 18px; border-radius: 34px; background: linear-gradient(150deg, #172838, #0d1721); color: white; font-family: var(--mono); }
.phone-screen > span { color: #8ba4bb; font-size: 8px; letter-spacing: .08em; }
.phone-model { height: 278px; display: grid; place-items: center; margin: 14px -16px 0; background: linear-gradient(rgba(72,117,160,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(72,117,160,.08) 1px, transparent 1px); background-size: 22px 22px; }
.phone-model svg { width: 92%; fill: rgba(23,86,209,.12); stroke: #74a1fa; stroke-width: 1; }
.phone-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 14px; }
.phone-stats b { display: flex; flex-direction: column; padding: 10px; border: 1px solid rgba(142,172,199,.2); font-size: 19px; }
.phone-stats small { margin-top: 2px; color: #7890a4; font-size: 6px; }
.phone-list { margin-top: 12px; border-top: 1px solid rgba(142,172,199,.2); }
.phone-list span { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid rgba(142,172,199,.2); color: #aab9c6; font-size: 7px; }
.phone-list i { color: var(--lime); font-style: normal; }
.phone-list span:last-child i { color: var(--amber); }
.phone-drawing { background: #f7f6f1; color: var(--ink); }
.phone-drawing > span { color: #5a626a; }
.phone-drawing svg { width: 100%; height: 430px; fill: none; stroke: var(--ink); stroke-width: 1.2; }

.mobile-copy .section-index { margin-bottom: 16px; }
.coming-soon { display: inline-block; margin-bottom: 25px; padding: 6px 8px; background: var(--blue-pale); color: var(--blue-dark); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.mobile-copy h2 { font-size: clamp(64px, 7vw, 112px); }
.mobile-copy > p:not(.section-index) { max-width: 600px; margin: 30px 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.feature-list li { display: flex; gap: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.feature-list span { color: var(--blue); font-family: var(--mono); font-size: 9px; }
.partlens-note { display: flex; gap: 13px; align-items: center; margin-top: 30px; padding: 15px; background: #e9ecf0; }
.partlens-note img { filter: grayscale(1); }
.partlens-note p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.partlens-note a { color: var(--blue); font-weight: 700; }

.system-map { border-top: 1px solid var(--line); }
.system-map .section-heading { grid-template-columns: .7fr 2fr; }
.system-map .section-heading h2 { font-size: clamp(58px, 6vw, 98px); }
.system-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; }
.system-flow > div { min-height: 185px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line-strong); background: rgba(251,250,246,.8); }
.system-flow > div.focus { background: var(--blue); border-color: var(--blue); color: white; }
.system-flow > i { align-self: center; padding: 0 12px; color: var(--blue); font-style: normal; }
.system-flow span { color: var(--blue); font-family: var(--mono); font-size: 9px; }
.system-flow .focus span { color: white; }
.system-flow b { margin-top: auto; font-family: var(--display); font-size: 28px; letter-spacing: -.04em; text-transform: uppercase; }
.system-flow small { margin-top: 5px; color: var(--ink-soft); font-family: var(--mono); font-size: 8px; line-height: 1.5; }
.system-flow .focus small { color: rgba(255,255,255,.7); }

.final-cta {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 78% 44%, rgba(72, 127, 236, .55), transparent 26%),
    var(--blue);
  color: white;
}
.final-grid { opacity: .45; background-size: 46px 46px; transform: perspective(800px) rotateX(55deg) scale(1.5); transform-origin: bottom; }
.final-content { position: relative; z-index: 2; padding-block: 100px; }
.final-content .section-index { color: white; }
.final-content h2 { max-width: 1250px; font-size: clamp(72px, 9vw, 152px); }
.final-content h2 em { color: #bcd1ff; }
.final-content > p:not(.section-index) { max-width: 640px; margin: 34px 0; color: rgba(255,255,255,.76); font-size: 18px; }

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 35px;
  align-items: center;
  min-height: 150px;
  padding: 35px 36px;
  background: var(--night);
  color: white;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 9px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand b { font-family: var(--display); font-size: 18px; }
.footer-brand span,
.site-footer p,
.copyright { color: #7f8d9a; font-family: var(--mono); font-size: 8px; line-height: 1.7; }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #c9d1d8; font-family: var(--mono); font-size: 8px; text-decoration: none; text-transform: uppercase; }
.footer-links a:hover { color: white; }
.copyright { text-align: right; }

.scroll-progress {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(17,25,34,.1);
}
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--lime); }

.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
}
.reveal-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

.noscript-note {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  max-width: 390px;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  background: var(--paper-bright);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
}

@media (min-width: 761px) and (max-height: 760px) {
  .hero-grid { min-height: calc(100svh - var(--header-h) - 45px); padding-block: 26px 24px; gap: 4vw; }
  .hero h1 { font-size: clamp(48px, 5vw, 70px); }
  .eyebrow { margin-bottom: 12px; }
  .hero-lede { margin-top: 12px; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.42; }
  .hero-actions { margin-top: 13px; }
  .button { min-height: 44px; }
  .hero-facts { display: none; }
  .cad-stage { min-height: min(64vh, 540px); }
  .hero-marquee { height: 45px; font-size: 25px; line-height: 43px; }
}

@media (max-width: 1120px) {
  :root { --shell: min(100% - 42px, 1440px); }
  .site-header { padding-inline: 21px; }
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-copy { padding-right: 15vw; }
  .cad-stage { min-height: 620px; }
  .statement-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: minmax(320px, 43vw) 1fr; }
  .workflow-content { padding-inline: 50px; }
  .repair-loop { flex-wrap: wrap; }
  .section-heading { grid-template-columns: .7fr 2fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .controls-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-ledger { max-width: 760px; }
  .phone-front { left: 5%; }
  .phone-back { left: 37%; }
  .mobile-grid { gap: 5vw; }
  .system-flow { grid-template-columns: 1fr 1fr; gap: 14px; }
  .system-flow > i { display: none; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .copyright { text-align: left; }
  .story-rail { display: none; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 28px); --header-h: 64px; }
  .site-header { padding: 0 14px; }
  .brand img { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 18px; }
  .header-cta { padding: 9px 10px; font-size: 8px; gap: 7px; }
  .hero-grid { min-height: auto; padding-block: 48px 26px; }
  .hero-copy { padding-right: 0; }
  .hero h1 { font-size: clamp(48px, 14vw, 70px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { display: none; }
  .cad-stage { min-height: 470px; margin-top: 30px; }
  .stage-card-right { display: none; }
  .drag-hint { display: none; }
  .hero-marquee { height: 48px; font-size: 25px; line-height: 46px; }
  .section-pad { padding-block: 94px; }
  .display-copy { font-size: clamp(48px, 15vw, 72px); }
  .large-copy { margin-top: 35px; font-size: 18px; }
  .workflow { display: block; }
  .workflow-sticky { display: none; }
  .workflow-content { padding: 70px 20px; }
  .workflow-step { min-height: auto; padding: 80px 0; }
  .workflow-step h2 { font-size: clamp(48px, 14vw, 68px); }
  .validation-card > div { grid-template-columns: 1fr; gap: 2px; }
  .draft-plan > div { grid-template-columns: 1fr 75px; padding-block: 10px; }
  .draft-plan > div span { grid-column: 1; grid-row: 2; color: var(--ink-soft); font-size: 8px; }
  .draft-plan > div i { grid-column: 2; grid-row: 1 / span 2; }
  .draft-plan .plan-head span { display: none; }
  .repair-loop b { display: none; }
  .section-heading,
  .system-map .section-heading { display: block; }
  .section-heading h2,
  .system-map .section-heading h2 { font-size: clamp(50px, 15vw, 78px); }
  .section-heading > p:last-child { margin-top: 25px; }
  .report-shell { box-shadow: 8px 10px 0 rgba(17,25,34,.08); }
  .report-topbar { align-items: flex-start; gap: 12px; }
  .report-topbar > strong { max-width: 100px; text-align: right; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .report-summary > div:nth-child(2) { border-right: 0; }
  .report-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
  .report-summary > div { min-height: 115px; }
  .report-summary b { font-size: 58px; }
  .report-body { grid-template-columns: 1fr; }
  .report-list { border: 0; border-bottom: 1px solid var(--ink); }
  .report-list > div { grid-template-columns: 74px 1fr; }
  .report-list small { grid-column: 2; }
  .report-footer { flex-direction: column; gap: 5px; }
  .mode-cards { grid-template-columns: 1fr; }
  .mode-card { min-height: 490px; }
  .privacy-grid { gap: 55px; }
  .privacy-ledger > div { grid-template-columns: 1fr auto; }
  .privacy-ledger b { grid-column: 1; grid-row: 2; }
  .privacy-ledger i { grid-column: 2; grid-row: 1 / span 2; }
  .privacy-ledger .ledger-top { display: flex; justify-content: space-between; }
  .mobile-grid { grid-template-columns: 1fr; }
  .phone-wrap { min-height: 590px; transform: scale(.82); transform-origin: left top; margin-bottom: -100px; }
  .phone-front { left: 0; }
  .phone-back { left: 170px; }
  .mobile-copy h2 { font-size: clamp(57px, 16vw, 85px); }
  .system-flow { grid-template-columns: 1fr; }
  .system-flow > div { min-height: 145px; }
  .final-cta { min-height: 80vh; }
  .final-content h2 { font-size: clamp(60px, 18vw, 90px); }
  .site-footer { grid-template-columns: 1fr; padding-inline: 20px; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .header-cta { min-width: 94px; height: 38px; justify-content: space-between; padding: 0 9px; font-size: 7px; white-space: nowrap; }
  .header-cta span { margin: 0; font-size: 9px; }
  .cad-stage { min-height: 420px; }
  .bom-mini > div { grid-template-columns: 40px 1fr 50px 22px; font-size: 8px; padding-inline: 8px; }
  .repair-loop span { font-size: 7px; padding: 7px; }
  .phone-wrap { transform: scale(.68); margin-bottom: -190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-enabled .reveal { opacity: 1; transform: none; }
}
