:root {
  --paper: #f3f0e8;
  --paper-bright: #faf8f2;
  --paper-deep: #e8e3d8;
  --ink: #151712;
  --ink-soft: #363a32;
  --muted: #6e7269;
  --line: rgba(21, 23, 18, .16);
  --line-strong: rgba(21, 23, 18, .36);
  --acid: #b8ef31;
  --acid-deep: #86b700;
  --cobalt: #1e43a8;
  --mint: #b8d9cb;
  --lilac: #d8d2e8;
  --danger: #d25335;
  --max: 1240px;
  --nav: 70px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 24px); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Inter, Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .32;
  background:
    linear-gradient(rgba(21, 23, 18, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 18, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 78%);
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
code { color: var(--cobalt); }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, .88);
  backdrop-filter: blur(18px) saturate(130%);
}
.navin {
  min-height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  position: relative;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand::after {
  position: absolute;
  right: -12px;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--acid-deep);
}
.brand span { color: var(--acid-deep); }
.navlinks { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.navlinks > a:not(.btn) { position: relative; }
.navlinks > a:not(.btn)::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  content: "";
  background: var(--ink);
  transition: right .3s var(--ease);
}
.navlinks > a:not(.btn):hover::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  padding: 11px 18px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.015em;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:hover {
  border-color: var(--ink);
  background: var(--paper-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(21, 23, 18, .08);
}
.btn.magnetic { transform: translate(var(--mag-x, 0), var(--mag-y, 0)); }
.btn.magnetic:hover { transform: translate(var(--mag-x, 0), calc(var(--mag-y, 0px) - 2px)); }
.btn.primary { border-color: var(--ink); background: var(--ink); color: var(--paper-bright); }
.btn.primary:hover { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.btn b { font-size: 18px; font-weight: 500; transition: transform .25s var(--ease); }
.btn:hover b { transform: translate(3px, -3px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-strong);
  padding: 9px 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(3px, -2px); }
.mobile { display: none; }

.wordmark {
  margin-bottom: clamp(28px, 5vh, 56px);
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 900;
  letter-spacing: -.055em;
}
.wordmark span { color: var(--acid-deep); }
.eyebrow,
.kicker {
  color: var(--ink-soft);
  font: 800 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .145em;
  text-transform: uppercase;
}
.eyebrow::before {
  display: inline-block;
  width: 22px;
  height: 7px;
  margin-right: 9px;
  content: "";
  background: var(--acid);
}
h1, h2, h3 { text-wrap: balance; }
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
h2 {
  max-width: 900px;
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .99;
  letter-spacing: -.052em;
}
h3 { letter-spacing: -.035em; }
.lead { max-width: 720px; color: var(--ink-soft); font-size: clamp(18px, 1.65vw, 22px); line-height: 1.5; }
.sectionlead { max-width: 740px; margin: 0 0 38px; color: var(--muted); font-size: 18px; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.proofline { color: var(--muted); font-size: 12px; letter-spacing: .015em; }

.hero-home {
  min-height: calc(100svh - var(--nav));
  display: grid;
  grid-template-columns: minmax(480px, 46%) minmax(0, 54%);
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
  overflow: hidden;
}
.hero-home__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vh, 82px) clamp(32px, 5vw, 82px) clamp(40px, 6vh, 72px) max(24px, calc((100vw - 1420px) / 2));
}
.hero-home__copy::after {
  position: absolute;
  right: 0;
  bottom: 12%;
  width: 1px;
  height: 76%;
  content: "";
  background: linear-gradient(transparent, var(--line-strong), transparent);
}
.hero-home h1 {
  max-width: 680px;
  margin: 18px 0 22px;
  font-size: clamp(52px, 5.2vw, 82px);
  line-height: .92;
  letter-spacing: -.065em;
}
.hero-home .lead { max-width: 620px; margin: 0; }
.hero-home .proofline { max-width: 560px; margin: 22px 0 0; }

.atelier-visual {
  position: relative;
  min-height: calc(100svh - var(--nav));
  margin: 0;
  overflow: hidden;
  background: #d9d1c3;
  isolation: isolate;
}
.atelier-visual img {
  position: absolute;
  inset: -2%;
  z-index: -2;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(.82) contrast(1.02);
  transition: filter .8s var(--ease);
  animation: atelier-settle 1.25s var(--ease) both;
}
.atelier-three {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity .9s var(--ease);
}
.atelier-visual[data-webgl="ready"] .atelier-three { opacity: .94; }
.atelier-visual[data-webgl="ready"] img { filter: saturate(.66) contrast(1.08) brightness(.91); }
.atelier-visual[data-webgl="ready"] .atelier-visual__grid { opacity: .58; }
.atelier-visual__wash {
  position: absolute;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(54% + var(--mx) * 2%), calc(45% + var(--my) * 2%), rgba(184, 239, 49, .26), transparent 14%),
    radial-gradient(circle at 72% 30%, rgba(45, 83, 175, .22), transparent 19%),
    linear-gradient(110deg, rgba(250, 248, 242, .7) 0, transparent 37%, rgba(216, 210, 232, .17) 76%, transparent);
  mix-blend-mode: soft-light;
  transform: translate(var(--wash-x, 0), var(--wash-y, 0));
  transition: transform .18s linear;
}
.atelier-visual::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(250,248,242,.23), transparent 30%), linear-gradient(0deg, rgba(17,20,15,.18), transparent 34%);
}
.atelier-visual__grid {
  position: absolute;
  inset: 7%;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .58);
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px);
  background-size: 25% 25%;
  transform: translate(var(--grid-x, 0), var(--grid-y, 0));
  transition: transform .18s linear;
  animation: grid-enter 1s .25s var(--ease) both;
}
.atelier-annotation {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #11150f;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translate(var(--shift-x, 0), var(--shift-y, 0));
  transition: transform .18s linear;
  animation: annotation-enter .7s .65s var(--ease) both;
}
.atelier-annotation i { width: 42px; height: 1px; background: currentColor; }
.atelier-annotation i::before { display: block; width: 5px; height: 5px; border-radius: 50%; content: ""; background: var(--acid); transform: translateY(-2px); }
.atelier-annotation--query { top: 18%; left: 10%; --depth: -14px; }
.atelier-annotation--sources { top: 29%; right: 9%; --depth: 10px; }
.atelier-annotation--entity { top: 43%; right: 9%; --depth: 18px; }
.atelier-annotation--proof { right: 16%; bottom: 25%; --depth: 12px; }
.atelier-annotation--shortlist { left: 13%; bottom: 23%; --depth: -10px; }
.atelier-live {
  position: absolute;
  top: 7%;
  right: 7%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(250,248,242,.88);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .55s .35s var(--ease), transform .55s .35s var(--ease);
  text-shadow: 0 1px 10px rgba(0,0,0,.32);
}
.atelier-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(184,239,49,.18); }
.atelier-visual[data-webgl="ready"] .atelier-live { opacity: 1; transform: none; }
.atelier-reading {
  position: absolute;
  left: 7%;
  bottom: 7%;
  z-index: 3;
  min-width: 280px;
  border-left: 2px solid var(--acid);
  padding: 12px 16px;
  background: rgba(250, 248, 242, .76);
  backdrop-filter: blur(12px);
}
.atelier-reading span { display: block; color: var(--muted); font: 700 10px/1.2 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.atelier-reading strong { display: block; margin-top: 5px; font-size: 14px; letter-spacing: -.02em; }
.atelier-visual figcaption {
  position: absolute;
  right: 5%;
  bottom: 7%;
  z-index: 3;
  width: min(32%, 240px);
  color: rgba(250,248,242,.88);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
}

section { padding: clamp(84px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1.65fr);
  gap: 56px;
  margin-bottom: clamp(48px, 7vw, 94px);
}
.section-head .sectionlead { margin-bottom: 0; }

.problem-section { background: var(--paper); }
.decision-map {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
  min-height: 430px;
  margin-bottom: 78px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.decision-map__prompt {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  padding: 30px 42px 30px 0;
}
.decision-map__prompt > span { color: var(--muted); font: 750 10px/1.2 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.decision-map__prompt blockquote { margin: 40px 0; font: 500 clamp(26px, 3vw, 42px)/1.08 Georgia, serif; letter-spacing: -.04em; }
.decision-map__prompt small { max-width: 360px; color: var(--muted); font-size: 12px; }
.decision-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 50px 0 50px 42px;
  list-style: none;
  overflow: hidden;
}
.decision-flow::before {
  position: absolute;
  left: 9%;
  right: 5%;
  top: 50%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--ink), var(--danger) 47%, var(--line-strong) 56%, var(--acid-deep));
}
.decision-flow li {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line-strong);
  padding: 14px 10px;
  background: rgba(243, 240, 232, .88);
}
.decision-flow li span { color: var(--muted); font: 700 10px/1 ui-monospace, monospace; }
.decision-flow li strong { margin: 11px 0 3px; font-size: clamp(14px, 1.25vw, 18px); letter-spacing: -.03em; }
.decision-flow li small { color: var(--muted); font-size: 10px; }
.decision-flow__break { border-color: var(--danger) !important; background: #f5e8df !important; }
.decision-flow__break::before {
  position: absolute;
  left: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--danger);
  box-shadow: 0 0 0 8px rgba(210,83,53,.12);
  animation: loss-pulse 2.4s ease-in-out infinite;
}
.decision-flow__break em {
  position: absolute;
  left: 8px;
  top: calc(100% + 20px);
  width: 150px;
  color: var(--danger);
  font: 700 10px/1.35 ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.decision-flow__selected { border-color: var(--acid-deep) !important; background: rgba(184,239,49,.35) !important; }
.failure-list { border-top: 1px solid var(--line); }
.failure-row {
  display: grid;
  grid-template-columns: 170px minmax(220px, .7fr) minmax(0, 1.3fr) 64px;
  gap: 32px;
  align-items: center;
  min-height: 150px;
  border-bottom: 1px solid var(--line);
}
.failure-row__index { color: var(--muted); font: 750 10px/1.4 ui-monospace, monospace; letter-spacing: .12em; }
.failure-row h3 { margin: 0; font: 500 clamp(31px, 3.5vw, 50px)/1 Georgia, serif; }
.failure-row p { max-width: 600px; margin: 0; color: var(--muted); }
.failure-row__mark { color: var(--line-strong); font: 500 48px/1 Georgia, serif; text-align: right; transition: color .25s var(--ease), transform .25s var(--ease); }
.failure-row:hover .failure-row__mark { color: var(--danger); transform: rotate(-7deg) scale(1.08); }

.system-section {
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 217, 203, .9), transparent 24%),
    radial-gradient(circle at 62% 82%, rgba(216, 210, 232, .58), transparent 28%),
    var(--paper-bright);
  overflow: clip;
}
.system-layout { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(460px, 1.3fr); gap: clamp(54px, 8vw, 120px); align-items: start; }
.system-copy { position: sticky; top: calc(var(--nav) + 40px); }
.system-copy h2 { margin-top: 32px; }
.system-stack { position: relative; padding: 8px 0 40px; perspective: 1000px; }
.system-stack::before {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 1px;
  content: "";
  background: linear-gradient(var(--ink), var(--acid-deep));
}
.system-layer {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(180px, .75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: center;
  min-height: 158px;
  margin: 0 0 18px calc(var(--layer) * 16px);
  border: 1px solid rgba(21,23,18,.22);
  padding: 26px 28px;
  background: rgba(250, 248, 242, calc(.93 - var(--layer) * .08));
  box-shadow: 0 18px 45px rgba(30, 34, 25, .07);
  backdrop-filter: blur(12px);
  transform: translateZ(calc(var(--layer) * 8px));
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.system-layer:hover { z-index: 3; border-color: var(--ink); background: var(--paper-bright); transform: translate(8px, -4px) translateZ(30px); }
.system-layer > div { display: flex; flex-direction: column; gap: 7px; }
.system-layer > div span { font: 500 30px/1 Georgia, serif; }
.system-layer > div small { font: 850 10px/1 ui-monospace, monospace; letter-spacing: .14em; }
.system-layer h3 { margin: 0; font-size: clamp(21px, 2vw, 29px); }
.system-layer p { margin: 0; color: var(--muted); font-size: 14px; }
.system-layer--active { border-color: var(--acid-deep); background: linear-gradient(105deg, rgba(184,239,49,.64), rgba(250,248,242,.86) 56%); }

.route-section { background: var(--paper); }
.route-list { border-top: 1px solid var(--ink); }
.route-link {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(220px, .8fr) minmax(0, 1.2fr) 28px;
  gap: 24px;
  align-items: center;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.route-link::before {
  position: absolute;
  inset: 0 100% 0 0;
  content: "";
  background: linear-gradient(90deg, rgba(184,239,49,.5), rgba(184,217,203,.2));
  transition: right .45s var(--ease);
}
.route-link:hover::before { right: 0; }
.route-link > * { position: relative; z-index: 1; }
.route-link span:first-child { color: var(--muted); font: 800 11px/1 ui-monospace, monospace; }
.route-link strong { font-size: clamp(21px, 2.3vw, 31px); letter-spacing: -.045em; }
.route-link small { color: var(--muted); font-size: 14px; }
.route-link b { font-size: 19px; font-weight: 400; transition: transform .25s var(--ease); }
.route-link:hover b { transform: translate(4px, -4px); }

.lab-section { padding-block: 0; background: var(--ink); color: var(--paper-bright); }
.lab-stage { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; }
.lab-stage__copy { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(40px, 7vw, 100px) 80px 0; }
.lab-stage .eyebrow { color: var(--paper-bright); }
.lab-stage .sectionlead { color: #b7bbb2; }
.lab-stage .btn { border-color: rgba(255,255,255,.4); color: var(--paper-bright); }
.lab-stage .btn:hover { background: var(--paper-bright); color: var(--ink); }
.lab-stage .text-link { border-color: rgba(255,255,255,.35); color: var(--paper-bright); }
.lab-score {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.2);
  padding: 70px 0 70px clamp(40px, 6vw, 90px);
  overflow: hidden;
}
.lab-score::before {
  position: absolute;
  right: -18%;
  top: 0;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  opacity: .42;
  background: conic-gradient(from 90deg, var(--acid), var(--mint), var(--cobalt), var(--lilac), var(--acid));
  filter: blur(90px);
  animation: spectral-turn 18s linear infinite;
}
.lab-score > * { position: relative; z-index: 1; }
.lab-score__number { display: flex; align-items: baseline; gap: 8px; }
.lab-score__number strong { font: 500 clamp(96px, 13vw, 180px)/.8 Georgia, serif; letter-spacing: -.09em; }
.lab-score__number span { color: #acb0a7; font-size: 28px; }
.lab-score__label { margin: 22px 0 42px; color: var(--acid); font: 750 11px/1.3 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.lab-score__checks { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.lab-score__checks span { border: 1px solid rgba(255,255,255,.26); padding: 7px 10px; font-size: 11px; }
.lab-score__pending { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.2); padding: 17px 0; font-size: 12px; }
.lab-score__pending span { color: #aeb2a9; }
.lab-score__pending strong { font-weight: 650; text-align: right; }

.closing-section { background: var(--acid); }
.closing-grid { display: grid; grid-template-columns: 180px 1fr auto; gap: 50px; align-items: end; }
.closing-grid h2 { max-width: 760px; margin-bottom: 20px; }
.closing-grid p { max-width: 680px; margin: 0; color: var(--ink-soft); font-size: 18px; }
.closing-grid .btn.primary { min-width: 220px; }

.footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--paper-bright); color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 30px; }
.footer strong { color: var(--ink); }
.footer p { margin: 0; }
.footer a { border-bottom: 1px solid var(--line); }

/* Shared interior-page system */
.hero { padding: 96px 0 64px; }
.hero-mini { padding: 90px 0 58px; }
.hero h1,
.hero-mini h1 {
  max-width: 1050px;
  margin: 16px 0 0;
  font: 500 clamp(48px, 7vw, 86px)/.94 Georgia, serif;
  letter-spacing: -.06em;
}
.content { max-width: 820px; }
.content h2 { margin-top: 62px; font-size: clamp(34px, 4vw, 48px); }
.content h3 { margin-top: 34px; font-size: 24px; }
.content p,
.content li { color: var(--ink-soft); }
.content strong { color: var(--ink); }
.breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.grid { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { min-width: 0; padding: 30px; background: var(--paper-bright); transition: background .25s var(--ease), transform .25s var(--ease); }
a.card:hover { background: #edf5df; transform: translateY(-3px); }
.card h3 { margin: 4px 0 10px; }
.metric { font: 500 38px/1 Georgia, serif; letter-spacing: -.05em; }
.muted { color: var(--muted); }
.tag { display: inline-block; margin: 3px; border: 1px solid var(--line-strong); padding: 5px 10px; color: var(--ink-soft); font-size: 12px; }
.quote { font: 500 30px/1.25 Georgia, serif; letter-spacing: -.035em; }
.sector-links,
.pending-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.sector-link,
.pending-item { min-height: 220px; border-right: 1px solid var(--line); padding: 30px; background: var(--paper-bright); }
.sector-link:last-child,
.pending-item:last-child { border-right: 0; }
.sector-link h3 { margin: 0; font: 500 36px/1 Georgia, serif; }
.pending-item strong { display: block; margin: 16px 0 8px; font: 500 30px/1 Georgia, serif; }
.evidence-list { border-top: 1px solid var(--line); }
.evidence-row { display: grid; grid-template-columns: 90px minmax(180px, .7fr) minmax(0, 1.3fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.evidence-row__index { color: var(--acid-deep); font: 800 11px/1.4 ui-monospace, monospace; letter-spacing: .12em; }
.evidence-row h3 { margin: 0; font-size: clamp(23px, 3vw, 34px); }
.evidence-row p { max-width: 660px; margin: 0; color: var(--muted); }
.faq details { padding: 19px 0; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 780; }
.form { display: grid; gap: 16px; max-width: 720px; }
.form label { color: var(--ink-soft); font-size: 13px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 13px 14px;
  background: var(--paper-bright);
  color: var(--ink);
  font: inherit;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: var(--cobalt); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; font-size: 13px; }
.form .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--acid-deep); }
.hidden { position: absolute; left: -9999px; }
.notice { color: var(--muted); font-size: 13px; }
.status { display: none; border-left: 3px solid var(--acid-deep); padding: 11px 13px; background: var(--paper-deep); }
.status.show { display: block; }
.status[data-state="error"] { border-color: var(--danger); }
.table { width: 100%; border-collapse: collapse; }
.table td,
.table th { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--ink); }
.table td { color: var(--ink-soft); }
.callout { margin: 24px 0; border-left: 3px solid var(--acid-deep); padding: 18px 22px; background: rgba(184,239,49,.16); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal .failure-row,
.reveal .system-layer,
.reveal .route-link {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .58s var(--ease), transform .58s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.reveal.is-visible .failure-row,
.reveal.is-visible .system-layer,
.reveal.is-visible .route-link {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
}
.reveal.is-visible .system-layer:hover { transform: translate(8px, -4px) translateZ(30px); }

@keyframes atelier-settle {
  from { opacity: 0; transform: scale(1.08); filter: saturate(.45) contrast(.95); }
  to { opacity: 1; transform: scale(1); filter: saturate(.82) contrast(1.02); }
}
@keyframes grid-enter {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes annotation-enter {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes loss-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(210,83,53,.1); }
  50% { box-shadow: 0 0 0 13px rgba(210,83,53,.16); }
}
@keyframes spectral-turn { to { transform: rotate(1turn); } }

@media (max-width: 1060px) {
  .hero-home { grid-template-columns: minmax(420px, 50%) minmax(0, 50%); }
  .hero-home h1 { font-size: clamp(48px, 6vw, 68px); }
  .decision-map { grid-template-columns: 1fr; }
  .decision-map__prompt { min-height: 290px; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .decision-flow { min-height: 280px; padding-left: 0; }
  .system-layout { grid-template-columns: .8fr 1.2fr; gap: 50px; }
  .system-layer { grid-template-columns: 70px 1fr; }
  .system-layer p { grid-column: 2; }
  .closing-grid { grid-template-columns: 150px 1fr; }
  .closing-grid .btn { grid-column: 2; justify-self: start; }
}

@media (max-width: 860px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .navin { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .navin::-webkit-scrollbar { display: none; }
  .navlinks { gap: 17px; }
  .navlinks .btn { min-height: 38px; padding: 8px 12px; }
  .hero-home { grid-template-columns: 1fr; }
  .hero-home__copy { min-height: calc(88svh - var(--nav)); padding: 58px 24px; }
  .hero-home__copy::after { display: none; }
  .hero-home h1 { max-width: 720px; font-size: clamp(52px, 10.5vw, 80px); }
  .atelier-visual { min-height: 78svh; }
  .atelier-three, .atelier-live, .atelier-annotation--sources, .atelier-annotation--shortlist { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .system-layout { grid-template-columns: 1fr; }
  .system-copy { position: static; }
  .lab-stage { grid-template-columns: 1fr; }
  .lab-stage__copy { min-height: 520px; padding-right: 0; }
  .lab-score { min-height: 620px; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; padding-left: 0; }
  .failure-row { grid-template-columns: 130px 1fr 50px; gap: 20px; padding: 26px 0; }
  .failure-row p { grid-column: 2; }
  .failure-row__mark { grid-column: 3; grid-row: 1 / span 2; }
  .route-link { grid-template-columns: 50px 1fr 24px; }
  .route-link small { grid-column: 2; padding-bottom: 20px; }
  .g3, .g2, .sector-links, .pending-grid { grid-template-columns: 1fr; }
  .sector-link, .pending-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .sector-link:last-child, .pending-item:last-child { border-bottom: 0; }
  .evidence-row { grid-template-columns: 54px 1fr; gap: 16px; }
  .evidence-row p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 580px) {
  .navin { justify-content: space-between; overflow: visible; }
  .navlinks { margin-left: auto; }
  .navlinks > a:not(.btn) { display: none; }
  .navlinks .btn { min-height: 38px; padding-inline: 13px; }
  .wordmark { margin-bottom: 36px; }
  .hero-home__copy { min-height: auto; padding-block: 50px 58px; }
  .hero-home h1 { font-size: clamp(48px, 14vw, 65px); }
  .hero-home .lead { font-size: 17px; }
  .actions { align-items: stretch; }
  .actions .btn { width: 100%; }
  .hero-home .text-link { width: fit-content; }
  .atelier-visual { min-height: 620px; }
  .atelier-visual img { object-position: 67% center; }
  .atelier-annotation--query { left: 5%; }
  .atelier-annotation--entity { right: 3%; }
  .atelier-annotation--proof { right: 7%; }
  .atelier-reading { left: 5%; bottom: 5%; min-width: 250px; }
  .atelier-visual figcaption { display: none; }
  section { padding-block: 80px; }
  h2 { font-size: clamp(39px, 12vw, 54px); }
  .decision-map__prompt blockquote { font-size: 31px; }
  .decision-flow { grid-template-columns: 1fr; gap: 0; padding: 22px 0; }
  .decision-flow::before { left: 21px; right: auto; top: 10%; bottom: 10%; width: 1px; height: auto; background: linear-gradient(var(--ink), var(--danger) 47%, var(--line-strong) 56%, var(--acid-deep)); }
  .decision-flow li { min-height: 86px; margin-left: 22px; border-top: 1px solid var(--line); border-left: 0; padding-left: 24px; }
  .decision-flow__break::before { left: -5px; top: 50%; }
  .decision-flow__break em { left: auto; right: 8px; top: 18px; width: 110px; text-align: right; }
  .failure-row { grid-template-columns: 1fr 42px; }
  .failure-row__index, .failure-row h3, .failure-row p { grid-column: 1; }
  .failure-row__mark { grid-column: 2; grid-row: 1 / span 3; }
  .system-layer { margin-left: calc(var(--layer) * 5px); padding: 22px 18px; }
  .system-layer h3 { font-size: 22px; }
  .closing-grid { grid-template-columns: 1fr; gap: 28px; }
  .closing-grid .btn { grid-column: 1; width: 100%; }
  .route-link { grid-template-columns: 34px 1fr 20px; gap: 12px; }
  .lab-score__number strong { font-size: 118px; }
  .lab-score__pending { flex-direction: column; gap: 5px; }
  .lab-score__pending strong { text-align: left; }
}

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