/* Thirty Oars — site.css. One typeface, three colours and an ochre accent. Motion is JavaScript's
   (boot.js, page.js, demos.js); everything here renders the finished, still page without it. */

@font-face {
  font-family: "Commissioner";
  src: url(/assets/fonts/commissioner-latin-v1.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 101%;
  ascent-override: 100.7%;
  descent-override: 20.4%;
  line-gap-override: 0%;
}

:root {
  --navy: #14233A; --off: #F4F1EC; --ink: #0E0E0E; /* ink is for body text on off-white only, never a surface */
  --off-80-on-navy: #C7C8C8; --off-70-on-navy: #B1B3B7;
  --off-12-on-navy: #2F3C4F; --off-8-on-navy: #263348;
  --navy-deep: #0E1929; /* behind the product demos while they load */
  --ochre: #D9A441; --ochre-deep: #8A5A12; /* accent: ochre on navy (7.0:1), the deep shade on off-white (5.3:1) */
  --ink-70-on-off: #535251; --navy-12-on-off: #D9D8D7;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --sp-2: 8px; --sp-3: 12px; --sp-6: 24px; --sp-8: 32px;
  --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-30: 120px;
}

.band--navy {
  --bg: var(--navy); --fg: var(--off); --fg-70: var(--off-70-on-navy); --fg-80: var(--off-80-on-navy);
  --rule: var(--off-12-on-navy); --h2: var(--off); --accent: var(--ochre);
  background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased;
}
.band--sheet {
  --bg: var(--off); --fg: var(--ink); --fg-70: var(--ink-70-on-off);
  --rule: var(--navy-12-on-off); --rule-strong: var(--navy); --h2: var(--navy); --accent: var(--ochre-deep);
  background: var(--bg); color: var(--fg);
}

/* Bands meet on fractional pixels, where the navy page behind can show as a hairline; each band
   covers the seam below it with its own colour */
main > section, footer { box-shadow: 0 1px 0 var(--bg); }

/* Base */
*, ::before, ::after { box-sizing: border-box; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  margin: 0; background: var(--navy); color: var(--off);
  font-family: "Commissioner", "Commissioner Fallback", system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, dt { text-wrap: balance; }
p, dd { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
a { color: currentColor; }
:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; border-radius: 0; }

.skip {
  position: absolute; top: -100px; left: 20px; z-index: 20;
  padding: var(--sp-2) var(--sp-3); background: var(--off); color: var(--navy);
  font-weight: 500; font-size: 0.9375rem; text-decoration: none;
}
.skip:focus { top: var(--sp-2); }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

/* Header and nav */
.home { display: flex; align-items: center; margin-top: 6px; height: 50px; width: max-content; } /* 6px top margin so the focus ring is not clipped by the viewport at phone widths */
.wordmark { height: 22px; width: auto; }
.wordmark--navy { display: none; }
/* Off-white header while it sits over a navy band (set by header.js; only when sticky) */
.site-header.is-light {
  --bg: var(--off); --fg: var(--navy); --fg-80: var(--navy); --accent: var(--ochre-deep);
  background: var(--off); box-shadow: 0 1px 0 var(--navy-12-on-off);
}
.site-header.is-light .wordmark { display: none; }
.site-header.is-light .wordmark--navy { display: block; }
.nav { list-style: none; margin: 0; padding: 0 0 var(--sp-2); display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 0; max-width: 20rem; }
.nav a {
  display: inline-block; font-weight: 500; font-size: 0.875rem; line-height: 1; padding-block: 15px; /* 44px rows */
  color: var(--fg-80); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: transparent; text-underline-offset: 2px;
}
.nav a:focus-visible { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 6px; }
.nav a[aria-current="page"] { color: var(--fg); text-decoration-color: var(--accent); }

/* Sections and grid */
.section { padding-block: var(--sp-16); }
.section--dark { padding-block: var(--sp-20); }
.grid { display: grid; grid-template-columns: 1fr; }
.grid > .content { min-width: 0; margin-top: var(--sp-6); }
.grid > .wide { margin-top: var(--sp-8); min-width: 0; }

h1 {
  margin: 0; font-weight: 500; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.03em; color: var(--fg);
}
h2 {
  margin: 0; font-weight: 500; font-size: clamp(2rem, 1.25rem + 2vw, 3rem);
  line-height: 1.05; letter-spacing: -0.025em; color: var(--h2);
}
h3 { margin: 0; font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--fg); }

.hero { padding-block: clamp(5rem, 2.5rem + 5vw, 7.5rem) clamp(3.5rem, 1.75rem + 3.5vw, 5rem); }
.umbrella { margin: var(--sp-6) 0 0; font-size: 1.1875rem; line-height: 1.4; letter-spacing: -0.01em; color: var(--fg); max-width: 42rem; }

.intro { margin: 0 0 var(--sp-8); font-size: 1.0625rem; line-height: 1.5; color: var(--fg-70); max-width: 36rem; text-wrap: balance; }
.content > .intro:last-child { margin-bottom: 0; }

/* Product cards (navy) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: stretch; } /* cards in a row share the tallest height */
.card {
  display: flex; flex-direction: column; min-width: 0; padding: var(--sp-6);
  background: var(--off-8-on-navy); border: 1px solid var(--off-12-on-navy); border-radius: 4px;
}
.card h3 { font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; }
.tagline { margin: var(--sp-2) 0 0; font-weight: 500; font-size: 1.1875rem; /* 19px, not 20px: keeps both taglines on one line at 1200 to 1440 */ line-height: 1.3; letter-spacing: -0.01em; color: var(--fg); text-wrap: balance; }
.body { margin: var(--sp-6) 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--fg-70); }

/* Product demo: a still image bleeding to the card's edges. */
.card.card--media { padding-top: 0; overflow: hidden; }
.demo { margin: 0 calc(-1 * var(--sp-6)) var(--sp-6); aspect-ratio: 16 / 9; background: var(--navy-deep); border-bottom: 1px solid var(--off-12-on-navy); }
.demo__image { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .demo { margin: 0 calc(-1 * var(--sp-8)) var(--sp-8); } }

/* Live demos: each product's own artwork, drawn in HTML and SVG and sized in cqw of the card so it
   scales as one picture. The markup is the finished frame, which is what visitors see without
   JavaScript or with reduced motion; assets/demos.js plays it. Colours and fonts are the products',
   not ours. Fonts load from assets/demos.css once a demo is near. */
.demo--live { container-type: inline-size; position: relative; overflow: hidden; }
.demo--live > div { position: absolute; inset: 0; }

/* Mestra: tools/mestra-demo.py writes the markup, on a 3200 × 1800 canvas, so 1cqw is 32 canvas px */
.mx { background: radial-gradient(circle at 18% 30%, #F4FAEC 0, #E3EFD6 55%, #D6E8C6 100%); font-family: Inter, sans-serif; line-height: normal; }
.mx-fmt { position: absolute; overflow: hidden; border-radius: .1875cqw; background: #F7E9D3; box-shadow: 0 .5625cqw 1.25cqw rgba(22, 36, 29, .16), 0 .0625cqw .1875cqw rgba(22, 36, 29, .1); }
.mx-master { box-shadow: 0 0 0 .3125cqw #C6F26B, 0 .9375cqw 2.1875cqw rgba(22, 36, 29, .25); }
.mx-fmt > * { position: absolute; }
.mx-sun { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFB36B, #F2793A 70%); }
.mx-hill, .mx-hill2 { border-radius: 50% 50% 0 0; background: #2B7549; }
.mx-hill2 { background: #3E8F5C; }
.mx-fill { background: #F7E9D3; }
.mx-hd { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #16241D; line-height: .95; letter-spacing: -.03em; white-space: nowrap; }
.mx-wrap { white-space: normal; }
.mx-sub { font-weight: 600; color: #16241D; opacity: .75; white-space: nowrap; }
.mx-cta { background: #16241D; color: #F7E9D3; font-weight: 600; border-radius: 999px; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.mx-logo { display: flex; align-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 600; color: #16241D; white-space: nowrap; }
.mx-logo i { display: inline-block; background: #2B7549; border-radius: 0 60% 0 60%; transform: rotate(-10deg); }
.mx-arrow { position: absolute; left: 38.906cqw; top: 25.938cqw; width: 4.375cqw; height: 4.375cqw; overflow: visible; }
.mx-arrow circle { fill: #2B7549; }
.mx-arrow path { fill: none; stroke: #C6F26B; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
/* demo:mestra */
.mx-1 { width:11cqw;height:11cqw;left:3.875cqw;top:5.17cqw }
.mx-2 { width:24.375cqw;height:5cqw;left:-8.438cqw;top:11.5cqw }
.mx-3 { width:20.625cqw;height:4cqw;right:-8.438cqw;top:12.375cqw }
.mx-4 { left:0;right:0;top:13.75cqw;bottom:0 }
.mx-5 { left:1.688cqw;top:15.25cqw;font-size:2.125cqw;width:11.05cqw }
.mx-6 { left:1.688cqw;top:19.713cqw;font-size:0.637cqw }
.mx-7 { left:1.688cqw;top:20.881cqw;height:1.169cqw;padding:0 0.68cqw;font-size:0.51cqw }
.mx-8 { font-size:1.125cqw;gap:0.337cqw;left:1.688cqw;top:1.125cqw }
.mx-9 { width:0.956cqw;height:0.956cqw }
.mx-10 { left:17.188cqw;top:15.625cqw;width:18.75cqw;height:25cqw }
.mx-11 { width:12.797cqw;height:12.797cqw;right:2.925cqw;top:1.219cqw }
.mx-12 { width:25.594cqw;height:5.484cqw;right:-4.388cqw;bottom:-1.462cqw }
.mx-13 { width:18.281cqw;height:3.656cqw;right:9.141cqw;bottom:-1.219cqw }
.mx-14 { font-size:0.853cqw;gap:0.256cqw;left:1.828cqw;top:1.219cqw }
.mx-15 { width:0.725cqw;height:0.725cqw }
.mx-16 { left:1.828cqw;top:4.022cqw;font-size:2.438cqw }
.mx-17 { left:1.828cqw;top:6.825cqw;font-size:0.78cqw }
.mx-18 { left:1.828cqw;top:8.409cqw;height:1.462cqw;padding:0 0.853cqw;font-size:0.634cqw }
.mx-19 { left:46.25cqw;top:4.688cqw;width:36.562cqw;height:12.188cqw }
.mx-20 { width:6.75cqw;height:6.75cqw;left:1.312cqw;top:3.896cqw }
.mx-21 { width:12.188cqw;height:3.331cqw;left:-4.219cqw;top:7.662cqw }
.mx-22 { width:10.312cqw;height:2.665cqw;right:-4.219cqw;top:8.245cqw }
.mx-23 { left:0;right:0;top:9.161cqw;bottom:0 }
.mx-24 { left:0.844cqw;top:10.16cqw;font-size:1.219cqw;width:6.338cqw }
.mx-25 { left:0.844cqw;top:12.72cqw;font-size:0.366cqw }
.mx-26 { left:0.844cqw;top:13.39cqw;height:0.67cqw;padding:0 0.39cqw;font-size:0.292cqw }
.mx-27 { font-size:0.562cqw;gap:0.169cqw;left:0.844cqw;top:0.75cqw }
.mx-28 { width:0.478cqw;height:0.478cqw }
.mx-29 { left:46.25cqw;top:20.312cqw;width:9.375cqw;height:16.656cqw }
.mx-30 { width:5.5cqw;height:5.5cqw;right:0.75cqw;top:0.875cqw }
.mx-31 { width:13.75cqw;height:4cqw;left:-3.75cqw;bottom:-1.75cqw }
.mx-32 { width:10cqw;height:3cqw;right:-2.5cqw;bottom:-1.5cqw }
.mx-33 { font-size:0.625cqw;gap:0.188cqw;left:0.875cqw;top:1cqw }
.mx-34 { width:0.531cqw;height:0.531cqw }
.mx-35 { left:0.875cqw;top:6.25cqw;font-size:1.25cqw;width:6.25cqw }
.mx-36 { left:0.875cqw;top:8.875cqw;height:0.688cqw;padding:0 0.375cqw;font-size:0.3cqw }
.mx-37 { left:59.062cqw;top:20.312cqw;width:12.5cqw;height:12.5cqw }
.mx-38 { width:4.469cqw;height:4.469cqw;left:1.828cqw;top:2.1cqw }
.mx-39 { width:10.562cqw;height:2.031cqw;left:-3.656cqw;top:4.672cqw }
.mx-40 { width:8.938cqw;height:1.625cqw;right:-3.656cqw;top:5.027cqw }
.mx-41 { left:0;right:0;top:5.586cqw;bottom:0 }
.mx-42 { left:0.731cqw;top:6.195cqw;font-size:0.863cqw;width:4.489cqw }
.mx-43 { left:0.731cqw;top:8.008cqw;font-size:0.259cqw }
.mx-44 { left:0.731cqw;top:8.483cqw;height:0.475cqw;padding:0 0.276cqw;font-size:0.207cqw }
.mx-45 { font-size:0.487cqw;gap:0.146cqw;left:0.731cqw;top:0.457cqw }
.mx-46 { width:0.414cqw;height:0.414cqw }
.mx-47 { left:74.688cqw;top:20.312cqw;width:8.125cqw;height:10.156cqw }
.mx-48 { width:12.706cqw;height:12.706cqw;right:-1.9cqw;top:1.338cqw }
.mx-49 { width:16.625cqw;height:6.019cqw;right:-2.85cqw;bottom:-1.605cqw }
.mx-50 { width:11.875cqw;height:4.013cqw;right:5.938cqw;bottom:-1.338cqw }
.mx-51 { font-size:0.936cqw;gap:0.281cqw;left:1.188cqw;top:1.338cqw }
.mx-52 { width:0.796cqw;height:0.796cqw }
.mx-53 { left:1.188cqw;top:4.414cqw;font-size:1.306cqw }
.mx-54 { left:1.188cqw;top:5.916cqw;font-size:0.418cqw }
.mx-55 { left:1.188cqw;top:6.765cqw;height:0.784cqw;padding:0 0.457cqw;font-size:0.34cqw }
.mx-56 { left:59.062cqw;top:36.25cqw;width:23.75cqw;height:13.375cqw }
/* /demo:mestra */

/* OpenCRS: its homepage's hero drawing and example check, laid out on a 1280 × 720 frame (1cqw is 12.8 px) */
.oc { background: #F7F7F4; color: #121216; font-family: Inter, system-ui, sans-serif; line-height: 1.4; scale: 1.15; } /* the frame has room to spare round the drawing */
.oc-art { position: absolute; left: 12.5cqw; top: 8.75cqw; width: 32.8cqw; height: auto; overflow: visible; }
.oc-report { position: absolute; left: 49.7cqw; top: 20.6cqw; width: 36.7cqw; background: #FFF; border: 1px solid #E4E3DE; border-radius: .94cqw; box-shadow: 0 1.56cqw 3.13cqw -1.88cqw rgba(20, 20, 40, .35); font-size: 1.02cqw; overflow: hidden; }
.oc-head { display: flex; justify-content: space-between; padding: .78cqw 1.09cqw; border-bottom: 1px solid #E4E3DE; color: #6B6B74; font-size: .98cqw; }
.oc-row { display: flex; justify-content: space-between; align-items: center; padding: .7cqw 1.09cqw; border-bottom: 1px solid #E4E3DE; }
.oc-row:last-child { border-bottom: 0; }
.oc-code { font: .82cqw "JetBrains Mono", monospace; color: #72716B; margin-left: .63cqw; white-space: nowrap; }
.oc-status { font: 500 .86cqw/1 "JetBrains Mono", monospace; padding: .31cqw .55cqw; border-radius: .39cqw; white-space: nowrap; flex: none; margin-left: .94cqw; }
.oc-ok { color: #17774A; background: #E5F4EC; }
.oc-bad { color: #B5392A; background: #FBE9E6; }

/* A product shown by its own logo (Mestra's approved lockup, used as supplied), with a byline and link at the card's foot */
.card__logo img { display: block; height: 32px; width: auto; }
.card__logo--opencrs img { height: 40px; margin-block: -4px; } /* its name is set smaller against the mark, so it reads at Mestra's size; the margins keep the card's rhythm */
.card__meta { margin: auto 0 0; padding-top: var(--sp-6); font-size: 1rem; line-height: 1.5; color: var(--fg-70); }
.card__meta a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.card__meta a:hover { text-decoration-thickness: 2px; }


/* Contact (sheet) */
.contact { padding-bottom: 0; }
address { font-style: normal; margin: 0; }
.email {
  font-weight: 500; font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--fg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em;
  text-decoration-color: var(--accent); overflow-wrap: anywhere;
  display: inline-block; padding-block: 8px; margin-block: -8px; /* 44px+ hit box at every width, no visible change */
}
.email:focus-visible { text-decoration-color: var(--fg); outline-offset: 4px; }

@media (max-width: 339px) { .email { font-size: 1.6rem; } } /* 25.6px: keeps the address on one line at 320px */

/* ---------------------------------------------------------------- Page structure, after opencrs.dev */

/* Rails: two thin lines framing the content from 1024px, with ochre crosshairs where bands meet */
main > section, footer { position: relative; }
.cross { display: none; }
@media (min-width: 1024px) {
  main > section::before, footer::before {
    content: ""; position: absolute; inset: 0 calc(max(0px, (100% - 1200px) / 2) + 24px); pointer-events: none;
    border-inline: 1px solid var(--rule);
  }
  .cross { display: block; position: absolute; top: 0; inset-inline: calc(max(0px, (100% - 1200px) / 2) + 24px); height: 0; pointer-events: none; z-index: 1; }
  .cross::before, .cross::after {
    content: ""; position: absolute; top: -7px; width: 15px; height: 15px; translate: -7px 0;
    background: linear-gradient(var(--ochre), var(--ochre)) center / 1px 100% no-repeat, linear-gradient(var(--ochre), var(--ochre)) center / 100% 1px no-repeat;
  }
  .cross::before { left: 0; }
  .cross::after { left: 100%; }
}

/* Eyebrows and two-tone headings: the second half of a heading is muted */
.eyebrow { margin: 0 0 var(--sp-3); font-weight: 500; font-size: 0.9375rem; line-height: 1.3; color: var(--fg-70); }
.dim { color: var(--fg-70); }
.sec-head { display: grid; gap: var(--sp-6); margin-bottom: var(--sp-12); }
.grid > .sec-head { grid-column: 1 / -1; margin-bottom: 0; }
.sec-lede { margin: 0; font-size: 1.1875rem; line-height: 1.45; color: var(--fg-70); max-width: 34rem; }
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-12); align-items: end; margin-bottom: var(--sp-16); }
  .sec-head > div { grid-column: 1 / 8; }
  .sec-head > .sec-lede { grid-column: 8 / -1; padding-bottom: 6px; }
}

/* Buttons: 44px targets */
.ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 4px;
  border: 1px solid var(--rule); color: var(--fg); font-weight: 500; font-size: 0.9375rem; text-decoration: none;
}
.band--navy .btn { border-color: var(--off-70-on-navy); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.band--sheet .btn--primary { background: var(--navy); border-color: var(--navy); color: var(--off); }

/* Hero: the words, and the family drawn as a spec: Thirty Oars, Mestra, and the standard Mestra stewards */
.hero-grid { display: grid; gap: var(--sp-12); align-items: center; }
.hero h1 .dim { display: block; }
.fam { margin: 0; container-type: inline-size; }
.fam-art { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }
.fam-card { fill: var(--off-8-on-navy); stroke: var(--off-70-on-navy); stroke-opacity: .55; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.fam-link { fill: none; stroke: var(--off-70-on-navy); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.fam-link--dash { stroke-dasharray: 4 4; }
.fam-mask { fill: none; stroke: #FFF; stroke-width: 8; }
.fam-dot { fill: var(--ochre); opacity: 0; }
.fam-art text { font-family: "Commissioner", "Commissioner Fallback", sans-serif; }
.fam-name { font-size: 17px; font-weight: 600; fill: var(--off); letter-spacing: -0.01em; }
.fam-sub, .fam-note { font-size: 12px; font-weight: 500; fill: var(--off-70-on-navy); }
.fam-note { font-style: italic; }
.mk-o, .mk-oar { fill: var(--off); }
.fam-node .fam-card, .fam-link { transition: stroke 200ms var(--ease), stroke-opacity 200ms var(--ease); }
.fam-node.is-lit .fam-card, .fam-link.is-lit { stroke: var(--ochre); stroke-opacity: 1; }
@container (max-width: 420px) { .fam-name { font-size: 19px; } .fam-sub, .fam-note { font-size: 14px; } }
/* With motion on, the drawing waits hidden for page.js to draw it in (boot.js gives up after 3s) */
html.motion .fam:not(.is-live) .fam-art { visibility: hidden; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
  .hero h1 { font-size: clamp(2.75rem, 1rem + 2.9vw, 3.75rem); }
}

/* Contact: who to write to, a rule above each */
.reach { margin: 0; display: grid; gap: 0 var(--sp-12); }
.reach > div { border-top: 1px solid var(--rule-strong); padding: var(--sp-6) 0 var(--sp-10); }
.reach dt { font-weight: 600; font-size: 1.0625rem; color: var(--fg); margin-bottom: var(--sp-3); }
.reach dd { margin: 0; color: var(--fg-70); max-width: 30rem; }
.reach dd a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.reach dd .email { text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.reach__main dd { max-width: none; }
@media (min-width: 768px) {
  .reach { grid-template-columns: 1fr 1fr; }
  .reach__main { grid-column: 1 / -1; }
}

/* Opening wall (boot.js): a tilted wall of the wordmark on navy, once a visit, never with reduced motion */
html.intro { overflow: hidden; }
html.intro::after { content: ""; position: fixed; inset: 0; z-index: 99; background: var(--navy); } /* covers the page until the wall is built */
.intro-wall { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--navy); cursor: pointer; }
.intro-tilt { position: absolute; left: 50%; top: 50%; width: 260vmax; translate: -50% -50%; rotate: -20deg; display: flex; flex-direction: column; align-items: center; gap: 1.6vmax; }
.intro-row { display: flex; align-items: center; gap: 3vmax; white-space: nowrap; }
.intro-word { flex: none; height: 6.5vmax; width: auto; }
.intro-cross {
  flex: none; width: 2.6vmax; height: 2.6vmax;
  background: linear-gradient(var(--ochre), var(--ochre)) center / 2px 100% no-repeat, linear-gradient(var(--ochre), var(--ochre)) center / 100% 2px no-repeat;
}

/* Footer: the gap above the wordmark is the footer's own padding, so no margin can collapse through */
footer { padding-top: var(--sp-16); }
.footer__wordmark { width: 100%; height: auto; margin: 0 0 var(--sp-12); }
footer hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.footer__bar { margin: 0; padding: var(--sp-6) 0 var(--sp-10); font-size: 0.875rem; line-height: 1.5; color: var(--fg-70); font-variant-numeric: tabular-nums; }

/* 404 */
.notfound h1 { font-size: clamp(2rem, 1.25rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; }
.notfound { flex: 1; }
.notfound p { margin: var(--sp-6) 0 0; font-size: 1.1875rem; line-height: 1.5; color: var(--fg-70); max-width: 36rem; }
.notfound a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; display: inline-block; padding-block: 8px; margin-block: -8px; }
.notfound a:focus-visible { text-decoration-thickness: 2px; }

/* Company page (sheet): h1 at the H2 scale as a side heading, then the story block */
.company { padding-bottom: 0; }
.company h1 { font-size: clamp(2rem, 1.25rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--h2); }
.company .intro { text-wrap: pretty; }
.company .grid + .grid { margin-top: var(--sp-16); }
.story { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--fg-70); max-width: 36rem; }

/* Breakpoints */
@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .site-header { position: sticky; top: 0; z-index: 10; }
  main, section, footer { scroll-margin-top: 96px; }
  .site-header .container { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
  .home { height: auto; margin-top: 0; }
  .wordmark { height: 26px; }
  .nav { padding-bottom: 0; max-width: none; }
}
@media (min-width: 768px) {
  .site-header .container { min-height: 80px; }
  .nav { column-gap: 28px; }
  .nav a { font-size: 0.9375rem; }
  h3 { font-size: 1.375rem; }
  .cards { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
  .card { padding: var(--sp-8); } /* 32px, not 40px: both taglines then set the same lines from 768px up */
  .card h3 { font-size: 2rem; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 48px; }
  .nav { column-gap: 32px; }
  .section { padding-block: var(--sp-24); }
  .section--dark { padding-block: var(--sp-30); }
  .contact, .company { padding-bottom: 0; }
  .grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-12); }
  .grid > h2, .grid > h1 { grid-column: 1 / 5; }
  .grid > .content { grid-column: 5 / -1; margin-top: 0; padding-top: 2px; }
  .grid > .wide { grid-column: 1 / -1; margin-top: var(--sp-12); }
  .hero .grid > * { grid-column: 1 / -1; }
  .umbrella { font-size: 1.375rem; }
  .intro { font-size: 1.1875rem; margin-bottom: var(--sp-12); }
  footer { padding-top: var(--sp-24); }
  .company .grid + .grid { margin-top: var(--sp-24); }
  .notfound p { font-size: 1.375rem; }
}

/* Hover, only where hover exists */
@media (hover: hover) {
  .nav a:hover { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 6px; }
  .email:hover { text-decoration-color: var(--fg); }
  .notfound a:hover { text-decoration-thickness: 2px; }
}

/* Motion: three transitions, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .site-header { transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
  .nav a { transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease), text-underline-offset 200ms var(--ease); }
  .email { transition: text-decoration-color 200ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Forced colours: the wordmarks are fixed-colour images, so keep their own backgrounds behind them */
@media (forced-colors: active) {
  .wordmark, .footer__wordmark { forced-color-adjust: none; }
  .wordmark { background: var(--navy); }
  .footer__wordmark { background: var(--off); }
}

/* Print: browsers drop backgrounds by default, so the navy surfaces re-point at the sheet tokens */
@media print {
  html, body { background: none; }
  .site-header { position: static; }
  .band--navy, .card {
    --fg: var(--ink); --fg-70: var(--ink-70-on-off); --fg-80: var(--ink-70-on-off);
    --h2: var(--navy); --rule: var(--navy-12-on-off); --accent: var(--ochre-deep);
    background: none; color: var(--fg);
  }
  .card { border-color: var(--navy-12-on-off); }
  .wordmark { display: none; } /* the off-white file cannot be recoloured; the navy footer wordmark carries the mark */
  .nav a, .email { transition: none; }
}
