:root {
  --surface-0: #16130f;
  --surface-1: #1a1613;
  --surface-2: #211c19;
  --surface-3: #3a332d;
  --surface-raised: #211c19;
  --ink-primary: #fdfbf7;
  --ink-secondary: #d6cfc4;
  --ink-tertiary: #a8a29e;
  --accent: #f59e0b;
  --accent-soft: #fcd34d;
  --accent-wash: rgba(245, 158, 11, 0.12);
  --flag-red: #d52b1e;
  --flag-blue: #0038a8;
  --line: #3a332d;
  --border-soft: #2a241f;
  --border-gold: #4a3f2e;
  --bg-deep: #100e0c;
  --surface-light: #f5efe2;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --shadow-card: 0 30px 60px -30px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--ink-primary);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.hw-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 13px max(24px, calc((100% - 1240px) / 2));
  background: rgba(22,19,15,0.92);
  border-bottom: 1px solid var(--surface-3);
  backdrop-filter: blur(10px);
}
.hw-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.hw-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.hw-nav-links a {
  color: var(--ink-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.hw-nav-links a:hover { color: var(--accent); }
.hw-nav-links a.active { color: var(--accent-soft); }
.nav-label-short { display: none; }
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
}

.hw-hero {
  position: relative;
  color: #fdfbf7;
  background: var(--surface-0);
}
.hw-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0 30px;
}
.hw-hero-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hw-hero-figure {
  position: relative;
  margin: 0;
}
.hw-hero-figure-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -18px;
  width: 6px;
  background: linear-gradient(180deg, var(--flag-red) 0 33.33%, #fff 33.33% 66.66%, var(--flag-blue) 66.66% 100%);
}
.hw-hero-figure-frame {
  padding: 12px;
  border: 1px solid var(--surface-3);
  background: var(--surface-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
  transform: rotate(1deg);
}
.hw-hero-figure-frame img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}
.hw-hero-figure figcaption {
  position: absolute;
  bottom: -14px;
  left: 16px;
  padding: 6px 12px;
  background: var(--accent);
  color: #1c1917;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .06em;
}
.eyebrow {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.5;
}
.hw-hero h1 {
  max-width: 760px;
  margin: 22px 0 22px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.hw-hero h1 em { color: #fcd34d; font-style: italic; }
.hw-hero-lead {
  max-width: 540px;
  margin: 0;
  color: var(--ink-secondary);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--accent);
  color: #1c1917;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); background: #fcd34d; }
.button.secondary {
  border-color: var(--surface-3);
  background: var(--surface-2);
  color: var(--ink-primary);
}
.button.dark { background: var(--ink-primary); }
.button.light {
  border-color: var(--surface-3);
  background: var(--surface-raised);
  color: var(--ink-primary);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1240px, calc(100% - 48px));
  margin: 40px auto 0;
  border-top: 1px solid var(--surface-3);
  border-bottom: 1px solid var(--surface-3);
}
.hero-stat {
  position: relative;
  padding: 26px 24px;
  border-right: 1px solid var(--surface-3);
}
.hero-stat:last-child { border-right: none; }
.hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  background: var(--flag-red);
}
.hero-stat:nth-child(2)::before { background: #ffffff; }
.hero-stat:nth-child(3)::before { background: var(--flag-blue); }
.hero-stat:nth-child(4)::before { background: var(--accent); }
.hero-stat strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-primary);
}
.hero-stat:nth-child(3) strong { color: var(--accent-soft); }
.hero-stat span {
  display: block;
  margin-top: 8px;
  color: var(--ink-tertiary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.story-nav {
  position: sticky;
  top: 64px;
  z-index: 90;
  overflow-x: auto;
  border-bottom: 1px solid var(--surface-3);
  background: rgba(22,19,15,.96);
  scrollbar-width: none;
}
.story-nav::-webkit-scrollbar { display: none; }
.story-nav-inner {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
}
.story-nav a {
  padding: 7px 14px;
  border: 1px solid var(--surface-3);
  border-radius: 100px;
  color: var(--ink-secondary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.story-nav a:hover, .story-nav a.active {
  border-color: var(--accent);
  color: var(--accent);
}

.story-section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}
.story-section.compact { padding: 56px 0; }
.story-section.full-bleed {
  width: 100%;
  max-width: none;
  padding: 64px max(24px, calc((100% - 1240px) / 2));
}
.surface-alt {
  background: var(--bg-deep);
  border-top: 1px solid var(--surface-3);
}
.surface-ink {
  color: #d6cfc4;
  background: #100e0c;
}
.surface-ink .section-kicker { color: #fcd34d; }
.surface-ink .section-lead { color: #c9c1b4; }
.surface-dark {
  color: #d6cfc4;
  background: #0c0a08;
}
.section-kicker {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.surface-dark .section-kicker { color: #fcd34d; }
.section-heading {
  max-width: 880px;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(30px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.1;
}
.section-lead {
  max-width: 820px;
  margin: 20px 0 0;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: var(--ink-primary);
  font-size: 19px;
  line-height: 1.5;
}
.surface-dark .section-lead { color: #c9c1b4; }
.section-rule {
  width: 82px;
  height: 4px;
  margin: 20px 0 0;
  background: linear-gradient(90deg, var(--flag-red) 0 33%, #ffffff 33% 66%, var(--flag-blue) 66%);
}

.challenge-layout,
.split-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 54px;
  margin-top: 48px;
}
.scan-stage {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #0c0a08;
  box-shadow: var(--shadow-card);
}
.scan-stage img {
  width: 100%;
  height: 510px;
  object-fit: cover;
  object-position: center;
  opacity: .86;
  transition: transform .5s ease, filter .4s ease;
}
.scan-stage:hover img { transform: scale(1.03); }
.scan-stage.enhanced img { filter: contrast(1.18) brightness(1.12); }
.scan-stage .scan-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(17,14,11,.82);
  color: white;
  font-size: 12px;
}
.scan-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.scan-control button, .pipeline-demo button, .carousel-controls button {
  padding: 8px 13px;
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink-secondary);
  cursor: pointer;
}
.scan-control button.active, .pipeline-demo button.active {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent);
}
.challenge-list {
  display: grid;
  gap: 14px;
}
.challenge-card {
  padding: 19px 20px;
  border: 1px solid var(--surface-3);
  border-left: 4px solid var(--flag-red);
  border-radius: var(--radius-m);
  background: var(--surface-raised);
}
.challenge-card strong { display: block; margin-bottom: 4px; }
.challenge-card span { color: var(--ink-secondary); font-size: 14px; }


.methodology-slide {
  position: relative;
}
/* Mockup-faithful 9-step header row: big gold number · /9 · mono label · Fraunces title,
   underlined by a hairline rule. The boxed card + step-index dots are flattened away. */
.methodology-step-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 18px;
  row-gap: 6px;
  margin: 0 0 32px;
  padding: 0 0 20px;
  border: none;
  border-bottom: 1px solid var(--surface-3);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.methodology-step-count {
  order: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
/* "Paso" word is redundant in the baseline row (number + /9 carry it) */
.methodology-step-count span { display: none; }
.methodology-step-count strong {
  order: 1;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-soft);
}
.methodology-step-count em {
  order: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-tertiary);
}
.methodology-step-copy {
  display: contents;
}
/* The verb label (Localizar/Digitalizar/…) rides as the gold mono tag in the row */
.methodology-step-copy small {
  order: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.methodology-step-copy h3 {
  order: 3;
  margin: 0;
  color: var(--ink-primary);
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}
.methodology-step-copy p {
  order: 4;
  flex-basis: 100%;
  margin: 14px 0 0;
  max-width: 820px;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.methodology-step-index { display: none; }
.surface-dark .methodology-step-copy h3 { color: #fdfbf7; }
.surface-dark .methodology-step-copy p { color: #c9c1b4; }
.visual-story-head {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: 42px;
}
.story-illustration {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-light);
  box-shadow: var(--shadow-card);
}
.journey-pipeline-illustration {
  margin: 34px 0 6px;
  padding: 18px;
  border-radius: 0;
  background: var(--surface-light);
}
.surface-ink .story-illustration { border-color: rgba(255,255,255,.15); }
.complexity-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 42px;
}
.complexity-scan {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-m);
  background: var(--surface-raised);
  color: var(--ink-secondary);
  cursor: pointer;
  text-align: left;
}
.complexity-scan img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: sepia(.25) saturate(.8);
}
.complexity-scan span { display: block; padding: 9px 10px; font-size: 11px; font-weight: 700; }
.complexity-scan.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(170,111,33,.16); }
.complexity-explainer {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 24px;
  margin-top: 22px;
}
.scan-focus {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: #0c0a08;
}
.scan-focus > img { width: 100%; height: 520px; object-fit: cover; }
.scan-focus > strong {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.8);
  color: #fdfbf7;
  font-size: 12px;
}
.reading-overlay { position: absolute; inset: 0; pointer-events: none; }
.reading-path {
  position: absolute;
  border: 2px solid rgba(239,201,148,.8);
  border-radius: 8px;
  background: rgba(239,201,148,.07);
}
.path-a { inset: 11% 52% 48% 7%; }
.path-b { inset: 10% 7% 47% 53%; border-color: rgba(101,160,255,.8); }
.path-c { inset: 57% 8% 10% 8%; border-color: rgba(213,43,30,.75); }
.ocr-contrast { display: grid; gap: 18px; }
.contrast-card {
  padding: 30px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-2);
}
.contrast-card.success { border-color: var(--border-gold); border-top: 2px solid var(--accent); }
.contrast-card small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contrast-card.failure small { color: var(--ink-tertiary); }
.contrast-card.success small { color: var(--accent); }
.contrast-card h3 { margin: 8px 0 18px; font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; }
.contrast-card ul { margin: 0; padding-left: 19px; color: var(--ink-secondary); font-size: 15px; line-height: 1.55; }
.contrast-card ul li { margin-bottom: 8px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.timeline::before { display: none; }
.timeline-step {
  position: relative;
  z-index: 1;
  min-height: 174px;
  padding: 18px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-m);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}
.timeline-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--flag-blue);
  color: white;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
}
.timeline-step h3 { margin: 0 0 7px; font-size: 15px; }
.timeline-step p { margin: 0; color: var(--ink-secondary); font-size: 13px; }

.experiment-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--surface-3);
  border-bottom: 1px solid var(--surface-3);
}
.experiment-stats div {
  padding: 22px;
  border-right: 1px solid var(--surface-3);
}
.experiment-stats div:last-child { border-right: none; }
.experiment-stats strong { display: block; color: var(--accent-soft); font: 600 30px/1 "Fraunces", Georgia, serif; }
.experiment-stats span { display: block; margin-top: 6px; color: var(--ink-tertiary); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.benchmark-shell {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-2);
  box-shadow: none;
}
.benchmark-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.benchmark-head h3 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 25px; }
.benchmark-head p { max-width: 710px; margin: 7px 0 0; color: var(--ink-secondary); font-size: 13px; }
.benchmark-head label { display: grid; gap: 5px; min-width: 180px; color: var(--ink-secondary); font-size: 11px; font-weight: 700; }
.benchmark-head select {
  padding: 9px 12px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-s);
  background: var(--surface-1);
}
.benchmark-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  margin-top: 22px;
}
.benchmark-page { margin: 0; }
.benchmark-page img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-m); background: var(--surface-2); }
.benchmark-page-missing {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-1);
  color: var(--ink-tertiary);
  font-size: 12px;
  text-align: center;
}
.benchmark-page-missing[hidden] { display: none; }
.benchmark-page figcaption { margin-top: 8px; color: var(--ink-secondary); font-size: 12px; }
.benchmark-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.benchmark-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.benchmark-table th, .benchmark-table td { padding: 11px 9px; border-bottom: 1px solid var(--surface-3); text-align: left; white-space: nowrap; }
.benchmark-table th { color: var(--ink-tertiary); font-size: 10px; text-transform: uppercase; }
.benchmark-table tr.best td { background: #141d2e; }
.benchmark-score { font-weight: 800; color: var(--flag-blue); }
.benchmark-note { margin: 18px 0 0; color: var(--ink-secondary); font-size: 13px; }

.pipeline-visual {
  margin-top: 42px;
}
.pipeline-visual > img {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-light);
  box-shadow: var(--shadow-card);
}
.ocr-pipeline-illustration { min-height: 280px; object-fit: contain; }
.tier-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 36px;
}
.tier {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--surface-3);
  border-top: 2px solid #1f8a5b;
  border-radius: 0;
  background: var(--surface-2);
}
.tier:nth-of-type(2) { border-top-color: var(--accent); }
.tier:nth-of-type(3) { border-top-color: var(--flag-red); }
.tier small {
  color: #6fbf95;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
}
.tier:nth-of-type(2) small { color: var(--accent); }
.tier:nth-of-type(3) small { color: #e07a6b; }
.tier h3 {
  margin: 10px 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}
.tier p { margin: 0; color: var(--ink-secondary); font-size: 14px; line-height: 1.6; }
.tier-rule { display: block; margin-top: 12px; padding-top: 0; border-top: none; color: var(--ink-tertiary); font-size: 13px; line-height: 1.5; }
.tier-arrow { display: none; }
.ocr-output {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  margin-top: 36px;
}
.ocr-output img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 48% 20%;
  border-radius: var(--radius-m);
}
.code-card {
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-m);
  background: #0c0a08;
}
.code-card pre {
  margin: 0;
  color: #c9c1b4;
  font: 13px/1.65 "IBM Plex Mono", monospace;
  white-space: pre-wrap;
}
.code-card .code-key { color: #7cb8ff; }
.code-card .code-note { color: #fcd34d; }

.prompt-test-loop-visual {
  margin-top: 34px;
}
.prompt-test-loop-visual > img {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-light);
  box-shadow: var(--shadow-card);
}
.prompt-test-loop-illustration {
  min-height: 280px;
  object-fit: contain;
}
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.prompt-card {
  padding: 22px 24px;
  border: none;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--bg-deep);
}
.prompt-card h3 {
  margin: 0 0 8px;
  color: var(--ink-primary);
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}
.prompt-card blockquote {
  margin: 0 0 10px;
  padding: 0;
  border-left: none;
  background: transparent;
  color: var(--accent-soft);
  font: italic 500 15px/1.4 "Fraunces", Georgia, serif;
}
.prompt-card p { margin: 0; color: var(--ink-secondary); font-size: 14.5px; line-height: 1.6; }
.prompt-evolution {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
}
.prompt-evolution-step {
  padding: 24px;
  border: 1px solid var(--surface-3);
  background: var(--surface-2);
}
.prompt-evolution-step.selected {
  border-color: var(--border-gold);
  border-top: 2px solid var(--accent);
  background: var(--surface-2);
}
.prompt-evolution-step small, .prompt-evolution-step strong, .prompt-evolution-step span { display: block; }
.prompt-evolution-step small {
  color: var(--ink-tertiary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.prompt-evolution-step.selected small { color: var(--accent); }
.prompt-evolution-step strong {
  margin: 12px 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-primary);
}
.prompt-evolution-step span { color: var(--ink-secondary); font-size: 14px; line-height: 1.6; }

.chunk-strip {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}
.chunk {
  position: relative;
  width: 72%;
  padding: 17px 20px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-m);
  background: var(--surface-raised);
  box-shadow: 0 5px 16px rgba(0,0,0,.04);
}
.chunk:nth-child(2) { margin-left: 14%; }
.chunk:nth-child(3) { margin-left: 28%; }
.chunk::after {
  content: "80";
  position: absolute;
  right: -15px;
  top: -11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--flag-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.embedding-map {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-l);
  background:
    linear-gradient(rgba(0,56,168,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,56,168,.05) 1px, transparent 1px),
    var(--surface-raised);
  background-size: 28px 28px;
}
.concept {
  position: absolute;
  padding: 7px 15px;
  border: 1px solid var(--surface-3);
  border-radius: 100px;
  background: var(--bg-deep);
  color: var(--ink-tertiary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 400;
}
.concept.hot { border-color: var(--border-gold); background: var(--bg-deep); color: var(--accent-soft); }
.concept:nth-child(1) { top: 20%; left: 16%; }
.concept:nth-child(2) { top: 34%; left: 38%; }
.concept:nth-child(3) { top: 57%; left: 24%; }
.concept:nth-child(4) { top: 22%; right: 12%; }
.concept:nth-child(5) { bottom: 18%; right: 22%; }
.concept:nth-child(6) { bottom: 9%; left: 47%; }

.pipeline-demo {
  margin-top: 46px;
  padding: 28px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-l);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.demo-query {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.demo-query input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--ink-primary);
  font: inherit;
}
.search-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.search-lane {
  padding: 18px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-m);
  background: var(--surface-1);
}
.search-lane h3 { margin: 0 0 12px; font-size: 15px; }
.result-chip {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-s);
  background: var(--surface-raised);
  color: var(--ink-secondary);
  font-size: 12px;
}
.result-chip strong { color: var(--ink-primary); }
.fusion-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.fusion-step {
  padding: 15px;
  border-top: 4px solid var(--flag-red);
  background: #211c19;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.fusion-step.active { border-top-color: var(--flag-blue); background: #141d2e; }
.search-architecture {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 32px;
  margin-top: 30px;
}
.search-architecture > img { border-radius: var(--radius-l); box-shadow: var(--shadow-card); }
.search-architecture-copy h3 { margin: 0; font: 600 27px/1.2 "Fraunces", Georgia, serif; }
.search-architecture-copy p { color: var(--ink-secondary); font-size: 14px; }
.corpus-rules { display: flex; flex-wrap: wrap; gap: 8px; }
.corpus-rules span, .tool-ribbon span {
  padding: 7px 14px;
  border: 1px solid var(--surface-3);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-secondary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
}
.method-note { padding: 14px 16px; border-left: 4px solid var(--flag-red); background: var(--surface-1); }

.answer-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--bg-deep);
  box-shadow: none;
}
.answer-card h3 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}
.answer-card p { color: var(--ink-secondary); line-height: 1.7; }
.citation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-m);
  background: var(--surface-0);
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}
.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.evidence {
  padding: 22px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.evidence strong { display: block; margin-bottom: 8px; color: var(--ink-primary); font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 600; }

.feature-grid, .stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.feature-panel, .stack-card {
  padding: 22px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-2);
}
.feature-panel h3, .stack-card h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
}
.feature-panel p, .stack-card p { margin: 0; color: var(--ink-secondary); font-size: 14px; line-height: 1.6; }
.research-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}
.research-modes article { padding: 24px; border: 1px solid var(--surface-3); border-top: 2px solid var(--accent); border-radius: 0; background: var(--bg-deep); }
.research-modes small, .research-modes strong { display: block; }
.research-modes small { color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 400; letter-spacing: .08em; }
.research-modes strong { margin: 10px 0 8px; font-family: "Fraunces", Georgia, serif; font-size: 18px; font-weight: 600; }
.research-modes p { margin: 0; color: var(--ink-secondary); font-size: 14px; line-height: 1.6; }
.tool-ribbon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stack-card small { color: var(--accent); font-weight: 800; text-transform: uppercase; }

.slide-carousel {
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-l);
  background: #0c0a08;
  box-shadow: var(--shadow-card);
}
.slide-track { display: flex; transition: transform .45s ease; }
.slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface-raised);
}
.carousel-controls { display: flex; gap: 8px; }
.carousel-count { color: var(--ink-secondary); font-size: 12px; }

.final-cta {
  text-align: center;
  color: #fdfbf7;
  background:
    linear-gradient(130deg, rgba(17,13,9,.96), rgba(0,56,168,.86)),
    url("/static/r042_f0901.webp") center 28% / cover;
}
.final-cta .section-heading, .final-cta .section-lead { margin-left: auto; margin-right: auto; }
.final-cta .section-lead { color: #c9c1b4; }
.final-cta .hero-actions { justify-content: center; }
.final-memory-visual {
  display: block;
  width: min(100%, 920px);
  margin: 34px auto 8px;
  border: 1px solid rgba(255, 248, 235, .18);
  border-radius: var(--radius-l);
  background: #211c19;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}
.result-climax {
  text-align: center;
}
.result-climax .section-heading,
.result-climax .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.result-visual {
  display: block;
  width: min(100%, 1040px);
  margin: 34px auto 10px;
  padding: 18px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-light);
  box-shadow: var(--shadow-card);
}
.result-climax .hero-actions { justify-content: center; }
.result-climax .button.secondary {
  border-color: var(--surface-3);
  background: var(--surface-2);
  color: var(--ink-primary);
}
.result-climax .button.secondary:hover {
  border-color: var(--border-gold);
  background: var(--surface-2);
  color: var(--ink-primary);
}
.hw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px max(24px, calc((100% - 1240px) / 2));
  border-top: 1px solid var(--surface-3);
  color: var(--ink-tertiary);
  font-size: 13px;
}
.hw-footer span:first-child {
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  color: var(--ink-tertiary);
}
.hw-footer span:last-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: #6f665c;
}

/* --- Before-AI / With-AI woven contrast chip --- */
.aigap {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 32px;
}
.aigap-side {
  padding: 16px 18px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-m);
  background: var(--surface-raised);
}
.aigap-before { border-left: 4px solid var(--ink-tertiary); }
.aigap-after { border-left: 4px solid var(--accent); background: linear-gradient(180deg, rgba(245,158,11,0.18), rgba(245,158,11,0.05)); }
.aigap-side small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.aigap-before small { color: var(--ink-tertiary); }
.aigap-after small { color: var(--accent-soft); }
.aigap-after span { color: var(--ink-primary); }
.aigap-side span { display: block; margin-top: 6px; color: var(--ink-secondary); font-size: 14px; }
.aigap-arrow { display: grid; place-items: center; color: var(--accent); font-size: 22px; font-weight: 700; }
.surface-ink .aigap-side, .surface-dark .aigap-side {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.surface-ink .aigap-after, .surface-dark .aigap-after {
  border-left-color: #65a0ff;
  background: rgba(101,160,255,.12);
}
.surface-ink .aigap-side span, .surface-dark .aigap-side span { color: #c9c1b4; }
.surface-ink .aigap-after small, .surface-dark .aigap-after small { color: #8db9ff; }

/* --- Anchor: interactive "OCR vision" overlay (illustrative reconstruction) --- */
.ocr-vision { margin-top: 46px; }
.ocr-vision-stage {
  position: relative;
  height: min(620px, 80vh);
  aspect-ratio: 5168 / 7456;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-l);
  background: #0c0a08;
  box-shadow: var(--shadow-card);
}
.ocr-vision-scan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ocr-vision-soup {
  position: absolute;
  inset: 9.5% 3.5% 5% 3.5%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  background-image: repeating-linear-gradient(180deg, rgba(213,43,30,.6) 0 2px, transparent 2px 15px);
  mix-blend-mode: screen;
}
.ocr-vision-boxes { position: absolute; inset: 0; pointer-events: none; }
.ovbox {
  position: absolute;
  border: 2px solid;
  border-radius: 5px;
  opacity: 0;
  transition: opacity .35s ease;
}
.ovbox-tag {
  position: absolute;
  top: -1px;
  left: -1px;
  transform: translateY(-100%);
  padding: 2px 6px;
  border-radius: 5px 5px 5px 0;
  color: #fdfbf7;
  font: 700 9px/1.3 "DM Sans", sans-serif;
  white-space: nowrap;
}
.ovbox.t-masthead { border-color: #e8897b; background: rgba(255,107,94,.14); }
.ovbox.t-masthead .ovbox-tag { background: #d52b1e; }
.ovbox.t-article { border-color: #65a0ff; background: rgba(101,160,255,.1); }
.ovbox.t-article .ovbox-tag { background: #0038a8; }
.ovbox.t-table { border-color: #6fbf95; background: rgba(95,206,126,.14); }
.ovbox.t-table .ovbox-tag { background: #1f8a5b; }
.ovbox.t-ad { border-color: #fcd34d; background: rgba(240,185,116,.14); }
.ovbox.t-ad .ovbox-tag { background: #b45309; }
.ocr-vision-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fcd34d;
  font: 700 11px "DM Sans", sans-serif;
  opacity: 0;
  transition: opacity .4s ease;
}
.ocr-vision-stage.mode-lines .ocr-vision-soup { opacity: 1; }
.ocr-vision-stage.mode-structure .ovbox { opacity: 1; }
.ocr-vision-stage.mode-structure .ocr-vision-badge { opacity: 1; }
.ocr-vision-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ocr-vision-controls button {
  border: 1px solid var(--surface-3);
  background: var(--surface-raised);
  color: var(--ink-secondary);
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.ocr-vision-controls button.active {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent);
}
.ocr-vision-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 16px; }
.ocr-vision-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-secondary); font-size: 11px; }
.ocr-vision-legend i { width: 12px; height: 12px; border-radius: 3px; }
.ocr-vision-caption { margin: 14px auto 0; max-width: 640px; color: var(--ink-tertiary); font-size: 11px; text-align: center; }

/* --- Benchmark small-multiples chart --- */
.benchmark-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 24px;
}
.bm-multiple { min-width: 0; }
.bm-multiple h4 {
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink-secondary);
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bm-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 92px;
  padding: 7px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-s);
  background: var(--surface-1);
}
.bm-bar { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: #3a332d; }
.bm-bar.best { background: var(--flag-blue); }
.benchmark-chart-note { margin: -10px 0 22px; color: var(--ink-tertiary); font-size: 11px; }
.benchmark-loading {
  display: grid;
  place-items: center;
  min-height: 110px;
  color: var(--ink-tertiary);
  font-size: 12px;
}

.carousel-controls button:focus-visible,
.ocr-vision-controls button:focus-visible,
.scan-control button:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].visible { opacity: 1; transform: none; }

@media print {
  .hw-nav, .story-nav, .scan-control, .pipeline-demo, .slide-carousel,
  .ocr-vision-controls, .ocr-vision-soup, .language-toggle, .hero-actions,
  .carousel-bar { display: none !important; }
  body, .hw-hero, .surface-ink, .surface-dark, .final-cta {
    color: #0c0a08 !important;
    background: #211c19 !important;
  }
  .hw-hero::before, .final-cta::before { display: none !important; }
  .hw-hero { background-image: none !important; }
  .final-cta { background: #211c19 !important; }
  .story-section, .story-section.full-bleed { width: 100%; padding: 22px 0; }
  .challenge-layout, .split-layout, .ocr-output, .visual-story-head,
  .complexity-explainer, .pipeline-visual, .search-architecture, .aigap,
  .timeline, .prompt-grid, .feature-grid, .stack-grid, .benchmark-chart, .methodology-step-card {
    grid-template-columns: 1fr !important;
  }
  * { box-shadow: none !important; }
}

@media (max-width: 900px) {
  .hw-nav { padding: 10px 20px; }
  .hw-nav-links a:not(.active) { display: none; }
  .hw-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hw-hero-figure-bar { display: none; }
  .hw-hero-figure-frame { transform: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .tier-flow { grid-template-columns: 1fr; }
  .challenge-layout, .split-layout, .ocr-output, .visual-story-head, .complexity-explainer,
  .pipeline-visual, .search-architecture, .methodology-step-card { grid-template-columns: 1fr; }
  .complexity-gallery { grid-template-columns: repeat(3, 1fr); }
  .benchmark-layout { grid-template-columns: 180px 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .tier-flow { grid-template-columns: 1fr; gap: 12px; }
  .tier-arrow { transform: rotate(90deg); height: 34px; }
  .prompt-grid, .feature-grid, .stack-grid { grid-template-columns: 1fr 1fr; }
  .story-nav-inner { justify-content: flex-start; }
  .aigap { grid-template-columns: 1fr; }
  .aigap-arrow { transform: rotate(90deg); }
  .benchmark-chart { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .hw-nav { gap: 10px; padding: 8px 12px; }
  .hw-brand { font-size: 16px; }
  .hw-nav-links { gap: 8px; }
  .hw-nav-links a { font-size: 12px; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .language-toggle { gap: 5px; padding: 6px 8px; }
  .hw-hero { min-height: auto; }
  .hw-hero-inner { width: min(100% - 32px, 1180px); padding: 92px 0 64px; }
  .hw-hero h1 { font-size: 45px; }
  .hero-stats { margin-top: 48px; }
  .hero-stat { padding: 14px; }
  .hero-stat strong { font-size: 24px; }
  .story-section { width: min(100% - 32px, 1160px); padding: 72px 0; }
  .story-section.full-bleed { padding: 72px 16px; }
  .section-heading { font-size: 37px; }
  .section-lead { font-size: 16px; }
  .scan-stage, .scan-stage img { min-height: 390px; height: 390px; }
  .timeline, .prompt-grid, .feature-grid, .stack-grid, .search-lanes, .evidence-strip,
  .experiment-stats, .prompt-evolution, .research-modes, .benchmark-layout, .methodology-step-index {
    grid-template-columns: 1fr;
  }
  .complexity-gallery { grid-template-columns: repeat(2, 1fr); }
  .complexity-scan img { height: 120px; }
  .benchmark-chart { grid-template-columns: repeat(2, 1fr); }
  .ocr-vision-stage { height: min(520px, 72vh); }
  .scan-focus, .scan-focus > img { min-height: 420px; height: 420px; }
  .benchmark-head { align-items: stretch; flex-direction: column; }
  .benchmark-shell { min-width: 0; padding: 18px; overflow: hidden; }
  .benchmark-table-wrap { width: 100%; }
  .benchmark-page img { height: 420px; object-position: top; }
  .fusion-row { grid-template-columns: repeat(2, 1fr); }
  .chunk { width: 86%; }
  .chunk:nth-child(2) { margin-left: 7%; }
  .chunk:nth-child(3) { margin-left: 14%; }
  .hw-footer { flex-direction: column; padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ===== Original V2 explanatory rebuild ===== */
.locked-image-layout,
.embedding-research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: center;
  margin-top: 36px;
}
.locked-image-visual {
  position: relative;
  min-height: 500px;
  padding: 22px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-s);
  background: #100e0c;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(22, 27, 37, .18);
}
.locked-file {
  position: relative;
  height: 380px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-s);
  background: #100e0c;
  overflow: hidden;
}
.locked-file img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.18) contrast(1.08);
}
.file-tab,
.lock-badge {
  position: absolute;
  left: 16px;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}
.file-tab {
  top: 16px;
  background: rgba(22,19,15,.92);
  color: var(--ink-primary);
}
.lock-badge {
  bottom: 16px;
  background: #d52b1e;
  color: #fdfbf7;
}
.image-search-box {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100% - 44px));
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-s);
  background: rgba(22,19,15,.92);
  color: var(--ink-primary);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.image-search-box span,
.image-search-box strong { display: block; }
.image-search-box span {
  color: var(--ink-tertiary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.image-search-box strong { margin-top: 4px; color: var(--flag-red); }
.locked-copy h3,
.model-verdict h3,
.embedding-copy h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
}
.locked-copy p,
.model-verdict p,
.embedding-copy p { color: var(--ink-secondary); }
.manual-research-grid,
.model-discovery-flow,
.embedding-benefits {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.manual-research-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.manual-research-grid article,
.model-discovery-flow article {
  padding: 22px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-2);
}
.manual-research-grid small,
.model-discovery-flow small,
.model-verdict small {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.manual-research-grid strong,
.manual-research-grid span,
.model-discovery-flow strong,
.model-discovery-flow span { display: block; }
.manual-research-grid strong,
.model-discovery-flow strong { margin: 8px 0; font-family: "Fraunces", Georgia, serif; font-size: 19px; font-weight: 600; }
.manual-research-grid span,
.model-discovery-flow span { color: var(--ink-secondary); font-size: 14px; line-height: 1.6; }
.manual-research-grid article:nth-child(3) {
  border-color: var(--border-gold);
  border-top: 2px solid var(--accent);
}
.manual-research-grid article:nth-child(3) small { color: var(--accent); }
.traditional-ocr-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #100e0c;
}
.traditional-ocr-visual img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  opacity: .76;
  filter: grayscale(.15) contrast(1.12);
}
.ocr-box,
.ocr-warning {
  position: absolute;
  border-radius: var(--radius-s);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}
.ocr-box {
  border: 2px solid #fcd34d;
  background: rgba(239, 201, 148, .12);
  color: #fdfbf7;
  padding: 6px 8px;
}
.box-a { top: 14%; left: 8%; width: 32%; height: 20%; }
.box-b { top: 38%; left: 12%; width: 34%; height: 32%; }
.box-c { top: 20%; right: 8%; width: 32%; height: 46%; }
.ocr-line {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: #d52b1e;
  transform-origin: left center;
}
.line-a { top: 31%; left: 39%; width: 28%; transform: rotate(24deg); }
.line-b { top: 62%; left: 42%; width: 33%; transform: rotate(-18deg); }
.ocr-warning {
  right: 18px;
  bottom: 18px;
  padding: 9px 11px;
  background: #d52b1e;
  color: #fdfbf7;
}
.model-discovery-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.model-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 48px;
  align-items: center;
  margin-top: 36px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.model-verdict h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.18;
}
.verdict-bars {
  display: grid;
  gap: 10px;
}
.verdict-bars span {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1.6fr) 52px;
  gap: 14px;
  align-items: center;
  color: var(--ink-primary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  font-weight: 400;
}
.verdict-bars i {
  height: 22px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent) calc(var(--score) * 1%), var(--surface-2) 0);
}
.verdict-bars span:nth-child(n+2) i {
  background: linear-gradient(90deg, #8a6d3b calc(var(--score) * 1%), var(--surface-2) 0);
}
.verdict-bars span:nth-child(n+4) i {
  background: linear-gradient(90deg, #5c5048 calc(var(--score) * 1%), var(--surface-2) 0);
}
.verdict-bars em {
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  text-align: right;
}
.prompt-instruction-visual,
.search-fusion-visual,
.grounded-answer-visual {
  display: grid;
  align-items: stretch;
  gap: 14px;
  margin-top: 34px;
}
.prompt-instruction-visual {
  grid-template-columns: minmax(260px, 1.3fr) auto minmax(180px, .7fr) auto minmax(200px, .8fr);
}
.prompt-console,
.prompt-model-card,
.prompt-output-card,
.answer-flow-step {
  padding: 20px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-s);
  background: var(--surface-raised);
  box-shadow: 0 8px 24px rgba(43, 38, 32, .07);
}
.prompt-console { background: #100e0c; color: #d6cfc4; }
.prompt-console small,
.prompt-console code { display: block; }
.prompt-console small {
  color: #fcd34d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.prompt-console code {
  margin-top: 10px;
  color: #d6cfc4;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  white-space: normal;
}
.prompt-model-card,
.prompt-output-card {
  display: grid;
  align-content: center;
}
.prompt-model-card strong,
.prompt-output-card strong,
.answer-flow-step strong { font-family: "Fraunces", Georgia, serif; font-size: 22px; line-height: 1.1; }
.prompt-model-card span,
.prompt-output-card span,
.answer-flow-step span { margin-top: 8px; color: var(--ink-secondary); font-size: 13px; }
.prompt-arrow,
.answer-flow-arrow {
  display: grid;
  place-items: center;
  color: var(--flag-red);
  font-size: 28px;
  font-weight: 800;
}
.embedding-research-layout {
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr) minmax(260px, .9fr);
}
.embedding-query-card {
  padding: 28px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-2);
}
.embedding-query-card small,
.embedding-query-card strong,
.embedding-query-card span { display: block; }
.embedding-query-card small { color: var(--ink-tertiary); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.embedding-query-card strong { margin: 8px 0; font-family: "Fraunces", Georgia, serif; font-size: 24px; line-height: 1.12; }
.embedding-query-card span { color: var(--ink-secondary); }
.embedding-space-visual {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-s);
  background:
    radial-gradient(circle at 42% 44%, rgba(0, 56, 168, .16), transparent 32%),
    radial-gradient(circle at 72% 64%, rgba(180, 83, 9, .12), transparent 30%),
    var(--surface-raised);
  overflow: hidden;
}
.embedding-space-visual::before,
.embedding-space-visual::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(0, 56, 168, .22);
  border-radius: 50%;
}
.embedding-space-visual::before { inset: 55px 120px 80px 60px; }
.embedding-space-visual::after { right: 34px; bottom: 42px; width: 190px; height: 150px; border-color: rgba(180, 83, 9, .24); }
.embedding-space-visual .concept { position: absolute; }
.c1 { top: 28%; left: 22%; }
.c2 { top: 43%; left: 33%; }
.c3 { top: 57%; left: 20%; }
.c4 { top: 35%; left: 50%; }
.c5 { right: 16%; bottom: 29%; }
.c6 { right: 28%; bottom: 16%; }
.c7 { left: 12%; bottom: 13%; }
.c8 { right: 10%; top: 13%; }
.embedding-benefits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.embedding-benefits span {
  padding: 12px 14px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--bg-deep);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 400;
}
.search-fusion-visual {
  grid-template-columns: minmax(160px, .7fr) minmax(0, 1.4fr) minmax(160px, .7fr) minmax(180px, .8fr);
}
.search-query-node,
.rerank-node,
.source-packet-node,
.search-paths article {
  padding: 18px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-s);
  background: var(--surface-raised);
  box-shadow: 0 8px 24px rgba(43, 38, 32, .07);
}
.search-query-node,
.rerank-node,
.source-packet-node {
  display: grid;
  align-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
  text-align: center;
}
.search-query-node span,
.rerank-node span,
.source-packet-node span { display: block; margin-top: 8px; color: var(--ink-secondary); font-family: "DM Sans", sans-serif; font-size: 13px; }
.search-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.search-paths small,
.answer-flow-step small {
  color: var(--ink-tertiary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.search-paths strong { display: block; margin: 6px 0; }
.search-paths span { color: var(--ink-secondary); font-size: 13px; }
.search-query-visual {
  margin-top: 34px;
}
.search-query-visual > img {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--surface-3);
  border-radius: 0;
  background: var(--surface-light);
  box-shadow: var(--shadow-card);
}
.search-query-illustration {
  display: block;
  min-height: 280px;
  object-fit: contain;
}
.grounded-answer-visual {
  grid-template-columns: minmax(170px, .9fr) auto minmax(180px, 1fr) auto minmax(180px, 1fr) auto minmax(190px, 1fr);
}
.answer-flow-step {
  display: grid;
  align-content: center;
  min-height: 150px;
}
.answer-flow-step.llm { border-color: var(--border-gold); border-top: 2px solid var(--accent); background: var(--surface-2); }
.answer-flow-step.cited { border-color: var(--surface-3); background: var(--surface-2); }
.answer-flow-step.llm small { color: var(--accent); }
@media (max-width: 1080px) {
  .locked-image-layout,
  .model-verdict,
  .embedding-research-layout,
  .search-fusion-visual,
  .grounded-answer-visual { grid-template-columns: 1fr; }
  .model-discovery-flow,
  .manual-research-grid,
  .search-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-instruction-visual { grid-template-columns: 1fr; }
  .prompt-arrow,
  .answer-flow-arrow { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .locked-image-visual { min-height: 420px; padding: 16px; }
  .locked-file { height: 300px; }
  .manual-research-grid,
  .model-discovery-flow,
  .search-paths,
  .embedding-benefits { grid-template-columns: 1fr; }
  .traditional-ocr-visual,
  .traditional-ocr-visual img { min-height: 340px; height: 340px; }
  .verdict-bars span { grid-template-columns: 1fr; gap: 5px; }
  .verdict-bars em { text-align: left; }
  .embedding-space-visual { min-height: 340px; }
  .search-query-node,
  .rerank-node,
  .source-packet-node { font-size: 21px; }
}
