:root {
  --ink: #15201d;
  --ink-2: #24332f;
  --paper: #f4f0e7;
  --paper-2: #ebe5d9;
  --surface: #fffdf8;
  --line: #bdb6a8;
  --line-dark: #7f7a70;
  --rust: #a84e35;
  --rust-dark: #7c3422;
  --teal: #0d7167;
  --teal-dark: #074b45;
  --gold: #d4a947;
  --code: #101714;
  --muted: #5d6762;
  --shadow: 5px 5px 0 rgba(21, 32, 29, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 32, 29, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 29, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; background: #fff; border: 2px solid var(--ink); }
.skip-link:focus { top: 1rem; }
.status-rail { background: var(--code); color: #d8e5df; border-bottom: 1px solid #35413d; }
.status-rail-inner { min-height: 29px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: 700 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.status-rail-inner span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .5rem; background: var(--gold); }
.site-header { position: sticky; z-index: 30; top: 0; background: rgba(244, 240, 231, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-frame { min-height: 72px; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--ink); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--gold); font: 900 .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: .9rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font: 700 .58rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: .15rem; }
.desktop-nav a, .mobile-nav a { padding: .55rem .68rem; text-decoration: none; color: var(--muted); font-size: .78rem; font-weight: 760; border: 1px solid transparent; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); border-color: var(--line); }
.menu-toggle { display: none; min-height: 39px; padding: .5rem .75rem; background: var(--surface); border: 1px solid var(--ink); font-weight: 800; }
.mobile-nav { display: none; padding-block: .5rem; border-top: 1px solid var(--line); }
.mobile-nav[data-open="true"] { display: grid; }

.control { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: .65rem .92rem; border: 1px solid var(--ink); border-radius: 4px; background: var(--surface); text-decoration: none; font-size: .8rem; font-weight: 850; box-shadow: 3px 3px 0 rgba(21, 32, 29, .15); transition: transform .15s ease, box-shadow .15s ease; }
.control:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(21, 32, 29, .18); }
.control:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(13, 113, 103, .3); outline-offset: 2px; }
.control-primary { color: #fff; background: var(--rust); border-color: var(--rust-dark); }
.control-dark { color: #fff; background: var(--ink); }
.control-light { color: var(--ink); background: var(--gold); border-color: #f0c762; }
.controls { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.kicker { margin: 0 0 .7rem; color: var(--rust); font: 850 .67rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.chip-row { display: flex; flex-wrap: wrap; gap: .42rem; }
.chip { padding: .27rem .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); font: 750 .65rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.hero, .page-head { padding: clamp(3.2rem, 8vw, 6rem) 0 clamp(2.6rem, 6vw, 4.7rem); border-bottom: 1px solid var(--line); }
.workbench-hero { background: linear-gradient(110deg, rgba(255, 253, 248, .88), rgba(235, 229, 217, .68)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1, .page-head h1 { max-width: 850px; margin: .65rem 0 1.1rem; font-size: clamp(2.45rem, 5.4vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.page-head h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); }
.lede { max-width: 790px; margin: 0; color: var(--ink-2); font-size: clamp(1.05rem, 2vw, 1.23rem); line-height: 1.72; }
.supporting { max-width: 720px; color: var(--muted); }
.diagnostic-window, .evidence-image { overflow: hidden; border: 1px solid var(--ink); background: var(--code); box-shadow: 8px 8px 0 rgba(168, 78, 53, .2); }
.diagnostic-window img, .evidence-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.window-bar { min-height: 34px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .7rem; padding: .45rem .65rem; color: #dbe4df; background: var(--code); border-bottom: 1px solid #35413d; font: 700 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.window-lights { display: flex; gap: 5px; }
.window-lights i { width: 7px; height: 7px; background: var(--rust); border-radius: 50%; }
.window-lights i:nth-child(2) { background: var(--gold); }
.window-lights i:nth-child(3) { background: var(--teal); }
.signal { justify-self: end; color: #8be0bd; }
.trace-line { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .55rem; padding: .75rem; color: #d8e1dc; font: 700 .62rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.trace-line span { color: var(--gold); }
.trace-line b { font-weight: 600; }

.section { padding: clamp(2.7rem, 6vw, 5rem) 0; border-bottom: 1px solid rgba(189, 182, 168, .65); }
.compact-section { padding-block: 2.25rem; }
.section-ruled { background: rgba(255, 253, 248, .62); }
.section-heading { max-width: 760px; margin-bottom: 1.45rem; }
.section-heading h2, .split-section h2, .callout h2, .footer-main h2 { margin: 0 0 .65rem; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p, .split-section p, .callout p { color: var(--muted); }
.fault-grid { counter-reset: fault; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-dark); box-shadow: var(--shadow); }
.fault-card { min-width: 0; display: flex; flex-direction: column; padding: 1.1rem; background: var(--surface); border-right: 1px solid var(--line); }
.fault-card:last-child { border-right: 0; }
.fault-code { color: var(--line-dark); font: 800 .6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.fault-card h3, .tool-card h3 { margin: .2rem 0 .7rem; font-size: 1.1rem; line-height: 1.2; letter-spacing: -.025em; }
.fault-card p, .tool-card p, .problem-card p { color: var(--muted); font-size: .82rem; }
.fault-card a, .tool-card a, .problem-card a { margin-top: auto; padding-top: .7rem; color: var(--rust-dark); font-weight: 850; font-size: .75rem; text-decoration: none; }
.split-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.protocol-list, .number-list { counter-reset: step; display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.protocol-list li, .number-list li { position: relative; min-height: 56px; padding: .92rem 1rem .92rem 3.45rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 3px 3px 0 rgba(21, 32, 29, .08); }
.protocol-list li::before, .number-list li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: .85rem; top: .95rem; color: var(--rust); font: 900 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.proof-strip { color: #eef3f0; background: var(--code); border-color: #35413d; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 3rem; align-items: center; }
.proof-grid h2 { margin: 0 0 .8rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.05em; }
.proof-grid p { color: #b9c6c0; }
.proof-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.proof-card { display: flex; min-width: 0; flex-direction: column; padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line-dark); box-shadow: var(--shadow); }
.proof-card h2, .evidence-panel h2, .release-gate h2 { margin: 0 0 .8rem; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -.04em; }
.proof-card > p:not(.kicker), .evidence-panel > p:not(.kicker), .release-gate p { color: var(--muted); }
.proof-card .control { align-self: flex-start; margin-top: 1rem; }
.proof-card-meta { margin-top: auto; padding-top: 1rem; color: var(--teal-dark); font: 800 .66rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.score-matrix { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #52605a; }
.score-matrix span { display: grid; gap: .4rem; padding: 1rem; border-right: 1px solid #52605a; border-bottom: 1px solid #52605a; color: #aebdb6; font: 750 .65rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.score-matrix span:nth-child(2n) { border-right: 0; }
.score-matrix span:nth-last-child(-n+2) { border-bottom: 0; }
.score-matrix b { color: var(--gold); font-size: 1rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card { display: flex; flex-direction: column; min-height: 250px; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 4px 4px 0 rgba(13, 113, 103, .12); }
.evidence-thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.evidence-thumb-grid figure { margin: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line-dark); box-shadow: 3px 3px 0 rgba(21, 32, 29, .09); }
.evidence-thumb-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.evidence-thumb-grid figcaption { padding: .65rem .75rem; font: 800 .62rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.3rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--ink); border-left: 7px solid var(--rust); box-shadow: var(--shadow); }
.callout h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.callout p { margin-bottom: 0; }
.evidence-panel, .release-gate { padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--ink); border-left: 7px solid var(--teal); box-shadow: var(--shadow); }
.evidence-panel .control { margin-top: .6rem; }
.evidence-boundary { padding: .85rem 1rem; color: var(--ink-2) !important; background: var(--paper-2); border-left: 4px solid var(--rust); font-weight: 750; }
.release-gate { border-left-color: var(--gold); }

.page-head { background: linear-gradient(135deg, rgba(255, 253, 248, .92), rgba(235, 229, 217, .75)); }
.page-head-grid, .problem-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.narrow-head { max-width: 900px; }
.route-panel, .symptom-panel { padding: 1.2rem; background: var(--code); color: #edf4f0; border: 1px solid var(--ink); box-shadow: 5px 5px 0 rgba(168, 78, 53, .2); }
.route-panel span { display: block; color: var(--gold); font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.route-panel b { display: block; margin-top: .8rem; font-size: 1.25rem; }
.route-panel p { margin-bottom: 0; color: #b7c5be; font-size: .82rem; }
.route-panel-teal { box-shadow: 5px 5px 0 rgba(13, 113, 103, .3); }
.route-panel-score { display: grid; gap: .5rem; }
.route-panel-score b { color: #f1c96d; }
.route-panel-score i { color: #aab8b1; font-size: .8rem; }
.route-panel-score strong { color: #8be0bd; font: 850 1.15rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.check-grid li, .check-grid > div { padding: .82rem .9rem; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.problem-card { min-height: 290px; display: flex; flex-direction: column; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 4px 4px 0 rgba(21, 32, 29, .09); }
.problem-top, .problem-bottom { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: 750 .62rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.problem-card h2 { margin: 1.1rem 0 .4rem; font-size: 1.45rem; line-height: 1.13; letter-spacing: -.035em; }
.problem-bottom { align-items: end; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.problem-bottom span { max-width: 70%; }
.tool-stack { display: grid; gap: 1rem; }
.tool-row { display: grid; grid-template-columns: 95px minmax(0, 1.4fr) minmax(220px, .8fr) auto; gap: 1.25rem; align-items: start; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line-dark); box-shadow: var(--shadow); }
.tool-index { padding: .7rem; background: var(--ink); color: var(--gold); font: 850 .65rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.tool-row h2 { margin: 0 0 .5rem; font-size: 1.5rem; line-height: 1.15; }
.tool-row p, .tool-row li { color: var(--muted); font-size: .82rem; }
.tool-row ul { margin: 0; padding-left: 1.2rem; }
.tool-actions { display: grid; gap: .55rem; }
.document-stack { display: grid; gap: 1rem; }
.document-panel { display: grid; grid-template-columns: 160px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); box-shadow: 4px 4px 0 rgba(21, 32, 29, .08); }
.document-label { padding: 1.1rem; border-right: 1px solid var(--line); background: var(--paper-2); }
.document-label span { color: var(--rust); font: 850 .65rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.document-body { padding: clamp(1.2rem, 3vw, 2rem); }
.document-body h2 { margin: 0 0 .8rem; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.035em; }
.document-body p { color: var(--muted); }
.check-list { display: grid; gap: .55rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.35rem; color: var(--ink-2); font-size: .86rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .63em; width: 7px; height: 7px; background: var(--teal); }
.muted-list li::before { background: var(--line-dark); }

.problem-head { padding-bottom: 3rem; }
.symptom-panel h2 { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.15; }
.status-readout, .trace-table { display: grid; grid-template-columns: auto 1fr; gap: .45rem .8rem; padding-top: 1rem; border-top: 1px solid #42504a; font: 700 .64rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-readout span, .trace-table span { color: var(--gold); }
.status-readout b, .trace-table b { color: #d9e4df; font-weight: 600; }
.evidence-image { max-width: 980px; margin-inline: auto; }
.query-evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr) auto; gap: 1.4rem; align-items: center; padding: 1.35rem; background: var(--teal-dark); color: #eef6f2; border: 1px solid var(--teal); box-shadow: 5px 5px 0 rgba(13, 113, 103, .25); }
.query-evidence h2 { margin: 0 0 .6rem; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.05; }
.query-evidence p { color: #bfd3ca; }
.query-evidence .trace-table { border-color: #39746c; }
.diagnostic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.diagnostic-card { padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 4px 4px 0 rgba(21, 32, 29, .08); }
.diagnostic-card h2 { margin: 0 0 1rem; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -.035em; }
.diagnostic-dark { background: var(--code); color: #edf4f0; border-color: #35413d; }
.diagnostic-dark .number-list li { color: #dbe5e0; background: #18221e; border-color: #3b4943; }
.result-table { overflow: hidden; background: var(--surface); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.result-head, .result-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.result-head { background: var(--ink); color: #dce7e2; font: 800 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.result-head span, .result-row > * { min-width: 0; padding: .9rem 1rem; overflow-wrap: anywhere; border-right: 1px solid var(--line); }
.result-head span:last-child, .result-row > *:last-child { border-right: 0; }
.result-row { border-top: 1px solid var(--line); }
.result-row a { color: var(--rust-dark); font: 850 .95rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.result-row a:last-child { color: var(--teal-dark); }
.result-row > span { color: var(--muted); font: 750 .7rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.matrix-table { overflow: hidden; background: var(--surface); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.matrix-head, .matrix-row { display: grid; grid-template-columns: .65fr 1fr 1.15fr 1.15fr; }
.matrix-head { color: #dce7e2; background: var(--ink); font: 800 .62rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; text-transform: uppercase; }
.matrix-head span, .matrix-row > * { min-width: 0; padding: .85rem; border-right: 1px solid var(--line); }
.matrix-head span:last-child, .matrix-row > *:last-child { border-right: 0; }
.matrix-row { border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.48; }
.matrix-row b { color: var(--rust-dark); font: 850 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.related-grid a { display: grid; gap: .35rem; padding: 1rem; color: inherit; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: 3px 3px 0 rgba(21, 32, 29, .08); }
.related-grid small { color: var(--rust); font: 800 .61rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.related-grid b { line-height: 1.2; }
.related-grid span { color: var(--muted); font-size: .77rem; }

.contact-head { padding-bottom: 2.5rem; }
.contact-section { padding-top: 2.25rem; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(260px, 1fr); gap: 1rem; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.form-bar { min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; color: #dbe5e0; background: var(--ink); font: 800 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.form-bar b { color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; padding: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { display: flex; justify-content: space-between; gap: .7rem; color: var(--ink-2); font-size: .73rem; font-weight: 800; }
.field > span b { color: var(--rust); font: 750 .6rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: .67rem .72rem; background: #fff; border: 1px solid var(--line-dark); border-radius: 3px; outline: 0; }
.field textarea { min-height: 106px; resize: vertical; }
.field small, .submit-row small { color: var(--muted); font-size: .68rem; }
.optional { padding: 0; border: 1px solid var(--line); background: var(--paper-2); }
.optional summary { display: flex; justify-content: space-between; padding: .78rem .85rem; font-weight: 800; list-style: none; }
.optional summary::-webkit-details-marker { display: none; }
.optional summary::before { content: "+"; margin-right: .55rem; color: var(--rust); font-family: ui-monospace, monospace; }
.optional[open] summary::before { content: "−"; }
.optional summary span { margin-right: auto; }
.optional summary small { color: var(--muted); font: 750 .62rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.optional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; padding: .9rem; border-top: 1px solid var(--line); background: var(--surface); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { margin: 1rem 1rem 0; padding: .8rem; color: var(--teal-dark); background: #dcebe5; border: 1px solid #8ab9a9; font-weight: 750; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .2rem; }
.contact-aside { display: grid; gap: 1rem; }
.contact-aside section { padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); }
.contact-aside h2 { margin: 0 0 .65rem; font-size: 1.2rem; line-height: 1.15; }
.contact-aside p { color: var(--muted); font-size: .82rem; }
.contact-boundary { border-left: 5px solid var(--rust) !important; }

.site-footer { padding: 4rem 0 2rem; color: #dce6e1; background: var(--code); border-top: 4px solid var(--gold); }
.footer-frame { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-main h2 { max-width: 570px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.footer-main p { color: #aebdb6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: .5rem; }
.footer-links a { padding: .48rem .65rem; color: #dbe5e0; border: 1px solid #46534e; text-decoration: none; font-size: .72rem; }
.vendor-note { grid-column: 1 / -1; margin: 0; padding-top: 1.2rem; color: #8d9b95; border-top: 1px solid #39453f; font-size: .7rem; }
.copyright { margin: 0; color: #8d9b95; font: 700 .62rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 980px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .page-head-grid, .problem-head-grid, .proof-grid, .split-section, .query-evidence { grid-template-columns: 1fr; }
  .fault-grid { grid-template-columns: repeat(2, 1fr); }
  .fault-card { border-bottom: 1px solid var(--line); }
  .fault-card:nth-child(2n) { border-right: 0; }
  .fault-card:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .tool-row { grid-template-columns: 85px 1fr; }
	.evidence-thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-row ul, .tool-actions { grid-column: 2; }
  .query-evidence .control { justify-self: start; }
}

@media (max-width: 720px) {
  .status-rail-inner span:nth-child(2) { display: none; }
  .hero, .page-head { padding-top: 3rem; }
  .hero h1, .page-head h1 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .tool-grid, .problem-grid, .proof-card-grid, .diagnostic-grid, .contact-layout, .footer-frame { grid-template-columns: 1fr; }
  .document-panel { grid-template-columns: 1fr; }
  .document-label { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-links { justify-content: flex-start; }
  .callout { align-items: flex-start; flex-direction: column; }
  .matrix-head { display: none; }
  .matrix-row { grid-template-columns: 1fr; padding: .35rem 0; }
  .matrix-row > * { padding: .55rem .8rem; border-right: 0; }
  .matrix-row span::before { display: block; margin-bottom: .25rem; color: var(--teal-dark); font: 800 .57rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
  .matrix-row span:nth-child(2)::before { content: "Observed symptom"; }
  .matrix-row span:nth-child(3)::before { content: "Inspect"; }
  .matrix-row span:nth-child(4)::before { content: "Keep as evidence"; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 1rem, 1160px); }
  .status-rail-inner { justify-content: center; }
  .status-rail-inner span:nth-child(3) { display: none; }
  .header-frame { min-height: 62px; }
  .brand small { display: none; }
  .fault-grid, .score-matrix, .check-grid, .form-grid, .optional-grid, .related-grid, .evidence-thumb-grid { grid-template-columns: 1fr; }
  .fault-card, .fault-card:nth-child(2n) { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .field-wide { grid-column: auto; }
  .tool-row { grid-template-columns: 1fr; }
  .tool-row ul, .tool-actions { grid-column: auto; }
  .tool-index { width: max-content; }
  .result-head, .result-row { grid-template-columns: .75fr 1fr 1fr; }
  .result-head span, .result-row > * { padding: .75rem .55rem; }
  .trace-line { grid-template-columns: auto 1fr; }
  .submit-row { align-items: flex-start; flex-direction: column; }
  .submit-row .control { width: 100%; }
}

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