:root {
  --paper: #f4f0e6;
  --paper-strong: #fffdf7;
  --soft: #e8e4d8;
  --soft-2: #ded8ca;
  --ink: #171914;
  --muted: #5b6058;
  --line: #c9c5b8;
  --green: #45604c;
  --green-deep: #263f31;
  --green-soft: #dbe4d8;
  --rust: #c4563f;
  --dark: #10130f;
  --dark-2: #181c16;
  --dark-line: rgba(244, 240, 230, .18);
  --max: 1360px;
  --radius: 2px;
  --shadow: 0 24px 60px rgba(23, 25, 20, .13);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans); text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; top: -100px; left: 8px; z-index: 1000; padding: 10px 14px; border: 2px solid var(--ink); background: var(--paper-strong); }
.skip-link:focus { top: 8px; }

.shell { width: min(var(--max), calc(100% - clamp(32px, 7vw, 112px))); margin-inline: auto; }
#top, #try, #systems, #pilot { scroll-margin-top: 88px; }
.site-header { min-height: 72px; position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 12px clamp(18px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(244, 240, 230, .94); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 32px; height: 34px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; }
.brand-mark i { display: block; background: var(--ink); }
.brand-mark i:nth-child(1) { grid-column: 2; }
.brand-mark i:nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
.brand-mark i:nth-child(3) { grid-column: 3; grid-row: 2 / 4; }
.brand-mark i:nth-child(4) { grid-column: 1; grid-row: 3; }
.brand-mark i:nth-child(5) { grid-column: 2; grid-row: 3; opacity: .35; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 14px; letter-spacing: .045em; text-transform: uppercase; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { font-size: 13px; font-weight: 720; text-decoration: none; }
.site-header nav a:not(.nav-cta):hover, .site-header nav a:not(.nav-cta):focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 13px; color: var(--paper-strong); background: var(--ink); border: 1px solid var(--ink); }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--green-deep); border-color: var(--green-deep); }

.kicker { margin: 0 0 14px; color: var(--green); font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero { min-height: min(780px, calc(100vh - 72px)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(560px, .92fr); gap: clamp(40px, 4.5vw, 72px); align-items: center; padding-block: clamp(62px, 7vw, 96px); }
.hero-copy { max-width: 720px; }
.hero h1 { margin: 0; font-size: clamp(62px, 5.2vw, 84px); line-height: .9; letter-spacing: -.055em; font-weight: 840; }
.hero h1 span { color: var(--green); }
.hero-lede { margin: 28px 0 0; max-width: 680px; color: var(--muted); font-size: clamp(19px, 1.45vw, 23px); line-height: 1.42; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid var(--ink); border-radius: var(--radius); font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { color: var(--paper-strong); background: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: var(--green-deep); border-color: var(--green-deep); }
.button-secondary { color: var(--ink); background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--soft); }
.hero-state { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hero-state div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-state dt { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.hero-state dd { margin: 7px 0 0; font-size: 13px; font-weight: 760; line-height: 1.25; }

.case-runtime { min-width: 0; color: var(--paper); background: var(--dark); border: 1px solid rgba(244, 240, 230, .22); box-shadow: var(--shadow); }
.runtime-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 22px 24px; border-bottom: 1px solid var(--dark-line); }
.runtime-header > div { display: grid; gap: 3px; }
.runtime-header span, .runtime-question > span, .runtime-boundary span { color: #aeb6a5; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.runtime-header strong { font-size: 15px; }
.runtime-header em { flex: 0 0 auto; padding: 7px 9px; border: 1px solid rgba(219, 228, 216, .42); color: #dce7d9; font-size: 11px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.runtime-question { padding: 28px 24px 24px; }
.runtime-question h2 { margin: 10px 0 0; max-width: 760px; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.08; letter-spacing: -.035em; font-weight: 680; }
.runtime-trace { list-style: none; margin: 0; padding: 0 24px; border-top: 1px solid var(--dark-line); }
.runtime-trace li { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 62px; border-bottom: 1px solid var(--dark-line); }
.runtime-trace b { color: #9ba393; font-size: 11px; }
.runtime-trace div { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.runtime-trace strong { min-width: 116px; font-size: 13px; }
.runtime-trace div span { color: #b9bdb5; font-size: 12px; overflow-wrap: anywhere; }
.runtime-trace em { padding: 5px 7px; border: 1px solid rgba(244, 240, 230, .18); color: #b7bbb3; font-size: 11px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.runtime-trace .trace-ready { box-shadow: inset 3px 0 0 #799176; }
.runtime-trace .trace-ready em { color: #cbdac7; border-color: rgba(203, 218, 199, .38); }
.runtime-trace .trace-open { box-shadow: inset 3px 0 0 var(--rust); background: rgba(196, 86, 63, .08); }
.runtime-trace .trace-open em { color: #e89885; border-color: rgba(232, 152, 133, .45); }
.runtime-boundary { border-top: 1px solid var(--dark-line); background: var(--dark-2); }
.runtime-boundary div { min-width: 0; padding: 18px 24px; }
.runtime-boundary strong { display: block; margin-top: 7px; max-width: 680px; font-size: 13px; line-height: 1.35; }

.section { padding-block: clamp(72px, 7vw, 108px); }
.section-header { margin-bottom: 42px; }
.split-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .56fr); gap: 48px; align-items: end; }
.section-header h2, .guardrails h2 { margin: 0; max-width: 900px; font-size: clamp(43px, 4.7vw, 68px); line-height: .98; letter-spacing: -.048em; font-weight: 820; }
.split-header > p { margin: 0; max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.5; }

.scenario-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.scenario-tab { min-width: 0; min-height: 120px; display: grid; align-content: start; gap: 6px; padding: 18px; text-align: left; color: inherit; background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.scenario-tab span { color: var(--muted); font-size: 11px; font-weight: 800; }
.scenario-tab strong { font-size: 17px; line-height: 1.15; }
.scenario-tab small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.scenario-tab:hover, .scenario-tab:focus-visible { background: var(--soft); }
.scenario-tab.is-active { color: var(--paper-strong); background: var(--green-deep); box-shadow: inset 0 4px 0 var(--rust); }
.scenario-tab.is-active span, .scenario-tab.is-active small { color: #d8ded4; }
.scenario-panel { display: grid; grid-template-columns: minmax(320px, .42fr) minmax(0, .58fr); gap: 0; margin-top: 22px; border: 1px solid var(--line); background: var(--paper-strong); }
.scenario-summary { min-width: 0; padding: clamp(28px, 4vw, 52px); border-right: 1px solid var(--line); }
.scenario-summary h3 { margin: 0; font-size: clamp(31px, 3.2vw, 47px); line-height: 1.08; letter-spacing: -.04em; font-weight: 720; }
.scenario-summary > p:not(.kicker) { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.scenario-boundaries { margin-top: 30px; border-top: 1px solid var(--line); }
.scenario-boundaries div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.scenario-boundaries span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.scenario-boundaries strong { display: block; margin-top: 7px; font-size: 14px; line-height: 1.4; }
.stage-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; }
.stage-list li { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-content: start; min-height: 144px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage-list li:last-child { grid-column: 1 / -1; min-height: 120px; border-bottom: 0; }
.stage-list b { color: var(--green); font-size: 11px; }
.stage-list h4 { margin: 0; font-size: 17px; line-height: 1.1; }
.stage-list p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.systems-section { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.system-card { min-width: 0; display: grid; grid-template-columns: minmax(230px, .48fr) minmax(0, .52fr); min-height: 350px; color: inherit; text-decoration: none; background: var(--paper-strong); border: 1px solid var(--line); transition: transform 160ms ease, box-shadow 160ms ease; }
a.system-card:hover, a.system-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.system-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; }
.system-copy p { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.system-copy h3 { margin: 0; font-size: clamp(28px, 2.65vw, 40px); line-height: .98; letter-spacing: -.035em; }
.system-copy > span { margin-top: 17px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.system-copy > strong { margin-top: auto; padding-top: 18px; font-size: 13px; line-height: 1.35; border-bottom: 1px solid currentColor; }
.system-card-held .system-copy > strong { color: var(--muted); border-bottom: 0; }
.instrument { min-width: 0; display: flex; flex-direction: column; padding: 20px; color: var(--paper); background: var(--dark); }
.instrument header, .instrument footer { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.instrument header { padding-bottom: 12px; border-bottom: 1px solid var(--dark-line); }
.instrument header span { color: #b8c0b2; }
.instrument footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--dark-line); color: #b8c0b2; }
.place-instrument ol, .fallback-instrument ol { list-style: none; margin: 12px 0; padding: 0; }
.place-instrument li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--dark-line); }
.place-instrument li b { font-size: 12px; }
.place-instrument li em { padding: 3px 5px; color: #becbb9; border: 1px solid rgba(190, 203, 185, .25); font-size: 11px; font-style: normal; text-transform: uppercase; }
.place-instrument li:last-child em { color: #e38d79; border-color: rgba(227, 141, 121, .45); }
.ledger-instrument { gap: 0; }
.ledger-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--dark-line); }
.ledger-row span { color: #949b90; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ledger-row strong { font-size: 12px; }
.ledger-row em { padding: 4px 5px; color: #c5d2c1; border: 1px solid rgba(197, 210, 193, .25); font-size: 11px; font-style: normal; text-transform: uppercase; }
.capacity-instrument > div { min-width: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--dark-line); }
.capacity-instrument > div span { color: #9ca399; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.capacity-instrument > div strong { color: #d9ddd6; font-size: 12px; font-weight: 650; }
.fallback-instrument li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--dark-line); font-size: 12px; }
.fallback-instrument li em { font-size: 11px; font-style: normal; color: #b8bcb5; }
.fallback-instrument li.pass em { color: #cbdac7; }
.fallback-instrument li:first-child em, .fallback-instrument li:last-child em { color: #e89885; }

.guardrails { padding-block: clamp(68px, 7vw, 98px); color: var(--paper); background: var(--dark); }
.guardrails header { display: grid; grid-template-columns: .42fr 1fr; gap: 40px; align-items: end; }
.guardrails .kicker { color: #aab8a5; }
.guardrails h2 { max-width: 780px; }
.guardrail-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--dark-line); border-left: 1px solid var(--dark-line); }
.guardrail-grid article { min-height: 220px; padding: 24px; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.guardrail-grid span { color: #aab8a5; font-size: 11px; font-weight: 800; }
.guardrail-grid h3 { margin: 40px 0 12px; font-size: 23px; line-height: 1.08; }
.guardrail-grid p { margin: 0; color: #b7bbb3; font-size: 14px; line-height: 1.5; }

.pilot-layout { display: grid; grid-template-columns: minmax(300px, .42fr) minmax(0, .58fr); gap: 28px; align-items: start; }
.gate-map { border: 1px solid var(--line); background: var(--paper-strong); }
.gate-map ol { list-style: none; margin: 0; padding: 0; }
.gate-map li { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 84px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.gate-map li > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.gate-map li div { min-width: 0; display: grid; gap: 2px; }
.gate-map li strong { font-size: 14px; }
.gate-map li small { color: var(--muted); font-size: 12px; }
.gate-map li em { padding: 5px 7px; color: var(--muted); border: 1px solid var(--line); font-size: 11px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.gate-map li.is-resolved { box-shadow: inset 4px 0 0 var(--green); background: var(--green-soft); }
.gate-map li.is-resolved em { color: var(--green-deep); border-color: rgba(38, 63, 49, .35); }
.gate-result { padding: 22px 18px; background: var(--green-deep); color: var(--paper); }
.gate-result span { color: #b8c4b5; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gate-result strong { display: block; margin-top: 7px; font-size: 20px; }
.gate-result small { display: block; margin-top: 5px; color: #ced6cb; font-size: 12px; }
.pilot-form { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: var(--soft); }
.pilot-form label { display: grid; gap: 8px; margin-bottom: 18px; }
.pilot-form label > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.pilot-form label b { color: var(--green); margin-right: 8px; }
.pilot-form input, .pilot-form select, .pilot-form textarea { width: 100%; min-height: 50px; padding: 13px 14px; color: var(--ink); background: var(--paper-strong); border: 1px solid var(--line); border-radius: 0; outline: none; }
.pilot-form textarea { resize: vertical; }
.pilot-form input:focus, .pilot-form select:focus, .pilot-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(69, 96, 76, .14); }
.form-progress { margin: 24px 0 14px; }
.progress-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.progress-track i { height: 6px; background: var(--soft-2); }
.progress-track i.is-resolved { background: var(--green); }
.form-progress p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.button-full { width: 100%; }
.clear-button { min-height: 44px; display: flex; align-items: center; justify-content: center; margin: 8px auto 0; padding: 10px 4px; color: var(--muted); background: none; border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.form-boundary { margin: 19px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.site-footer { margin-top: 24px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: center; }
.footer-inner > div:first-child { display: grid; gap: 5px; }
.footer-inner > div:first-child strong { font-size: 14px; }
.footer-inner > div:first-child span { color: var(--muted); font-size: 12px; }
.footer-state { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding-left: 24px; border-left: 1px solid var(--line); font-size: 12px; }
.footer-state span { color: var(--muted); }
.footer-state strong { text-align: right; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; font-size: 12px; }
.footer-links a { text-underline-offset: 4px; }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 820px; }
  .case-runtime { max-width: 900px; }
  .system-card { grid-template-columns: 1fr; }
  .instrument { min-height: 290px; }
}

@media (max-width: 860px) {
  .site-header { position: static; }
  .site-header nav a:not(.nav-cta) { display: none; }
  #top, #try, #systems, #pilot { scroll-margin-top: 20px; }
  .split-header { grid-template-columns: 1fr; gap: 18px; }
  .scenario-tabs { grid-template-columns: 1fr 1fr; }
  .scenario-panel { grid-template-columns: 1fr; }
  .scenario-summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .system-grid { grid-template-columns: 1fr; }
  .system-card { grid-template-columns: minmax(250px, .45fr) 1fr; }
  .guardrails header { grid-template-columns: 1fr; gap: 10px; }
  .guardrail-grid { grid-template-columns: 1fr; }
  .guardrail-grid article { min-height: 0; }
  .guardrail-grid h3 { margin-top: 20px; }
  .pilot-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 32px; }
  .footer-links { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .shell { width: min(var(--max), calc(100% - 28px)); }
  .site-header { min-height: 64px; padding-inline: 14px; }
  .brand-mark { width: 28px; height: 30px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 11px; }
  .nav-cta { padding: 9px 11px; font-size: 12px; }
  .hero { padding-block: 46px 60px; gap: 34px; }
  .hero h1 { font-size: 44px; line-height: .92; letter-spacing: -.045em; }
  .hero-lede { margin-top: 24px; font-size: 18px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-state { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
  .hero-state div { padding: 11px 9px; }
  .hero-state dt { letter-spacing: .03em; }
  .hero-state dd { font-size: 12px; overflow-wrap: anywhere; }
  .runtime-header { padding: 18px; }
  .runtime-question { padding: 22px 18px 19px; }
  .runtime-question h2 { font-size: 27px; }
  .runtime-trace { padding-inline: 18px; }
  .runtime-trace li { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 9px; min-height: 72px; padding-block: 9px; }
  .runtime-trace div { display: grid; gap: 2px; }
  .runtime-trace strong { min-width: 0; }
  .runtime-trace em { justify-self: end; }
  .runtime-boundary div { padding: 16px 18px; }
  .section { padding-block: 58px; }
  .section-header { margin-bottom: 30px; }
  .section-header h2, .guardrails h2 { font-size: 39px; }
  .split-header > p { font-size: 15px; }
  .scenario-tabs { grid-template-columns: 1fr 1fr; }
  .scenario-tab { min-height: 112px; padding: 15px; }
  .scenario-panel { margin-top: 16px; }
  .scenario-summary { padding: 24px 20px; }
  .scenario-summary h3 { font-size: 31px; }
  .stage-list { grid-template-columns: 1fr 1fr; }
  .stage-list li { min-height: 190px; padding: 17px 14px; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
  .stage-list li:last-child { grid-column: 1 / -1; min-height: 112px; }
  .stage-list h4 { font-size: 16px; }
  .stage-list p { font-size: 12px; }
  .system-card { grid-template-columns: 1fr; }
  .instrument { min-height: 0; }
  .system-copy { min-height: 190px; padding: 24px; }
  .system-copy h3 { font-size: 31px; }
  .guardrails { padding-block: 58px; }
  .guardrail-grid { margin-top: 28px; }
  .guardrail-grid article { padding: 21px; }
  .gate-map ol { display: none; }
  .gate-result { padding: 18px; }
  .pilot-form { padding: 22px 16px; }
  .footer-inner { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding-block: 30px; }
  .footer-state { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .footer-links { grid-column: auto; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 41px; }
  .hero-state { grid-template-columns: 1fr; }
  .runtime-trace li { grid-template-columns: 24px minmax(0, 1fr); }
  .runtime-trace em { grid-column: 2; justify-self: start; }
  .scenario-tabs { grid-template-columns: 1fr; }
  .scenario-tab { min-height: 92px; }
  .stage-list { grid-template-columns: 1fr; }
  .stage-list li, .stage-list li:last-child { grid-column: auto; min-height: 0; }
  .runtime-boundary strong, .system-copy > span, .guardrail-grid p { overflow-wrap: anywhere; }
  .ledger-row { grid-template-columns: 1fr; gap: 4px; }
  .ledger-row em { justify-self: start; }
  .instrument footer { display: grid; }
}

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

.pilot-form fieldset {
  min-inline-size: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.pilot-form legend {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.pilot-form legend b { margin-right: 8px; color: var(--green); }
.problem-fields label { margin-bottom: 12px; }
.problem-fields label:last-child { margin-bottom: 0; }
.problem-fields label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
