/* Arta Cyber Inc. - site.css
   One stylesheet, no preprocessor, no framework. Generated pages live in the
   repo root; the generator is scripts/build_pages.py.

   Rules this file keeps, each because it was broken once:
   - Bronze #A5845E is a GRAPHIC colour on the light ground (3.21:1 fails AA
     for text). Readable bronze on light is --bronze-ink. On navy, bronze is
     fine as text (5.0:1).
   - Container link styles are wrapped in :where() so they carry zero
     specificity and can never repaint a .btn nested inside them (the 1.00:1
     navy-on-navy button of the previous build).
   - No text-transform: uppercase anywhere. No monospace in nav, buttons,
     eyebrows or labels: mono is for protocol names, status values and the
     inside of a sample document.
   - No `transition: all`. Every motion rule is off under
     prefers-reduced-motion (block at the end of the file). */

/* ---------------------------------------------------------------- fonts */

@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Italic-Latin1.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/assets/fonts/IBMPlexSerif-Regular-Latin1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/assets/fonts/IBMPlexSerif-Italic-Latin1.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* --------------------------------------------------------------- tokens */

:root {
  --ground: #F7F6F3;
  --paper: #FFFFFF;
  --sheet: #FDFCF9;
  --sunk: #EFEDE7;
  --field: #E4E0D6;
  --ink: #101A2C;
  --ink-body: #1F2939;
  --ink-2: #414A5A;
  --ink-3: #555E6D;
  --bronze: #A5845E;
  --bronze-ink: #7A5C39;
  --line: rgba(16, 26, 44, 0.12);
  --line-strong: rgba(16, 26, 44, 0.26);
  --navy: #101A2C;
  --navy-2: #172338;
  --on-navy: #F7F6F3;
  --on-navy-2: #BAC1CD;
  --on-navy-line: rgba(247, 246, 243, 0.14);
  --focus: #1B4FA0;

  --sans: "Plex Sans", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --serif: "Plex Serif", "IBM Plex Serif", Georgia, serif;

  /* one spacing scale, used everywhere */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1280px;
  --section: clamp(72px, 9vw, 136px);
  --radius: 4px;

  --ease: cubic-bezier(.25, 1, .5, 1);
  --t-reveal: 520ms;
  --t-ui: 160ms;

  --fs-display: clamp(34px, 3.4vw + 24px, 76px);
  --fs-h1: clamp(34px, 2.3vw + 22px, 56px);
  --fs-h2: clamp(27px, 1.25vw + 21px, 38px);
  --fs-h3: 21px;
  --fs-lede: clamp(18px, 0.4vw + 16.5px, 21px);
  --fs-body: 17px;
  --fs-small: 14px;
}
@media (min-width: 1200px) { :root { --fs-body: 18px; } }

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-body);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 600; }
code, kbd, samp { font-family: var(--mono); font-size: 0.9em; }
::selection { background: rgba(165, 132, 94, 0.28); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.band--navy :focus-visible, .site-footer :focus-visible { outline-color: #E9D3B4; }

.skip {
  position: absolute; left: var(--s4); top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-navy);
  padding: var(--s3) var(--s4); border-radius: var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: var(--s4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------- typography */

.display {
  font-size: var(--fs-display); font-weight: 400; line-height: 1.03;
  letter-spacing: -0.035em;
}
h1, .h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1.07; letter-spacing: -0.03em; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.14; letter-spacing: -0.022em; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.28; letter-spacing: -0.012em; }
.lede { font-size: var(--fs-lede); line-height: 1.52; color: var(--ink-2); letter-spacing: -0.005em; }
.small, .caption { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-3); }
.eyebrow {
  display: block;
  font-size: 15px; font-weight: 500; line-height: 1.3;
  color: var(--bronze-ink); letter-spacing: 0;
  margin-bottom: var(--s4);
}
.measure { max-width: 66ch; }
.prose > * + * { margin-top: 1.05em; }
.prose :where(a:not(.btn)) {
  color: var(--ink); text-decoration-line: underline;
  text-decoration-color: rgba(165, 132, 94, 0.7);
  text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.prose :where(a:not(.btn)):hover { text-decoration-color: var(--ink); }

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--ink); color: var(--on-navy);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 16px/1.2 var(--sans); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, border-color var(--t-ui) ease;
}
.btn:hover { background: #22304A; border-color: #22304A; }
.btn__arrow { transition: transform var(--t-ui) var(--ease); flex: 0 0 auto; }
.btn:hover .btn__arrow, .golink:hover .btn__arrow { transform: translateX(3px); }
.btn--light { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 15px; }

.golink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 4px 0;
  color: var(--ink); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.golink span { border-bottom: 1px solid var(--bronze); padding-bottom: 2px; transition: border-color var(--t-ui) ease; }
.golink:hover span { border-bottom-color: var(--ink); }
.band--navy .golink { color: var(--on-navy); }
.band--navy .golink:hover span { border-bottom-color: var(--on-navy); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s6); }
.actions__note { flex-basis: 100%; margin-top: calc(-1 * var(--s2)); }

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand__mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: 0.14em; line-height: 1; white-space: nowrap; color: var(--ink); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 14px;
  background: none; border: 0; border-radius: var(--radius);
  font: 400 16px/1.2 var(--sans); color: var(--ink-body);
  text-decoration: none; cursor: pointer;
  transition: color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { color: var(--ink); background: rgba(16, 26, 44, 0.05); }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__trigger { color: var(--ink); box-shadow: inset 0 -2px 0 var(--bronze); border-radius: 0; }
.nav__chev { transition: transform var(--t-ui) var(--ease); }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__cta { margin-left: var(--s4); }
.nav__item { position: static; }
.nav__list { position: relative; }
.nav-ready .nav__fallback { display: none; }
html:not(.nav-ready) .panel { display: none; }

.panel {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 60;
  width: min(760px, calc(100vw - 2 * var(--gutter)));
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 26, 44, 0.06), 0 18px 40px -12px rgba(16, 26, 44, 0.22);
  padding: var(--s6);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 170ms ease, transform 170ms var(--ease), visibility 0s linear 170ms;
}
.panel--narrow { width: 340px; grid-template-columns: 1fr; }
.nav__item.is-open > .panel { opacity: 1; visibility: visible; transform: none; transition: opacity 170ms ease, transform 170ms var(--ease), visibility 0s; }
.panel__heading { font-size: var(--fs-small); font-weight: 500; color: var(--ink-3); margin-bottom: var(--s3); }
.panel__list a {
  display: block; padding: 7px 0; text-decoration: none; color: var(--ink);
  font-size: 16px; line-height: 1.35; border-bottom: 1px solid var(--line);
}
.panel__group--quiet .panel__list a { font-size: 15px; color: var(--ink-2); }
.panel__list a:hover { color: var(--bronze-ink); }
.panel__list a[aria-current="page"] { color: var(--bronze-ink); }
.panel__foot { grid-column: 1 / -1; padding-top: var(--s2); }

.header__actions { display: none; align-items: center; gap: 8px; margin-left: auto; }
.header__cta { min-height: 44px; padding: 8px 14px; font-size: 14.5px; white-space: nowrap; }
.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 500 15px/1 var(--sans); color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header__actions { display: flex; }
  .nav-ready .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ground); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 76px); overflow-y: auto;
    padding: var(--s2) var(--gutter) var(--s6);
  }
  .nav-ready .nav.is-open { display: block; }
  html:not(.nav-ready) .site-header .wrap { flex-wrap: wrap; }
  html:not(.nav-ready) .nav-toggle { display: none; }
  .nav { width: 100%; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item, .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__trigger { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 18px; border-radius: 0; }
  .nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { background: none; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--bronze-ink); }
  .panel, .panel--narrow {
    position: static; width: auto; box-shadow: none; border: 0; border-radius: 0; background: transparent;
    padding: 0 0 var(--s5); grid-template-columns: 1fr; gap: var(--s5);
    display: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__item.is-open > .panel { display: grid; }
  .nav__cta { margin: var(--s5) 0 0; border-bottom: 0 !important; }
  .nav__cta .btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 520px) {
  .brand__name { font-size: 15px; letter-spacing: 0.1em; }
  .brand__mark { width: 32px; height: 32px; }
  .site-header .wrap { gap: 12px; }
  /* Menu becomes icon-only; its text stays for screen readers. */
  .nav-toggle { padding: 8px 12px; min-width: 44px; justify-content: center; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* With the full-length label there is not room for the wordmark as well on
   the narrowest phones: the mark stays, the name remains the link's
   accessible name through aria-label. */
@media (max-width: 440px) {
  .site-header:has(.header__cta--long) .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

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

.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--sunk { background: var(--sunk); }
.section--paper { background: var(--paper); }
.section--desk { background: #E9E5DC; }
.section:not(.section--sunk):not(.section--paper):not(.section--desk) + .section:not(.section--sunk):not(.section--paper):not(.section--desk) { padding-top: 0; }
.section--sunk + .section--sunk, .section--paper + .section--paper { padding-top: 0; }
.section__head { max-width: 760px; margin-bottom: var(--s8); }
.section__head .lede { margin-top: var(--s4); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6) var(--s6); }
.split__aside { grid-column: 1 / span 4; }
.split__main { grid-column: 5 / -1; }
.split__aside--sticky { position: sticky; top: 108px; align-self: start; }
@media (max-width: 900px) {
  .split__aside, .split__main { grid-column: 1 / -1; }
  .split__aside--sticky { position: static; }
}

.rule-top { border-top: 1px solid var(--line-strong); padding-top: var(--s5); }

/* -------------------------------------------------------------- images */

.ph {
  position: relative; overflow: hidden;
  background-color: var(--field);
  background-image:
    linear-gradient(rgba(16, 26, 44, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 26, 44, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph img[hidden] { display: none; }
.ph:not(.ph--empty)::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(16, 26, 44, 0.08); pointer-events: none; }
.indexcard {
  position: relative; min-height: 340px; display: flex; flex-direction: column;
  background: var(--sheet); border: 1px solid rgba(16, 26, 44, 0.14);
  box-shadow: 6px 6px 0 -1px #F1EEE7, 6px 6px 0 0 rgba(16, 26, 44, 0.12), 0 24px 48px -30px rgba(16, 26, 44, 0.35);
  padding: clamp(24px, 3vw, 40px);
}
.indexcard__head { font-size: 14px; font-weight: 500; color: var(--bronze-ink); }
.indexcard__rule { width: 40px; height: 2px; background: var(--bronze); margin: var(--s4) 0 var(--s5); }
.indexcard ul { display: grid; gap: 0; }
.indexcard li { font-size: clamp(17px, 0.6vw + 13px, 21px); font-weight: 500; letter-spacing: -0.012em; color: var(--ink); line-height: 1.3; padding: 12px 0; border-bottom: 1px solid var(--line); }
.indexcard li:first-child { border-top: 1px solid var(--line-strong); }
.indexcard__foot { margin-top: auto; padding-top: var(--s5); display: flex; justify-content: space-between; gap: var(--s4); font-size: 11.5px; color: #5A6270; border-top: 1px solid rgba(16, 26, 44, 0.22); }
.indexcard__foot span:first-child { letter-spacing: 0.1em; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .indexcard { aspect-ratio: auto; min-height: 0; } }
.ph--empty::after {
  content: ""; position: absolute; left: 24px; bottom: 24px; width: 48px; height: 2px; background: var(--bronze);
}
.figcap { margin-top: var(--s3); font-size: var(--fs-small); color: var(--ink-3); }

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

.hero { position: relative; overflow-x: clip; }
.hero__band { position: relative; height: clamp(380px, 74vh, 800px); }
.hero__stage { position: absolute; inset: 0; }
.hero__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1500ms ease-in-out;
}
.hero__stage img.is-on { opacity: 1; z-index: 2; }
.hero__stage img.was-on { opacity: 1; z-index: 1; }
.no-js .hero__stage img:first-child, .hero__stage img:only-child { opacity: 1; }

.hero__meta {
  position: absolute; right: var(--gutter); bottom: var(--s5); z-index: 3;
  display: flex; align-items: center; gap: 2px;
}
.hero__caption, .hero__pause {
  background: var(--ground); color: var(--ink-2);
  font: 400 13px/1.2 var(--sans);
  min-height: 32px; padding: 8px 12px; border: 0;
}
.hero__caption { border-radius: var(--radius) 0 0 var(--radius); display: inline-flex; align-items: center; gap: 10px; }
.hero__caption:only-child { border-radius: var(--radius); }
.hero__ticks { display: inline-flex; gap: 4px; }
.hero__ticks i { display: block; width: 14px; height: 2px; background: var(--line-strong); transition: background-color 400ms ease; }
.hero__ticks i.is-on { background: var(--bronze); }
.hero__pause { border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; color: var(--ink); min-width: 32px; display: inline-flex; align-items: center; justify-content: center; }
.hero__pause:hover { background: var(--paper); }
.no-js .hero__pause, .reduced .hero__pause { display: none; }
.no-js .hero__caption, .reduced .hero__caption { border-radius: var(--radius); }

.hero__panelwrap { position: relative; z-index: 4; margin-top: clamp(-300px, -19vw, -96px); }
.hero__panel {
  background: var(--ground);
  max-width: 820px;
  padding: clamp(28px, 4vw, 60px) clamp(24px, 4.4vw, 64px) 0 0;
  position: relative;
}
.hero__panel::before {
  /* the panel continues to the left page edge, so it reads as a sheet laid
     over the photograph rather than a box floating on it */
  content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--ground);
}
.hero__panel .display { max-width: 16ch; }
.hero__panel .lede { margin-top: var(--s5); max-width: 60ch; }
.hero__rule { display: block; width: 56px; height: 2px; background: var(--bronze); margin-bottom: var(--s5); }
@media (max-width: 700px) {
  .hero__band { height: 54vw; min-height: 190px; max-height: 420px; }
  .hero__panelwrap { margin-top: -40px; }
  .hero__panel { padding-right: var(--s5); padding-top: var(--s5); }
  .hero__panel .lede { margin-top: var(--s4); }
  .hero .actions { margin-top: var(--s5); }
  .hero__meta { right: var(--s3); bottom: calc(40px + var(--s3)); }
  .hero__caption { font-size: 12px; }
}

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

.statement {
  font-size: clamp(24px, 1.5vw + 17px, 36px); font-weight: 400; line-height: 1.3;
  letter-spacing: -0.018em; color: var(--ink); max-width: 30ch;
}
.statement-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6); }
.statement-wrap > .statement { grid-column: 3 / -1; }
.statement-wrap > .statement-mark { grid-column: 1 / span 2; padding-top: 0.6em; }
.statement-mark span { display: block; height: 1px; background: var(--bronze); width: 100%; max-width: 120px; }
.statement__more { grid-column: 3 / -1; max-width: 62ch; color: var(--ink-2); }
@media (max-width: 800px) {
  .statement-wrap > .statement, .statement__more { grid-column: 1 / -1; }
  .statement-wrap > .statement-mark { grid-column: 1 / -1; }
  .statement-mark span { max-width: 56px; }
}

/* "find yourself by what you run": a ruled matrix, not a card grid */
.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.matrix__cell {
  display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s6) var(--s6) var(--s6) 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none; color: inherit;
  position: relative;
}
.matrix__cell:nth-child(2n) { padding-left: var(--s6); border-left: 1px solid var(--line-strong); padding-right: 0; }
.matrix__cell h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: var(--s4); }
.matrix__cell h3 .btn__arrow { margin-top: 8px; color: var(--bronze-ink); }
.matrix__cell p { color: var(--ink-2); max-width: 52ch; }
.matrix__cell:hover h3 { color: var(--bronze-ink); }
.matrix__cell:hover .btn__arrow { transform: translateX(3px); }
.protocols { display: flex; flex-wrap: wrap; gap: 6px 6px; margin-top: auto; padding-top: var(--s3); }
.protocols li {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.3; color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 3px 7px;
}
@media (max-width: 760px) {
  .matrix { grid-template-columns: 1fr; }
  .matrix__cell, .matrix__cell:nth-child(2n) { padding: var(--s5) 0; border-left: 0; }
}

/* service index: lead as a ruled register, supporting as a quieter column */
.register { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6); }
.register__lead { grid-column: 1 / span 8; }
.register__support { grid-column: 10 / -1; }
.register__label { font-size: 15px; font-weight: 500; color: var(--ink-3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line-strong); }
.svc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 20px; gap: var(--s5);
  align-items: baseline;
  padding: var(--s5) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.svc-row__name { font-size: 20px; font-weight: 500; letter-spacing: -0.012em; color: var(--ink); line-height: 1.3; }
.svc-row__line { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.svc-row .btn__arrow { color: var(--bronze-ink); align-self: center; }
.svc-row:hover .svc-row__name { color: var(--bronze-ink); }
.svc-row:hover .btn__arrow { transform: translateX(3px); }
.svc-mini { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.svc-mini__name { display: block; font-weight: 500; color: var(--ink); font-size: 16px; }
.svc-mini__line { display: block; font-size: 14.5px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.svc-mini:hover .svc-mini__name { color: var(--bronze-ink); }
@media (max-width: 1000px) {
  .register__lead, .register__support { grid-column: 1 / -1; }
  .register__support { margin-top: var(--s5); }
}
@media (max-width: 640px) {
  .svc-row { grid-template-columns: minmax(0, 1fr) 20px; gap: var(--s2) var(--s4); }
  .svc-row__line { grid-column: 1 / 2; grid-row: 2; }
  .svc-row .btn__arrow { grid-row: 1 / span 2; grid-column: 2; }
}

/* method line: stages on a drawn line, no numbers */
.route { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: var(--s7); }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.route li { position: relative; padding: 32px var(--s5) 0 0; }
.route li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--sunk); border: 1.5px solid var(--ink);
}
.route li:last-child::before { background: var(--bronze); border-color: var(--bronze); }
.route__name { display: block; font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.route__body { display: block; margin-top: var(--s2); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 800px) {
  .route { grid-auto-flow: row; }
  .route::before { left: 5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .route li { padding: 0 0 var(--s5) 32px; }
  .route li::before { top: 6px; }
}

/* tools */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
.tool { display: flex; flex-direction: column; gap: var(--s4); }
.tool .ph { aspect-ratio: 16 / 10; border-radius: 2px; }
.tool__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.tool__head h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.status {
  font-family: var(--mono); font-size: 12.5px; line-height: 1; padding: 5px 8px; border-radius: 2px;
  border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap;
}
.status--live { border-color: #3C6B4E; color: #2F5A40; }
.status--dev { border-color: var(--bronze); color: var(--bronze-ink); }
.tool p { color: var(--ink-2); max-width: 58ch; }
@media (max-width: 800px) { .tools { grid-template-columns: 1fr; } }

/* ------------------------------------------------- the sample document
   The site's proof. A page of a real deliverable set into the page: a sheet
   with its own paper, its own title block and its own type (Plex Serif for
   running text, Plex Mono for identifiers), and a caption that says plainly
   it is a representative, redacted sample. */

.specimen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6); align-items: start; grid-auto-flow: dense; }
.specimen__intro { grid-column: 1 / span 4; grid-row: 1; }
.specimen__after { grid-column: 1 / span 4; grid-row: 2; }
.specimen__after > h3:first-child { margin-top: 0 !important; }
.specimen__sheetwrap { grid-column: 5 / -1; grid-row: 1 / span 2; }
@media (max-width: 1000px) {
  .specimen__intro, .specimen__sheetwrap, .specimen__after { grid-column: 1 / -1; grid-row: auto; }
}
.sheet-stack { position: relative; padding: 0 10px 10px 0; }
.sheet-stack::before, .sheet-stack::after {
  content: ""; position: absolute; border: 1px solid rgba(16, 26, 44, 0.12); background: #F6F3EC; border-radius: 1px;
}
.sheet-stack::before { inset: 10px 0 0 10px; }
.sheet-stack::after { inset: 5px 5px 5px 5px; background: #FCFBF7; }

.sheet {
  position: relative; z-index: 1;
  background: var(--sheet);
  border: 1px solid rgba(16, 26, 44, 0.14);
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(16, 26, 44, 0.04), 0 24px 48px -28px rgba(16, 26, 44, 0.35);
  color: #1D2433;
}
.sheet__top {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid rgba(16, 26, 44, 0.16);
  font-size: 12.5px; color: #4A5261;
}
.sheet__org { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink); font-size: 11.5px; }
.sheet__org img { width: 18px; height: 18px; }
.sheet__stamp {
  font-size: 12px; font-weight: 500; color: #7A2E22;
  border: 1px solid rgba(122, 46, 34, 0.55); padding: 3px 8px; border-radius: 2px;
}
.sheet__body { padding: clamp(20px, 3.4vw, 44px) clamp(16px, 3vw, 36px) clamp(20px, 3vw, 36px); }
.sheet__title { font: 500 clamp(20px, 1vw + 15px, 26px)/1.2 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.sheet__rule { height: 2px; width: 40px; background: var(--bronze); margin: var(--s4) 0 var(--s5); }

.doc { font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: #1D2433; }
.doc > * + * { margin-top: 0.9em; }
.doc h3, .doc h4, .doc h5 { font-family: var(--sans); color: var(--ink); letter-spacing: -0.01em; }
.doc h3 { font-size: 19px; font-weight: 500; }
.doc h4 { font-size: 16.5px; font-weight: 600; margin-top: 1.4em; }
.doc h4:first-child, .doc h3:first-child { margin-top: 0; }
.doc h5 { font-size: 14px; font-weight: 600; margin-top: 1.2em; }
.doc p { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc ul { list-style: square; }
.doc ol { list-style: decimal; }
.doc li + li { margin-top: 0.3em; }
.doc li::marker { color: var(--bronze); }
.doc code, .doc kbd, .doc samp { font-family: var(--mono); font-size: 0.86em; color: #16223A; background: rgba(16, 26, 44, 0.05); padding: 1px 4px; border-radius: 2px; overflow-wrap: anywhere; }
.doc pre { font-family: var(--mono); font-size: 13px; line-height: 1.55; background: #F4F2EC; border-left: 2px solid var(--bronze); padding: var(--s4); overflow-x: auto; white-space: pre; max-width: 100%; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
.doc blockquote { font-style: italic; border-left: 2px solid var(--bronze); padding-left: var(--s4); color: #3A4252; }
.doc strong { font-weight: 600; }
.doc em { font-style: italic; }
.doc dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--s5); font-size: 14.5px; }
.doc dt { font-family: var(--sans); font-weight: 500; color: var(--ink-2); }
.doc dd { margin: 0; }
.doc .note, .doc small, .doc .muted { font-family: var(--sans); font-size: 13px; color: #4F5766; }
.doc .sample-meta { font-family: var(--sans); font-size: 13.5px; color: #4F5766; line-height: 1.5; padding: 8px 0 10px; border-top: 1px solid rgba(16, 26, 44, 0.16); border-bottom: 1px solid rgba(16, 26, 44, 0.16); }
.doc .sample-meta strong { color: var(--ink); }
.doc .sample-finding > * + * { margin-top: 0.9em; }
.doc hr { border: 0; border-top: 1px solid rgba(16, 26, 44, 0.16); margin: 1.4em 0; }

.doc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1em; }
.doc-scroll:focus-visible { outline-offset: 2px; }
.doc table {
  width: 100%; border-collapse: collapse; font-family: var(--sans);
  font-size: 13.5px; line-height: 1.4; font-variant-numeric: tabular-nums;
}
.doc caption { caption-side: top; text-align: left; font: 500 13px/1.4 var(--sans); color: #4F5766; padding-bottom: 8px; }
.doc thead th {
  text-align: left; font-weight: 600; color: var(--ink); font-size: 12.5px;
  border-bottom: 1.5px solid var(--ink); padding: 8px 12px 8px 0; vertical-align: bottom; white-space: nowrap;
}
.doc tbody td, .doc tbody th { border-bottom: 1px solid rgba(16, 26, 44, 0.12); padding: 9px 12px 9px 0; vertical-align: top; text-align: left; }
.doc tbody th { font-weight: 500; }
.doc tbody tr:last-child td { border-bottom-color: rgba(16, 26, 44, 0.3); }
.doc tbody td:first-child { white-space: nowrap; }
.doc td code { background: none; padding: 0; font-size: 12.5px; white-space: nowrap; }

@media (max-width: 640px) {
  .doc table[data-stack] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc table[data-stack], .doc table[data-stack] tbody, .doc table[data-stack] tr, .doc table[data-stack] td, .doc table[data-stack] tbody th { display: block; width: 100%; }
  .doc table[data-stack] caption { display: block; }
  .doc table[data-stack] tr { padding: 10px 0 12px; border-bottom: 1px solid rgba(16, 26, 44, 0.16); }
  .doc table[data-stack] tr:first-child { border-top: 1.5px solid var(--ink); }
  .doc table[data-stack] td, .doc table[data-stack] tbody th { border: 0; padding: 3px 0; display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; white-space: normal; }
  .doc table[data-stack] td::before, .doc table[data-stack] tbody th::before { content: attr(data-label); font-size: 11.5px; font-weight: 500; color: #5A6270; padding-top: 2px; }
  .doc table[data-stack] tbody td:first-child { font-weight: 600; color: var(--ink); }
}
.titleblock {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(16, 26, 44, 0.22);
  font-size: 11.5px; line-height: 1.3; color: #4A5261;
}
.titleblock div { padding: 10px clamp(12px, 2vw, 20px); border-left: 1px solid rgba(16, 26, 44, 0.14); min-width: 0; }
.titleblock div:first-child { border-left: 0; padding-left: clamp(16px, 3vw, 36px); }
.titleblock b { display: block; font-weight: 500; color: #5A6270; font-size: 10.5px; margin-bottom: 3px; }
.titleblock span { color: var(--ink); font-size: 12.5px; }
@media (max-width: 560px) {
  @media (max-width: 640px) {
  .doc table[data-stack] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc table[data-stack], .doc table[data-stack] tbody, .doc table[data-stack] tr, .doc table[data-stack] td, .doc table[data-stack] tbody th { display: block; width: 100%; }
  .doc table[data-stack] caption { display: block; }
  .doc table[data-stack] tr { padding: 10px 0 12px; border-bottom: 1px solid rgba(16, 26, 44, 0.16); }
  .doc table[data-stack] tr:first-child { border-top: 1.5px solid var(--ink); }
  .doc table[data-stack] td, .doc table[data-stack] tbody th { border: 0; padding: 3px 0; display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; white-space: normal; }
  .doc table[data-stack] td::before, .doc table[data-stack] tbody th::before { content: attr(data-label); font-size: 11.5px; font-weight: 500; color: #5A6270; padding-top: 2px; }
  .doc table[data-stack] tbody td:first-child { font-weight: 600; color: var(--ink); }
}
.titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock div:nth-child(3) { border-left: 0; padding-left: 16px; }
  .titleblock div:nth-child(n+3) { border-top: 1px solid rgba(16, 26, 44, 0.14); }
}
.specimen__caption { margin-top: var(--s4); display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-small); color: var(--ink-3); }
.specimen__caption strong { color: #7A2E22; font-weight: 500; white-space: nowrap; }

/* ------------------------------------------------------ service pages */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--ink-3); padding-top: var(--s6); }
.crumbs a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.pagehead { padding: var(--s7) 0 var(--s9); }
.pagehead + .section:not([class*="section--"]) { padding-top: var(--s4); }
.pagehead__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6); align-items: end; }
.pagehead__text { grid-column: 1 / span 6; }
.pagehead__media { grid-column: 8 / -1; }
.pagehead__media .ph { aspect-ratio: 3 / 2; border-radius: 2px; }
.pagehead--plain .pagehead__text { grid-column: 1 / span 9; }
.pagehead .lede { margin-top: var(--s5); max-width: 58ch; }
@media (max-width: 900px) {
  .pagehead__text, .pagehead__media, .pagehead--plain .pagehead__text { grid-column: 1 / -1; }
  .pagehead__media .ph { aspect-ratio: 3 / 2; }
  .pagehead__media { order: 0; }
  .pagehead { padding-top: var(--s5); }
}

.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s7); }
.scope__item { padding: var(--s5) 0; border-top: 1px solid var(--line-strong); }
.scope__item dt { font-weight: 600; color: var(--ink); font-size: 17px; }
.scope__item dd { margin-top: var(--s2); color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .scope { grid-template-columns: 1fr; } }

.approach { border-left: 1px solid var(--line-strong); margin-left: 5px; }
.approach li { position: relative; padding: 0 0 var(--s6) var(--s6); }
.approach li:last-child { padding-bottom: 0; }
.approach li::before {
  content: ""; position: absolute; left: -6px; top: 9px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ground); border: 1.5px solid var(--ink);
}
.approach li:last-child::before { background: var(--bronze); border-color: var(--bronze); }
.section--sunk .approach li::before { background: var(--sunk); }
.approach h3 { font-size: 20px; font-weight: 600; }
.approach p { margin-top: var(--s2); color: var(--ink-2); max-width: 62ch; }

.checklist li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 1.5px; background: var(--bronze); }
.worked { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.worked li { font-size: 14.5px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 5px 10px; color: var(--ink-2); }

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s5);
  padding: var(--s5) 0; font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-top: 8px;
  border-right: 1.5px solid var(--bronze-ink); border-bottom: 1.5px solid var(--bronze-ink);
  transform: rotate(45deg); transition: transform var(--t-ui) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq summary:hover { color: var(--bronze-ink); }
.faq__a { padding: 0 0 var(--s5); max-width: 66ch; color: var(--ink-2); }
.faq__a > * + * { margin-top: 0.8em; }

.tiein {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); align-items: center;
  padding: var(--s5) var(--s6); background: var(--paper); border: 1px solid var(--line); border-left: 2px solid var(--bronze);
}
.tiein__name { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tiein p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .tiein { grid-template-columns: 1fr; gap: var(--s3); } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.related a {
  display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5) 0 0;
  border-top: 2px solid var(--ink); text-decoration: none; color: inherit;
}
.related__name { font-weight: 500; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.related__line { font-size: 15px; color: var(--ink-2); }
.related a:hover .related__name { color: var(--bronze-ink); }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }

/* ---------------------------------------------- the closing navy band */

.band--navy { background: var(--navy); color: var(--on-navy); padding: var(--section) 0 calc(var(--section) * 0.8); }
.band--navy h2, .band--navy h3 { color: var(--on-navy); }
.band--navy .lede, .band--navy p { color: var(--on-navy-2); }
.band--navy .eyebrow { color: var(--bronze); }
.close { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6); }
.close__text { grid-column: 1 / span 6; }
.close__text h2 { font-size: clamp(30px, 2vw + 22px, 48px); font-weight: 400; letter-spacing: -0.028em; line-height: 1.1; }
.close__text .lede { margin-top: var(--s5); }
.close__offers { grid-column: 8 / -1; display: grid; gap: var(--s5); align-content: start; }
.offer { padding: var(--s5) 0 0; border-top: 1px solid var(--on-navy-line); }
.offer p { margin-top: var(--s3); font-size: 15.5px; }
.offer .btn { margin-top: 0; }
.useful { margin-top: var(--s6); }
.useful h3 { font-size: 16px; font-weight: 600; color: var(--on-navy); }
.useful ul { margin-top: var(--s3); }
.useful li { position: relative; padding: 8px 0 8px 22px; color: var(--on-navy-2); font-size: 15.5px; border-bottom: 1px solid var(--on-navy-line); }
.useful li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1.5px; background: var(--bronze); }
@media (max-width: 900px) { .close__text, .close__offers { grid-column: 1 / -1; } }

/* -------------------------------------------------------------- footer */

.site-footer { background: var(--navy); color: var(--on-navy-2); padding: 0 0 var(--s6); font-size: 15px; }
.footer__top { border-top: 1px solid var(--on-navy-line); padding-top: var(--s8); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6); }
.footer__brand { grid-column: 1 / span 4; }
.footer__cols { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.site-footer .brand { color: var(--on-navy); }
.site-footer .brand__mark { width: 52px; height: 52px; padding: 7px; background: var(--ground); border-radius: 10px; }
.site-footer .brand__name { color: var(--on-navy); font-size: 17px; }
.footer__blurb { margin-top: var(--s5); max-width: 40ch; line-height: 1.55; }
.footer__contact { margin-top: var(--s5); display: grid; gap: 6px; font-style: normal; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 0.22em; }
.footer__col h2 { font-size: 14px; font-weight: 500; color: var(--bronze); letter-spacing: 0; margin-bottom: var(--s4); }
.footer__col li + li { margin-top: 8px; }
.footer__col a { color: var(--on-navy-2); line-height: 1.4; display: inline-block; }
.footer__col a:hover { color: var(--on-navy); }
.footer__legal { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--on-navy-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3) var(--s6); font-size: 13.5px; }
@media (max-width: 1000px) {
  .footer__brand, .footer__cols { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- page parts */

.lead-list li { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line-strong); }
.facts dt, .facts dd { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; color: var(--ink); padding-right: var(--s6); }
.facts dd { color: var(--ink-2); margin: 0; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}

.wide-photo .ph { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .wide-photo .ph { aspect-ratio: 3 / 2; } }

.proto { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.proto th, .proto td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.proto thead th { font-size: 14px; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); }
.proto td:first-child { font-family: var(--mono); font-size: 14px; color: var(--ink); white-space: nowrap; }

/* contact form */
.form { display: grid; gap: var(--s5); }
.field label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.field .hint { display: block; font-size: 14px; color: var(--ink-3); margin-top: 4px; font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color var(--t-ui) ease;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(16, 26, 44, 0.45); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form { position: relative; }
.form__note { min-height: 1.5em; font-size: 15.5px; color: var(--ink-2); }
.form__note.is-ok { color: #2F5A40; }
.form__note.is-err { color: #8A2A1C; }
.contact-lines { display: grid; gap: var(--s3); font-size: 18px; }
.contact-lines a { color: var(--ink); text-decoration-color: var(--bronze); text-underline-offset: 0.2em; }

/* products */
.product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6) var(--s7); align-items: start; }
.product__media { grid-column: 1 / span 5; position: sticky; top: 108px; }
.product__media .ph { aspect-ratio: 4 / 3; border-radius: 2px; }
.product__text { grid-column: 7 / -1; }
.product--flip .product__media { grid-column: 8 / -1; grid-row: 1; }
.product--flip .product__text { grid-column: 1 / span 6; grid-row: 1; }
.product__text h2 { font-size: var(--fs-h1); }
@media (max-width: 900px) {
  .product__media, .product__text, .product--flip .product__media, .product--flip .product__text { grid-column: 1 / -1; grid-row: auto; position: static; }
}

/* about */
.about__mark { width: 120px; height: 120px; margin-top: var(--s6); }
@media (max-width: 900px) { .about__mark { width: 72px; height: 72px; margin-top: var(--s4); } }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s7); align-items: start; }
.contact-grid__form { grid-column: 6 / -1; grid-row: 1; background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 4vw, 48px); }
.contact-grid__aside { grid-column: 1 / span 4; grid-row: 1; }
.offers-light { display: grid; gap: var(--s5); }
.offer-light { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.offer-light + .offer-light { border-top-width: 1px; border-top-color: var(--line-strong); }
.offer-light h3 { font-size: 19px; font-weight: 600; }
.offer-light p { margin-top: var(--s2); color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .contact-grid__form, .contact-grid__aside { grid-column: 1 / -1; grid-row: auto; } }

/* 404 */
.nf__links { display: grid; gap: var(--s2); }
.nf { padding: var(--s9) 0 var(--section); }

/* Below 900px every twelve-column grid becomes one column. Spanning 1/-1
   is not enough: eleven 32px gaps alone are 352px, wider than a 320px phone. */
@media (max-width: 900px) {
  .split, .pagehead__grid, .statement-wrap, .register, .specimen, .product, .contact-grid, .close, .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  /* The phone header at 320: mark, name, "Book a call" and Menu must fit in
     280px of content box with the name still showing. Measured one step at a
     time: tighter gaps recovered 10px, a 28px mark with a smaller, less spaced
     name 16.5px more, 10px button padding the last 7.6px. Menu stays 44px. */
  .site-header .wrap { gap: 8px; }
  .header__actions { gap: 6px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand__mark { width: 28px; height: 28px; }
  .site-header .brand__name { font-size: 14px; letter-spacing: 0.06em; }
  .header__cta { padding-left: 10px; padding-right: 10px; }
  .hero__band { height: 46vw; min-height: 150px; }
  .hero__panel .lede { font-size: 17px; }
}

/* --------------------------------------------------------------- reveal
   The start state is only ever applied by site.js, so a blocked script can
   never leave content hidden. */

.js-reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.js-reveal.is-in { opacity: 1; transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js-reveal, .js-reveal.is-in { opacity: 1; transform: none; transition: none; }
  .hero__stage img { transition: none; }
  .hero__stage img:not(:first-child) { display: none; }
  .hero__stage img:first-child { opacity: 1; }
  .btn__arrow, .nav__chev, .faq summary::after, .panel, .hero__ticks i { transition: none; }
  .btn:hover .btn__arrow, .golink:hover .btn__arrow, .matrix__cell:hover .btn__arrow, .svc-row:hover .btn__arrow { transform: none; }
  .hero__pause, .hero__ticks { display: none; }
  .hero__caption { border-radius: var(--radius); }
}

@media print {
  .site-header, .hero__meta, .band--navy .close__offers, .nav-toggle { display: none; }
  body { background: #fff; }
}
