/* foxxcyber.com: the drawing set.
 *
 * Every page is a sheet in an engineering drawing set: drafting paper under a
 * dot grid, fox-navy technical-pen ink, one fox-orange revision accent, and
 * teal only for a gate that passed. Square corners, 2px sheet borders, 1px
 * hairlines, title blocks, dimension lines. Overpass letters it; Overpass
 * Mono carries sheet numbers, dimensions and code. No inline styles anywhere
 * (the CSP forbids them), so everything a template needs is a class here. */

@font-face {
  font-family: "Overpass";
  src: url("/static/overpass-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("/static/overpass-mono-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f7f4;
  --ink: #18202e;
  --ink-2: #5b6270;
  --grid: #c9ccc6;
  --rule: #8a9099;
  --fox: #c2410c;
  --fox-bright: #f0762b;
  --fox-tint: #fbeee6;
  --pass: #1a6e6e;
  --pass-tint: #e3f0ef;
  --surface: #ffffff;   /* raised: inputs, callouts, screenshot frames, row hover */
  --on-fox: #ffffff;    /* text on a fox-orange fill */
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 68ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
  scrollbar-color: var(--ink-2) var(--paper);
}

/* The night sheet: the same drawing in pale ink on deep navy paper, for
 * visitors whose device is set to dark. Every pair keeps WCAG AA: ink 14.9:1,
 * ink-2 7.9:1, fox 7.3:1 on the ground; dark text on fox fills (7.3:1);
 * pass 7.2:1 on its tint. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1620;
    --ink: #e6e9ee;
    --ink-2: #a3abb8;
    --grid: #253040;
    --rule: #6b7686;
    --fox: #f08a4b;
    --fox-bright: #f08a4b;
    --fox-tint: #2b1a10;
    --pass: #5cc2be;
    --pass-tint: #0f2a29;
    --surface: #161e2a;
    --on-fox: #0f1620;
  }
}

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

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.6 var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--grid) 1px, transparent 1.2px);
  background-size: 24px 24px;
  caret-color: var(--fox);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--fox); color: var(--on-fox); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--fox);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms var(--ease);
}
a:hover { color: var(--fox); }

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
code, kbd, samp { font-family: var(--mono); font-size: 0.92em; }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
}
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.muted { color: var(--ink-2); }

/* --- The sheet ------------------------------------------------------------ */

.sheet {
  margin: 20px;
  min-height: calc(100vh - 40px);
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 6px;
  display: flex;
  flex-direction: column;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 0 var(--gutter);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: 0.08em;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 30px; height: 30px; }
.dwg { color: var(--ink-2); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--fox); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { padding: 0 16px; border-bottom: 2px solid var(--fox); color: var(--on-fox); }
.nav .btn:hover { border-color: var(--ink); color: var(--paper); }
.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 15px;
  padding: 10px 14px; border: 2px solid var(--ink); min-height: 44px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel {
  position: absolute; left: 10px; right: 10px; z-index: 5; margin-top: 12px;
  background: var(--paper); border: 2px solid var(--ink);
  display: flex; flex-direction: column;
}
.menu-panel a { padding: 14px 18px; border-bottom: 1px solid var(--ink); font-weight: 700; text-decoration: none; }
.menu-panel a:last-child { border-bottom: 0; background: var(--fox); color: var(--on-fox); }

main { flex: 1 0 auto; }

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 700 15px var(--font); text-decoration: none; cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { background: var(--fox); border-color: var(--fox); color: var(--on-fox); }
.btn-fox { background: var(--fox); border-color: var(--fox); color: var(--on-fox); }
.btn-fox:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: progress; }

/* --- Zones: the sections of a sheet ----------------------------------------- */

.zone { padding: clamp(40px, 6vw, 72px) var(--gutter); border-bottom: 2px solid var(--ink); }
.zone:last-child { border-bottom: 0; }
.zone-paper { background: var(--paper); }
.zone-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }
.zone-head p { max-width: 52ch; color: var(--ink-2); font-size: 18px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 56ch; }

/* --- Home hero: general notes + detail A + title block ----------------------- */

.hero {
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 40px 56px;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 0;
}
.hero h1 { max-width: 13ch; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; padding-bottom: clamp(36px, 5vw, 64px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-side { display: flex; flex-direction: column; gap: 22px; justify-content: space-between; }

.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 54ch; counter-reset: note; }
.notes li { counter-increment: note; display: grid; grid-template-columns: 30px minmax(0, 1fr); font-size: clamp(17px, 1.4vw, 19px); }
.notes li::before { content: counter(note) "."; font-family: var(--mono); font-size: 15px; color: var(--ink-2); padding-top: 3px; }

/* A process detail: boxes on a line, a dimension under them. */
.detail { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.detail figcaption { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.detail-name { font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.flow li {
  position: relative; min-height: 96px; padding: 12px 14px; border: 2px solid var(--ink);
  background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
}
.flow li + li::before {
  content: ""; position: absolute; right: 100%; top: 50%; width: 22px; height: 2px; background: var(--ink);
}
.flow li strong { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border: 1.5px solid currentColor; font: 600 13px/1 var(--mono); }
.flow .rev .num { color: var(--fox); }
.flow li span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.flow .rev { border-color: var(--fox); }
.flow li { justify-content: flex-start; }

/* A dimension line: end ticks, a rule, the measure in the middle. */
.dim { display: flex; align-items: center; gap: 10px; height: 14px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); color: var(--ink-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; white-space: nowrap; }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* Sheet callouts: where each part of the set is drawn. */
.callouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.callouts a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--ink); background: var(--paper); text-decoration: none; font-weight: 800; font-size: 16px; transition: background 160ms var(--ease), color 160ms var(--ease); }
.callouts a:hover { background: var(--ink); color: var(--paper); }
.callouts .mono { font-weight: 400; font-size: 12px; color: inherit; opacity: 0.75; }
.subhead { margin: 36px 0 16px; font-size: 21px; }

.arr { display: inline-block; width: 1em; height: 0.6em; vertical-align: 0.08em; margin-left: 0.15em; }
.btn .arr, .tb-cta .arr { margin-left: 0.35em; }

/* --- Title block ----------------------------------------------------------- */

.titleblock {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 2px solid var(--ink); background: var(--paper); align-self: end; width: 100%; max-width: 600px;
}
.hero .titleblock { border-bottom: 0; border-right: 0; margin-left: auto; margin-right: calc(var(--gutter) * -1); }
.tb-cell { padding: 10px 16px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.tb-cell:nth-child(2n) { border-right: 0; }
.tb-wide { grid-column: span 2; border-right: 0; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tb-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; }
.tb-value { font-weight: 700; font-size: 15px; }
.tb-company { font-weight: 800; font-size: 21px; letter-spacing: 0.05em; }
.tb-rev { flex-direction: row; align-items: center; gap: 10px; border-bottom: 0; }
.tb-cta {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 16px;
  background: var(--fox); color: var(--on-fox); font-weight: 800; font-size: 18px; text-decoration: none;
  transition: background 160ms var(--ease);
}
.tb-cta:hover { background: var(--ink); color: var(--paper); }
.revmark { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 17px solid var(--fox); flex-shrink: 0; }

/* --- Drawing index (lists of sheets) ---------------------------------------- */

.index { width: 100%; border: 2px solid var(--ink); background: var(--paper); }
.index caption { text-align: left; padding: 0 0 12px; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.index th { text-align: left; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 10px 16px; border-bottom: 2px solid var(--ink); }
.index td { padding: 16px; border-bottom: 1px solid var(--ink); vertical-align: top; }
.index tr:last-child td { border-bottom: 0; }
.index .sheetno { font-family: var(--mono); font-size: 13px; white-space: nowrap; width: 110px; }
.index .title { width: 30%; }
.index .title a { font-weight: 800; font-size: 19px; text-decoration: none; white-space: nowrap; }
.index .title .arr { color: var(--fox); }
.index .title a:hover { color: var(--fox); }
.index .desc { color: var(--ink-2); }
.index .status { width: 130px; text-align: right; }
.index tbody tr { transition: background 160ms var(--ease); }
.index tbody tr:hover { background: var(--surface); }
.tag { display: inline-block; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--ink); white-space: nowrap; }
.tag-fox { border-color: var(--fox); color: var(--fox); }

/* --- Detail B: the Vibe Sec Ops loop ----------------------------------------- */

.vso { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.vso-track { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3.2fr) minmax(0, 1.2fr); gap: 22px; align-items: stretch; }
.vso-col { display: flex; flex-direction: column; gap: 12px; }
.vso-col-title { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.vso-box { border: 2px solid var(--ink); padding: 12px 14px; background: var(--paper); }
.vso-box strong { display: block; font-size: 16px; font-weight: 800; }
.vso-box span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.vso-human { border-color: var(--fox); }

.vso-pipe { border: 2px solid var(--ink); padding: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.vso-pipe .gates { flex: 1 0 auto; grid-auto-rows: 1fr; }
.gates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.gate {
  --i: 0;
  position: relative; min-height: 116px; padding: 10px 8px 8px; border: 1.5px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; background: var(--paper);
}
.gate b { font-size: 13px; font-weight: 800; line-height: 1.2; }
.gate i { font: 600 10px var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pass); }
.gate i::before { content: "PASS"; }
.gate { border-color: var(--pass); background: var(--pass-tint); }
.wire { position: relative; height: 4px; background: var(--grid); overflow: hidden; }
.wire::after { content: ""; position: absolute; inset: 0; background: var(--fox); transform-origin: left; transform: scaleX(1); }
.vso-out { display: flex; flex-direction: column; gap: 12px; }
.vso-release { border-color: var(--pass); }
.vso-branch { border: 2px dashed var(--fox); padding: 12px 14px; display: none; }
.vso-branch strong { display: block; color: var(--fox); font-size: 15px; font-weight: 800; }
.vso-branch span { font-size: 13px; color: var(--ink); line-height: 1.45; }
.vso-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.vso-status { font-size: 15px; color: var(--ink-2); min-height: 1.6em; }

/* Running: gates start drawn but blank, then stamp PASS one after another as
 * the change travels the wire. Without script this never applies, and the
 * finished state above is what everyone sees. */
.vso.is-running .gate { animation: gate-stamp 380ms var(--ease) both; animation-delay: calc(var(--i) * 420ms + 300ms); }
.vso.is-running .gate i { animation: stamp-in 260ms var(--ease) both; animation-delay: calc(var(--i) * 420ms + 520ms); }
.vso.is-running .wire::after { animation: wire-run 3240ms linear both; }
.vso.is-running .vso-release { animation: gate-stamp 380ms var(--ease) both; animation-delay: 3300ms; }

.vso.is-finding .gate[data-finding] { border-color: var(--fox); background: var(--fox-tint); }
.vso.is-finding .gate[data-finding] i { color: var(--fox); }
.vso.is-finding .gate[data-finding] i::before { content: "FINDING"; }
.vso.is-finding .gate[data-finding] ~ .gate { border-color: var(--ink); background: var(--paper); }
.vso.is-finding .gate[data-finding] ~ .gate i { visibility: hidden; }
.vso.is-finding .wire::after { transform: scaleX(0.58); }
.vso.is-finding .vso-release { border-color: var(--ink); opacity: 0.5; }
.vso.is-finding .vso-branch { display: block; }
.vso.is-finding.is-running .gate[data-finding] ~ .gate { animation: none; }
.vso.is-finding.is-running .wire::after { animation: wire-stop 1900ms linear both; }
.vso.is-finding.is-running .vso-release { animation: none; }
.vso.is-finding.is-running .vso-branch { animation: branch-in 420ms var(--ease) both; animation-delay: 1900ms; }

@keyframes gate-stamp {
  from { border-color: var(--ink); background: var(--paper); }
  60% { transform: translateY(-2px); }
  to { transform: none; }
}
@keyframes stamp-in { from { opacity: 0; transform: scale(1.4); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wire-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wire-stop { from { transform: scaleX(0); } to { transform: scaleX(0.58); } }
@keyframes branch-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* --- Offering sheets ------------------------------------------------------- */

.sheet-title {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(28px, 4vw, 48px);
  border-bottom: 2px solid var(--ink);
}
.sheet-title h1 { max-width: 16ch; }
.sheet-title .lede { margin-top: 18px; }
.sheet-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; }
.who { max-width: 52ch; }
.gets { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.gets li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 8px 32px; padding: 16px 0; border-bottom: 1px solid var(--ink); }
.gets b { font-size: 18px; font-weight: 800; }
.gets span { color: var(--ink-2); }

.dates { width: 100%; border: 2px solid var(--ink); }
.dates td, .dates th { padding: 16px; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.dates th { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); border-bottom-width: 2px; }
.dates tr:last-child td { border-bottom: 0; }
.dates .when { font-weight: 800; white-space: nowrap; width: 200px; }
.sources { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.sources li + li { margin-top: 4px; }

.links-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 8px; }

.shot { margin: 0; border: 2px solid var(--ink); background: var(--surface); }
.shot img { width: 100%; }
.shot figcaption { padding: 10px 14px; border-top: 1px solid var(--ink); font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Closing sheet: the call to contact sales at the foot of every page. */
.close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 32px 56px; align-items: end; padding: clamp(40px, 6vw, 72px) 0 0 var(--gutter); }
.close h2 { max-width: 18ch; }
.close .titleblock { border-right: 0; border-bottom: 0; }
.close-copy { padding-bottom: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 18px; }

/* --- Prose (about, legal, method) ------------------------------------------ */

.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin-top: 18px; font-size: clamp(24px, 2.4vw, 32px); }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--ink); max-width: 720px; }
.facts div { padding: 14px 16px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.facts div:nth-child(2n) { border-right: 0; }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }

.compare { width: 100%; border: 2px solid var(--ink); }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.compare thead th { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); border-bottom-width: 2px; }
.compare tbody th { font-weight: 800; width: 22%; }
.compare td:last-child { color: var(--ink); }
.compare td:nth-child(2) { color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 0; }

/* --- Forms ------------------------------------------------------------------ */

.form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-row.one { grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
input, select, textarea {
  font: 400 17px var(--font); color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: 0; padding: 11px 12px; min-height: 48px; width: 100%;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--fox); outline-offset: 2px; }
.field-error { color: var(--fox); font-weight: 600; font-size: 14px; }
.has-error input, .has-error textarea { border-color: var(--fox); }
.form-alert { border: 2px solid var(--fox); padding: 12px 14px; color: var(--ink); background: var(--fox-tint); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px 64px; }
.next { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.next li { padding: 14px 0; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.next b { font-weight: 800; }
.next span { color: var(--ink-2); font-size: 15px; }
.next + p, aside .muted + .muted { margin-top: 16px; }

/* --- Footer: the sheet's revision strip --------------------------------------- */

.sheet-foot {
  border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
}
.sheet-foot > div { padding: 22px var(--gutter) 26px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.sheet-foot > div:last-child { border-right: 0; }
.sheet-foot h2 { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.sheet-foot a { text-decoration: none; font-weight: 600; font-size: 15px; }
.sheet-foot a:hover { text-decoration: underline; }
.sheet-foot p { font-size: 14px; color: var(--ink-2); }
.foot-strip { border-top: 1px solid var(--ink); padding: 10px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: var(--ink-2); }
.foot-strip a { color: var(--ink-2); }

/* --- Learn library ---------------------------------------------------------- */

.page-head { padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(28px, 4vw, 44px); border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { max-width: 20ch; }
.learn-body { padding: clamp(32px, 5vw, 56px) var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.learn-guide { border: 2px solid var(--ink); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: var(--paper); }
.learn-guide p { max-width: 60ch; }
.series-card { border: 2px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.series-card h2 { font-size: 26px; }
.series-card h2 a { text-decoration: none; }
.article-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.article-list li { border-bottom: 1px solid var(--ink); }
.article-list a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; }
.article-list a:hover .article-title { color: var(--fox); }
.article-series { font: 600 12px var(--mono); letter-spacing: 0.06em; color: var(--ink-2); text-transform: uppercase; }
.article-title { font-weight: 800; font-size: 21px; line-height: 1.25; }

.article-desc { color: var(--ink-2); max-width: 75ch; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: clamp(32px, 5vw, 56px) var(--gutter); }
.article { min-width: 0; max-width: 74ch; }
.article-head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); }
.article-head h1 { font-size: clamp(34px, 4.4vw, 56px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--ink-2); }
.article h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 44px 0 14px; scroll-margin-top: 24px; }
.article h3 { margin: 28px 0 10px; }
.article p, .article ul, .article ol { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 6px; }
.article blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 1px solid var(--ink); color: var(--ink-2); }
.callout, .takeaways { border: 2px solid var(--ink); background: var(--surface); padding: 16px 18px; margin: 0 0 20px; }
.callout p:last-child, .takeaways ul:last-child, .takeaways p:last-child { margin-bottom: 0; }
.callout-label, .takeaways-label { font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.takeaways { border-color: var(--fox); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 2px solid var(--ink); }
.table-wrap table { width: 100%; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--surface); font-weight: 800; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 40px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border: 2px solid var(--ink); font: 700 13px/22px var(--mono); text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--ink); margin-bottom: 20px; }
.faq-list > div, .faq-list > details { border-bottom: 1px solid var(--ink); padding: 14px 0; }
.faq-list dt, .faq-list summary { font-weight: 800; cursor: pointer; }
.faq-list dd { margin: 8px 0 0; color: var(--ink); }
.article-sources ol { padding-left: 22px; font-size: 15px; color: var(--ink-2); }
.author-box { border: 2px solid var(--ink); padding: 18px 20px; margin: 32px 0; display: flex; flex-direction: column; gap: 6px; }
.author-label { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.author-name { font-weight: 800; font-size: 19px; }
.author-creds { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.author-bio { color: var(--ink-2); margin: 0 !important; }
.series-nav { border-top: 2px solid var(--ink); padding-top: 18px; margin: 32px 0; display: flex; flex-direction: column; gap: 12px; }
.series-nav-label { font-size: 14px; color: var(--ink-2); margin: 0 !important; }
.series-nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.series-nav-links a, .series-soon { border: 2px solid var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.series-soon { border-style: dashed; color: var(--ink-2); }
.series-next { text-align: right; }
.series-dir { font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.series-title { font-weight: 800; }
.article-related h2 { margin-top: 32px; }
.related-list { list-style: none; padding: 0 !important; border-top: 2px solid var(--ink); }
.related-list li { border-bottom: 1px solid var(--ink); margin: 0 !important; }
.related-list a { display: grid; gap: 2px; padding: 14px 0; text-decoration: none; }
.related-title { font-weight: 800; }
.related-desc { color: var(--ink-2); font-size: 15px; }
.article-cta { border: 2px solid var(--ink); padding: 22px; margin-top: 40px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.article-cta h2 { margin: 0 !important; }
.section-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.article-rail { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 24px; }
.rail-card { border: 2px solid var(--ink); padding: 16px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.rail-card h2 { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.rail-card ol, .rail-card ul { margin: 0; padding-left: 18px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }

/* --- Narrow screens ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .dwg { display: none; }
  .vso-track { grid-template-columns: minmax(0, 1fr); }
  .gates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-rail { position: static; }
}

@media (max-width: 900px) {
  .sheet { margin: 10px; min-height: calc(100vh - 20px); outline-offset: 4px; }
  .sheet-head { gap: 14px; position: relative; }
  .nav { display: none; }
  .menu { display: block; }
  .hero, .two-col, .contact-grid, .close, .sheet-title { grid-template-columns: minmax(0, 1fr); }
  .hero .titleblock, .close .titleblock { margin: 0 calc(var(--gutter) * -1); max-width: none; width: auto; border-left: 0; }
  .close { padding-right: var(--gutter); }
  .close .titleblock { margin-right: calc(var(--gutter) * -1); }
  .sheet-meta { align-items: flex-start; text-align: left; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow li { min-height: 0; }
  .flow li + li::before { right: auto; left: 24px; top: auto; bottom: 100%; width: 2px; height: 16px; }
  .gets li { grid-template-columns: minmax(0, 1fr); }
  .sheet-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sheet-foot > div:first-child { grid-column: span 2; border-right: 0; border-bottom: 1px solid var(--ink); }
  .sheet-foot > div:nth-child(3) { border-right: 0; }
  .sheet-foot > div:last-child { grid-column: span 2; border-top: 1px solid var(--ink); }
  .index thead { display: none; }
  .index, .index tbody, .index tr, .index td { display: block; width: auto; }
  .index tr { border-bottom: 1px solid var(--ink); padding: 12px 14px; }
  .index tr:last-child { border-bottom: 0; }
  .index td, .index .title, .index .sheetno, .index .status { border: 0; padding: 2px 0; text-align: left; width: auto; }
  .index .status { text-align: left; padding-top: 8px; }
  .index .status:empty { display: none; }
  .facts, .form-row { grid-template-columns: minmax(0, 1fr); }
  .facts div { border-right: 0; }
  .facts div:nth-last-child(2) { border-bottom: 1px solid var(--ink); }
  .series-nav-links { grid-template-columns: minmax(0, 1fr); }
  .series-next { text-align: left; }
  .dates .when { width: auto; }
}

@media (max-width: 560px) {
  .callouts { grid-template-columns: minmax(0, 1fr); }
  .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand span { font-size: 17px; }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .tb-cell { border-right: 0; }
  .tb-wide { grid-column: auto; }
  .dates thead { display: none; }
  .dates, .dates tbody, .dates tr, .dates td { display: block; width: auto; }
  .dates td { border: 0; padding: 4px 16px; }
  .dates tr { border-bottom: 1px solid var(--ink); padding: 10px 0; }
  .dates tr:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  :root { --paper: #fff; --ink: #18202e; --ink-2: #5b6270; --grid: #fff; --rule: #8a9099; --fox: #c2410c; --surface: #fff; --on-fox: #fff; }
  body { background: #fff; }
  .sheet { margin: 0; outline: 0; }
  .menu, .nav, .skip, .vso-controls { display: none; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gate:nth-child(1) { --i: 0; }
.gate:nth-child(2) { --i: 1; }
.gate:nth-child(3) { --i: 2; }
.gate:nth-child(4) { --i: 3; }
.gate:nth-child(5) { --i: 4; }
.gate:nth-child(6) { --i: 5; }
.gate:nth-child(7) { --i: 6; }
.vso figcaption { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.facts dt, .facts dd { margin: 0; }
