/* ==========================================================================
   Vladimirus Limited — styles.css
   Order: fonts · tokens · base · layout · header · buttons · components ·
   pages · footer · utilities · motion. Everything the site needs, one file.
   ========================================================================== */

/* 1. Fonts — self-hosted variable files (latin subset), SIL Open Font Licence 1.1 */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/oswald.woff2") format("woff2"); }
@font-face { font-family: "Vladimirus Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/vladimirus-sans.woff2") format("woff2"); }
@font-face { font-family: "Vladimirus Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/vladimirus-sans-italic.woff2") format("woff2"); }
@font-face { font-family: "Vladimirus Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/vladimirus-mono.woff2") format("woff2"); }

/* 2. Tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* colour, light */
  --bg: #FFFFFF;
  --bg-alt: #F4F4F4;
  --surface: #FFFFFF;
  --ink: #1A1C1E;          /* 17:1 on white */
  --ink-2: #666666;        /* 5.7:1 on white — secondary text */
  --rule: #CCCCCC;         /* decorative rules */
  --rule-strong: #999999;  /* stronger rules, dashed frames */
  --input-border: #808080; /* 3.9:1 — form field boundaries (#999 is 2.8:1) */
  --accent: #E91E63;       /* # markers, large type only (4.35:1) */
  --link: #D71A5F;         /* small text links, step numbers, errors (5.0:1 on white, 4.5:1 on --bg-alt) */
  --link-hover: #E05A88;   /* hover underline colour */
  --btn-bg: #D81B60;
  --btn-bg-hover: #C2185B;
  --btn-ink: #FFFFFF;      /* 4.9:1 on --btn-bg */
  --focus: #D81B60;
  --band: #1C1E20;         /* footer and dark sections while in light mode */
  --chip-bg: #F4F4F4;

  /* type */
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Vladimirus Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Vladimirus Mono", ui-monospace, Menlo, Consolas, monospace;
  --text-display: clamp(2.75rem, 1.9rem + 3.6vw, 4.5rem);  /* 44 → 72px */
  --text-h1: clamp(2.375rem, 1.85rem + 2.2vw, 3.5rem);     /* 38 → 56px */
  --text-h2: clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem);      /* 30 → 40px */
  --text-h3: clamp(1.375rem, 1.3rem + 0.3vw, 1.5rem);      /* 22 → 24px */
  --text-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); /* 19 → 22px */
  --text-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem); /* 17 → 18px */
  --text-small: 0.9375rem; /* 15px */
  --text-mono: 0.875rem;   /* 14px */
  --text-chip: 0.8125rem;  /* 13px */

  /* space, 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(56px, 3vw + 48px, 96px);
  --gutter: clamp(20px, 3vw, 32px);
  --container: 1200px;
  --measure: 68ch;

  /* radius */
  --r-s: 4px;   /* chips, inputs, small frames */
  --r-m: 8px;   /* buttons, cards, notices */
}

/* Dark set. Used three ways: forced with data-theme="dark" on <html>, as the
   system preference, and on .theme-dark surfaces (footer, CTA band) inside a
   light page. Keep the two copies in sync. */
[data-theme="dark"], .theme-dark {
  color-scheme: dark;
  --bg: #1C1E20;           /* graphite */
  --bg-alt: #161819;       /* surfaces sit a step darker */
  --surface: #161819;
  --ink: #F2F3F3;          /* 15:1 on --bg */
  --ink-2: #B5BABE;        /* 8:1 */
  --rule: #3A3E42;
  --rule-strong: #8A9095;  /* 5.2:1 */
  --input-border: #8A9095;
  --accent: #E05A88;       /* markers, status dot */
  --link: #E05A88;         /* 4.8:1 on --bg, 5.1:1 on --bg-alt */
  --link-hover: #F48FB1;
  --btn-bg: #D81B60;       /* same button in both modes; 3.4:1 against --bg */
  --btn-bg-hover: #C2185B;
  --btn-ink: #FFFFFF;      /* 4.9:1 on --btn-bg */
  --focus: #F48FB1;
  --chip-bg: #161819;
}
[data-theme="dark"] { --band: #121314; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1C1E20; --bg-alt: #161819; --surface: #161819;
    --ink: #F2F3F3; --ink-2: #B5BABE;
    --rule: #3A3E42; --rule-strong: #8A9095; --input-border: #8A9095;
    --accent: #E05A88; --link: #E05A88; --link-hover: #F48FB1;
    --btn-bg: #D81B60; --btn-bg-hover: #C2185B; --btn-ink: #FFFFFF;
    --focus: #F48FB1; --chip-bg: #161819;
    --band: #121314;
  }
}
.theme-dark { --bg: var(--band); background: var(--band); color: var(--ink); }

/* 3. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 var(--text-body) / 1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
h1, .h1 { font-size: var(--text-h1); line-height: 1.05; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.2; }
.display { font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.01em; }
.display .line { display: block; }
p, ul, ol { margin: 0; }
p { text-wrap: pretty; }
.lead { font-size: var(--text-lead); line-height: 1.5; }
.small { font-size: var(--text-small); }
.mono { font-family: var(--font-mono); font-size: var(--text-mono); line-height: 1.5; letter-spacing: 0.01em; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--ink-2); }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover, a.is-hover { text-decoration-color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible, .is-focus { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #FFFFFF; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; margin: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* The markdown motif: a muted monospace # or ## before a section title. */
.hash { font-family: var(--font-mono); font-weight: 400; color: var(--accent); font-size: 0.6em; letter-spacing: 0; margin-right: 0.5em; vertical-align: 0.14em; }

/* 4. Layout ------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head .lead { color: var(--ink); }
.page-head { padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 56px); display: grid; gap: var(--s-5); }
.page-head .lead { max-width: 62ch; }
.prose { max-width: var(--measure); display: grid; gap: var(--s-5); }
.container.prose { margin-inline: 0; margin-left: max(var(--gutter), (100% - var(--container)) / 2); }
.prose h2 { margin-top: var(--s-5); }
.prose ul:not(.chips) { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* 5. Header -------------------------------------------------------------- */
.skip-link { position: absolute; left: var(--s-4); top: -200px; z-index: 20; padding: 10px 14px; background: var(--btn-bg); color: var(--btn-ink); border-radius: var(--r-s); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: var(--s-4); }
.site-header { position: relative; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 72px; }
.brand { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: 500; font-size: 1.375rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; }
.brand-sub { font-family: var(--font-mono); font-size: var(--text-chip); color: var(--ink-2); letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: var(--s-4); }
.nav-list { display: flex; align-items: center; gap: var(--s-1); list-style: none; padding: 0; margin: 0; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); color: var(--ink); font-weight: 500; text-decoration: none; text-underline-offset: 0.35em; text-decoration-thickness: 2px; border-radius: var(--r-s); }
.nav-link:hover, .nav-link.is-hover { text-decoration: underline; text-decoration-color: var(--link-hover); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }
.menu-toggle, .menu-close { display: none; }
@media (max-width: 859px) {
  .header-bar { min-height: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 var(--s-3); margin-right: calc(-1 * var(--s-3)); color: var(--ink); font-weight: 600; text-decoration: none; background: none; border: 0; border-radius: var(--r-s); cursor: pointer; }
  .menu-icon { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) var(--gutter) var(--s-5); background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: 0 16px 32px -24px rgba(0, 0, 0, 0.35); }
  .site-nav.is-open, html:not(.js) .site-nav:target { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { min-height: 56px; padding: 0 var(--s-1); border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.125rem; }
  .nav-link[aria-current="page"], .nav-link:hover { text-underline-offset: 0.3em; }
  .nav-cta { margin-top: var(--s-5); width: 100%; }
  .menu-close { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--s-3); color: var(--ink); font-weight: 600; }
  html.js .menu-close { display: none; }
}

/* 6. Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 22px; border-radius: var(--r-m); border: 1.5px solid transparent; font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer; background: none; -webkit-tap-highlight-color: transparent; }
.btn:hover, .btn.is-hover { text-decoration: none; }
.btn-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-ink); }
.btn-secondary { color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover, .btn-secondary.is-hover { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn:focus-visible, .btn.is-focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: default; opacity: 0.7; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link-arrow:hover, .link-arrow.is-hover { text-decoration: underline; }

/* 7. Components --------------------------------------------------------- */
/* service cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--s-5); }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6) var(--s-5) var(--s-5); border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--surface); }
.card:hover, .card.is-hover { border-color: var(--rule-strong); }
.card:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.card .index { color: var(--ink-2); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:focus-visible { outline: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-more { margin-top: auto; padding-top: var(--s-2); color: var(--link); font-weight: 600; display: inline-flex; gap: 6px; }
.card:hover .card-more, .card.is-hover .card-more { text-decoration: underline; text-decoration-color: var(--link-hover); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }

/* experience strip: names as text only */
.experience { padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.experience-inner { display: grid; gap: var(--s-4); }
.experience-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--ink-2); line-height: 1.4; }

/* numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--s-6) var(--s-5); }
.step { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--ink); align-content: start; }
.step-num { color: var(--link); font-weight: 600; }
.steps-compact .step p { font-size: var(--text-small); }

/* technology chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--chip-bg); color: var(--ink); font-family: var(--font-mono); font-size: var(--text-chip); letter-spacing: 0.01em; }

.tech-line { color: var(--ink-2); }
.tech-line strong { font-weight: 600; color: var(--ink); }

/* company facts: a markdown table in monospace */
.facts { width: 100%; max-width: 760px; border: 1px solid var(--rule-strong); border-radius: var(--r-s); background: var(--bg-alt); font-family: var(--font-mono); font-size: var(--text-small); line-height: 1.55; overflow: hidden; }
.facts table { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-weight: 400; }
.facts thead th { color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); }
.facts tbody th { color: var(--ink-2); width: 12em; border-right: 1px solid var(--rule); white-space: nowrap; }
.facts tbody tr:last-child th, .facts tbody tr:last-child td { border-bottom: 0; }
.facts td a { color: var(--link); }
@media (max-width: 600px) {
  .facts tbody th, .facts tbody td { display: block; width: auto; }
  .facts tbody th { border-right: 0; border-bottom: 0; padding-bottom: 0; }
  .facts thead { display: none; }
}

/* architecture sketch: labelled boxes and arrows, no drawing */
.arch { margin: 0; display: grid; gap: var(--s-4); }
.arch-flow { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--text-chip); line-height: 1.4; }
.arch-col { flex: 1 1 0; min-width: 0; display: grid; gap: var(--s-2); align-content: center; }
.arch-node { padding: 10px 8px; text-align: center; border: 1px solid var(--ink); border-radius: var(--r-s); background: var(--bg); color: var(--ink); }
.arch-node.bus { border-style: dashed; border-color: var(--rule-strong); padding-block: 40px; }
.arch-arrow { flex: 0 0 auto; color: var(--ink-2); }
.arch-arrow::before { content: "\2192"; }
.arch figcaption { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 1100px) {
  .arch-flow { flex-direction: column; align-items: stretch; }
  .arch-arrow { text-align: center; }
  .arch-arrow::before { content: "\2193"; }
  .arch-node.bus { padding-block: 10px; }
}

/* forms */
.form { display: grid; gap: var(--s-5); max-width: 560px; }
.field { display: grid; gap: var(--s-2); }
.field > label, .field legend { font-weight: 600; padding: 0; }
.optional { font-weight: 400; color: var(--ink-2); }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--input-border); border-radius: var(--r-s); background: var(--bg); color: var(--ink); }
textarea.input { min-height: 168px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--ink-2); }
.input:focus-visible, .input.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.input[aria-invalid="true"] { border: 2px solid var(--link); padding: 9px 13px; }
.field-error { color: var(--link); font-weight: 600; font-size: var(--text-small); }
.field-error[hidden] { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: grid; gap: var(--s-1); }
.radio { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; }
.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--link); flex: 0 0 auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: var(--text-small); color: var(--ink-2); }
.form-note { display: grid; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--rule-strong); border-radius: var(--r-m); background: var(--bg-alt); }
.form-note[hidden] { display: none; }
.form-note .mono { color: var(--link); font-weight: 600; }
.form-note:focus-visible { outline-offset: 2px; }

/* 8. Pages -------------------------------------------------------------- */
/* home */
.hero { padding-block: clamp(64px, 8vw, 128px) clamp(56px, 6vw, 96px); }
.hero-inner { display: grid; gap: var(--s-6); max-width: 900px; }
.hero .display { max-width: 16ch; }
.hero .lead { max-width: 60ch; }
.hero .btn-row { margin-top: var(--s-2); }
.teaser-text { display: grid; gap: var(--s-4); max-width: 60ch; }
.teaser-text .lead { color: var(--ink); }

/* services */
.service { padding-block: clamp(48px, 5vw, 80px); border-top: 1px solid var(--rule); scroll-margin-top: var(--s-5); }
.service-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.service-intro { display: grid; gap: var(--s-4); }
.service-intro .lead { color: var(--ink); }
.service-detail { display: grid; gap: var(--s-5); }
.included { display: grid; gap: var(--s-3); }
.included h3 { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-mono); letter-spacing: 0.01em; color: var(--ink-2); text-transform: none; }
.included ul { padding-left: 1.2em; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s-2) var(--s-5); }
.included li::marker { color: var(--accent); }
@media (max-width: 859px) { .service-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--s-6) var(--s-5); }
.principle { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--ink); align-content: start; }

/* work */
.case-body { display: grid; gap: var(--s-7); }
.case-head { display: grid; gap: var(--s-4); }
.case-block { display: grid; gap: var(--s-3); max-width: 62ch; }
.case-block ul:not(.chips) { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.case-block li::marker { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 10px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sectors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s-6) var(--s-5); }
.sector { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--ink); align-content: start; }
.sector p { color: var(--ink); }
.sector .mono { display: block; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.contact-aside { display: grid; gap: var(--s-3); padding-top: var(--s-2); }
.contact-aside .mono { display: block; }
.contact-aside a { font-size: var(--text-lead); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 859px) { .contact { grid-template-columns: 1fr; gap: var(--s-6); } }

/* simple pages: 404, sent, failed */
.notice-page { padding-block: clamp(72px, 10vw, 144px); display: grid; gap: var(--s-5); max-width: 700px; }
.notice-page .code { font-family: var(--font-head); font-weight: 500; font-size: clamp(5rem, 18vw, 11rem); line-height: 0.95; letter-spacing: -0.02em; }
.notice-page .code .hash { font-size: 0.5em; vertical-align: 0.3em; }
.notice-page h2 { font-size: var(--text-h1); }

/* privacy: long-form reading layout */
.toc { padding: var(--s-4) var(--s-5); border: 1px solid var(--rule); border-radius: var(--r-s); display: grid; gap: var(--s-2); }
.toc ol { padding-left: 1.5em; display: grid; gap: 6px; font-family: var(--font-mono); font-size: var(--text-mono); }
.toc a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.toc a:hover { color: var(--link); }
.toc li::marker { color: var(--link); }

/* 9. Closing call to action and footer ---------------------------------- */
.cta-band { padding-block: clamp(56px, 6vw, 88px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6) var(--s-7); }
.cta-text { display: grid; gap: var(--s-3); max-width: 60ch; }
.cta-text .lead { color: var(--ink); }
.site-footer { padding-block: clamp(40px, 5vw, 64px) var(--s-6); border-top: 1px solid var(--rule); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-6) var(--s-7); }
.footer-brand { display: grid; gap: var(--s-2); max-width: 36ch; }
.footer-brand .brand { color: var(--ink); min-height: auto; }
.footer-brand p { color: var(--ink-2); }
.footer-brand a:not(.brand) { color: var(--ink); font-weight: 600; text-decoration-color: var(--rule-strong); display: inline-flex; min-height: 44px; align-items: center; width: fit-content; }
.footer-brand a:not(.brand):hover { text-decoration-color: var(--link-hover); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--link-hover); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.footer-legal { display: grid; gap: var(--s-2); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: var(--text-small); }
.footer-legal .mono { color: var(--ink-2); }

/* 10. Utilities --------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.section-flush-top { padding-top: 0; }
.form-note-spaced { margin-bottom: 24px; }

/* 11. Motion — only when the visitor allows it -------------------------- */
@media (prefers-reduced-motion: no-preference) {
  a, .btn, .nav-link, .card, .input { transition: color 0.15s, background-color 0.15s, border-color 0.15s, text-decoration-color 0.15s; }
  .menu-icon, .menu-icon::before, .menu-icon::after { transition: transform 0.2s, top 0.2s, background-color 0.2s; }
  .btn .spinner { animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
