/* Shared design tokens — Vector Operations Solutions (VOS) brand family.
   Taken from the client's current vectoroperations.com (2025 rebuild): black,
   white, light grey, and VOS red #CE0707 (the colour named in the client's own
   logo file, VOS-Red-CE0707-Landscape.png). Display type Bebas Neue, body Archivo.
   OPFOR is a VOS sub-brand and uses these tokens unchanged; only its logo
   lockup and header treatment differ (site.json). See docs/DECISIONS.md D8–D9. */
:root {
  --black: #0b0b0b;
  --black-2: #161616;
  --black-3: #242424;
  --paper: #ffffff;
  --surface: #f7f7f7;
  --rule: #e2e2e2;
  --text: #141414;
  --muted: #4d4d4d;
  --on-dark: #f2f2f2;
  --on-dark-muted: #b3b3b3;

  --red: #ce0707;          /* brand red: 5.9:1 on white — links, buttons, marks */
  --red-bright: #f92222;   /* on black: 5.4:1 — links and accents on dark bands */
  --red-soft: #fbe6e6;

  /* legacy names used by components */
  --accent: var(--red);
  --accent-soft: var(--red-soft);
  --accent-on-dark: var(--red-bright);

  --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --wide: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: 6rem;
  --radius: 2px;
}

/* Self-hosted brand fonts (SIL Open Font License; OFL-*.txt beside them).
   Archivo is one variable file covering weights 400–600. */
@font-face { font-family: "Bebas Neue"; src: url("/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Shared base styles and components, VOS brand family. No JavaScript anywhere
   in the UI: the mobile menu is <details>, the form posts natively. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.7 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; color: var(--black); letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); margin: 0 0 var(--space-3); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: var(--space-5) 0 var(--space-2); }
h3 { font-size: 1.7rem; margin: var(--space-4) 0 var(--space-1); }
h4 { font: 400 1rem/1.3 var(--font-display); letter-spacing: .28em; text-transform: uppercase; margin: var(--space-3) 0 var(--space-1); }
p, ul, ol { margin: 0 0 var(--space-2); }
li + li { margin-top: .35rem; }
strong { font-weight: 600; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: var(--space-1) var(--space-2); z-index: 10; }
.skip:focus { left: var(--space-2); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > h4, .prose > aside, .prose > .form { max-width: var(--measure); }

/* Staging banner and unconfirmed-content markers */
.staging { background: #3a3a3a; color: #fff; text-align: center; font-size: .82rem; padding: .35rem var(--gutter); letter-spacing: .02em; }
mark.ctc { background: #fff3b0; color: #5a4300; padding: 0 .2em; border-radius: 2px; font-size: .92em; }

/* Header — light (VOS) or dark (OPFOR), set per site */
.site-header { background: var(--surface); color: var(--text); box-shadow: 0 6px 24px rgba(0,0,0,.08); position: relative; z-index: 3; }
.site-header.dark { background: var(--black); color: var(--on-dark); box-shadow: none; border-bottom: 1px solid var(--black-3); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 5.25rem; }
.lockup { display: inline-flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1.1; }
.lockup img { height: 3rem; width: auto; }
.wordmark { font: 400 1.8rem/1 var(--font-display); letter-spacing: .08em; }
.endorse { font: 400 .8rem/1 var(--font-display); letter-spacing: .3em; color: var(--muted); margin-top: .35rem; }
.site-header.dark .endorse { color: var(--on-dark-muted); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); flex-wrap: wrap; }
.nav li + li { margin: 0; }
.nav a { color: inherit; text-decoration: none; font: 400 1.05rem/1 var(--font-display); letter-spacing: .18em; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }
.site-header.dark .nav a:hover, .site-header.dark .nav a[aria-current="page"] { color: var(--red-bright); border-bottom-color: var(--red-bright); }
.nav-toggle { display: none; }
@media (max-width: 60rem) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle summary { list-style: none; cursor: pointer; font: 400 1.1rem/1 var(--font-display); letter-spacing: .2em; color: var(--red); padding: .6rem .2rem; }
  .site-header.dark .nav-toggle summary { color: var(--red-bright); }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle ul { position: absolute; right: 0; top: calc(100% + .75rem); background: var(--black); padding: var(--space-3); flex-direction: column; gap: var(--space-2); min-width: 16rem; z-index: 5; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
  .nav-toggle a { color: var(--on-dark); }
}

/* Hero — black band with the VOS diagonal red shard */
.hero { position: relative; overflow: hidden; background: var(--black); color: var(--on-dark); padding: var(--space-5) 0 var(--space-6); }
.hero::after { content: ""; position: absolute; right: -8%; top: -20%; width: 42%; height: 150%; background: linear-gradient(180deg, rgba(206,7,7,.9), rgba(206,7,7,.55)); transform: skewX(-18deg); opacity: .9; pointer-events: none; }
.hero::before { content: ""; position: absolute; right: 30%; top: -20%; width: 7%; height: 150%; background: rgba(206,7,7,.35); transform: skewX(-18deg); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { font: 400 1rem/1 var(--font-display); letter-spacing: .4em; color: var(--red-bright); margin: 0 0 var(--space-2); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { font-size: 1.2rem; color: var(--on-dark); max-width: 56ch; }
.hero .lede p { margin: 0; }
.hero a { color: var(--red-bright); }
.page-head { position: relative; overflow: hidden; background: var(--black); color: var(--on-dark); padding: var(--space-5) 0 var(--space-4); }
.page-head::after { content: ""; position: absolute; right: -6%; top: -30%; width: 22%; height: 170%; background: var(--red); transform: skewX(-18deg); opacity: .85; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head .eyebrow { font: 400 .95rem/1 var(--font-display); letter-spacing: .4em; color: var(--red-bright); margin: 0 0 var(--space-1); }
.page-head h1 { color: #fff; margin: 0; max-width: 18ch; }

main { padding: var(--space-4) 0 var(--space-5); }
main .prose > h2:first-child { margin-top: var(--space-2); }
.note { border-left: 3px solid var(--red); background: var(--surface); padding: var(--space-2) var(--space-3); margin: var(--space-3) 0; }
.note p { margin: 0; }
figure { margin: var(--space-3) 0; }

.cta { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: .95rem 1.6rem .8rem; border-radius: var(--radius); font: 400 1.15rem/1 var(--font-display); letter-spacing: .3em; }
.cta:hover { background: #a80505; }
.hero .cta { margin-top: var(--space-3); color: #fff; }

/* Photo behind the hero or page head, darkened so white type stays readable */
.head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-bg, .page-head.has-bg { background: var(--black); }
.hero.has-bg .wrap::before, .page-head.has-bg .wrap::before { content: none; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0; width: auto; height: auto; right: 0; top: 0; transform: none; background: linear-gradient(90deg, rgba(11,11,11,.94) 0%, rgba(11,11,11,.82) 45%, rgba(11,11,11,.35) 100%); z-index: 1; }
.page-head.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.7) 60%, rgba(11,11,11,.45) 100%); z-index: 1; }
.hero.has-bg .wrap, .page-head.has-bg .wrap { z-index: 2; }
.hero.has-bg::after, .page-head.has-bg::after { z-index: 1; opacity: .85; width: 14%; right: -3%; }
.hero.has-bg { padding: var(--space-6) 0; }
.page-head.has-bg { padding: var(--space-6) 0 var(--space-4); }
.prose figure img { width: auto; max-width: min(100%, 42rem); }

/* Card grid: :::cards blocks in Markdown */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--space-3); margin: var(--space-3) 0 var(--space-4); }
.card { background: var(--surface); border-top: 3px solid var(--red); padding: var(--space-3); min-width: 0; }
.card h3 { margin-top: 0; font-size: 1.6rem; }
.card p:last-child { margin-bottom: 0; }

/* Photo slot awaiting client clearance: [[PHOTO: file | what it shows]] */
.photo-pending { display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 9; width: 100%; max-width: 42rem; background: repeating-linear-gradient(135deg, var(--black-2) 0 14px, var(--black-3) 14px 28px); color: var(--on-dark-muted); padding: var(--space-3); margin: var(--space-3) 0; font-size: .9rem; }
.photo-pending strong { display: block; font: 400 1rem/1.2 var(--font-display); letter-spacing: .25em; color: var(--red-bright); margin-bottom: .4rem; }

/* Enquiry form */
.form { margin-top: var(--space-3); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font: 400 1rem/1.2 var(--font-display); letter-spacing: .22em; margin-bottom: .35rem; }
.field .hint { font: 400 .85rem var(--font-body); letter-spacing: 0; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #8f8f8f; border-radius: var(--radius); background: #fff; color: var(--text); }
.field textarea { min-height: 10rem; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button { font: 400 1.15rem/1 var(--font-display); letter-spacing: .3em; background: var(--red); color: #fff; border: 0; border-radius: var(--radius); padding: .95rem 1.6rem .8rem; cursor: pointer; }
.form button:hover { background: #a80505; }
.form .small { font-size: .9rem; color: var(--muted); margin-top: var(--space-2); }
.turnstile { margin: var(--space-2) 0; min-height: 65px; }

/* Sister-brand band and footer */
.sister { background: var(--surface); border-top: 1px solid var(--rule); padding: var(--space-4) 0; }
.sister p { max-width: var(--measure); margin: 0; }
.site-footer { background: var(--black); color: var(--on-dark-muted); font-size: .92rem; padding: var(--space-5) 0 var(--space-4); }
.site-footer a { color: var(--on-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3); }
.site-footer .foot-logo { height: 2.6rem; width: auto; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer li + li { margin: 0; }
.site-footer ul a { font: 400 1rem/1 var(--font-display); letter-spacing: .22em; text-decoration: none; }
.site-footer ul a:hover { color: var(--red-bright); }

/* ---- Homepage and section-band layout (see docs/HOMEPAGE-UX.md) ---------- */
.header-cta { padding: .75rem 1.1rem .6rem; font-size: 1rem; letter-spacing: .22em; white-space: nowrap; }
@media (max-width: 60rem) { .header-cta { display: none; } }
.site-header .wrap { gap: var(--space-3); }
.nav-desktop { margin-left: auto; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; }
.hero .cta { margin-top: 0; }
.cta-ghost { display: inline-block; color: #fff; text-decoration: none; padding: .9rem 1.5rem .75rem; border: 2px solid rgba(255,255,255,.7); border-radius: var(--radius); font: 400 1.15rem/1 var(--font-display); letter-spacing: .3em; }
.cta-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.band:not(.band-dark) .cta-ghost { color: var(--black); border-color: var(--black); }
.band:not(.band-dark) .cta-ghost:hover { background: var(--black); color: #fff; }
.hero h1 { max-width: 16ch; }
.proof { list-style: none; margin: var(--space-5) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid rgba(255,255,255,.22); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--space-2) var(--space-4); max-width: 64rem; }
.proof li { margin: 0; padding-left: 1rem; border-left: 3px solid var(--red-bright); font-size: .98rem; line-height: 1.4; color: var(--on-dark); }
.hero.has-bg { min-height: min(52rem, 88vh); display: flex; align-items: flex-end; }
.hero.has-bg .wrap { width: 100%; }

main.bands { padding: 0; }
.band { padding: var(--space-6) 0; }
.band-tight { padding: var(--space-5) 0; }
.band-grey { background: var(--surface); }
.band-dark { background: var(--black); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a:not(.cta):not(.cta-ghost) { color: var(--red-bright); }
.band-dark .feature { border-top-color: var(--red-bright); }
.band h2 { margin-top: 0; max-width: 22ch; }
.band .wrap > p, .band .split-col > p, .band .wrap > ul { max-width: var(--measure); }
.band > .wrap > h2 + p { font-size: 1.15rem; color: var(--muted); }
.band-dark > .wrap > h2 + p { color: var(--on-dark-muted); }

.split { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.split-col { min-width: 0; }
.split figure { margin: 0; }
.split figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-col > h2:first-child { margin-top: 0; }

.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
@media (min-width: 64rem) {
  .cards:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .cards:has(> :nth-child(5):last-child) > :nth-child(-n+3) { grid-column: span 2; }
  .cards:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
}
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--red); padding: 0; overflow: hidden; }
.band-grey .card { background: var(--paper); }
.card > figure { margin: 0; order: -1; }
.card > figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; max-width: none; }
.card > h3, .card > p { padding: 0 var(--space-3); }
.card > h3 { margin-top: var(--space-3); }
.card > p:last-child { margin-top: auto; padding-bottom: var(--space-3); }
.card a { font: 400 1.05rem/1 var(--font-display); letter-spacing: .22em; text-decoration: none; }
.card a::after { content: " →"; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--space-4) var(--space-3); margin-top: var(--space-4); }
.feature { border-top: 2px solid var(--red); padding-top: var(--space-2); min-width: 0; }
.feature h3 { font-size: 1.55rem; margin: 0 0 var(--space-1); }
.feature p { margin: 0; }
.band-dark .feature p { color: var(--on-dark-muted); }

.steps ol { list-style: none; counter-reset: step; margin: var(--space-4) 0 var(--space-3); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-3); }
.steps li { counter-increment: step; margin: 0; padding-top: var(--space-2); border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 400 2.6rem/1 var(--font-display); color: var(--red); margin-bottom: var(--space-1); }
.steps li strong { display: block; font: 400 1.45rem/1.1 var(--font-display); letter-spacing: .02em; margin-bottom: .3rem; }

.contact-list { margin: var(--space-3) 0; display: grid; gap: var(--space-2); }
.contact-list div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-2); align-items: baseline; }
.contact-list dt { font: 400 1rem/1.3 var(--font-display); letter-spacing: .25em; color: var(--muted); }
.band-dark .contact-list dt, .site-footer .contact-list dt { color: var(--on-dark-muted); }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.contact-list.compact div { grid-template-columns: 5.5rem 1fr; }
.contact-list.compact dd { font-size: .95rem; }

/* Footer */
.site-footer { padding: var(--space-5) 0 0; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: start; }
@media (min-width: 56rem) { .site-footer .foot-grid { grid-template-columns: 1.3fr 1fr 1.4fr; } }
.foot-brand p { max-width: 34ch; margin-top: var(--space-2); }
.foot-h { font: 400 1rem/1 var(--font-display); letter-spacing: .3em; color: #fff; margin: 0 0 var(--space-2); }
.site-footer .foot-nav ul { display: grid; gap: .6rem; }
.site-footer .foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-5); padding: var(--space-3) var(--gutter); border-top: 1px solid var(--black-3); font-size: .85rem; }
.site-footer .foot-base p { margin: 0; }
.page-lede { color: var(--on-dark); font-size: 1.15rem; max-width: 56ch; margin: var(--space-2) 0 0; }
.hero .cta-ghost, .band-dark .cta-ghost { color: #fff; }

/* Choice credit — last line of every footer (Choice kit standard) */
.foot-credit { padding: 0 var(--gutter) var(--space-3); }
.site-footer .credit { color: var(--on-dark-muted); font-size: .82rem; text-decoration: none; }
.site-footer .credit span { color: var(--red-bright); }
.site-footer .credit:hover { color: #fff; }

/* ---- Review link only: review bar, review nav, start page, questions ---- */
.review-bar { background: #3a3a3a; color: #fff; font-size: .85rem; }
.review-bar .wrap { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: .45rem; }
.rb-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.review-bar a { color: #fff; }
.review-nav { background: var(--surface); border-bottom: 1px solid var(--rule); font-size: .95rem; }
.review-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.review-nav li + li { margin: 0; }
.review-nav a { display: block; padding: .6rem .8rem; color: var(--text); text-decoration: none; font: 400 1.05rem/1 var(--font-display); letter-spacing: .18em; border-bottom: 2px solid transparent; }
.review-nav a[aria-current] { border-bottom-color: var(--red); color: var(--red); }
.eyebrow-dark { font: 400 1rem/1 var(--font-display); letter-spacing: .35em; color: var(--red); margin: 0 0 var(--space-1); }
.start-lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.start-cards { margin-top: var(--space-4); }
.start-card { padding: var(--space-3); }
.start-card .tag { font: 400 .9rem/1 var(--font-display); letter-spacing: .3em; color: var(--red); margin: 0; }
.start-card h3 { margin: var(--space-1) 0; }
.start-card h3 a { color: var(--black); text-decoration: none; }
.start-card > p:last-child { margin-top: auto; padding: 0; }
.start-card a.cta-ghost::after { content: none; }
.dir { list-style: none; padding: 0; columns: 3 14rem; column-gap: var(--space-4); margin: var(--space-3) 0 0; }
.dir li { break-inside: avoid; margin: 0 0 .5rem; }
.qa-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; background: #fff; border: 1px solid var(--rule); padding: .75rem 1rem; box-shadow: 0 10px 24px rgba(0,0,0,.08); margin: var(--space-3) 0 var(--space-4); }
.qa-bar p { margin: 0; }
.qa-name { display: flex; gap: .5rem; align-items: center; font-weight: 600; }
.qa-name input { font: inherit; border: 1px solid #8f8f8f; padding: .45rem .6rem; width: 12rem; }
.qa-status { color: var(--muted); font-size: .9rem; margin-left: auto !important; }
.qa-bar .cta { font-size: 1rem; padding: .7rem 1rem .55rem; border: 0; cursor: pointer; }
.qa-h { margin-top: var(--space-5); }
.qa { background: #fff; border: 1px solid var(--rule); border-left: 5px solid var(--rule); padding: var(--space-3); margin: 0 0 var(--space-2); }
.qa.answered { border-left-color: var(--red); }
.qa header { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.qa-n { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--black); color: #fff; font-weight: 600; font-size: .9rem; margin: 0; }
.qa h3 { margin: 0; flex: 1 1 18rem; font-size: 1.5rem; }
.qa-open { font-size: .9rem; white-space: nowrap; }
.qa-show { margin: .75rem 0 0 2.75rem; }
.qa-show p { max-width: 70ch; }
.qa-answer { margin: 1rem 0 0 2.75rem; display: grid; gap: .6rem; }
.qa-v { display: flex; flex-wrap: wrap; gap: .5rem; }
.qa-v button { font: 600 .9rem var(--font-body); border: 1.5px solid var(--rule); background: #fff; color: var(--text); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.qa-v button:hover { border-color: var(--black); }
.qa-v button[data-v=ok][aria-pressed=true] { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.qa-v button[data-v=change][aria-pressed=true] { background: #b5591b; border-color: #b5591b; color: #fff; }
.qa-v button[data-v=question][aria-pressed=true] { background: var(--black); border-color: var(--black); color: #fff; }
.qa-answer label { font-weight: 600; font-size: .92rem; }
.qa-answer label span { font-weight: 400; color: var(--muted); }
.qa-answer textarea { display: block; width: 100%; margin-top: .25rem; font: inherit; border: 1px solid #8f8f8f; padding: .55rem .7rem; }
.qa-end { margin-top: var(--space-4); font-weight: 600; }
@media (max-width: 44rem) { .qa-show, .qa-answer { margin-left: 0; } .qa-bar { position: static; } }
@media print { .review-bar, .review-nav, .fbm-btn { display: none !important; } }
/* Four features sit 2 × 2, or in one row on wide screens — never three and an orphan. */
.features:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
@media (min-width: 72rem) { .features:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }

/* Key facts: a row of short stats. "- **13+ years** in the defence sector" */
.facts ul { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--space-3); }
.facts li { margin: 0; padding: var(--space-2) 0 0; border-top: 3px solid var(--red); line-height: 1.35; color: var(--muted); }
.facts li strong { display: block; font: 400 clamp(2.2rem, 4vw, 3rem)/1 var(--font-display); letter-spacing: .02em; color: var(--text); margin-bottom: .35rem; }
.band-dark .facts li { color: var(--on-dark-muted); border-top-color: var(--red-bright); }
.band-dark .facts li strong { color: #fff; }
.band-tight .facts ul { margin-top: 0; }

/* Timeline: "- **2015** What happened" */
.timeline ul { list-style: none; margin: var(--space-4) 0 0; padding: 0; position: relative; max-width: 46rem; }
.timeline ul::before { content: ""; position: absolute; left: 5.6rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--rule); }
.timeline li { position: relative; display: grid; grid-template-columns: 5rem 1fr; gap: 0 1.8rem; margin: 0 0 var(--space-4); }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(5.6rem - 6px); top: .45rem; width: 14px; height: 14px; background: var(--red); transform: rotate(45deg); }
.timeline li strong { font: 400 1.6rem/1 var(--font-display); letter-spacing: .04em; color: var(--red); padding-top: .1rem; }
.band-dark .timeline ul::before { background: rgba(255,255,255,.2); }
.band-dark .timeline li strong { color: var(--red-bright); }
@media (max-width: 30rem) {
  .timeline ul::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline li::before { left: 0; }
}

/* Split with the columns swapped on wide screens (text stays first for screen readers) */
@media (min-width: 56rem) { .split-reverse > .split-col:first-child { order: 2; } }
.split figure img { border-bottom: 4px solid var(--red); }

/* Split hero: text left, photo right (homepage variation B) */
.hero-split { padding: var(--space-5) 0 var(--space-4); }
.hero-split::before { content: none; }
.hero-split::after { width: 18%; right: -6%; opacity: .7; }
.hero-split > .wrap:first-child { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 60rem) { .hero-split > .wrap:first-child { grid-template-columns: 1.05fr .95fr; gap: var(--space-5); } }
.hero-split .hero-media { margin: 0; position: relative; z-index: 1; }
.hero-split .hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-width: none; box-shadow: 1.2rem 1.2rem 0 var(--red); }
@media (max-width: 60rem) { .hero-split .hero-media img { aspect-ratio: 16 / 10; box-shadow: .6rem .6rem 0 var(--red); } }
.hero-split .hero-proof { position: relative; z-index: 1; margin-top: var(--space-4); }
.hero-split .proof { margin: 0; }

/* Closing call to action band */
.band-red { background: var(--red); color: #fff; }
.band-red h2 { color: #fff; }
.band-red .cta { background: #0b0b0b; border-color: #0b0b0b; color: #fff; }
.band-red .cta-ghost { color: #fff; border-color: #fff; }
.band-center .wrap { text-align: center; }
.band-center h2, .band-center .wrap > p { margin-left: auto; margin-right: auto; }
.band:not(.band-dark):not(.band-red) .cta-ghost { color: var(--text); border-color: var(--text); }
.band .hero-actions, .band-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.band-center .band-actions { justify-content: center; }
.band-red > .wrap > h2 + p, .band-red p { color: rgba(255,255,255,.92); }
.band-intro { padding-bottom: 0; }
.band-intro + .band { padding-top: var(--space-4); }

/* ---- Landing page (join.opfor.nz) ---------------------------------------- */
.landing-header .header-cta { display: inline-block; }
@media (max-width: 60rem) { .landing-header .header-cta { display: inline-block; padding: .65rem .9rem .5rem; font-size: .9rem; letter-spacing: .16em; } }
.hero-landing { padding: var(--space-5) 0; }
.hero-landing h1 { max-width: 13ch; }
.hero-landing .proof { margin-top: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; box-shadow: 1.2rem 1.2rem 0 var(--red); }
.hero-video figcaption { margin-top: 1.6rem; font-size: .92rem; color: var(--on-dark-muted); }
@media (max-width: 60rem) {
  .hero-video video { box-shadow: .5rem .5rem 0 var(--red); }
  .hero-video figcaption { margin-top: 1rem; }
}
@media (max-width: 30rem) { .hero-landing .proof { grid-template-columns: 1fr; } }

/* Application form */
.apply-form { background: var(--paper, #fff); border: 1px solid var(--rule); border-top: 4px solid var(--red); padding: var(--space-3); margin-top: 0; }
.field-row { display: grid; gap: 0 var(--space-2); grid-template-columns: 1fr 1fr; }
@media (max-width: 30rem) { .field-row { grid-template-columns: 1fr; } }
.apply-form .field textarea { min-height: 5rem; }
.apply-form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-2); min-width: 0; }
.apply-form legend { font: 400 1rem/1.2 var(--font-display); letter-spacing: .22em; margin-bottom: .5rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { display: flex; align-items: center; gap: .6rem; font: 400 1rem/1.35 var(--font-body) !important; letter-spacing: 0 !important; margin: 0 0 .45rem; cursor: pointer; }
.choices .choice { border: 1px solid #8f8f8f; border-radius: var(--radius); padding: .6rem .85rem; margin: 0; }
.choices .choice:has(input:checked) { border-color: var(--red); background: rgba(206,7,7,.06); }
.choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--red); margin: 0; flex: none; }
.apply-form button { width: 100%; padding: 1.1rem 1.6rem .95rem; font-size: 1.25rem; }
.field input:focus-visible, .field textarea:focus-visible, .choice input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
#apply .split { align-items: start; }
#apply .split-col:first-child h2 { font-size: clamp(2.6rem, 6vw, 4rem); }

/* FAQ: native <details>, no script */
.faq { margin-top: var(--space-3); max-width: 52rem; border-top: 1px solid var(--rule); }
.band-dark .faq, .band-dark .faq details { border-color: rgba(255,255,255,.18); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-2) 2.5rem var(--space-2) 0; position: relative; font: 400 1.4rem/1.2 var(--font-display); letter-spacing: .03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; color: var(--red-bright); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 var(--space-2); max-width: var(--measure); }
.band-dark .faq details > p { color: var(--on-dark-muted); }

/* Sticky "Apply now" bar on small screens */
.sticky-cta { display: none; }
@media (max-width: 48rem) {
  .sticky-cta { display: block; position: sticky; bottom: 0; z-index: 20; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(11,11,11,.94); border-top: 1px solid var(--black-3); }
  .sticky-cta .cta { display: block; text-align: center; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 1rem; }

/* ---- Landing hero: background video ------------------------------------- */
.hero-landing.has-bg { min-height: min(46rem, 92vh); }
.hero-landing .head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-landing .hero-still { display: none; }
.hero-landing.has-bg::before { background: linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.78) 45%, rgba(11,11,11,.4) 100%); }
@media (max-width: 48rem) { .hero-landing.has-bg::before { background: linear-gradient(180deg, rgba(11,11,11,.6) 0%, rgba(11,11,11,.88) 55%, rgba(11,11,11,.95) 100%); } }
@media (prefers-reduced-motion: reduce) { .hero-landing .hero-bgvideo { display: none; } .hero-landing .hero-still { display: block; } }

/* ---- Icons --------------------------------------------------------------- */
.icon { display: inline-flex; align-items: center; justify-content: center; color: var(--red); }
.icon svg { width: 100%; height: 100%; }
.band-dark .icon, .band-red .icon { color: var(--red-bright); }
.feature h3 .icon { display: flex; width: 2.75rem; height: 2.75rem; padding: .55rem; margin-bottom: var(--space-2); border: 2px solid currentColor; border-radius: 50%; }
.steps li .icon { position: absolute; top: var(--space-2); right: 0; width: 2.2rem; height: 2.2rem; }
.steps li { position: relative; }
.wrap ul:has(> li > .icon) { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: .7rem; }
li > .icon:first-child { width: 1.35rem; height: 1.35rem; margin-right: .6rem; vertical-align: -.25rem; }

/* Steps: one row when it fits (5 across, or 3 + 3 for six), never 4 + 1 */
@media (min-width: 64rem) {
  .steps ol:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); }
  .steps ol:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .steps ol { grid-template-columns: repeat(2, 1fr); }
  .steps ol:has(> li:nth-child(5):last-child) > li:last-child { grid-column: 1 / -1; }
}

/* Apply section: left column carries reasons, a photo and the phone; it stays beside the form */
#apply .split-col:first-child figure { margin: var(--space-3) 0; }
#apply .split-col:first-child figure img { aspect-ratio: 3 / 2; }
@media (min-width: 56rem) { #apply .split-col:first-child { position: sticky; top: var(--space-3); } }
.band-dark .apply-form { color: var(--text); border-color: transparent; border-top-color: var(--red); }
.band-dark .apply-form a { color: var(--red); }

/* Embedded Jotform (join site) */
.jotform-wrap { background: #fff; border-top: 4px solid var(--red); padding: var(--space-2) var(--space-2) var(--space-1); color: var(--text); }
.jotform { display: block; width: 100%; min-height: 40rem; border: 0; background: #fff; }
.band-dark .jotform-wrap a { color: var(--red); }
.jotform-wrap .small { font-size: .9rem; color: var(--muted); margin: var(--space-1) 0 0; }
@media (max-width: 30rem) { .jotform-wrap { padding: .5rem 0 .5rem; } }

/* Landing page with an in-page menu: the header stays at the top, and sections land below it */
body:has(.hero-landing) .site-header { position: sticky; top: 0; z-index: 30; }
body:has(.hero-landing) [id] { scroll-margin-top: 6rem; }
@media (max-width: 60rem) { body:has(.hero-landing) .nav-toggle nav { max-height: calc(100vh - 6rem); overflow: auto; } }

/* VOS brand family: both sites use brand/tokens.css unchanged. Site-specific
   differences (logo, header treatment) live in site.json. */
