/* ============================================================
   VAULTREACH — DOC. VR-001 — MASTER SPECIFICATION
   Design system: engineering document on manila drafting paper.
   Ink, one stamp colour, one blueprint plate. Nothing decorative
   that a drafting office wouldn't keep.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #e7d9b6;        /* manila drafting paper */
  --paper-deep: #dccb9e;   /* shadowed manila, plates */
  --sheet: #f2ead3;        /* lifted white-ish sheet */
  --ink: #1d160c;          /* iron-gall ink */
  --ink-soft: #5b5240;     /* faded ink */
  --rule: rgba(29, 22, 12, 0.3);
  --rule-soft: rgba(29, 22, 12, 0.16);
  --stamp: #b23a18;        /* red-lead vermilion */
  --stamp-deep: #8c2c0f;
  --print: #1d3a55;        /* prussian blue, blueprint plate */
  --print-line: #ecdfbd;   /* paper-coloured linework on blue */

  --d: "Big Shoulders", "Arial Narrow", sans-serif;
  --m: "Space Mono", "Courier New", monospace;
  --s: "Source Serif 4", Georgia, serif;

  --w: min(1180px, 92vw);  /* content width */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--s);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--stamp); color: var(--sheet); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--sheet);
  font-family: var(--m); font-size: .75rem; letter-spacing: .12em;
  padding: .7rem 1rem; z-index: 99;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- Type utilities ---------- */
.mono {
  font-family: var(--m);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mono-soft { color: var(--ink-soft); }

/* ---------- Drawing-zone rulers (page edges) ---------- */
.zone {
  position: fixed; z-index: 5; pointer-events: none;
  font-family: var(--m); font-size: .58rem; letter-spacing: .1em;
  color: var(--ink-soft); user-select: none;
}
.zone-y {
  left: 0; top: 0; bottom: 0; width: 22px;
  border-right: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; justify-content: space-around;
  align-items: center;
  background:
    repeating-linear-gradient(to bottom, var(--rule-soft) 0 1px, transparent 1px 12.5%);
}
.zone-x {
  left: 22px; right: 0; bottom: 0; height: 20px;
  border-top: 1px solid var(--rule-soft);
  display: flex; justify-content: space-around; align-items: center;
  background:
    repeating-linear-gradient(to right, var(--rule-soft) 0 1px, transparent 1px 11.1%);
}
.zone span { background: var(--paper); padding: 1px 3px; }
@media (max-width: 1100px) { .zone { display: none; } }

/* ---------- Title block (header) ---------- */
.titleblock {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: stretch;
}
.tb-cell {
  display: flex; align-items: center; gap: .65rem;
  padding: .8rem 1.1rem;
  border-right: 1px solid var(--rule);
  text-decoration: none;
}
.tb-cell:last-child { border-right: 0; }
.tb-brand .mark { width: 34px; height: 34px; transition: transform .6s var(--ease); }
.tb-brand:hover .mark, .tb-brand:focus-visible .mark { transform: rotate(60deg); }
.tb-name {
  font-family: var(--d); font-weight: 800; font-size: 1.45rem;
  letter-spacing: .04em; line-height: 1; transform: translateY(1px);
}
.tb-tag { color: var(--ink-soft); }
.tb-meta { flex-direction: column; align-items: flex-start; gap: .15rem; justify-content: center; }
.tb-now { min-width: 11ch; }
.tb-now strong { color: var(--stamp); font-weight: 700; }
.tb-nav { display: flex; align-items: stretch; padding: 0; }
.tb-nav a {
  display: flex; align-items: center; padding: 0 .9rem;
  font-family: var(--m); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
  border-right: 1px solid var(--rule-soft);
}
.tb-nav a:last-child { border-right: 0; }
.tb-nav a:hover { background: var(--ink); color: var(--paper); }
.tb-cta {
  font-family: var(--m); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper);
  padding: 0 1.3rem;
}
.tb-cta:hover { background: var(--stamp); color: var(--sheet); }
.tb-toggle { display: none; }

@media (max-width: 980px) {
  .titleblock { grid-template-columns: auto 1fr auto auto; }
  .tb-tagcell, .tb-nav, .tb-now { display: none; }
  .tb-toggle {
    display: flex; align-items: center; gap: .5rem;
    background: none; border: 0; border-left: 1px solid var(--rule);
    font-family: var(--m); font-size: .7rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink); padding: 0 1rem; cursor: pointer;
  }
}
@media (max-width: 560px) {
  .tb-meta { display: none; }
  .titleblock { grid-template-columns: auto 1fr auto; }
  .tb-cell { padding: .7rem .8rem; }
}

/* Index overlay (mobile nav) */
.index-panel {
  position: fixed; inset: 0; z-index: 30;
  background: var(--paper);
  display: none; flex-direction: column;
  padding: 1rem;
}
body.nav-open .index-panel { display: flex; }
body.nav-open { overflow: hidden; }
.index-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--ink); padding-bottom: .8rem;
}
.index-close {
  background: none; border: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--m); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .55rem .9rem; cursor: pointer;
}
.index-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.index-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; text-decoration: none;
  padding: 1.05rem .2rem;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--d); font-weight: 700; font-size: 1.6rem;
  letter-spacing: .03em; text-transform: uppercase;
}
.index-list a .mono { color: var(--ink-soft); }
.index-list a:active { color: var(--stamp); }

/* ---------- Sheets (sections) ---------- */
.frame { width: var(--w); margin-inline: auto; }
.sheet { border-top: 2px solid var(--ink); padding: 0 0 5.5rem; }
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0 2.4rem;
}
.sheet-title {
  font-family: var(--d); font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: .95; letter-spacing: .02em; text-transform: uppercase;
}
.sheet-title .no { color: var(--stamp); margin-right: .35em; }
.sheet-ref { text-align: right; }

/* lead paragraph style */
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; max-width: 62ch; }
.note { font-family: var(--m); font-size: .78rem; line-height: 1.7; letter-spacing: .02em; color: var(--ink-soft); }
.body-max { max-width: 66ch; }

/* ---------- Cover ---------- */
.cover { border-top: 0; padding-top: clamp(2rem, 5vh, 4rem); padding-bottom: 4.5rem; position: relative; }
.cover-kicker {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .8rem; margin-bottom: clamp(2rem, 6vh, 4.5rem);
}
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: clamp(2.5rem, 5vh, 3.5rem);
  align-items: start;
}
.cover-headline { grid-column: 1; min-width: 0; }
.cover-abstract { grid-column: 2; grid-row: 1; min-width: 0; }
.cover h1 {
  font-family: var(--d); font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  line-height: .9; letter-spacing: .01em; text-transform: uppercase;
}
.cover h1 .l2 { display: block; color: var(--stamp); }
/* dimension line under headline */
.dim {
  margin-top: 1.6rem;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--m); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.dim::before, .dim::after {
  content: ""; flex: 1; height: 9px;
  border-bottom: 1px solid var(--ink-soft);
  border-left: 1px solid var(--ink-soft);
  border-right: 1px solid var(--ink-soft);
  transform: translateY(-4px);
}
.cover-abstract {
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  padding: 1.7rem 1.7rem 1.9rem;
  position: relative;
  box-shadow: 6px 6px 0 0 var(--paper-deep);
}
.cover-abstract h2 { margin-bottom: .9rem; }
.cover-abstract p { font-size: 1.02rem; }
.cover-abstract p + p { margin-top: .8rem; }
.cover-meta {
  margin-top: 1.4rem; padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  display: grid; gap: .35rem;
}
.cover-ctas { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .cover-grid { grid-template-columns: 1fr; }
  .cover-headline, .cover-abstract { grid-column: 1; grid-row: auto; }
}

/* ---------- Stamp ---------- */
.stamp {
  display: inline-block;
  font-family: var(--m); font-weight: 700;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stamp);
  border: 3px double var(--stamp);
  border-radius: 3px;
  padding: .65rem 1rem;
  transform: rotate(-3.5deg);
  text-shadow: 0 0 .5px currentColor;
  mix-blend-mode: multiply;
}
.stamp-on-abstract {
  position: absolute; right: 8px; top: -32px;
  background: var(--sheet);
}
.stamp-big {
  font-size: clamp(.95rem, 2vw, 1.35rem);
  padding: .9rem 1.5rem;
  border-width: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--m); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 1rem 1.5rem;
  border: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  transition: background .15s var(--ease), color .15s var(--ease), transform .05s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translate(1px, 1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--stamp); border-color: var(--stamp); color: var(--sheet); }

/* ---------- Scope ---------- */
.scope-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 4vw, 4rem);
}
.spec-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.spec-list li {
  display: grid; grid-template-columns: 8.5rem 1fr;
  gap: 1rem; padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.spec-list .k { padding-top: .25rem; }
.spec-list .v { font-size: 1.02rem; }
.not-list { margin: 1.2rem 0 0; }
@media (max-width: 860px) {
  .scope-grid { grid-template-columns: 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Blueprint figure ---------- */
.blueprint {
  background: var(--print);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--paper-deep);
  padding: 1.1rem 1.1rem 0.6rem;
  margin-top: 2.6rem;
}
.blueprint-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blueprint svg { min-width: 760px; width: 100%; height: auto; }
.blueprint-caption {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--print-line);
  border-top: 1px solid rgba(236, 223, 189, .35);
  padding: .6rem .1rem .5rem;
  margin-top: .5rem;
}
.bp-line rect, .bp-line path, .bp-line line, .bp-line polyline, .bp-line circle {
  fill: none; stroke: var(--print-line); stroke-width: 1.6;
}
.bp-text text {
  font-family: var(--m); fill: var(--print-line);
  font-size: 14px; letter-spacing: .12em; font-weight: 700;
}
.bp-text .bp-small { font-size: 10.5px; font-weight: 400; opacity: .85; }
.bp-text .bp-fig { font-size: 12px; }
.scroll-hint { display: none; }
@media (max-width: 820px) { .scroll-hint { display: inline; } }

/* ---------- Method (procedure rows) ---------- */
.proc { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.proc li {
  display: grid;
  grid-template-columns: 7rem 1.2fr 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.proc .pno {
  font-family: var(--d); font-weight: 800;
  font-size: 2rem; line-height: 1; color: var(--stamp);
}
.proc h3 {
  font-family: var(--d); font-weight: 700; font-size: 1.35rem;
  letter-spacing: .03em; text-transform: uppercase; margin-bottom: .45rem;
}
.proc .gets {
  border-left: 1px solid var(--rule);
  padding-left: 1.4rem;
  align-self: stretch;
}
.proc .gets .mono { display: block; margin-bottom: .4rem; }
.proc .gets p { font-size: .98rem; }
@media (max-width: 860px) {
  .proc li { grid-template-columns: 1fr; gap: .7rem; }
  .proc .gets { border-left: 0; border-top: 1px dashed var(--rule); padding: .9rem 0 0; }
}

/* ---------- Terms clauses ---------- */
.clauses {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: .6rem;
}
.clause {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.clause h3 {
  font-family: var(--d); font-weight: 800; font-size: 1.7rem;
  line-height: 1; letter-spacing: .02em; text-transform: uppercase;
}
.clause p { font-size: 1rem; }
.terms-foot { margin-top: 1.6rem; }
@media (max-width: 860px) { .clauses { grid-template-columns: 1fr; } }

/* ---------- Guarantee / acceptance criteria ---------- */
.acc-wrap {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.acc-table {
  width: 100%; border-collapse: collapse;
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--paper-deep);
}
.acc-table th, .acc-table td {
  text-align: left; vertical-align: top;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.acc-table tr:last-child th, .acc-table tr:last-child td { border-bottom: 0; }
.acc-table th {
  font-family: var(--m); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  width: 11.5rem; border-right: 1px solid var(--rule);
  color: var(--ink-soft);
}
.acc-table td { font-size: 1.02rem; }
.acc-table .fail th { color: var(--stamp); }
.acc-table .fail td { font-weight: 600; color: var(--stamp-deep); }
.guarantee-copy p + p { margin-top: 1rem; }
.guarantee-stamp { margin-top: 2rem; }
@media (max-width: 900px) {
  .acc-wrap { grid-template-columns: 1fr; }
  .acc-table th { width: 9rem; }
}

/* ---------- Limits (fine print, printed large) ---------- */
.limits { list-style: none; margin: 0; padding: 0; }
.limits li {
  display: grid; grid-template-columns: 5.5rem 1fr;
  gap: 1.2rem; padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.limits .lno { font-family: var(--m); font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--stamp); padding-top: .5rem; }
.limits p {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.4; max-width: 30em;
}
.limits p em { font-style: italic; }
@media (max-width: 640px) { .limits li { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- Team plates ---------- */
.team-grid {
  display: grid; grid-template-columns: auto auto 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center;
}
.plate {
  width: clamp(120px, 16vw, 168px); aspect-ratio: 1;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  position: relative;
  /* corner rivets */
  background-image:
    radial-gradient(circle 3.5px at 11px 11px, var(--ink) 98%, transparent),
    radial-gradient(circle 3.5px at calc(100% - 11px) 11px, var(--ink) 98%, transparent),
    radial-gradient(circle 3.5px at 11px calc(100% - 11px), var(--ink) 98%, transparent),
    radial-gradient(circle 3.5px at calc(100% - 11px) calc(100% - 11px), var(--ink) 98%, transparent);
}
.plate .init {
  font-family: var(--d); font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1;
}
.plate .who {
  position: absolute; left: 0; right: 0; bottom: 8px;
  text-align: center;
  font-family: var(--m); font-size: .6rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.team-copy h3 {
  font-family: var(--d); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; letter-spacing: .02em;
  margin-bottom: .9rem;
}
@media (max-width: 820px) {
  .team-grid { grid-template-columns: auto auto; }
  .team-copy { grid-column: 1 / -1; }
}

/* ---------- Addenda ---------- */
.addendum {
  border-bottom: 1px solid var(--rule);
}
.addendum summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 5.5rem 1fr auto;
  gap: 1.2rem; align-items: baseline;
  padding: 1.3rem 0;
  font-family: var(--d); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: .02em; text-transform: uppercase;
}
.addendum summary::-webkit-details-marker { display: none; }
.addendum summary .ano { font-family: var(--m); font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--stamp); }
.addendum summary .ind { font-family: var(--m); font-size: 1rem; transition: transform .25s var(--ease); }
.addendum[open] summary .ind { transform: rotate(45deg); }
.addendum summary:hover { color: var(--stamp-deep); }
.addendum .a-body { padding: 0 0 1.5rem; }
.addendum .a-body p { max-width: 62ch; }
.addendum .a-body p + p { margin-top: .7rem; }
@media (min-width: 641px) { .addendum .a-body { padding-left: 6.7rem; } }

/* ---------- Intake form ---------- */
.intake-grid {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.intake-sheet {
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--paper-deep);
  padding: 2rem 2rem 2.2rem 2.7rem;
  position: relative;
}
/* punched filing holes */
.intake-sheet::before, .intake-sheet::after {
  content: ""; position: absolute; left: .85rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 1px 1.5px 2px rgba(29, 22, 12, .4);
}
.intake-sheet::before { top: 22%; }
.intake-sheet::after { bottom: 22%; }
.f-head {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .8rem; margin-bottom: 1.6rem;
}
.f-row { margin-bottom: 1.4rem; }
.f-row label {
  display: block;
  font-family: var(--m); font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: .5rem;
}
.f-row label .opt { color: var(--ink-soft); font-weight: 400; }
.f-row input, .f-row textarea, .f-row select {
  width: 100%;
  font-family: var(--m); font-size: .92rem; line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  padding: .85rem .9rem;
}
.f-row textarea { resize: vertical; min-height: 9.5rem; }
.f-row input:focus, .f-row textarea:focus, .f-row select:focus {
  outline: 3px solid var(--stamp); outline-offset: 1px;
}
.f-row select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 49%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 51%);
  background-position: calc(100% - 21px) 55%, calc(100% - 15px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.f-foot {
  display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap;
  margin-top: 1.8rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .intake-grid { grid-template-columns: 1fr; } }

/* ---------- Footer title block ---------- */
.foot {
  border-top: 2px solid var(--ink);
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  border-bottom: 1px solid var(--rule);
}
.foot-cell {
  padding: 1rem 1.3rem;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: .3rem; justify-content: center;
}
.foot-cell:last-child { border-right: 0; align-items: flex-end; }
.foot-cell .val { font-family: var(--m); font-size: .82rem; font-weight: 700; letter-spacing: .08em; }
.foot-base {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 0 calc(1.1rem + 20px);
}
.foot-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--stamp); }
.foot-mark { display: flex; align-items: center; gap: .6rem; }
.foot-mark .mark { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-cell { border-bottom: 1px solid var(--rule-soft); }
  .foot-cell:last-child { align-items: flex-start; }
}

/* ---------- Utility pages (thanks / 404) ---------- */
.util-page {
  min-height: 72vh; display: grid; place-items: center;
  text-align: center; padding: 3rem 0;
}
.util-page h1 {
  font-family: var(--d); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 7rem); line-height: .9; letter-spacing: .01em;
}
.util-page .lead { margin: 1.6rem auto 0; }
.util-page .btn { margin-top: 2.4rem; }
.util-stamp { margin-bottom: 2rem; }

/* ---------- Print: it is a document, after all ---------- */
@media print {
  body::before, .zone, .tb-nav, .tb-cta, .tb-toggle, .cover-ctas, .index-panel { display: none !important; }
  body { background: #fff; color: #000; }
  .titleblock { position: static; }
  .sheet { break-inside: avoid-page; }
}
/* ---------- Cookie consent bar (append to end of styles.css) ---------- */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
  background: var(--sheet);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -6px 0 0 var(--paper-deep);
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
}
.cookie-copy {
  font-family: var(--m);
  font-size: .72rem;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--ink);
  max-width: 70ch;
  text-transform: none;
}
.cookie-copy a {
  color: var(--stamp);
  text-decoration: none;
  white-space: nowrap;
}
.cookie-copy a:hover { text-decoration: underline; }
.cookie-acts { display: flex; gap: .8rem; flex-shrink: 0; }
.cookie-btn { padding: .7rem 1.2rem; font-size: .68rem; }
@media (max-width: 620px) {
  .cookie-bar { justify-content: stretch; }
  .cookie-acts { width: 100%; }
  .cookie-btn { flex: 1; }
}
