/* Stage 3 only: technical editorial / restrained instrument.
   Loaded only by Product, Applications, Research, Company, Evaluate. */
body.stage3 {
  --bg: #0a0b0d;
  --bg-subtle: #101216;
  --bg-card: #0f1115;
  --bg-elev: #15181d;
  --text: #e9e7e2;
  --muted: #b5b6bc;
  --faint: #a0a3ac;
  --border: #30343d;
  --accent: #d9a441;
  --accent-fg: #e8bd6a;
  --link: #e8bd6a;
  --font: "Space Grotesk", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", monospace;
  min-height: 100dvh;
}
.stage3 main { display: block; }
.stage3 .page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 2.8rem; }
.stage3 .page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.08; max-width: 23ch; margin: 1rem 0 1.4rem; font-weight: 400; }
.stage3 .page-hero .lede { max-width: 64ch; font-size: 1.12rem; }
.stage3 .page-hero .cta-row { margin: 1.6rem 0 0; }
.stage3 section { padding: clamp(2.2rem, 5vw, 4rem) 0; }
.stage3 h2 { margin-top: 0; font-weight: 400; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.stage3 h3 { font-family: var(--font); font-weight: 600; }
.stage3 p + p { margin-top: .85rem; }
.stage3 .sub, .stage3 .method { color: var(--faint); }
.stage3 .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 1.6rem; align-items: start; }
.stage3 .section-head > p { max-width: 54ch; }
.stage3 .index { font-family: var(--mono); color: var(--accent); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.stage3 .jump-links { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; padding-top: 1.4rem; margin-top: 2rem; border-top: 1px solid var(--border); font-size: .88rem; }
.stage3 .capability { display: grid; grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.6fr); gap: 2.5rem; padding: 1.8rem 0; border-top: 1px solid var(--border); }
.stage3 .capability:last-child { border-bottom: 1px solid var(--border); }
.stage3 .capability h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 400; margin-bottom: .65rem; }
.stage3 .status-label { display: inline-block; color: var(--accent-fg); border: 1px solid #51432b; padding: .2rem .5rem; font: .68rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.stage3 .status-label.research { color: var(--faint); border-color: var(--border); }
.stage3 .sources { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-size: .88rem; }
.stage3 main p a, .stage3 .sources a, .stage3 .archive a, .stage3 .jump-links a { text-decoration: underline; text-underline-offset: .22em; }
.stage3 .boundary { background: var(--bg-subtle); border: 1px solid var(--border); border-left: 2px solid var(--accent); padding: 1.1rem 1.3rem; margin-top: 1.5rem; font-size: .94rem; color: var(--muted); }
.stage3 .card { padding: 1.5rem; }
.stage3 .card h3 { font-size: 1.08rem; }
.stage3 .grid-2 { margin-top: 1.25rem; }
.stage3 .steps { list-style: none; counter-reset: step; margin-top: 1.4rem; }
.stage3 .steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--border); }
.stage3 .steps li::before { content: "0" counter(step); color: var(--accent); font: .9rem var(--mono); padding-top: .15rem; }
.stage3 .steps h3 { margin-bottom: .35rem; }
.stage3 .steps p { max-width: 70ch; }
.stage3 details { margin-top: 1.2rem; border: 1px solid var(--border); padding: 1.1rem 1.3rem; }
.stage3 summary { cursor: pointer; color: var(--text); font-weight: 600; }
.stage3 .archive { list-style: none; margin-top: 1rem; }
.stage3 .archive li { border-top: 1px solid var(--border); padding: 1rem 0; font-size: .92rem; }
.stage3 .archive li p { margin-top: .4rem; }
.stage3 .historical-research section { padding: 1.3rem 0; }
.stage3 .historical-research section .wrap { padding-inline: 0; }
.stage3 .historical-research .metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stage3 .ghl-form-wrap { margin-top: 1.5rem; background: var(--bg-subtle); }
.stage3 a:focus-visible, .stage3 button:focus-visible, .stage3 summary:focus-visible, .stage3 iframe:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 5px; }
.stage3 .nav-links a.cta-nav[aria-current="page"] { color: var(--nav-btn-fg); }
.stage3 .btn { transition: none; }
.stage3 [id] { scroll-margin-top: 6rem; }
@media (max-width: 767px) {
  .stage3 .section-head, .stage3 .capability, .stage3 .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stage3 .section-head { gap: .6rem; }
  .stage3 .capability { gap: 1rem; }
  .stage3 .wrap { padding-inline: 1.25rem; }
  .stage3 .cta-row { gap: .65rem; }
  .stage3 .btn { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .stage3 { scroll-behavior: auto; }
  html:has(body.stage3) { scroll-behavior: auto; }
}
