:root {
  --c-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --c-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --content-max: 1240px;
  --project-gutter: clamp(20px, 4.8vw, 72px);
  --story-space: clamp(78px, 10vw, 148px);
  --project-display: clamp(3.25rem, 6.8vw, 6.7rem);
  --project-h2: clamp(2.2rem, 4.8vw, 4.65rem);
  --project-line: color-mix(in srgb, var(--c-line-strong) 70%, transparent);
}

* { scrollbar-width: thin; }

.project-body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 9% 2%, color-mix(in srgb, var(--c-accent) 12%, transparent), transparent 27rem),
    radial-gradient(circle at 95% 32%, color-mix(in srgb, var(--c-teal) 8%, transparent), transparent 30rem),
    var(--c-bg);
}

.project-grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.project-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c-accent) 58%, transparent);
}

.project-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 110;
  padding: 10px 14px;
  border: 1px solid var(--c-accent);
  border-radius: 8px;
  background: var(--c-surface-2);
  color: var(--c-text);
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.project-skip:focus { transform: translateY(0); }

.project-header { border-color: var(--c-line); }

.project-header__inner {
  width: min(100%, 1440px);
  padding-inline: clamp(16px, 3vw, 44px);
}

.project-header .brand__name { font-weight: 700; }
.project-header .brand__tagline { font-size: .75rem; }
.project-nav { gap: clamp(14px, 2vw, 28px); }
.project-nav a { font-family: var(--c-sans); }

.project-present-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--c-accent) 45%, var(--c-line-strong));
  border-radius: 8px;
  background: var(--c-accent-soft);
  color: var(--c-accent-2);
  font-size: .78rem;
  font-weight: 650;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.project-present-button:hover {
  transform: translateY(-1px);
  border-color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 18%, transparent);
}

.project-present-button:active { transform: translateY(1px); }
.project-present-button .icon { width: 16px; height: 16px; }

.tour-rail {
  position: fixed;
  right: clamp(10px, 2vw, 28px);
  top: 50%;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transform: translateY(-50%);
}

.tour-rail button {
  display: grid;
  grid-template-columns: 23px 0fr 0fr;
  align-items: center;
  min-width: 34px;
  min-height: 34px;
  gap: 0;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--c-text-3);
  text-align: left;
  transition: grid-template-columns .22s ease, gap .22s ease, color .18s ease, background .18s ease, border-color .18s ease;
}

.tour-rail button:hover,
.tour-rail button.is-active {
  grid-template-columns: 23px 58px 32px;
  gap: 7px;
  border-color: var(--c-line);
  background: color-mix(in srgb, var(--c-surface-2) 85%, transparent);
  color: var(--c-text);
}

.tour-rail button.is-active { border-color: color-mix(in srgb, var(--c-accent) 45%, var(--c-line)); }
.tour-rail button span { color: var(--c-accent); font-family: var(--c-mono); font-size: .68rem; }
.tour-rail button b { overflow: hidden; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.tour-rail button small { overflow: hidden; color: var(--c-text-3); font-family: var(--c-mono); font-size: .61rem; white-space: nowrap; }

.story {
  position: relative;
  min-height: min(100dvh, 1020px);
  padding: var(--story-space) var(--project-gutter);
  border-bottom: 1px solid var(--c-line);
  scroll-margin-top: var(--header-h);
}

.story__inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.story--hero {
  display: flex;
  min-height: calc(100dvh - var(--header-h));
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(58px, 7vw, 96px);
  padding-bottom: clamp(44px, 6vw, 80px);
  overflow: hidden;
}

.story--hero > .presentation-slide-canvas { display: contents; }

.story--hero::before {
  position: absolute;
  top: -32%;
  right: -16%;
  width: min(72vw, 940px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--c-accent) 10%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8vw color-mix(in srgb, var(--c-accent) 2%, transparent), inset 0 0 0 16vw color-mix(in srgb, var(--c-accent) 2%, transparent);
  content: "";
  pointer-events: none;
}

.chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--c-text-3);
  font-family: var(--c-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chapter span {
  display: inline-grid;
  width: 29px;
  height: 25px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--c-accent) 42%, var(--c-line));
  border-radius: 5px;
  color: var(--c-accent);
}

.chapter b {
  margin-left: auto;
  color: var(--c-text-3);
  font-weight: 400;
  letter-spacing: 0;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .8fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}

.hero-copy h1 {
  max-width: 900px;
  color: var(--c-text);
  font-size: var(--project-display);
  font-weight: 650;
  letter-spacing: -.068em;
  line-height: .96;
  text-wrap: balance;
}

.hero-copy h1 em {
  color: var(--c-accent-2);
  font-style: normal;
  font-weight: 500;
}

.hero-lede {
  max-width: 62ch;
  margin-top: 30px;
  color: var(--c-text-2);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.7;
  text-wrap: pretty;
}

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

.project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--c-accent-fill);
  border-radius: 9px;
  background: var(--c-accent-fill);
  color: var(--c-on-accent);
  font-size: .86rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.project-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--c-accent) 22%, transparent);
}

.project-cta:active { transform: translateY(1px); }
.project-cta .icon, .project-text-link .icon { width: 18px; height: 18px; }

.project-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-2);
  font-size: .84rem;
  font-weight: 600;
  transition: color .18s ease, gap .18s ease;
}

.project-text-link:hover { gap: 12px; color: var(--c-text); }

.frontier-finding {
  max-width: 700px;
  margin-top: 40px;
  padding: 18px 20px 18px 22px;
  border-left: 2px solid var(--c-accent);
  background: linear-gradient(90deg, var(--c-accent-soft), transparent);
}

.frontier-finding__label {
  display: block;
  margin-bottom: 7px;
  color: var(--c-accent-2);
  font-family: var(--c-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.frontier-finding p { color: var(--c-text-2); font-size: .86rem; line-height: 1.65; }
.frontier-finding strong { color: var(--c-text); font-weight: 650; }

.static-grade {
  position: relative;
  margin: 0;
}

.static-grade__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--project-line);
  border-radius: 22px 22px 7px 22px;
  background: var(--c-inset);
  box-shadow: 0 34px 90px -34px var(--c-shadow);
}

.static-grade__frame > img,
.static-grade__before,
.static-grade__before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.static-grade__before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.static-grade__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 1px;
  background: var(--c-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c-accent) 60%, transparent);
}

.static-grade__line::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid var(--c-accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-bg) 78%, transparent);
  box-shadow: 0 8px 20px var(--c-shadow);
  content: "↔";
  color: var(--c-accent-2);
  font-family: var(--c-mono);
  font-size: 12px;
  line-height: 32px;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.static-grade__label {
  position: absolute;
  bottom: 13px;
  padding: 5px 8px;
  border: 1px solid var(--c-line-strong);
  border-radius: 5px;
  background: color-mix(in srgb, var(--c-bg) 72%, transparent);
  color: var(--c-text-2);
  font-family: var(--c-mono);
  font-size: .61rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.static-grade__label--before { left: 13px; }
.static-grade__label--after { right: 13px; color: var(--c-accent-2); }
.static-grade__range { position: absolute; inset: 0 0 auto 0; width: 100%; height: calc(100% - 102px); opacity: 0; cursor: ew-resize; }

.static-grade figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px 4px 0 6px;
}

.static-grade figcaption span {
  color: var(--c-accent);
  font-family: var(--c-mono);
  font-size: .68rem;
  white-space: nowrap;
}

.static-grade figcaption p { color: var(--c-text-3); font-size: .78rem; line-height: 1.55; }

.problem-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto 38px auto 1fr;
  align-items: center;
  width: min(100%, var(--content-max));
  gap: clamp(18px, 3vw, 44px);
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.problem-strip > div { display: flex; flex-direction: column; }
.problem-strip strong { color: var(--c-text); font-family: var(--c-mono); font-size: clamp(1.3rem, 2.1vw, 2rem); font-weight: 500; }
.problem-strip span { color: var(--c-text-3); font-size: .7rem; }
.problem-strip .problem-strip__arrow { color: var(--c-text-3); font-size: 1.5rem; }
.problem-strip .problem-strip__answer strong { color: var(--c-accent-2); }
.problem-strip p { justify-self: end; max-width: 34ch; color: var(--c-text-2); font-size: .8rem; line-height: 1.55; text-align: right; }
.problem-strip p b { color: var(--c-text); }

.section-intro { max-width: 890px; margin-bottom: clamp(42px, 6vw, 78px); }
.section-intro h2 {
  color: var(--c-text);
  font-size: var(--project-h2);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: 1.02;
  text-wrap: balance;
}
.section-intro > p:last-child { max-width: 69ch; margin-top: 22px; color: var(--c-text-2); font-size: clamp(.97rem, 1.25vw, 1.12rem); line-height: 1.72; }
.section-intro code { color: var(--c-accent-2); font-family: var(--c-mono); font-size: .9em; }

.story--baseline {
  background:
    linear-gradient(90deg, transparent 0 50%, color-mix(in srgb, var(--c-line) 28%, transparent) 50% calc(50% + 1px), transparent calc(50% + 1px)),
    color-mix(in srgb, var(--c-surface-1) 42%, transparent);
}

.baseline-sheet {
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  border-radius: 5px 16px 16px 16px;
  background: var(--c-surface-1);
}

.baseline-sheet table { width: 100%; border-collapse: collapse; }
.baseline-sheet caption {
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-line-strong);
  background: var(--c-inset);
  color: var(--c-text-3);
  font-family: var(--c-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  text-align: left;
}

.baseline-sheet th,
.baseline-sheet td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text-2);
  font-size: .83rem;
  text-align: left;
  white-space: nowrap;
}

.baseline-sheet thead th {
  color: var(--c-text-3);
  font-family: var(--c-mono);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.baseline-sheet tbody th { color: var(--c-text); font-weight: 650; }
.baseline-sheet tbody td strong { color: var(--c-accent-2); font-family: var(--c-mono); font-size: 1rem; }
.baseline-sheet tbody td:nth-child(3) { display: grid; grid-template-columns: minmax(80px, 1fr) 38px; align-items: center; gap: 10px; }
.baseline-sheet tbody td:nth-child(3) b { color: var(--c-text-3); font-family: var(--c-mono); font-size: .68rem; font-weight: 400; }

.completion-bar { --completion: 0%; display: block; height: 7px; overflow: hidden; background: var(--c-line); }
.completion-bar i { display: block; width: var(--completion); height: 100%; background: var(--c-accent); }
.completion-bar--80 { --completion: 80%; }
.completion-bar--60 { --completion: 60%; }
.completion-bar--40 { --completion: 40%; }
.completion-bar--0 { --completion: 0%; }

.baseline-takeaway {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  align-items: center;
  gap: 20px;
  padding: 17px 18px;
  background: var(--c-inset);
}

.baseline-takeaway > div { display: flex; flex-direction: column; }
.baseline-takeaway strong { color: var(--c-accent-2); font-family: var(--c-mono); font-size: 1.35rem; font-weight: 500; }
.baseline-takeaway span { margin-top: 3px; color: var(--c-text-3); font-size: .65rem; }
.baseline-caveat { margin-top: 12px; color: var(--c-text-3); font-size: .7rem; line-height: 1.5; }

.story--system {
  background: radial-gradient(circle at 80% 26%, color-mix(in srgb, var(--c-accent) 7%, transparent), transparent 30rem);
}

.system-flow {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  border-radius: 6px 18px 18px 18px;
  background: var(--c-surface-1);
}

.flow-lane {
  display: grid;
  grid-template-columns: 130px 1fr 26px 1fr 26px 1.2fr;
  align-items: stretch;
  gap: 9px;
  padding: 18px;
}

.flow-lane--request {
  grid-template-columns: 130px 1fr 22px 1fr 22px 1fr 22px 1fr 22px 1fr 22px 1fr;
  border-top: 1px solid var(--c-line-strong);
  background: repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--c-line) 25%, transparent) 32px);
}

.flow-lane header {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-right: 12px;
  border-right: 1px solid var(--c-line-strong);
}

.flow-lane header span { color: var(--c-accent); font-family: var(--c-mono); font-size: .66rem; letter-spacing: .08em; }
.flow-lane header p { margin-top: 7px; color: var(--c-text-3); font-size: .7rem; line-height: 1.4; }
.flow-lane > article { min-width: 0; padding: 16px; border: 1px solid var(--c-line); border-radius: 5px 12px 12px 12px; background: var(--c-surface-2); }
.flow-lane > i { align-self: center; color: var(--c-accent); font-family: var(--c-mono); font-style: normal; text-align: center; }
.flow-lane article small { color: var(--c-text-3); font-family: var(--c-mono); font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; }
.flow-lane article strong { display: block; margin-top: 11px; color: var(--c-text); font-size: .96rem; line-height: 1.25; }
.flow-lane article code { display: block; margin-top: 8px; color: var(--c-text-3); font-family: var(--c-mono); font-size: .61rem; line-height: 1.45; }
.flow-lane .flow-node--accent,
.flow-lane .flow-node--tokens { border-color: color-mix(in srgb, var(--c-accent) 44%, var(--c-line)); background: var(--c-accent-soft); }
.flow-lane .flow-node--frozen,
.flow-lane .flow-node--output { border-color: color-mix(in srgb, var(--c-mint) 36%, var(--c-line)); }
.flow-lane .flow-node--spec { background: color-mix(in srgb, var(--c-teal) 7%, var(--c-surface-2)); }

.flow-bridge {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 38px;
  border-top: 1px solid var(--c-line);
  color: var(--c-text-3);
  font-family: var(--c-mono);
  font-size: .65rem;
}

.flow-bridge i { color: var(--c-accent); font-size: 1rem; font-style: normal; }

.pipeline {
  display: grid;
  grid-template-columns: 1.05fr 26px 1fr 26px 1.05fr 26px 1fr 26px 1fr;
  align-items: stretch;
  gap: 10px;
}

.pipeline-node {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-surface-1) 84%, transparent);
}

.pipeline-node::after {
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 110px;
  height: 110px;
  border: 1px solid color-mix(in srgb, var(--c-accent) 12%, transparent);
  border-radius: 50%;
  content: "";
}

.pipeline-node__step { color: var(--c-text-3); font-family: var(--c-mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.pipeline-node h3 { margin-top: 16px; color: var(--c-text); font-size: 1rem; line-height: 1.3; }
.pipeline-node p { margin-top: 8px; color: var(--c-text-3); font-size: .8rem; line-height: 1.55; }
.pipeline-node code { color: var(--c-text-2); font-family: var(--c-mono); font-size: .7rem; line-height: 1.7; overflow-wrap: anywhere; }
.pipeline-node--spec { background: color-mix(in srgb, var(--c-accent) 7%, var(--c-surface-1)); }
.pipeline-node--spec code { display: block; margin-top: 13px; color: var(--c-accent-2); }
.pipeline-node--output img { width: 100%; aspect-ratio: 4/3; margin-top: 14px; border-radius: 6px; object-fit: cover; }
.pipeline-node--output p { font-family: var(--c-mono); }
.pipeline-arrow { align-self: center; color: var(--c-text-3); font-family: var(--c-mono); text-align: center; }

.input-mini { margin-top: 14px; }
.input-mini img { width: 100%; aspect-ratio: 4/3; border-radius: 6px; object-fit: cover; }
.input-mini code { display: block; margin-top: 9px; color: var(--c-text-2); }
.route-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.route-chips span { padding: 4px 6px; border: 1px solid var(--c-line); border-radius: 4px; color: var(--c-text-3); font-family: var(--c-mono); font-size: .55rem; }
.route-chips span:first-child { border-color: color-mix(in srgb, var(--c-mint) 35%, var(--c-line)); color: var(--c-mint); }

.token-mini { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: 17px; }
.token-mini i { aspect-ratio: 1; border-radius: 2px; background: var(--c-accent-soft); transform: scale(.75); animation: token-breathe 2.8s ease-in-out infinite; }
.token-mini i:nth-child(3n) { background: color-mix(in srgb, var(--c-teal) 16%, transparent); animation-delay: -.8s; }
.token-mini i:nth-child(5n) { background: color-mix(in srgb, var(--c-accent) 28%, transparent); animation-delay: -1.5s; }

@keyframes token-breathe { 0%, 100% { transform: scale(.7); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }

.decision-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 38px);
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 30px;
  border-top: 1px solid var(--c-line);
}
.decision-row article { padding-right: 18px; }
.decision-row span { color: var(--c-accent); font-family: var(--c-mono); font-size: .64rem; text-transform: uppercase; }
.decision-row h3 { margin-top: 13px; color: var(--c-text); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.35; }
.decision-row p { margin-top: 10px; color: var(--c-text-3); font-size: .79rem; line-height: 1.65; }

.story--data {
  min-height: auto;
  background:
    linear-gradient(90deg, transparent 0 50%, color-mix(in srgb, var(--c-line) 32%, transparent) 50% calc(50% + 1px), transparent calc(50% + 1px)),
    color-mix(in srgb, var(--c-surface-1) 42%, transparent);
}

.story--labeling {
  background:
    radial-gradient(circle at 84% 28%, color-mix(in srgb, var(--c-teal) 7%, transparent), transparent 30rem),
    var(--c-bg);
}

.data-notebook {
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  border-radius: 4px 16px 16px 16px;
  background: var(--c-surface-1);
  box-shadow: 0 34px 80px -54px var(--c-shadow);
}

.data-notebook__header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--c-line-strong);
  background: var(--c-inset);
}

.data-notebook__header > div { display: flex; align-items: center; gap: 13px; }
.data-notebook__header span { padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--c-accent) 42%, var(--c-line)); border-radius: 3px; color: var(--c-accent); font-family: var(--c-mono); font-size: .57rem; letter-spacing: .06em; }
.data-notebook__header strong { color: var(--c-text); font-family: var(--c-mono); font-size: .72rem; font-weight: 500; }
.data-notebook__header p { color: var(--c-text-3); font-size: .64rem; }

.corpus-funnel {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr 24px 1.08fr;
  align-items: stretch;
  padding: 22px;
  border-bottom: 1px solid var(--c-line);
  background: repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--c-line) 28%, transparent) 32px);
}

.corpus-funnel > div { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 13px 14px; border-left: 1px solid var(--c-line); }
.corpus-funnel > div:first-child { border-left: 0; }
.corpus-funnel small { color: var(--c-text-3); font-family: var(--c-mono); font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; }
.corpus-funnel strong { margin-top: 7px; color: var(--c-text); font-family: var(--c-mono); font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 500; font-variant-numeric: tabular-nums; }
.corpus-funnel span { margin-top: 3px; color: var(--c-text-3); font-size: .61rem; }
.corpus-funnel > i { align-self: center; color: var(--c-text-3); font-family: var(--c-mono); font-size: .72rem; font-style: normal; text-align: center; }
.corpus-funnel .corpus-funnel__final { border-left-color: color-mix(in srgb, var(--c-accent) 45%, var(--c-line)); background: linear-gradient(90deg, var(--c-accent-soft), transparent); }
.corpus-funnel__final strong { color: var(--c-accent-2); }

.data-lanes { display: grid; grid-template-columns: repeat(12, 1fr); }
.data-lanes article { position: relative; grid-column: span 5; min-height: 310px; padding: clamp(25px, 3vw, 38px); border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.data-lanes article:nth-child(2) { grid-column: span 7; border-right: 0; }
.data-lanes article.data-lanes__labeling { grid-column: span 7; min-height: 365px; }
.data-lanes article.data-lanes__tokenizer { grid-column: span 5; min-height: 365px; border-right: 0; }
.data-lanes__number { color: var(--c-accent); font-family: var(--c-mono); font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; }
.data-lanes h3 { max-width: 22ch; margin-top: 20px; color: var(--c-text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.15; }
.data-lanes p { max-width: 68ch; margin-top: 15px; color: var(--c-text-2); font-size: .88rem; line-height: 1.65; }
.data-lanes p b { color: var(--c-text); font-weight: 650; }
.data-lanes > article > code { display: block; margin-top: 25px; padding: 12px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); color: var(--c-accent-2); font-family: var(--c-mono); font-size: .64rem; line-height: 1.6; }

.source-tape { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 25px; }
.source-tape span { padding: 5px 7px; border: 1px solid var(--c-line); border-radius: 3px; color: var(--c-text-3); font-family: var(--c-mono); font-size: .55rem; }

.caption-stack { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 23px; }
.caption-stack span { padding: 5px 7px; border: 1px solid var(--c-line); border-radius: 3px; background: var(--c-inset); color: var(--c-text-3); font-size: .59rem; }
.caption-stack i { color: var(--c-accent); font-family: var(--c-mono); font-size: .65rem; font-style: normal; }
.caption-stack strong { color: var(--c-accent-2); font-family: var(--c-mono); font-size: .61rem; font-weight: 500; }
.data-lanes p.margin-note { max-width: 66ch; margin-top: 20px; padding: 12px 14px; border-left: 2px solid var(--c-amber); background: color-mix(in srgb, var(--c-amber) 6%, transparent); color: var(--c-text-3); font-family: var(--c-mono); font-size: .58rem; line-height: 1.65; }

.tokenizer-sketch { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr; align-items: center; margin-top: 25px; }
.tokenizer-sketch > div { padding: 12px 7px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); text-align: center; }
.tokenizer-sketch b { display: block; color: var(--c-accent-2); font-family: var(--c-mono); font-size: 1.15rem; font-weight: 500; }
.tokenizer-sketch span { color: var(--c-text-3); font-size: .55rem; }
.tokenizer-sketch i { color: var(--c-text-3); font-style: normal; text-align: center; }
.data-lanes__tokenizer dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0 0; background: var(--c-line); }
.data-lanes__tokenizer dl > div { padding: 10px; background: var(--c-inset); }
.data-lanes__tokenizer dt { color: var(--c-text); font-family: var(--c-mono); font-size: .75rem; }
.data-lanes__tokenizer dd { margin: 3px 0 0; color: var(--c-text-3); font-size: .52rem; }

.problem-ledger { margin-top: clamp(42px, 6vw, 72px); border-top: 1px solid var(--c-line-strong); }
.problem-ledger > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 54px; padding: 0 16px; border-bottom: 1px solid var(--c-line-strong); }
.problem-ledger > header span { color: var(--c-text); font-family: var(--c-mono); font-size: .67rem; letter-spacing: .07em; }
.problem-ledger > header p { color: var(--c-text-3); font-size: .62rem; }
.problem-ledger article { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.6fr) 86px; align-items: center; min-height: 92px; gap: 28px; padding: 15px 16px; border-bottom: 1px solid var(--c-line); }
.problem-ledger article:hover { background: linear-gradient(90deg, var(--c-accent-soft), transparent 52%); }
.problem-ledger article b { color: var(--c-text); font-size: .9rem; font-weight: 650; line-height: 1.45; }
.problem-ledger article p { max-width: 76ch; color: var(--c-text-3); font-size: .8rem; line-height: 1.6; }
.problem-ledger article code { color: var(--c-accent-2); font-family: var(--c-mono); font-size: .9em; }
.problem-ledger article small { justify-self: end; color: var(--c-accent); font-family: var(--c-mono); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; }

.story--problems {
  background: color-mix(in srgb, var(--c-surface-1) 58%, transparent);
}

.story--problems .problem-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  border: 1px solid var(--c-line-strong);
  background: var(--c-line);
  gap: 1px;
}

.story--problems .problem-ledger > header {
  grid-column: 1 / -1;
  background: var(--c-inset);
}

.story--problems .problem-ledger article {
  display: flex;
  min-height: 260px;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 0;
  background: var(--c-surface-1);
}

.story--problems .problem-ledger article:hover {
  background: linear-gradient(135deg, var(--c-accent-soft), var(--c-surface-1) 58%);
}

.story--problems .problem-ledger article small { order: -1; justify-self: auto; }
.story--problems .problem-ledger article b { font-size: 1.05rem; }
.story--problems .problem-ledger article p { font-size: .88rem; }
.story--problems .problem-ledger article p em {
  margin-right: 7px;
  color: var(--c-text-3);
  font-family: var(--c-mono);
  font-size: .68rem;
  font-style: normal;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.problem-solution {
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  border-left: 2px solid var(--c-accent);
  background: var(--c-accent-soft);
}

.problem-solution > span {
  color: var(--c-accent-2);
  font-family: var(--c-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.story--problems .problem-ledger .problem-solution p {
  margin-top: 7px;
  color: var(--c-text-2);
  font-size: .78rem;
  line-height: 1.5;
}

.story--stack { background: color-mix(in srgb, var(--c-surface-1) 62%, transparent); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.stack-card {
  grid-column: span 4;
  min-height: 260px;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid var(--c-line);
  border-radius: 7px 18px 18px 18px;
  background: var(--c-surface-2);
}
.stack-card--wide { grid-column: span 6; }
.stack-card--evidence { grid-column: span 12; min-height: 0; background: var(--c-inset); }

.stack-grid--talk .stack-card {
  grid-column: span 6;
  min-height: 245px;
}
.stack-card__index { color: var(--c-text-3); font-family: var(--c-mono); font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.stack-card h3 { max-width: 20ch; margin-top: 26px; color: var(--c-text); font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.22; }
.stack-card p { max-width: 54ch; margin-top: 16px; color: var(--c-text-2); font-size: .92rem; line-height: 1.65; }
.stack-card__detail { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--c-line); }
.stack-card__detail code { color: var(--c-accent-2); font-family: var(--c-mono); font-size: .73rem; }

.deploy-diagram { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 23px; font-family: var(--c-mono); font-size: .68rem; }
.deploy-diagram span, .deploy-diagram strong { padding: 7px 9px; border: 1px solid var(--c-line); border-radius: 5px; color: var(--c-text-2); font-weight: 400; }
.deploy-diagram strong { border-color: color-mix(in srgb, var(--c-accent) 38%, var(--c-line)); color: var(--c-accent-2); }
.deploy-diagram i { color: var(--c-text-3); font-style: normal; }

.evidence-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-line); }
.evidence-stats > div { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--c-inset); }
.evidence-stats strong { color: var(--c-accent-2); font-family: var(--c-mono); font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 500; }
.evidence-stats span { color: var(--c-text-3); font-size: .68rem; line-height: 1.5; }
.stack-card .evidence-note { max-width: none; margin-top: 20px; color: var(--c-text-3); font-size: .75rem; }

.detail-links { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 20px; margin-top: 28px; color: var(--c-text-3); font-size: .75rem; }
.detail-links span { margin-right: auto; }
.detail-links a { padding-bottom: 2px; border-bottom: 1px solid var(--c-line-strong); color: var(--c-text-2); transition: color .18s ease, border-color .18s ease; }
.detail-links a:hover { border-color: var(--c-accent); color: var(--c-accent-2); }

.story--results {
  background:
    radial-gradient(circle at 11% 85%, color-mix(in srgb, var(--c-accent) 8%, transparent), transparent 28rem),
    var(--c-bg);
}

.results-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-metric {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: baseline;
  min-height: 112px;
  gap: 9px;
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: 7px 15px 15px 15px;
  background: var(--c-inset);
}

.result-metric > span {
  align-self: start;
  color: var(--c-text-3);
  font-family: var(--c-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.result-metric strong {
  color: var(--c-accent-2);
  font-family: var(--c-mono);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
}

.result-metric small { color: var(--c-text-3); font-size: .66rem; }
.result-metric i { color: var(--c-accent); font-style: normal; }
.result-metric:nth-child(n + 2) { grid-template-columns: 1fr auto auto; }

.results-board article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--c-line);
  border-radius: 7px 17px 17px 17px;
  background: var(--c-surface-1);
}

.results-board article > span {
  color: var(--c-accent);
  font-family: var(--c-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.results-board article h3 {
  margin-top: 19px;
  color: var(--c-text);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.25;
}

.results-board article p {
  margin-top: 14px;
  color: var(--c-text-2);
  font-size: .9rem;
  line-height: 1.65;
}

.brainlift-layout { position: relative; }
.brainlift-document { overflow: hidden; border: 1px solid var(--c-line-strong); border-radius: 5px 16px 16px 16px; background: var(--c-surface-1); box-shadow: 0 36px 80px -54px var(--c-shadow); }
.brainlift-document__header { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 24px; border-bottom: 1px solid var(--c-line); background: color-mix(in srgb, var(--c-surface-2) 82%, transparent); }
.brainlift-document__header > div { display: flex; align-items: center; gap: 13px; }
.brainlift-file-mark { display: grid; width: 42px; height: 46px; place-items: center; border: 1px solid color-mix(in srgb, var(--c-accent) 42%, var(--c-line)); border-radius: 3px 9px 9px 9px; color: var(--c-accent-2); font-family: var(--c-mono); font-size: .65rem; }
.brainlift-document__header h3 { color: var(--c-text); font-family: var(--c-mono); font-size: .9rem; font-weight: 500; }
.brainlift-document__header p { margin-top: 4px; color: var(--c-text-3); font-size: .64rem; }
.brainlift-document__header dl { display: flex; gap: clamp(20px, 3vw, 42px); margin: 0; }
.brainlift-document__header dl > div { text-align: right; }
.brainlift-document__header dt { color: var(--c-text); font-family: var(--c-mono); font-size: .9rem; }
.brainlift-document__header dd { margin: 3px 0 0; color: var(--c-text-3); font-size: .57rem; text-transform: uppercase; }

.brainlift-document__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 590px; }
.brainlift-index { display: flex; min-width: 0; flex-direction: column; padding: 24px 16px; border-right: 1px solid var(--c-line); background: var(--c-inset); }
.brainlift-index > span { padding: 0 10px 12px; color: var(--c-text-3); font-family: var(--c-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.brainlift-index button { display: grid; grid-template-columns: 22px 1fr; gap: 2px 9px; padding: 12px 10px; border: 0; border-left: 1px solid transparent; background: transparent; color: var(--c-text-3); text-align: left; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.brainlift-index button:hover { background: var(--c-surface-1); color: var(--c-text-2); }
.brainlift-index button.is-active { border-left-color: var(--c-accent); background: linear-gradient(90deg, var(--c-accent-soft), transparent); color: var(--c-text); }
.brainlift-index button b { grid-row: 1 / 3; color: var(--c-accent); font-family: var(--c-mono); font-size: .6rem; font-weight: 400; }
.brainlift-index button span { font-size: .72rem; font-weight: 650; }
.brainlift-index button small { color: var(--c-text-3); font-size: .57rem; }
.brainlift-index a { display: inline-flex; align-items: center; gap: 7px; margin: auto 10px 0; padding-top: 16px; border-top: 1px solid var(--c-line); color: var(--c-accent-2); font-size: .61rem; }
.brainlift-index a .icon { width: 14px; height: 14px; }

.brainlift-pages { min-width: 0; background: repeating-linear-gradient(0deg, transparent 0, transparent 35px, color-mix(in srgb, var(--c-line) 42%, transparent) 36px), var(--c-surface-1); }
.brainlift-page { min-height: 590px; padding: clamp(34px, 4vw, 54px); }
.brainlift-page__kicker { color: var(--c-accent); font-family: var(--c-mono); font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; }
.brainlift-page blockquote { max-width: 31ch; margin: 28px 0 0; color: var(--c-text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3.1vw, 3rem); letter-spacing: -.032em; line-height: 1.12; }
.brainlift-page__body { max-width: 76ch; margin-top: 25px; color: var(--c-text-2); font-size: .82rem; line-height: 1.75; }
.brainlift-page__body em { color: var(--c-text); font-style: normal; }
.brainlift-page > h3 { max-width: 30ch; margin-top: 24px; color: var(--c-text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 2.7vw, 2.5rem); font-weight: 400; line-height: 1.15; }

.brainlift-proof { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 16px; margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.brainlift-proof > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 5px 13px; }
.brainlift-proof span { grid-column: 1 / -1; color: var(--c-text-3); font-family: var(--c-mono); font-size: .57rem; text-transform: uppercase; }
.brainlift-proof strong { color: var(--c-accent-2); font-family: var(--c-mono); font-size: 1.3rem; font-weight: 500; }
.brainlift-proof p { color: var(--c-text-3); font-size: .63rem; line-height: 1.45; }
.brainlift-proof i { color: var(--c-text-3); font-style: normal; text-align: center; }

.spov-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.spov-list li { display: flex; gap: 9px; color: var(--c-text-3); font-size: .63rem; line-height: 1.45; }
.spov-list b { color: var(--c-accent); font-family: var(--c-mono); font-size: .58rem; font-weight: 400; }

.insight-table { margin-top: 31px; border-top: 1px solid var(--c-line-strong); }
.insight-table > div { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; min-height: 72px; gap: 12px; border-bottom: 1px solid var(--c-line); }
.insight-table span, .insight-table strong { font-size: .75rem; line-height: 1.5; }
.insight-table span { color: var(--c-text-3); }
.insight-table strong { color: var(--c-text); font-weight: 600; }
.insight-table i { color: var(--c-accent); font-style: normal; text-align: center; }
.brainlift-page__note { margin-top: 25px; padding: 15px 17px; border-left: 2px solid var(--c-amber); background: color-mix(in srgb, var(--c-amber) 7%, transparent); color: var(--c-text-3); font-size: .68rem; line-height: 1.6; }

.expert-ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 30px; background: var(--c-line); }
.expert-ledger > div { min-height: 130px; padding: 19px; background: color-mix(in srgb, var(--c-surface-1) 94%, transparent); }
.expert-ledger b { display: block; color: var(--c-text); font-size: .74rem; }
.expert-ledger span { display: block; margin-top: 4px; color: var(--c-accent); font-family: var(--c-mono); font-size: .57rem; }
.expert-ledger p { margin-top: 13px; color: var(--c-text-3); font-size: .65rem; line-height: 1.55; }

.knowledge-tree { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 29px; }
.knowledge-tree span { padding: 6px 8px; border: 1px solid var(--c-line); border-radius: 3px; background: var(--c-inset); color: var(--c-text-2); font-family: var(--c-mono); font-size: .57rem; }
.source-sample { margin: 30px 0 0; padding: 0; border-top: 1px solid var(--c-line-strong); list-style: none; }
.source-sample li { display: grid; grid-template-columns: minmax(170px, .6fr) 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--c-line); }
.source-sample b { color: var(--c-text); font-size: .68rem; }
.source-sample span { color: var(--c-text-3); font-size: .65rem; }

.brainlift-trace { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 0 24px; border-top: 1px solid var(--c-line); background: var(--c-inset); color: var(--c-text-3); font-family: var(--c-mono); font-size: .58rem; text-transform: uppercase; }
.brainlift-trace i { flex: 1; min-width: 12px; height: 1px; background: var(--c-line-strong); }
.brainlift-trace strong { color: var(--c-accent-2); font-weight: 500; }

.story--spov {
  background:
    radial-gradient(circle at 76% 22%, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 30rem),
    color-mix(in srgb, var(--c-surface-1) 40%, transparent);
}

.vocabulary-spov {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  border-radius: 6px 18px 18px 18px;
  background: var(--c-surface-1);
}

.vocabulary-spov blockquote {
  margin: 0;
  padding: 30px;
  border-right: 1px solid var(--c-line);
  background: repeating-linear-gradient(0deg, transparent 0, transparent 35px, color-mix(in srgb, var(--c-line) 34%, transparent) 36px), var(--c-inset);
}

.vocabulary-spov blockquote > span {
  color: var(--c-accent);
  font-family: var(--c-mono);
  font-size: .65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.vocabulary-spov blockquote p {
  margin-top: 22px;
  color: var(--c-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  line-height: 1.28;
}

.vocabulary-spov blockquote em { color: var(--c-accent-2); font-style: normal; }
.intent-examples { padding: 20px 26px; }
.intent-examples > div {
  display: grid;
  grid-template-columns: minmax(140px, .65fr) 28px 1fr;
  align-items: center;
  min-height: 72px;
  gap: 12px;
  border-bottom: 1px solid var(--c-line);
}

.intent-examples > div:last-child { border-bottom: 0; }
.intent-examples q { color: var(--c-text); font-size: 1rem; font-weight: 600; }
.intent-examples i { color: var(--c-accent); font-style: normal; text-align: center; }
.intent-examples span { color: var(--c-text-2); font-size: .86rem; line-height: 1.5; }

.learning-loop {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
}

.learning-loop > div { padding: 16px 18px; border-top: 1px solid var(--c-line-strong); border-bottom: 1px solid var(--c-line-strong); }
.learning-loop > i { align-self: center; color: var(--c-accent); font-style: normal; text-align: center; }
.learning-loop small { color: var(--c-accent); font-family: var(--c-mono); font-size: .62rem; }
.learning-loop strong { display: block; margin-top: 8px; color: var(--c-text); font-size: .95rem; }
.learning-loop span { display: block; margin-top: 5px; color: var(--c-text-3); font-size: .7rem; line-height: 1.4; }

.spov-test {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 13px 16px;
  border-left: 2px solid var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-text-2);
  font-size: .84rem;
  line-height: 1.5;
}

.spov-test span { flex: 0 0 auto; color: var(--c-accent-2); font-family: var(--c-mono); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }

.story--demo { min-height: auto; background: radial-gradient(circle at 76% 30%, color-mix(in srgb, var(--c-teal) 7%, transparent), transparent 27rem); }
.showcase-shell { display: grid; grid-template-columns: minmax(270px, .58fr) minmax(0, 1.42fr); overflow: hidden; border: 1px solid var(--c-line-strong); border-radius: 18px 18px 6px 18px; background: var(--c-surface-1); box-shadow: 0 38px 90px -50px var(--c-shadow); }
.showcase-tabs { display: flex; flex-direction: column; padding: 18px; border-right: 1px solid var(--c-line); background: color-mix(in srgb, var(--c-surface-1) 84%, var(--c-inset)); }
.showcase-tab { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 14px; padding: 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--c-text-3); text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.showcase-tab + .showcase-tab { margin-top: 6px; }
.showcase-tab:hover { transform: translateX(2px); background: var(--c-surface-2); }
.showcase-tab.is-active { border-color: color-mix(in srgb, var(--c-accent) 40%, var(--c-line)); background: var(--c-accent-soft); }
.showcase-tab img { width: 82px; height: 66px; border-radius: 6px; object-fit: cover; filter: saturate(.86); }
.showcase-tab.is-active img { filter: none; }
.showcase-tab > span { display: flex; min-width: 0; flex-direction: column; }
.showcase-tab small { color: var(--c-accent); font-family: var(--c-mono); font-size: .58rem; }
.showcase-tab b { margin-top: 3px; overflow: hidden; color: var(--c-text); font-size: .75rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.showcase-tab em { margin-top: 4px; overflow: hidden; color: var(--c-text-3); font-size: .61rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.showcase-no-gpu { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 18px 12px 8px; border-top: 1px solid var(--c-line); }
.showcase-no-gpu > span { width: 9px; height: 9px; border-radius: 50%; background: var(--c-mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-mint) 10%, transparent); }
.showcase-no-gpu p { display: flex; flex-direction: column; }
.showcase-no-gpu b { color: var(--c-text-2); font-size: .68rem; font-weight: 600; }
.showcase-no-gpu small { margin-top: 3px; color: var(--c-text-3); font-size: .58rem; }

.showcase-stage { min-width: 0; padding: clamp(22px, 3vw, 38px); background: var(--c-inset); }
.showcase-stage__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.showcase-stage__top > div > span { color: var(--c-accent); font-family: var(--c-mono); font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }
.showcase-stage__top h3 { margin-top: 5px; color: var(--c-text); font-size: 1.08rem; }
.showcase-stage__badge { padding: 5px 7px; border: 1px solid var(--c-line); border-radius: 5px; color: var(--c-mint); font-family: var(--c-mono); font-size: .57rem; }

.showcase-compare { position: relative; aspect-ratio: 3/2; overflow: hidden; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface-1); }
.showcase-compare > img, .showcase-compare__before, .showcase-compare__before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.showcase-compare__before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.showcase-compare__line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: var(--c-accent); box-shadow: 0 0 12px color-mix(in srgb, var(--c-accent) 55%, transparent); }
.showcase-compare__line::after { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; border: 1px solid var(--c-accent); border-radius: 50%; background: color-mix(in srgb, var(--c-bg) 76%, transparent); content: "↔"; color: var(--c-accent); font-family: var(--c-mono); font-size: 11px; line-height: 32px; text-align: center; transform: translate(-50%, -50%); backdrop-filter: blur(8px); }
.showcase-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.showcase-compare__label { position: absolute; bottom: 12px; padding: 5px 7px; border: 1px solid var(--c-line-strong); border-radius: 5px; background: color-mix(in srgb, var(--c-bg) 74%, transparent); color: var(--c-text-2); font-family: var(--c-mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(7px); }
.showcase-compare__label--before { left: 12px; }
.showcase-compare__label--after { right: 12px; color: var(--c-accent-2); }

.showcase-note { margin: 20px 0 0; padding: 0 0 0 17px; border-left: 2px solid var(--c-accent); color: var(--c-text-2); font-size: clamp(.82rem, 1.2vw, .97rem); line-height: 1.65; }
.showcase-output { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.showcase-output > div { min-width: 0; }
.showcase-output > div span { display: block; margin-bottom: 7px; color: var(--c-text-3); font-size: .61rem; }
.showcase-output code { display: block; overflow-wrap: anywhere; color: var(--c-accent-2); font-family: var(--c-mono); font-size: .62rem; line-height: 1.55; }
.showcase-output a { display: inline-flex; min-height: 39px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--c-accent); border-radius: 7px; color: var(--c-accent-2); font-size: .67rem; font-weight: 650; white-space: nowrap; transition: transform .18s ease, background .18s ease; }
.showcase-output a:hover { transform: translateY(-1px); background: var(--c-accent-soft); }
.showcase-output a .icon { width: 15px; height: 15px; }

.demo-close { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--c-line); }
.demo-close > div > span { color: var(--c-accent); font-family: var(--c-mono); font-size: .65rem; text-transform: uppercase; }
.demo-close p { max-width: 75ch; margin-top: 8px; color: var(--c-text-3); font-size: .77rem; line-height: 1.65; }
.demo-close p b { color: var(--c-text-2); }

.project-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; max-width: var(--content-max); margin: 0 auto; padding: 54px var(--project-gutter) 62px; }
.project-footer > div > p { max-width: 48ch; margin-top: 12px; color: var(--c-text-3); font-size: .7rem; }
.project-footer nav { display: flex; flex-wrap: wrap; gap: 22px; color: var(--c-text-3); font-size: .72rem; }
.project-footer nav a:hover { color: var(--c-accent-2); }

.presentation-hint { position: fixed; right: 22px; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 16px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 7px; background: color-mix(in srgb, var(--c-bg) 86%, transparent); color: var(--c-text-3); font-size: .62rem; opacity: 1; transform: translateY(0); transition: opacity .24s ease, transform .24s ease; backdrop-filter: blur(10px); }
.presentation-hint.is-auto-hidden { opacity: 0; transform: translateY(6px); pointer-events: none; }
.presentation-hint strong { color: var(--c-accent-2); font-family: var(--c-mono); font-size: .62rem; font-weight: 500; }
.presentation-hint span { display: flex; align-items: center; gap: 4px; }
.presentation-hint kbd { min-width: 20px; padding: 2px 4px; border: 1px solid var(--c-line-strong); border-radius: 3px; background: var(--c-surface-2); color: var(--c-text-2); font-family: var(--c-mono); font-size: .57rem; text-align: center; }

html.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1); }
html.has-js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.is-presenting,
.is-presenting body { height: 100%; overflow: hidden; }
.is-presenting .project-header,
.is-presenting .tour-rail,
.is-presenting .project-footer,
.is-presenting .project-scroll-progress { display: none; }
.is-presenting main { height: 100dvh; overflow: hidden; }
.is-presenting .story {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
}
.is-presenting .story.is-active-slide { display: flex; }
.is-presenting .presentation-slide-canvas {
  width: min(calc(100vw - clamp(48px, 7vw, 120px)), var(--content-max));
  margin: 0 auto;
  transform: scale(var(--slide-scale, 1));
  transform-origin: center center;
}
.is-presenting .story--hero > .presentation-slide-canvas { display: block; }
.is-presenting .story--hero .story__inner { width: 100%; }
.is-presenting .hero-actions { display: none; }
.is-presenting .story a,
.is-presenting .story button,
.is-presenting .story input { cursor: pointer; }

/* Deck typography is intentionally larger than the scrolling page. Each slide is
   short enough to keep this type size instead of relying on aggressive scaling. */
.is-presenting .section-intro {
  max-width: 1040px;
  margin-bottom: 30px;
}

.is-presenting .chapter {
  margin-bottom: 16px;
  font-size: .86rem;
}

.is-presenting .section-intro h2 {
  font-size: clamp(3.3rem, 4.8vw, 4.65rem);
}

.is-presenting .section-intro > p:last-child {
  max-width: 78ch;
  margin-top: 16px;
  font-size: 1.2rem;
  line-height: 1.55;
}

.is-presenting .hero-lede { font-size: 1.2rem; line-height: 1.6; }
.is-presenting .frontier-finding p { font-size: .94rem; }
.is-presenting .problem-strip span { font-size: .78rem; }
.is-presenting .problem-strip p { font-size: .88rem; }

.is-presenting .baseline-sheet caption { font-size: .76rem; }
.is-presenting .baseline-sheet th,
.is-presenting .baseline-sheet td { padding: 12px 16px; font-size: .94rem; }
.is-presenting .baseline-sheet thead th { font-size: .7rem; }
.is-presenting .baseline-sheet tbody td strong { font-size: 1.12rem; }
.is-presenting .baseline-sheet tbody td:nth-child(3) b { font-size: .75rem; }
.is-presenting .baseline-takeaway strong { font-size: 1.55rem; }
.is-presenting .baseline-takeaway span { font-size: .73rem; }
.is-presenting .baseline-caveat { font-size: .76rem; }

.is-presenting .flow-lane { padding: 16px 18px; }
.is-presenting .flow-lane header span { font-size: .73rem; }
.is-presenting .flow-lane header p { font-size: .78rem; }
.is-presenting .flow-lane > article { padding: 15px; }
.is-presenting .flow-lane article small { font-size: .66rem; }
.is-presenting .flow-lane article strong { font-size: 1rem; }
.is-presenting .flow-lane article code { font-size: .7rem; }
.is-presenting .flow-bridge { font-size: .72rem; }

.is-presenting .pipeline { gap: 12px; }
.is-presenting .pipeline-node { padding: 20px; }
.is-presenting .pipeline-node__step { font-size: .74rem; }
.is-presenting .pipeline-node h3 { font-size: 1.08rem; }
.is-presenting .pipeline-node p { font-size: 1rem; }
.is-presenting .pipeline-node code { font-size: .84rem; }
.is-presenting .route-chips span { font-size: .65rem; }

.is-presenting .data-notebook__header span { font-size: .68rem; }
.is-presenting .data-notebook__header strong { font-size: .84rem; }
.is-presenting .data-notebook__header p { font-size: .76rem; }
.is-presenting .corpus-funnel { padding: 16px 20px; }
.is-presenting .corpus-funnel small { font-size: .66rem; }
.is-presenting .corpus-funnel span { font-size: .74rem; }
.is-presenting .data-lanes article { min-height: 270px; padding: 28px; }
.is-presenting .data-lanes article.data-lanes__labeling,
.is-presenting .data-lanes article.data-lanes__tokenizer { min-height: 350px; }
.is-presenting .data-lanes__number { font-size: .72rem; }
.is-presenting .data-lanes h3 { margin-top: 14px; font-size: 1.72rem; }
.is-presenting .data-lanes p { margin-top: 12px; font-size: 1rem; line-height: 1.55; }
.is-presenting .data-lanes > article > code { margin-top: 18px; font-size: .75rem; }
.is-presenting .source-tape { margin-top: 18px; }
.is-presenting .source-tape span { font-size: .65rem; }
.is-presenting .caption-stack { margin-top: 18px; }
.is-presenting .caption-stack span,
.is-presenting .caption-stack strong { font-size: .67rem; }
.is-presenting .data-lanes p.margin-note { margin-top: 16px; font-size: .67rem; }
.is-presenting .tokenizer-sketch { margin-top: 18px; }
.is-presenting .tokenizer-sketch b { font-size: 1.32rem; }
.is-presenting .tokenizer-sketch span { font-size: .65rem; }
.is-presenting .data-lanes__tokenizer dl { margin-top: 16px; }
.is-presenting .data-lanes__tokenizer dt { font-size: .9rem; }
.is-presenting .data-lanes__tokenizer dd { font-size: .62rem; }

.is-presenting .story--problems .problem-ledger article { min-height: 245px; padding: 22px; }
.is-presenting .story--problems .problem-ledger article b { font-size: 1.12rem; }
.is-presenting .story--problems .problem-ledger article > p { font-size: .9rem; }
.is-presenting .story--problems .problem-ledger article small { font-size: .68rem; }
.is-presenting .story--problems .problem-ledger .problem-solution p { font-size: .82rem; }

.is-presenting .stack-grid--talk .stack-card { min-height: 220px; padding: 26px; }
.is-presenting .stack-card__index { font-size: .73rem; }
.is-presenting .stack-card h3 { margin-top: 18px; font-size: 1.55rem; }
.is-presenting .stack-card p { margin-top: 12px; font-size: 1rem; line-height: 1.55; }
.is-presenting .stack-card__detail { margin-top: 16px; }
.is-presenting .stack-card__detail code { font-size: .8rem; }
.is-presenting .deploy-diagram { margin-top: 17px; font-size: .76rem; }

.is-presenting .result-metric > span { font-size: .76rem; }
.is-presenting .result-metric small { font-size: .75rem; }
.is-presenting .results-board article { min-height: 215px; }
.is-presenting .results-board article > span { font-size: .73rem; }
.is-presenting .results-board article h3 { font-size: 1.5rem; }
.is-presenting .results-board article p { font-size: 1rem; line-height: 1.55; }

.is-presenting #brainlift .brainlift-document__header { min-height: 78px; padding-block: 14px; }
.is-presenting #brainlift .brainlift-document__header h3 { font-size: 1rem; }
.is-presenting #brainlift .brainlift-document__header p { font-size: .73rem; }
.is-presenting #brainlift .brainlift-document__header dt { font-size: 1.05rem; }
.is-presenting #brainlift .brainlift-document__header dd { font-size: .65rem; }
.is-presenting #brainlift .brainlift-document__body { display: block; min-height: 0; }
.is-presenting #brainlift .brainlift-index { display: none; }
.is-presenting #brainlift .brainlift-page { min-height: 0; padding: 28px 36px; }
.is-presenting #brainlift .brainlift-page__kicker { font-size: .72rem; }
.is-presenting #brainlift .brainlift-page > h3 { margin-top: 14px; font-size: 2rem; }
.is-presenting #brainlift .insight-table { margin-top: 20px; }
.is-presenting #brainlift .insight-table > div { min-height: 58px; }
.is-presenting #brainlift .insight-table span,
.is-presenting #brainlift .insight-table strong { font-size: 1rem; }
.is-presenting #brainlift .brainlift-page__note { display: none; }
.is-presenting #brainlift .brainlift-trace { min-height: 46px; font-size: .65rem; }

.is-presenting #spov-vocabulary .vocabulary-spov blockquote { padding: 26px; }
.is-presenting #spov-vocabulary .vocabulary-spov blockquote p { font-size: 1.9rem; }
.is-presenting #spov-vocabulary .intent-examples q { font-size: 1.05rem; }
.is-presenting #spov-vocabulary .intent-examples span { font-size: .95rem; }
.is-presenting #spov-vocabulary .learning-loop strong { font-size: 1rem; }
.is-presenting #spov-vocabulary .learning-loop span { font-size: .78rem; }
.is-presenting #spov-vocabulary .spov-test { font-size: .93rem; }

.is-presenting #demo .showcase-shell { grid-template-columns: 290px minmax(0, 1fr); }
.is-presenting #demo .showcase-tabs { padding: 14px; }
.is-presenting #demo .showcase-tab { grid-template-columns: 78px 1fr; gap: 12px; padding: 10px; }
.is-presenting #demo .showcase-tab img { width: 78px; height: 63px; }
.is-presenting #demo .showcase-tab b { font-size: .88rem; }
.is-presenting #demo .showcase-tab em { font-size: .7rem; }
.is-presenting #demo .showcase-no-gpu b { font-size: .78rem; }
.is-presenting #demo .showcase-no-gpu small { font-size: .67rem; }
.is-presenting #demo .showcase-stage { padding: 22px; }
.is-presenting #demo .showcase-stage__top h3 { font-size: 1.25rem; }
.is-presenting #demo .showcase-compare { aspect-ratio: 16 / 9; }
.is-presenting #demo .showcase-note { margin-top: 14px; font-size: 1rem; }
.is-presenting #demo .showcase-output { margin-top: 14px; padding-top: 14px; }
.is-presenting #demo .showcase-output code { font-size: .72rem; }

@media (max-width: 1320px) {
  .tour-rail { display: none; }
}

@media (max-width: 1180px) {
  .project-nav a[href="https://github.com/ericrcwu001/SLM"] { display: none; }
  .pipeline { grid-template-columns: repeat(5, minmax(190px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
  .pipeline-arrow { display: none; }
  .corpus-funnel { grid-template-columns: repeat(5, 1fr); }
  .corpus-funnel > i { display: none; }
}

@media (max-width: 1020px) {
  .project-nav a[href="/best-of-n.html"], .project-nav a[href="/dataset.html"], .project-nav a[href="/eval.html"] { display: none; }
  .hero-layout { grid-template-columns: 1fr .72fr; gap: 38px; }
  .hero-copy h1 { font-size: clamp(3.1rem, 7.8vw, 5.7rem); }
  .static-grade figcaption { grid-template-columns: 1fr; gap: 5px; }
  .stack-card, .stack-card--wide { grid-column: span 6; }
  .data-lanes article, .data-lanes article:nth-child(2), .data-lanes article.data-lanes__labeling, .data-lanes article.data-lanes__tokenizer { grid-column: span 12; min-height: 0; border-right: 0; }
  .problem-ledger article { grid-template-columns: 1fr; gap: 8px; }
  .problem-ledger article small { justify-self: start; }
  .showcase-shell { grid-template-columns: 1fr; }
  .showcase-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-right: 0; border-bottom: 1px solid var(--c-line); }
  .showcase-tab + .showcase-tab { margin-top: 0; }
  .showcase-no-gpu { grid-column: 1 / -1; margin-top: 10px; }
}

@media (max-width: 780px) {
  :root { --story-space: 76px; }
  .project-header .brand__tagline { display: none; }
  .project-present-button span { display: none; }
  .project-present-button { width: 36px; padding: 0; }
  .project-header .header__actions { gap: 5px; }
  .project-nav { gap: 14px; }
  .project-nav a { font-size: .7rem; }
  .story { min-height: auto; }
  .story--hero { min-height: calc(100dvh - var(--header-h)); }
  .hero-layout { grid-template-columns: 1fr; }
  .static-grade { width: min(100%, 520px); margin-inline: auto; }
  .static-grade__frame { aspect-ratio: 4/3; }
  .static-grade__range { height: calc(100% - 80px); }
  .problem-strip { grid-template-columns: repeat(3, 1fr); }
  .problem-strip__arrow { display: none !important; }
  .problem-strip p { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .decision-row { grid-template-columns: 1fr; }
  .decision-row article { padding: 0 0 22px; border-bottom: 1px solid var(--c-line); }
  .demo-close { grid-template-columns: 1fr; }
  .evidence-stats { grid-template-columns: 1fr; }
  .project-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --project-gutter: 18px; --project-display: clamp(2.75rem, 14vw, 4.3rem); --project-h2: clamp(2rem, 11vw, 3.4rem); }
  .project-nav a:not([aria-current="page"]):not([href="/"]) { display: none; }
  .project-header .brand__name { font-size: .95rem; }
  .project-header .brand { gap: 7px; }
  .project-header .brand__mark { width: 20px; height: 20px; }
  .chapter b { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .project-cta { width: 100%; }
  .project-text-link { justify-content: center; }
  .frontier-finding { padding-left: 17px; }
  .problem-strip { gap: 15px; }
  .problem-strip strong { font-size: 1.2rem; }
  .problem-strip span { font-size: .58rem; }
  .pipeline { grid-template-columns: repeat(5, 82vw); }
  .stack-card, .stack-card--wide { grid-column: span 12; min-height: 230px; }
  .detail-links { align-items: flex-start; flex-direction: column; }
  .showcase-tabs { grid-template-columns: 1fr; }
  .showcase-tab { grid-template-columns: 74px 1fr; }
  .showcase-tab img { width: 74px; height: 58px; }
  .showcase-output { grid-template-columns: 1fr; align-items: start; }
  .showcase-output a { justify-content: center; width: 100%; }
  .showcase-stage__badge { display: none; }
  .project-footer { padding-inline: 18px; }
  .presentation-hint { display: none !important; }
}

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