:root {
  --ink: #17212b;
  --muted: #687480;
  --line: #d9dfe4;
  --line-strong: #bbc5cd;
  --paper: #f7f8f8;
  --white: #ffffff;
  --accent: #1c5fd4;
  --accent-soft: #edf3ff;
  --dark: #101820;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(23, 33, 43, .035) 1px, transparent 1px);
  background-size: 80px 100%;
  content: "";
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 128px 0; border-bottom: 1px solid var(--line); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 8px 12px; background: var(--dark); color: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(187, 197, 205, .8);
  background: rgba(247, 248, 248, .94);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; background: var(--accent); color: var(--white); font-family: var(--mono); font-size: 15px; }
nav { display: flex; align-items: center; gap: 30px; font-family: var(--mono); font-size: 12px; }
nav a { color: var(--muted); }
nav a:hover, nav a:focus-visible { color: var(--accent); }
.nav-github { padding: 8px 12px; border: 1px solid var(--line-strong); color: var(--ink); }

.eyebrow { display: flex; justify-content: space-between; margin-bottom: 50px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.hero { padding-top: 80px; }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 72px; align-items: start; }
.section-number { margin: 0 0 20px; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .09em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 36px; font-size: clamp(42px, 5vw, 68px); line-height: 1.18; letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.25; letter-spacing: -.045em; }
.requirement-block { display: grid; grid-template-columns: 52px 1fr; gap: 12px; margin-bottom: 32px; padding: 20px 0; border-block: 1px solid var(--line); }
.requirement-block > span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.requirement-block p { margin: 0; font-size: 19px; font-weight: 650; line-height: 1.6; }
.hero-lede { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.mobile-only { display: none; }

.hero-console { overflow: hidden; border: 1px solid #29343e; background: var(--dark); box-shadow: 14px 14px 0 #d9e2ed; color: #e7edf2; }
.console-bar { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #34414c; color: #8fa0af; font-family: var(--mono); font-size: 10px; }
.status-dot { display: flex; align-items: center; gap: 7px; }
.status-dot i { width: 6px; height: 6px; border-radius: 50%; background: #f6ba4c; box-shadow: 0 0 0 3px rgba(246, 186, 76, .12); }
.implementation-path { display: flex; align-items: center; justify-content: space-between; padding: 25px 22px; border-bottom: 1px solid #34414c; font-family: var(--mono); font-size: 11px; }
.implementation-path b { color: #61717f; font-weight: 400; transform: rotate(-90deg); }
.console-section { padding: 24px 26px; }
.console-section + .console-section { border-top: 1px solid #34414c; }
.console-label { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #d8e0e6; font-size: 12px; font-weight: 700; }
.console-label span { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid #f6ba4c; color: #f6ba4c; font-family: var(--mono); }
.questions ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.questions li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; color: #b9c4cc; font-size: 13px; line-height: 1.6; }
.questions li b { color: #687887; font-family: var(--mono); font-size: 10px; }
.observed-mini .console-label span { border-color: #55b88a; color: #55b88a; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { padding: 5px 9px; border: 1px solid #394a57; color: #91a2af; font-family: var(--mono); font-size: 10px; }
.hero-statement { display: grid; grid-template-columns: .88fr 1.12fr; gap: 72px; align-items: center; margin-top: 82px; padding-top: 30px; border-top: 2px solid var(--ink); }
.hero-statement p { margin: 0; }
.hero-statement p:first-child { font-size: clamp(26px, 3vw, 42px); font-weight: 750; letter-spacing: -.04em; }
.hero-statement p:first-child span { margin: 0 12px; color: var(--accent); font-family: var(--mono); font-weight: 400; }
.hero-statement p:last-child { color: var(--muted); font-size: 15px; }

.section-heading { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: end; margin-bottom: 70px; }
.scenario { padding-top: 104px; }
.scenario .section-heading { margin-bottom: 54px; }
.heading-note { margin: 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 13px; }
.heading-note b { color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }

.stepper { border: 1px solid var(--line-strong); background: var(--white); }
.step-list { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
.step-button { min-width: 0; padding: 16px 13px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 10px; text-align: left; }
.step-button:last-child { border-right: 0; }
.step-button span { display: block; margin-bottom: 12px; color: var(--line-strong); font-size: 10px; }
.step-button:hover { background: #fafbfc; color: var(--ink); }
.step-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.step-button.is-active { background: var(--accent); color: var(--white); }
.step-button.is-active span { color: #bcd0f6; }
.step-panel { min-height: 315px; }
.step-panel-meta { display: flex; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; }
.step-panel-body { display: grid; grid-template-columns: 1fr .85fr; gap: 80px; align-items: start; padding: 45px; }
.step-kicker { margin-bottom: 15px; color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.step-panel h3 { margin: 0; font-size: 27px; line-height: 1.5; letter-spacing: -.025em; }
.step-panel-body > p { margin: 0; color: var(--muted); font-size: 14px; }
.step-evidence { display: flex; gap: 22px; align-items: center; margin: 0 45px 35px; padding: 13px 16px; background: #f2f5f7; font-family: var(--mono); font-size: 11px; }
.step-evidence span { color: var(--muted); text-transform: uppercase; }
.step-evidence code { color: var(--accent); }
.step-evidence > p { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 650; }
.conceptual-path { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.conceptual-path b, .conceptual-tags b { padding: 4px 7px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 9px; font-weight: 600; }
.conceptual-path i { color: var(--accent); font-style: normal; }
.conceptual-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.comparison { display: grid; grid-template-columns: .72fr 1.28fr; margin-top: 88px; border-block: 1px solid var(--line-strong); }
.comparison-intro { padding: 52px 48px 52px 0; border-right: 1px solid var(--line-strong); }
.comparison-intro h3 { margin: 0 0 60px; font-size: 27px; line-height: 1.5; letter-spacing: -.03em; }
.tab-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); }
.tab-switch button { padding: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 10px; }
.tab-switch button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tab-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.comparison-panel { padding: 52px 0 52px 55px; }
.comparison-panel[hidden] { display: none; }
.panel-heading { display: flex; justify-content: space-between; margin-bottom: 28px; font-family: var(--mono); font-size: 10px; }
.panel-index { color: var(--muted); }
.assumption-badge, .observed-badge { padding: 3px 8px; background: #f4ead2; color: #835e16; }
.observed-badge { background: var(--accent-soft); color: var(--accent); }
.comparison-panel h4 { margin-bottom: 20px; font-size: 17px; }
.assumption-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 25px; padding: 0; list-style: none; }
.assumption-list li { padding: 13px 15px; border: 1px solid var(--line); color: #4c5965; font-size: 13px; }
.assumption-list code { color: var(--ink); font-family: var(--mono); }
.assumption-list span { margin: 0 7px; color: var(--muted); }
.panel-footnote { margin: 0; color: var(--muted); font-size: 12px; }
.with-lede { max-width: 600px; margin-bottom: 24px; color: var(--ink); font-size: 14px; font-weight: 650; }
.authority-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.authority-column { padding: 20px; border: 1px solid var(--line); border-top: 3px solid #23835a; background: #f3f6f8; }
.authority-column.decision-column { border-color: #cbd8ec; border-top-color: var(--accent); background: var(--accent-soft); }
.authority-column-heading { min-height: 68px; margin-bottom: 10px; }
.authority-column-heading span, .authority-column-heading strong { display: block; }
.authority-column-heading span { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.authority-column-heading span b { margin-right: 7px; color: var(--ink); font-size: 12px; }
.authority-column-heading strong { margin-top: 10px; font-size: 12px; }
.authority-column-heading strong i { margin-right: 6px; font-family: var(--mono); font-style: normal; }
.small-check, .small-alert { color: #23835a; }
.small-alert { color: var(--accent); }
.authority-list { margin: 0; padding: 0; list-style: none; }
.authority-list li { padding: 9px 0; border-top: 1px solid rgba(187, 197, 205, .65); color: #52606b; font-size: 11px; }
.authority-list code { color: var(--ink); font-family: var(--mono); font-size: 10px; }
.authority-principle { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 16px 18px; border-left: 2px solid var(--accent); background: var(--white); }
.authority-principle span { color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 700; }
.authority-principle p { margin: 0; color: var(--muted); font-size: 11px; }

.reference { background: var(--white); }
.reference-meta { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--paper); font-family: var(--mono); }
.reference-meta span { color: var(--muted); font-size: 10px; }
.reference-meta code { overflow-wrap: anywhere; font-size: 11px; }
.reference-overview { display: grid; grid-template-columns: .68fr 1.32fr; gap: 72px; margin-bottom: 72px; }
.reference-copy { color: var(--muted); font-size: 15px; }
.reference-copy b { color: var(--ink); }
.reference-copy i { color: var(--ink); font-family: var(--mono); font-size: 12px; font-style: normal; }
.reference-subhead { display: grid; grid-template-columns: 30px 1fr; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.reference-subhead > span { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.reference-subhead b { display: block; margin-bottom: 4px; font-size: 16px; }
.reference-subhead p { margin: 0; color: var(--muted); font-size: 11px; }
.surface-path { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr; align-items: center; }
.surface-path > div { min-height: 140px; padding: 17px 14px; border-top: 2px solid var(--ink); background: var(--paper); }
.surface-path span, .surface-path small { display: block; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.surface-path b { display: block; margin: 24px 0 8px; font-size: 12px; }
.surface-path small { font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.surface-path i { color: var(--accent); font-family: var(--mono); font-style: normal; text-align: center; transform: rotate(-90deg); }
.decision-story { display: grid; grid-template-columns: 1fr 84px 1fr; align-items: stretch; margin-bottom: 32px; }
.decision-stage { display: flex; flex-direction: column; min-height: 390px; padding: 30px; border: 1px solid var(--line-strong); border-top: 3px solid #b7862f; background: var(--white); }
.aligned-stage { border-top-color: var(--accent); background: var(--accent-soft); }
.story-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; font-family: var(--mono); font-size: 10px; }
.story-meta span { color: var(--accent); }
.story-meta b { font-size: 11px; }
.decision-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.decision-list li { padding: 13px 0; border-top: 1px solid var(--line); }
.decision-list strong, .decision-list span { display: block; }
.decision-list strong { margin-bottom: 5px; font-size: 13px; }
.decision-list span { color: var(--muted); font-size: 11px; }
.decision-list code { font-family: var(--mono); font-size: 10px; }
.resolved-list strong { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.artifact-inline-link { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--accent); font-family: var(--mono); font-size: 10px; }
.artifact-inline-link span, .package-link span { float: right; }
.story-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 8px; line-height: 1.4; text-align: center; }
.story-arrow b { color: var(--accent); font-size: 20px; }
.scope-note { margin: auto 0 0; padding: 14px 16px; border-left: 2px solid var(--accent); background: rgba(255, 255, 255, .65); color: var(--muted); font-size: 10px; }
.handoff-block { padding: 34px; border: 1px solid var(--line-strong); background: var(--dark); color: #e7edf2; }
.handoff-heading { display: grid; grid-template-columns: 36px 1fr; gap: 18px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #34414c; }
.handoff-heading > span { color: #83adfa; font-family: var(--mono); font-size: 10px; }
.handoff-heading p { margin: 0 0 7px; color: #83adfa; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.handoff-heading h3 { margin: 0 0 8px; font-size: 28px; }
.handoff-heading small { color: #9baab5; font-size: 11px; }
.handoff-grid { display: grid; grid-template-columns: .9fr 1.15fr 1.15fr; gap: 0; }
.handoff-grid > div { padding: 0 24px; border-right: 1px solid #34414c; }
.handoff-grid > div:first-child { padding-left: 0; }
.handoff-grid > div:last-child { padding-right: 0; border-right: 0; }
.handoff-grid h4 { color: #8e9ca7; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.handoff-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #bdc8d0; font-size: 10px; }
.handoff-grid code { color: #e7edf2; font-family: var(--mono); }
.handoff-tests ul { grid-template-columns: 1fr 1fr; }
.handoff-tests li::before { margin-right: 6px; color: #55b88a; content: "✓"; }
.package-link { display: block; margin-top: 28px; padding-top: 17px; border-top: 1px solid #34414c; color: #83adfa; font-family: var(--mono); font-size: 10px; }
.reference-summary { margin: 26px 0 0; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.text-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; font-family: var(--mono); font-size: 11px; }
.text-links a { padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); }
.text-links a:hover, .text-links a:focus-visible { border-color: var(--accent); color: var(--accent); }
.text-links span { margin-left: 6px; color: var(--accent); }

.ask-forge { background: #eef2f5; }
.ask-heading { margin-bottom: 48px; }
.ask-requirement { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; margin-bottom: 24px; padding: 20px 24px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--white); }
.ask-requirement > span { color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.ask-requirement div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ask-requirement b { font-size: 16px; }
.ask-requirement code { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.ask-layout { display: grid; grid-template-columns: .88fr 1.12fr; border: 1px solid var(--line-strong); background: var(--white); }
.ask-form { padding: 34px; border-right: 1px solid var(--line-strong); }
.ask-form fieldset { margin: 0 0 30px; padding: 0; border: 0; }
.ask-form legend, .ask-form > label { display: block; margin-bottom: 13px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.preset-list { display: grid; gap: 8px; }
.preset-list button { padding: 11px 13px; border: 1px solid var(--line); background: var(--paper); color: #44515d; cursor: pointer; font-size: 12px; line-height: 1.55; text-align: left; }
.preset-list button::before { margin-right: 9px; color: var(--accent); content: "+"; font-family: var(--mono); }
.preset-list button:hover, .preset-list button:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.ask-form textarea { width: 100%; min-height: 122px; resize: vertical; padding: 14px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--white); color: var(--ink); font: 13px/1.7 var(--sans); }
.ask-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; }
.ask-form-footer > span { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.ask-submit { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-width: 220px; padding: 12px 15px; border: 1px solid var(--accent); background: var(--accent); color: var(--white); cursor: pointer; font-family: var(--mono); font-size: 10px; }
.ask-submit:hover, .ask-submit:focus-visible { background: #2d6bd8; }
.ask-submit:disabled { cursor: wait; opacity: .6; }
.ask-form-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.ask-output { min-height: 650px; padding: 34px; background: var(--dark); color: #dce4ea; }
.ask-empty { display: grid; min-height: 580px; place-content: center; text-align: center; }
.ask-empty span { color: #83adfa; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.ask-empty div { max-width: 440px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #34414c; }
.ask-empty p { margin: 0; color: #c5d0d7; font-size: 14px; }
.ask-empty small { display: block; margin-top: 10px; color: #82929e; font-size: 11px; line-height: 1.8; }
.ask-error { padding: 18px; border: 1px solid #765e35; background: #30291e; color: #f0d6a5; font-size: 13px; }
.ask-result section { padding: 23px 0; border-bottom: 1px solid #34414c; }
.ask-result .answer-section { padding-top: 0; }
.ask-result h3 { margin: 0 0 12px; color: #83adfa; font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.ask-result p { margin: 0; color: #d1dae0; font-size: 13px; white-space: pre-line; }
.ask-result ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ask-result li { color: #aebbc4; font-family: var(--mono); font-size: 9px; overflow-wrap: anywhere; }
.ask-result li::before { margin-right: 7px; color: #55b88a; content: "✓"; }
.ask-result .answer-summary { color: #edf2f5; font-size: 15px; font-weight: 650; line-height: 1.8; }
.answer-notice { margin-bottom: 16px; padding: 11px 13px; border-left: 2px solid #e4bf68; background: #2b281f; color: #dfc98e; font-size: 11px; line-height: 1.7; }
.answer-notice[data-state="insufficient"] { border-left-color: #d78383; background: #302323; color: #e8b3b3; }
.answer-notice[hidden] { display: none; }
.ask-result .answer-points { gap: 10px; margin-top: 16px; padding: 15px 17px; background: #18232c; }
.ask-result .answer-points li { color: #c0cbd2; font-family: var(--sans); font-size: 12px; line-height: 1.7; }
.ask-result .answer-points li::before { color: #83adfa; content: "—"; }
.evidence-section [data-result-evidence] { gap: 10px; }
.ask-result .evidence-item { display: grid; gap: 5px; padding: 12px 14px; border-left: 2px solid #4e789f; background: #18232c; font-family: var(--sans); }
.ask-result .evidence-item::before { content: none; }
.evidence-item strong { color: #e0e7eb; font-size: 11px; }
.evidence-item span { color: #94a4af; font-size: 10px; line-height: 1.7; }
.authority-section [data-result-authority][data-state="required"] { padding: 14px; border: 1px solid #5b4c2f; background: #181f25; }
.authority-item { margin-top: 10px; padding: 13px; border-left: 2px solid #e2b556; background: #1a242d; }
.authority-item:first-child { margin-top: 0; }
.authority-item b, .authority-item span { display: block; }
.authority-item b { color: #e8edf1; font-size: 11px; }
.authority-item span { margin-top: 5px; color: #95a5b1; font-family: var(--mono); font-size: 8px; }
.authority-item .authority-options-label { margin-top: 12px; color: #c8a963; font-family: var(--mono); font-size: 8px; }
.ask-result .authority-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ask-result .authority-options li { padding: 3px 7px; border: 1px solid #4b4b41; color: #aeb7ba; font-size: 8px; }
.ask-result .authority-options li::before { content: none; }
.authority-empty { color: #95a5b1; font-size: 11px; }
.result-trace { margin-top: 14px; color: #687986; font-family: var(--mono); font-size: 8px; }
.result-trace summary { width: fit-content; cursor: pointer; color: #70818d; letter-spacing: .04em; }
.result-trace dl { display: grid; gap: 6px; margin: 10px 0 0; padding: 10px 12px; border: 1px solid #2d3943; }
.result-trace dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.result-trace dt { color: #61727f; }
.result-trace dd { min-width: 0; margin: 0; color: #82929e; overflow-wrap: anywhere; }
.result-trace code { color: inherit; }
.ask-result .result-trace ul { display: grid; gap: 3px; }
.ask-result .result-trace li { color: #71828e; font-size: 8px; }
.ask-result .result-trace li::before { content: none; }

.vision { background: #f1f3f4; }
.vision-heading { grid-template-columns: 1fr 330px; }
.vision-key { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 10px; }
.vision-key i { color: var(--accent); font-style: normal; transform: rotate(-90deg); }
.vision-stages { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.vision-stage { position: relative; display: flex; flex-direction: column; min-height: 480px; padding: 32px; border-right: 1px solid var(--line-strong); }
.vision-stage:last-child { border-right: 0; }
.vision-stage.is-current { background: var(--white); box-shadow: inset 0 3px 0 var(--accent); }
.vision-stage:not(:last-child)::after { position: absolute; top: 72px; right: -12px; z-index: 2; display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #f1f3f4; color: var(--accent); content: "→"; font-family: var(--mono); font-size: 10px; }
.stage-meta { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.stage-meta span { color: var(--accent); font-size: 11px; }
.vision-stage h3 { margin: 80px 0 26px; font-size: 30px; line-height: 1.3; letter-spacing: -.035em; }
.vision-stage p { color: #4f5b65; font-size: 14px; }
.vision-stage small { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.github-cta { background: var(--dark); color: var(--white); }
.github-cta .section-number { color: #83adfa; }
.cta-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 100px; align-items: end; }
.closing-copy h2 { max-width: 720px; font-size: clamp(40px, 5vw, 64px); }
.closing-copy > p:last-child { max-width: 680px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid #34414c; color: #aab6bf; font-size: 13px; }
.cta-actions { display: grid; gap: 10px; }
.cta-label { margin-bottom: 7px; color: #81909b; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.button { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border: 1px solid #45515b; color: #c4ced5; font-family: var(--mono); font-size: 11px; }
.button:hover, .button:focus-visible { border-color: #8ea1b0; color: var(--white); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--white); }
.button-primary:hover { border-color: #4380e6; background: #2d6bd8; }
.contact-window { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 36px; align-items: center; margin-top: 80px; padding-top: 34px; border-top: 1px solid #34414c; }
.contact-window > div span { color: #83adfa; font-family: var(--mono); font-size: 9px; }
.contact-window h3 { margin: 8px 0 0; font-size: 22px; }
.contact-window p { margin: 0; color: #aab6bf; font-size: 12px; }
.contact-window small { color: #81909b; font-size: 10px; }
.contact-window code { color: #b8c3cb; font-family: var(--mono); }
footer { padding: 35px 0; background: var(--dark); color: #9aa8b3; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid #34414c; padding-top: 30px; }
.footer-inner .brand { color: var(--white); }
.footer-inner p { margin: 0; color: #74828c; font-family: var(--mono); font-size: 9px; text-align: center; }
.footer-inner > span { font-family: var(--mono); font-size: 9px; text-align: right; }

@media (max-width: 980px) {
  .hero-grid, .hero-statement, .section-heading, .reference-overview, .ask-layout, .cta-inner { grid-template-columns: 1fr; }
  .hero-grid, .reference-overview { gap: 50px; }
  .hero-statement { gap: 18px; }
  .section-heading { gap: 28px; }
  .heading-note { max-width: 580px; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .step-button:nth-child(3) { border-right: 0; }
  .step-button:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .comparison { grid-template-columns: 1fr; }
  .comparison-intro { padding-right: 0; border-right: 0; }
  .comparison-intro h3 { margin-bottom: 30px; }
  .tab-switch { max-width: 420px; }
  .comparison-panel { padding-left: 0; border-top: 1px solid var(--line-strong); }
  .surface-path { grid-template-columns: 1fr 18px 1fr 18px 1fr 18px 1fr; }
  .vision-heading { grid-template-columns: 1fr; }
  .vision-key { max-width: 500px; }
  .ask-form { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .contact-window { grid-template-columns: 1fr 1fr; }
  .contact-window > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1180px); }
  .section { padding: 88px 0; }
  .site-header nav a:not(.nav-github) { display: none; }
  .header-inner { min-height: 64px; }
  .eyebrow span:last-child { display: none; }
  .hero { padding-top: 52px; }
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .mobile-only { display: initial; }
  .hero-console { box-shadow: 8px 8px 0 #d9e2ed; }
  .console-bar { gap: 10px; }
  .console-title { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .implementation-path { display: grid; grid-template-columns: 1fr; gap: 8px; justify-items: start; }
  .implementation-path b { transform: none; }
  .hero-statement { margin-top: 64px; }
  .step-list { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .step-button { flex: 0 0 132px; border-bottom: 0 !important; }
  .step-panel-body { grid-template-columns: 1fr; gap: 24px; padding: 30px 24px; }
  .step-panel h3 { font-size: 21px; }
  .step-evidence { align-items: flex-start; flex-direction: column; gap: 5px; margin: 0 24px 24px; }
  .step-evidence code { overflow-wrap: anywhere; }
  .step-evidence > p { line-height: 1.7; }
  .step-evidence .conceptual-path { display: grid; width: 100%; grid-template-columns: 1fr; justify-items: start; margin-top: 5px; }
  .step-evidence .conceptual-path i { margin-left: 20px; transform: rotate(90deg); }
  .comparison-intro { padding-top: 42px; }
  .comparison-panel { padding: 42px 0; }
  .assumption-list, .authority-grid { grid-template-columns: 1fr; }
  .authority-principle { grid-template-columns: 1fr; gap: 8px; }
  .panel-heading { gap: 15px; }
  .surface-path { grid-template-columns: 1fr; gap: 8px; }
  .surface-path > div { min-height: 86px; padding: 13px 14px; }
  .surface-path b { margin: 10px 0 4px; }
  .surface-path i { transform: none; }
  .reference-overview { gap: 42px; margin-bottom: 56px; }
  .ask-requirement { grid-template-columns: 1fr; gap: 8px; }
  .ask-requirement div { display: grid; gap: 5px; }
  .ask-form, .ask-output { padding: 24px 20px; }
  .ask-output { min-height: 520px; }
  .ask-empty { min-height: 450px; }
  .ask-form-footer { align-items: stretch; flex-direction: column; }
  .ask-submit { width: 100%; }
  .decision-story { grid-template-columns: 1fr; }
  .decision-stage { min-height: 0; padding: 24px; }
  .story-arrow { min-height: 76px; }
  .story-arrow b { transform: rotate(90deg); }
  .handoff-block { padding: 26px 20px; }
  .handoff-heading { grid-template-columns: 26px 1fr; gap: 10px; }
  .handoff-heading h3 { font-size: 24px; overflow-wrap: anywhere; }
  .handoff-grid { grid-template-columns: 1fr; }
  .handoff-grid > div, .handoff-grid > div:first-child, .handoff-grid > div:last-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid #34414c; }
  .handoff-grid > div:last-child { border-bottom: 0; }
  .handoff-tests ul { grid-template-columns: 1fr 1fr; }
  .text-links { gap: 12px 22px; }
  .artifact-inline-link, .package-link { min-height: 44px; padding-block: 12px; }
  .text-links a { min-height: 44px; padding-block: 12px; }
  .vision-stages { grid-template-columns: 1fr; }
  .vision-stage { min-height: 400px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .vision-stage:last-child { border-bottom: 0; }
  .vision-stage:not(:last-child)::after { top: auto; right: 50%; bottom: -12px; transform: translateX(50%) rotate(90deg); }
  .vision-stage h3 { margin-top: 55px; }
  .cta-inner { gap: 45px; }
  .contact-window { grid-template-columns: 1fr; gap: 18px; margin-top: 56px; }
  .contact-window > :last-child { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner p, .footer-inner > span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
