/* Andrade Network Assessments
   Direction: the site looks like the deliverable. Warm paper, ink, hairline
   rules, a serif text face, and monospace wherever evidence is quoted.
   No webfonts, images or third-party requests: system faces only. */

:root {
  --paper: #f4f1ea;
  --paper-hi: #fbf9f4;
  --paper-lo: #e9e4d8;
  --ink: #14171a;
  --ink-2: #454b52;
  --ink-3: #6f747a;
  --rule: #cdc6b6;
  --spruce: #17403a;
  --spruce-deep: #0d2824;
  --slate: #172024;
  --slate-2: #223036;
  --critical: #b3311b;
  --high: #b85f0e;
  --medium: #8a6d0b;
  --low: #3f6385;
  --info: #666b71;
  --amber: #ffd866;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 68ch;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 23, 26, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--spruce); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--spruce); outline-offset: 3px; }
strong { font-weight: 700; }
code, pre { font-family: var(--mono); }
code { font-size: 0.86em; background: var(--paper-lo); padding: 0.08em 0.32em; border-radius: 2px; }

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.label, .eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 0.7rem;
}

mark.unset { background: var(--amber); color: var(--ink); padding: 0.05em 0.3em; font-family: var(--mono); font-size: 0.82em; border-radius: 2px; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.25rem; border: 1.5px solid var(--spruce); border-radius: 2px;
  background: var(--spruce); color: var(--paper-hi);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn span[aria-hidden] { display: inline-block; transition: transform 0.15s ease; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.btn-small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

/* ------------------------------------------------------------ masthead */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(6px)) {
  .masthead { background: rgba(244, 241, 234, 0.82); backdrop-filter: blur(8px); }
}
.masthead-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }

.wordmark { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; color: var(--ink); margin: 0; }
.wm-mark { width: 1.3rem; height: 1.3rem; align-self: center; margin-right: 0.5rem; color: var(--spruce); flex: none; }
.wordmark-inverse .wm-mark { color: #9fc4bb; }
.wm-slash { font-family: var(--mono); font-size: 1.05rem; color: var(--spruce); margin: 0 0.12em; }
.wm-a { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; }
.wm-b { font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.01em; color: var(--ink-2); }
.wordmark-inverse { color: var(--paper-hi); }
.wordmark-inverse .wm-b { color: #b9c9c4; }
.wordmark-inverse .wm-slash { color: #9fc4bb; }

.nav { display: flex; gap: 1.35rem; margin-left: auto; font-family: var(--sans); font-size: 0.86rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.3rem 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-bottom-color: var(--spruce); }

/* ---------------------------------------------------------------- hero */

.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--rule); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); line-height: 1.02; letter-spacing: -0.022em; margin-bottom: 1.4rem; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.5; max-width: 34em; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.9rem 0 1.4rem; }
.hero-note { font-family: var(--sans); font-size: 0.86rem; color: var(--ink-2); max-width: 36em; margin: 0; padding-left: 0.9rem; border-left: 2px solid var(--spruce); }

.finding {
  margin: 0; background: var(--slate); color: #e8ece9;
  border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--rule);
}
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--slate-2); font-family: var(--mono); font-size: 0.78rem; }
.finding-id { font-weight: 700; letter-spacing: 0.06em; color: #fff; }
.finding-dev { margin-left: auto; color: #9fb0ab; }
.finding-title { font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; font-weight: 600; margin: 0; padding: 1rem 1.1rem 0.4rem; color: #fff; }
.finding .evidence { background: transparent; border: 0; margin: 0; padding: 0.6rem 1.1rem 1rem; color: #cfd8d4; overflow-x: hidden; }
.finding .evidence .line { white-space: pre-wrap; overflow-wrap: anywhere; }
.finding .ln { color: #5f7570; }
.finding .line.hot { background: rgba(179, 49, 27, 0.32); box-shadow: inset 3px 0 0 #e2573f; color: #fff; }
.finding-foot { margin: 0; background: var(--paper-hi); color: var(--ink); border-top: 1px solid var(--ink); }
.finding-foot > div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.9rem; padding: 0.8rem 1.1rem; }
.finding-foot > div + div { border-top: 1px dotted var(--rule); }
.finding-foot dt { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2); padding-top: 0.28rem; }
.finding-foot dd { margin: 0; font-size: 0.98rem; line-height: 1.45; }
.finding figcaption { background: var(--paper-hi); color: var(--ink-3); font-family: var(--sans); font-size: 0.76rem; padding: 0.6rem 1.1rem 0.8rem; border-top: 1px dotted var(--rule); }

/* ----------------------------------------------------------- evidence */

pre.evidence {
  margin: 1rem 0 1.4rem; padding: 0.9rem 1rem; overflow-x: auto;
  background: var(--slate); color: #d6dedb; border: 1px solid var(--ink);
  font-size: 0.8rem; line-height: 1.65; tab-size: 4;
}
pre.evidence code { background: none; padding: 0; font-size: inherit; display: block; white-space: normal; }
pre.evidence .line { display: block; white-space: pre; padding: 0 0.4rem; margin: 0 -0.4rem; }
pre.evidence .line:empty::before { content: "\00a0"; }
pre.evidence .ln { display: inline-block; width: 3.2em; margin-right: 1em; text-align: right; color: #6b827c; user-select: none; }

.sev {
  display: inline-block; font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; line-height: 1;
  padding: 0.34em 0.55em 0.3em; border-radius: 2px; color: #fff; white-space: nowrap;
}
.sev-critical { background: var(--critical); }
.sev-high { background: var(--high); }
.sev-medium { background: var(--medium); }
.sev-low { background: var(--low); }
.sev-info { background: var(--info); }
.sev-arrow { margin: 0 0.25em; color: var(--ink-3); }

/* ------------------------------------------------------------ sections */

.sec { padding: clamp(3rem, 7vw, 5.25rem) 0; border-bottom: 1px solid var(--rule); }
.sec-tint { background: rgba(233, 228, 216, 0.6); }
.sec-in { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.sec-head { position: relative; }
.sec-head h2 { font-size: clamp(1.7rem, 2.9vw, 2.4rem); }
.sec-no { display: block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--spruce); margin-bottom: 0.9rem; }
.sec-no::after { content: ""; display: inline-block; width: 2.4rem; height: 1px; background: var(--spruce); vertical-align: middle; margin-left: 0.7rem; }
.sec-lede { margin: 1rem 0 0; font-size: 1.02rem; color: var(--ink-2); line-height: 1.5; }
.sec-body > :last-child { margin-bottom: 0; }
.aside { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-2); }
.fineprint { font-family: var(--sans); font-size: 0.84rem; line-height: 1.55; color: var(--ink-2); margin-top: 1.5rem; max-width: var(--measure); }

.triggers { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.triggers li { padding: 1.15rem 1.4rem 1.2rem 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; line-height: 1.5; }
.triggers li:nth-child(odd) { border-right: 1px solid var(--rule); }
.triggers li:nth-child(even) { padding-left: 1.4rem; padding-right: 0; }
.triggers strong { display: block; margin-bottom: 0.2rem; }

.deliverables { list-style: none; margin: 0; padding: 0; counter-reset: d; border-top: 1px solid var(--ink); }
.deliverables li { counter-increment: d; display: grid; grid-template-columns: 3.2rem minmax(0, 0.42fr) minmax(0, 1fr); gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.deliverables li::before { content: counter(d, upper-alpha); font-family: var(--mono); font-size: 0.82rem; color: var(--spruce); }
.deliverables h3 { font-size: 1.2rem; }
.deliverables p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); }

.scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.scope { background: var(--paper-hi); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--rule); }
.scope > header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem 1rem; border-bottom: 1px solid var(--ink); }
.scope h3 { font-size: 1.5rem; }
.fee { margin: 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.fee-cur { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em; color: var(--ink-2); vertical-align: 0.5em; margin-right: 0.15em; }
.spec { margin: 0; padding: 0.4rem 1.4rem 1rem; }
.spec > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 1rem; padding: 0.62rem 0; border-bottom: 1px dotted var(--rule); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-2); padding-top: 0.14rem; }
.spec dd { margin: 0; font-size: 1rem; line-height: 1.4; }

.steps { list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 1.2rem 1.2rem 0.4rem 0; }
.steps li + li { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 1.6rem; color: var(--spruce); margin-bottom: 0.7rem; line-height: 1; }
.steps h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.steps p { font-size: 0.97rem; line-height: 1.5; color: var(--ink-2); }

.boundary { border: 1px solid var(--ink); border-left-width: 4px; padding: 1.1rem 1.3rem 1.15rem; background: var(--paper-hi); max-width: var(--measure); }
.boundary p:last-child { margin: 0; font-size: 1rem; line-height: 1.55; }

.papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.paper {
  position: relative; display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: var(--ink);
  background: var(--paper-hi); border: 1px solid var(--ink); padding: 1.4rem 1.5rem 1.3rem;
  clip-path: polygon(0 0, calc(100% - 1.6rem) 0, 100% 1.6rem, 100% 100%, 0 100%);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.paper::after { content: ""; position: absolute; top: 0; right: 0; width: 1.6rem; height: 1.6rem; background: linear-gradient(225deg, var(--paper) 50%, var(--rule) 50%); border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.paper:hover { transform: translateY(-3px); background: #fff; }
.paper h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.paper p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.paper-go { margin-top: auto; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--spruce); }

.reviewer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.reviewer-lede { font-size: 1.28rem; line-height: 1.4; }
.reviewer-main p { max-width: 36em; }
.credentials { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-2); }
.reviewer-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.reviewer-points li { padding: 0.95rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }

.handling { margin: 0; border-top: 1px solid var(--ink); }
.handling > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
.handling dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--spruce); padding-top: 0.32rem; }
.handling dd { margin: 0; max-width: var(--measure); font-size: 1.03rem; line-height: 1.55; }

.faq { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--ink); }
.faq > div { padding: 1.1rem 0 1.15rem; border-bottom: 1px solid var(--rule); }
.faq dt { font-weight: 700; font-size: 1.08rem; margin-bottom: 0.3rem; }
.faq dd { margin: 0; font-size: 1rem; line-height: 1.52; color: var(--ink-2); }

/* -------------------------------------------------------------- contact */

.sec-contact { background: var(--spruce-deep); color: #e9efec; border-bottom: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 22px 22px; }
.sec-contact .sec-no { color: #9fc4bb; }
.sec-contact .sec-no::after { background: #9fc4bb; }
.sec-contact .sec-lede, .sec-contact .aside { color: #b9c9c4; }
.sec-contact a { color: #fff; }
.sec-contact .btn { background: var(--paper-hi); color: var(--spruce-deep); border-color: var(--paper-hi); }
.sec-contact .btn:hover { background: #fff; }
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-direct p { font-size: 1.02rem; }
.warn { font-family: var(--sans); font-size: 0.86rem; line-height: 1.5; border: 1px solid #5d7e77; border-left-width: 4px; padding: 0.8rem 1rem; color: #dfe8e5; }

.fit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; background: var(--paper-hi); color: var(--ink); border: 1px solid var(--ink); padding: 1.5rem; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.28); }
.fit-form a { color: var(--spruce); }
.fit-form .btn { background: var(--spruce); color: var(--paper-hi); border-color: var(--spruce); }
.fit-form .btn:hover { background: var(--spruce-deep); }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-wide { grid-column: 1 / -1; margin: 0; }
.field label { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--ink-3); border-radius: 2px; padding: 0.6rem 0.7rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--spruce); outline-offset: 1px; border-color: var(--spruce); }
.field input::placeholder { color: #9a9ea3; }
.form-note { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-2); }
.form-status { font-family: var(--sans); font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: var(--spruce); font-weight: 600; }
.form-status.err { color: var(--critical); font-weight: 600; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- colophon */

.colophon { background: var(--ink); color: #c9cdd0; font-family: var(--sans); font-size: 0.88rem; line-height: 1.6; padding: 3rem 0 1.5rem; }
.colophon a { color: #fff; }
.colophon .label { color: #8d9499; }
.colophon-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.colophon-id p:last-child { max-width: 30em; margin-top: 0.8rem; }
.colophon-legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #33383c; font-size: 0.78rem; color: #8d9499; }
.colophon-legal p { margin: 0; }

.draft-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--amber); color: var(--ink); font-family: var(--sans); font-size: 0.8rem; line-height: 1.4; padding: 0.55rem var(--gutter); border-top: 1px solid var(--ink); }
body:has(.draft-bar) { padding-bottom: 3.2rem; }

/* ------------------------------------------------------- document pages */

.doc-wrap { max-width: 58rem; padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.doc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin-bottom: 1.2rem; }
.doc-flag { margin: 0; font-family: var(--sans); font-size: 0.86rem; color: var(--ink-2); border-left: 3px solid var(--critical); padding-left: 0.8rem; }
.checklist ~ .doc-next, .doc-bar .doc-flag:only-child { border-color: var(--spruce); }
.doc-actions { margin: 0; }
.doc { background: var(--paper-hi); border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--rule); padding: clamp(1.4rem, 5vw, 3.6rem); }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.6rem; }
.doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.4rem 0 0.8rem; padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.doc h1 + h2 { border-top: 0; padding-top: 0; margin-top: 0.3rem; color: var(--ink-2); font-weight: 400; }
.doc h3 { font-size: 1.22rem; margin: 2rem 0 0.6rem; }
.doc h4 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.doc p, .doc li { font-size: 1.04rem; line-height: 1.62; }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.doc li { margin-bottom: 0.55rem; }
.doc hr { border: 0; border-top: 1px dotted var(--rule); margin: 2.2rem 0; }
.doc blockquote { margin: 1.2rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--spruce); color: var(--ink-2); }
.doc-meta { font-family: var(--sans); font-size: 0.86rem; color: var(--ink-2); }
.doc-sign { font-family: var(--sans); font-size: 0.9rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.doc-next { margin-top: 2.5rem; padding: 1.6rem 0 0; border-top: 1px solid var(--ink); }
.doc-next h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.doc-next p:last-child { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.2rem 0 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.6rem; border: 1px solid var(--ink); background: #fff; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.86rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
thead th { background: var(--paper-lo); border-bottom: 1px solid var(--ink); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
td.nw { white-space: nowrap; }
.checklist table.grid { table-layout: fixed; }
tbody tr:last-child > * { border-bottom: 0; }
table.kv th { width: 9.5rem; font-weight: 600; color: var(--ink-2); background: var(--paper-lo); border-right: 1px solid var(--rule); }
table.grid td:first-child { font-weight: 600; }
.report table.grid { min-width: 34rem; }

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .anim .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .anim .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .anim .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .anim .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .anim .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .anim .finding { animation: settle 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
  .anim .finding .line { animation: type 0.3s ease both; }
  .anim .finding .line:nth-child(1) { animation-delay: 0.7s; }
  .anim .finding .line:nth-child(2) { animation-delay: 0.8s; }
  .anim .finding .line:nth-child(3) { animation-delay: 0.9s; }
  .anim .finding .line:nth-child(4) { animation-delay: 1s; }
  .anim .finding .line:nth-child(5) { animation-delay: 1.1s; }
  .anim .finding .line:nth-child(6) { animation-delay: 1.2s; }
  .anim .finding .line:nth-child(7) { animation-delay: 1.3s; }
  .anim .finding .line:nth-child(8) { animation-delay: 1.4s; }
  .anim .finding .line.hot { animation-name: type, flag; animation-duration: 0.3s, 0.6s; animation-fill-mode: both, both; }
  .anim .finding .line.hot:nth-child(3) { animation-delay: 0.9s, 1.7s; }
  .anim .finding .line.hot:nth-child(5) { animation-delay: 1.1s, 1.9s; }
  .anim .finding .line.hot:nth-child(7) { animation-delay: 1.3s, 2.1s; }
}
/* Start states stay legible: if a renderer never advances the animation clock, nothing is hidden. */
@keyframes rise { from { opacity: 0.3; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0.3; transform: translate(-8px, -8px); box-shadow: 0 0 0 var(--rule); } to { opacity: 1; transform: none; box-shadow: 10px 10px 0 var(--rule); } }
@keyframes type { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes flag { from { background: transparent; box-shadow: inset 0 0 0 #e2573f; } to { background: rgba(179, 49, 27, 0.32); box-shadow: inset 3px 0 0 #e2573f; } }

/* ----------------------------------------------------------- responsive */

@media (max-width: 62rem) {
  .masthead-in { justify-content: space-between; flex-wrap: wrap; gap: 0 1.5rem; padding-top: 0.6rem; }
  .nav { order: 3; width: 100%; margin: 0.3rem 0 0; gap: 1.2rem; overflow-x: auto; white-space: nowrap; padding-bottom: 0.55rem; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero-in, .sec-in, .reviewer, .contact { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .colophon-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .colophon-id { grid-column: 1 / -1; }
}
@media (max-width: 44rem) {
  body { font-size: 1.05rem; }
  .masthead { position: static; }
  html { scroll-padding-top: 1rem; }
  .scopes, .papers, .faq, .triggers { grid-template-columns: minmax(0, 1fr); }
  .triggers li, .triggers li:nth-child(even) { padding: 1rem 0; border-right: 0; }
  .deliverables li { grid-template-columns: 2rem minmax(0, 1fr); }
  .deliverables p { grid-column: 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 1.1rem 0 0.3rem; border-left: 0; border-top: 1px solid var(--rule); }
  .steps li:first-child { border-top: 0; }
  .handling > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .fit-form { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; }
  .finding { box-shadow: 6px 6px 0 var(--rule); }
  .finding-foot > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .finding-dev { margin-left: 0; flex-basis: 100%; }
  .colophon-in { grid-template-columns: minmax(0, 1fr); }
  .doc { box-shadow: 5px 5px 0 var(--rule); }
  .draft-bar { font-size: 0.72rem; }
}

/* ---------------------------------------------------------------- print */

@media print {
  @page { margin: 16mm 15mm; }
  body { background: #fff; font-size: 10.5pt; padding: 0 !important; }
  .masthead, .colophon, .draft-bar, .doc-bar .doc-actions, .doc-next, .skip { display: none !important; }
  .doc-wrap { max-width: none; padding: 0; }
  .doc { border: 0; box-shadow: none; padding: 0; background: #fff; }
  .doc p, .doc li { font-size: 10.5pt; line-height: 1.5; }
  .doc h2 { break-after: avoid; }
  .doc h3 { break-after: avoid; }
  .table-wrap { overflow: visible; }
  table { font-size: 8.5pt; }
  tr, pre.evidence { break-inside: avoid; }
  pre.evidence { background: #f3f3f3; color: #000; border-color: #999; font-size: 8pt; white-space: pre-wrap; }
  pre.evidence .line { white-space: pre-wrap; }
  pre.evidence .ln { color: #666; }
  .sev { border: 1px solid #000; color: #000; background: none !important; }
  a { color: #000; text-decoration: none; }
  .checklist p, .checklist li { font-size: 9.5pt; }
  .checklist table { font-size: 8pt; }
  .checklist h1 { font-size: 17pt; }
}
