/* =============================================================
   UNIFY NOW GROUP: shared design system
   One system, two brands. Shared neutrals, one accent per brand.
   Tokens first, then primitives, then components.
   The written rules live in /shared/DESIGN_SYSTEM.md.
   ============================================================= */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("/shared/fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/shared/fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/shared/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/shared/fonts/newsreader-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/shared/fonts/newsreader-italic-var.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
/* metric-matched fallbacks: no layout shift when the web font lands */
@font-face { font-family: "Sans Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 100%; ascent-override: 92%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 94%; ascent-override: 78%; descent-override: 24%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  /* brand: Unify Now (default): Deep green and copper */
  --paper:        #F1F3EE;
  --paper-2:      #E4E8E1;
  --ink:          #122A22;
  --band:         #0F2E25;
  --on-ink:       #F1F3EE;
  --muted:        #4F6159;          /* 5.9:1 on paper */
  --muted-on-ink: #A9BCB2;          /* 7.3:1 on the band */
  --line-on-ink:  rgba(241, 243, 238, .22);
  --accent:       #A64A28;          /* 5.2:1 on paper */
  --accent-on-ink:#E8A77B;          /* 7.1:1 on the band */
  --line:         rgba(18, 42, 34, .2);
  --veil:         15 46 37;         /* the band colour as RGB channels, for the media veil */
  --display: "Bricolage Grotesque", "Sans Fallback", Arial, sans-serif;
  --sans:    "Instrument Sans", "Sans Fallback", Arial, sans-serif;
  --text:    "Instrument Sans", "Sans Fallback", Arial, sans-serif;
  --display-weight: 500;
  --display-tracking: -.025em;
  --display-stretch: 100%;

  /* spacing scale: 4 8 12 16 24 32 48 64 96 128 */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --gap:    clamp(1rem, 2vw, 2rem);
  --max:    80rem;
  --nav-h:  4.25rem;
  --sec:    clamp(4.5rem, 8.5vw, 8rem);      /* between sections */
  --block:  clamp(2.75rem, 5vw, 4.5rem);     /* between blocks inside a section */

  /* type scale: 13 15 17-19 22 24 44 62 */
  --fs-label: .875rem;
  --fs-small: .9375rem;
  --fs-body:  clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-lede:  clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h3:    clamp(1.25rem, 1.15rem + .45vw, 1.5rem);
  --fs-h2:    clamp(1.9rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-h1:    clamp(2.5rem, 1.6rem + 3.1vw, 3.9rem);
  --measure:  34em;                           /* 60 to 70 characters at body size */
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* brand: Carter James: Petrol and gold */
.brand-cj {
  --paper:        #F2EFE9;
  --paper-2:      #E6E1D7;
  --ink:          #051B27;
  --band:         #051B27;
  --on-ink:       #F2EFE9;
  --muted:        #44565F;          /* 6.7:1 on paper */
  --muted-on-ink: #A9B8BE;          /* 8.6:1 on the band */
  --line-on-ink:  #B59977;
  --accent:       #7A5C33;          /* 5.4:1 on paper */
  --accent-on-ink:#D4B98C;          /* 9.3:1 on the band */
  --line:         #B59977;          /* brass: the one hairline colour of Carter James, on both grounds */
  --veil:         5 27 39;
  --display: "Archivo", "Sans Fallback", Arial, sans-serif;
  --sans:    "Archivo", "Sans Fallback", Arial, sans-serif;
  --text:    "Newsreader", "Serif Fallback", Georgia, serif;
  --display-weight: 600;
  --display-tracking: -.028em;
  --display-stretch: 104%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); background: var(--paper); }
.brand-cj { background: var(--paper); }
body {
  font-family: var(--text); font-size: var(--fs-body); line-height: 1.6;
  color: var(--ink); background: var(--paper);
  font-optical-sizing: auto; font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; }
::selection { background: var(--ink); color: var(--on-ink); }
.band-ink ::selection { background: var(--on-ink); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.band-ink :focus-visible { outline-color: var(--accent-on-ink); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: fixed; top: .6rem; left: .6rem; z-index: 200; padding: .8em 1.1em; background: var(--ink); color: var(--on-ink); font: 600 var(--fs-small)/1 var(--sans); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- Grounds ---------- */
.band-ink { background: var(--band); color: var(--on-ink); --line: var(--line-on-ink); --muted: var(--muted-on-ink); --accent: var(--accent-on-ink); }
.wrap { max-width: var(--max); margin-inline: auto; }
section, .section { padding: var(--sec) var(--gutter); }
.section--cont { padding-top: 0; }

/* ---------- Type primitives ---------- */
.display, .h1, .h2 { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.014em; }
.lede { font-size: var(--fs-lede); line-height: 1.4; letter-spacing: -.004em; max-width: 30em; }
.body { max-width: var(--measure); }
.small { font-size: var(--fs-small); line-height: 1.55; }
.muted { color: var(--muted); }
.label { font-family: var(--sans); font-weight: 600; font-size: var(--fs-label); line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.label b { font-weight: 600; color: inherit; margin-right: .8em; font-variant-numeric: tabular-nums; }
p + p { margin-top: 1em; }
blockquote { hanging-punctuation: first; }

/* ---------- Hairlines ---------- */
.rule { height: 1px; background: var(--line); }
.sec-head { margin-bottom: var(--block); }
.sec-head .label { margin-top: var(--s4); color: inherit; }

/* ---------- Layout: twelve columns, two-column block ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s5); align-items: start; }
.split > :first-child { grid-column: 1 / 6; }
.split-body { grid-column: 7 / -1; }
.split-body > p { max-width: var(--measure); }
@media (max-width: 900px) { .split > :first-child, .split-body { grid-column: 1 / -1; } .split { row-gap: var(--s4); } }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8em;
  padding: .95em 1.3em .9em 1.4em;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-small); line-height: 1; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn .arr { width: .85em; height: .85em; transition: transform .3s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover .arr, .btn:focus-visible .arr { transform: translate(2px, -2px); }
.band-ink .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.band-ink .btn:hover, .band-ink .btn:focus-visible { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: transparent; color: var(--ink); border-color: var(--ink); }
.tlink {
  display: inline-flex; align-items: center; gap: .55em; padding-block: .3em .25em;
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-small); line-height: 1;
  border-bottom: 1px solid currentColor; transition: color .25s ease, border-color .25s ease;
}
.tlink .arr { width: .8em; height: .8em; transition: transform .3s var(--ease); }
.tlink:hover, .tlink:focus-visible { color: var(--accent); }
.tlink:hover .arr, .tlink:focus-visible .arr { transform: translate(2px, -2px); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .25s ease; }
.link:hover, .link:focus-visible { color: var(--accent); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4) var(--s6); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.5rem);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));   /* the same edges as the content */
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav-group {
  display: inline-flex; align-items: center; gap: .55em; flex: none;
  padding-right: clamp(.8rem, 1.6vw, 1.4rem); margin-right: -.4rem; border-right: 1px solid var(--line);
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: color .25s ease;
}
.nav-group svg:not(.un-logo) { width: 1.1em; height: 1.1em; }
.nav-group:hover, .nav-group:focus-visible { color: var(--ink); }
.nav-logo { flex: none; margin-right: auto; display: inline-flex; align-items: center; padding-block: .6rem; }
.nav-links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a {
  font-family: var(--sans); font-weight: 500; font-size: var(--fs-small); color: var(--muted);
  padding-block: .5em; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-links a.is-current { border-bottom-color: var(--ink); }
.nav-toggle { display: none; font-family: var(--sans); font-weight: 600; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; padding: 1em 0 1em 1em; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }
.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--paper); color: var(--ink);
  padding: var(--s4) var(--gutter) var(--s6); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.75rem; line-height: 1.1; letter-spacing: -.02em; padding: 1rem 0 .95rem; border-bottom: 1px solid var(--line); }
.menu-foot { padding-top: var(--s5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.menu-foot .nav-group { border: 0; padding: 0; margin: 0; }
.menu-foot .nav-group span { display: inline; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 1101px) { .menu { display: none !important; } }
@media (max-width: 720px) {
  :root { --nav-h: 3.75rem; }
  .nav-cta { display: none; }
  .nav-group span { display: none; }
  .nav-group { padding-right: .8rem; }
}


/* Unify Now logo, inline (one source: /shared/logo/inline.json; markup in DESIGN_SYSTEM.md section 6).
   Dark tile with light letters on paper; light tile with dark letters on ink. Never a bare glyph. */
:root { --un-ink: #15191B; --un-paper: #F3F4F2; }
.un-logo { height: 1.9rem; width: auto; flex: none; display: block; }
.un-logo--mark { height: 1.1em; width: 1.1em; }
.un-tile { fill: var(--un-ink); }
.un-glyph { fill: var(--un-paper); }
.un-word { fill: var(--un-ink); }
.band-ink .un-tile { fill: var(--un-paper); }
.band-ink .un-glyph { fill: var(--un-ink); }
.band-ink .un-word { fill: var(--un-paper); }
.nav-group .un-logo { height: 1.1rem; opacity: .92; }
.nav-group .un-logo--mark { display: none; }
.menu-foot .nav-group .un-logo { height: 1.1rem; opacity: .92; }
@media (max-width: 720px) {
  .nav .nav-group .un-logo { display: none; }
  .nav .nav-group .un-logo--mark { display: block; height: 1.35rem; width: 1.35rem; }
}
.un-mark { width: 1.1em; height: 1.1em; }

/* ---------- Hero ---------- */
.hero { padding-block: 0; display: flex; min-height: min(70vh, 40rem); min-height: min(70svh, 40rem); }
.hero-wrap { width: 100%; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + var(--s5)); padding-bottom: var(--s5); }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
@media (max-width: 720px) { .hero-top > :nth-child(2) { display: none; } }
.hero-grid { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6); align-content: center; align-items: end; padding-block: clamp(2.5rem, 6vh, 4rem); }
.hero-h { grid-column: 1 / 8; }
.hero-side { grid-column: 8 / -1; padding-bottom: .3rem; }
.hero-side .lede { max-width: none; }
.hero-side .actions { margin-top: var(--s5); }
@media (max-width: 900px) {
  .hero-h, .hero-side { grid-column: 1 / -1; }
  .hero-side { max-width: 36rem; }
}
@media (max-width: 720px) { .hero { min-height: 0; } .hero-grid { padding-block: var(--s7) var(--s6); } .split-body.stat { padding-top: var(--s3); } }

/* ---------- Media: hero video, opening strip, image band, framed image, brand tile ----------
   One calm layer of moving or still image. Rules in DESIGN_SYSTEM.md section 11.
   The picture sits at the top of its band and fades into the band colour; text stands on the faded
   part or on solid colour, never on a face. Contrast measured over every frame (_review/CRITIQUE.md). */
.media { position: absolute; inset: 0 0 auto 0; height: 100%; z-index: 0; overflow: hidden; background: var(--band); }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.media picture { display: contents; }
.veil { position: absolute; inset: 0; }
/* With reduced motion, ?static=1 or a failed script, only the poster shows (the script never sets a source) */
.static .media video { display: none; }
@media (prefers-reduced-motion: reduce) { .media video { display: none; } }

/* Media hero: the picture is a block of its own at the top of the hero, fading to solid band colour at its
   lower edge; the label, headline, lede and actions follow below it on solid colour. Nothing of the
   footage can sit behind text at any viewport height (a desk edge once read as a rule behind the lede). */
.hero--media { position: relative; isolation: isolate; flex-direction: column; min-height: min(92vh, 54rem); min-height: min(92svh, 54rem); }
.hero--media .media { position: relative; inset: auto; height: auto; flex: 1 1 auto; min-height: 17rem; margin-inline: calc(-1 * var(--gutter)); }
.hero--media .veil { background: linear-gradient(to bottom, rgb(var(--veil) / .3) 0%, rgb(var(--veil) / 0) 18%, rgb(var(--veil) / 0) 52%, rgb(var(--veil) / .55) 76%, rgb(var(--veil) / .92) 90%, rgb(var(--veil)) 96%); inset: 0 0 -2px 0; }
.hero--media .hero-wrap { position: relative; z-index: 1; flex: none; padding-top: var(--s6); padding-bottom: calc(var(--s5) + 2.75rem); }
.hero--media .hero-grid { flex: none; padding-block: var(--s6) 0; }
.hero--media .label { color: var(--on-ink); }
@media (max-width: 720px) {
  /* Phones: a 3 / 2 picture across the top, wide enough for both people, then the text */
  .hero--media { min-height: 0; }
  .hero--media .media { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
  .hero--media .media img, .hero--media .media video { object-position: 50% 50%; }
  .hero--media .veil { background: linear-gradient(to bottom, rgb(var(--veil) / .25) 0%, rgb(var(--veil) / 0) 20%, rgb(var(--veil) / 0) 60%, rgb(var(--veil) / .75) 86%, rgb(var(--veil)) 96%); inset: 0 0 -2px 0; }
  .hero--media .hero-wrap { padding-top: var(--s5); }
}

/* The one control on a moving image: pause and play, small, bottom right, on the band */
.media-toggle {
  position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--max)) / 2)); bottom: var(--s5);
  display: inline-flex; align-items: center; gap: .5em; min-height: 2.75rem; padding: 0 .1rem;
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-ink); opacity: .78; transition: opacity .25s ease;
}
.media-toggle:hover, .media-toggle:focus-visible { opacity: 1; }
.media-toggle svg { width: .8rem; height: .8rem; }
.media-toggle .i-play, .media-toggle[data-paused="1"] .i-pause { display: none; }
.media-toggle[data-paused="1"] .i-play { display: block; }
.media-toggle[hidden], .static .media-toggle { display: none; }

/* Opening strip on sub-pages: one calm, sharp detail of the same office (lamps, a pinboard; never a face),
   dark, across the top of the opening band. One picture per site, the same on every sub-page. */
.has-strip { position: relative; isolation: isolate; }
.has-strip > .wrap { position: relative; z-index: 1; }
.media--strip { height: min(100%, 20rem); }
.media--strip .veil { background: linear-gradient(to bottom, rgb(var(--veil) / .58) 0%, rgb(var(--veil) / .7) 55%, rgb(var(--veil)) 100%); }

/* Image band: one photograph between two bands, no text on it, inside the content width */
.media-band { padding: 0 var(--gutter); background: linear-gradient(to bottom, var(--paper) 50%, var(--band) 50%); }   /* sits across the line between a light and a dark band */
.media-band > div { position: relative; max-width: var(--max); margin-inline: auto; aspect-ratio: 2 / 1; overflow: hidden; background: var(--band); }
.media-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
@media (max-width: 720px) { .media-band > div { aspect-ratio: 4 / 3; } }

/* Framed image inside a grid, beside text */
.media-frame { position: relative; overflow: hidden; background: var(--band); aspect-ratio: 4 / 5; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }

/* Brand tile: each site's mark, large and quiet, in the empty space right of one dark band's headline,
   cropped by the edge of the window, never behind text; not on phones. Colours in the brand layer. */
.has-tile { overflow: hidden; }
.tile-row { position: relative; }
.tile-row > :not(.brand-tile) { position: relative; z-index: 1; }
.brand-tile { --tile: clamp(12rem, 18vw, 16rem); position: absolute; z-index: 0; bottom: calc(var(--s4) - var(--block)); width: var(--tile); height: var(--tile); right: calc((100% - 100vw) / 2 - var(--tile) * .22); pointer-events: none; }   /* ends just above the next hairline */
@media (max-width: 900px) { .brand-tile { display: none; } }

/* A section right after the hero keeps one rhythm step, not two */
.hero + section, .hero + .section, .page + section, .doc + section { padding-top: var(--block); }

/* ---------- Rows (lists, tables of roles or vacancies) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 2.75rem repeat(11, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s3); align-items: baseline; padding: var(--s5) 0 calc(var(--s5) + .25rem); border-bottom: 1px solid var(--line); }
.row-n { grid-column: 1 / 2; font-family: var(--sans); font-weight: 600; font-size: .8125rem; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-title { grid-column: 2 / 4; font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.018em; }
.row-meta { grid-column: 4 / 7; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5; }
.row-text { grid-column: 7 / -1; max-width: var(--measure); }
.row-text .h3 { font-size: var(--fs-body); margin-bottom: .35em; }
@media (max-width: 900px) {
  .row-title { grid-column: 2 / 7; }
  .row-meta { grid-column: 7 / -1; }
  .row-text { grid-column: 2 / -1; }
  .row { grid-template-columns: 2.25rem repeat(11, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .row-title, .row-meta, .row-text { grid-column: 2 / -1; }
}

/* A row whose title is a link: the whole row is the target */
.row-link::after { content: ""; position: absolute; inset: 0; }
.row:hover .row-link, .row:focus-within .row-link, .row:hover .row-go { color: var(--accent); }
.row-go { grid-column: 11 / -1; justify-self: end; }
.row-go .arr { transition: transform .3s var(--ease); }
.row:hover .row-go .arr { transform: translate(2px, -2px); }

/* ---------- Cards (ruled columns, no boxes) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border-top: 1px solid var(--line); padding-top: var(--s4); }
.card .label { margin-bottom: var(--s4); }
.card .h3 + p, .card .h3 + dd, .card p + p { margin-top: .6em; }
.card dd { max-width: 28em; }
.card p { max-width: 28em; }
@media (max-width: 1000px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cards, .cards--4 { grid-template-columns: 1fr; } }

/* ---------- Definition list ---------- */
.deflist { border-top: 1px solid var(--line); }
.deflist > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: baseline; padding: var(--s4) 0 calc(var(--s4) + .15rem); border-bottom: 1px solid var(--line); }
.deflist dt { font-family: var(--sans); font-weight: 600; font-size: var(--fs-body); line-height: 1.35; letter-spacing: -.01em; }
@media (max-width: 720px) { .deflist > div { grid-template-columns: 1fr; row-gap: var(--s1); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s6); padding: var(--s4) 0 calc(var(--s4) + .1rem); font-family: var(--sans); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 12px; height: 12px; flex: none; transition: transform .3s var(--ease), color .25s ease; }
.faq details[open] .plus { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 var(--s6) var(--s5) 0; max-width: var(--measure); }

/* ---------- Quote ---------- */
.quote { max-width: 46em; }
.quote blockquote p { font-size: var(--fs-lede); line-height: 1.42; max-width: none; text-indent: -.42em; }
.brand-cj .quote blockquote p { font-style: normal; font-weight: 400; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); }
.quote figcaption { margin-top: var(--s4); display: flex; align-items: baseline; gap: var(--s4); }
.quote-name { font-family: var(--sans); font-weight: 600; font-size: var(--fs-small); }

/* ---------- CTA row ---------- */
.cta-row { padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s5) var(--s6); flex-wrap: wrap; }
.cta-row .h3 { max-width: 28em; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--gap); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-weight: 600; font-size: var(--fs-small); }
.input, .textarea { width: 100%; padding: .85em 0; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font-size: var(--fs-body); line-height: 1.4; transition: border-color .25s ease; }
.textarea { min-height: 8em; resize: vertical; }
.input:focus-visible, .textarea:focus-visible { outline: none; border-bottom-color: var(--accent); border-bottom-width: 2px; }
.field .hint { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { padding: 0 var(--gutter) var(--s5); }
.foot-top { border-top: 1px solid var(--line); padding: var(--block) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6); align-items: start; }
.foot-brand { grid-column: 1 / 6; }
.foot-brand p { margin-top: var(--s4); max-width: 22em; }
.foot-col { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; font-family: var(--sans); font-size: var(--fs-small); }
.foot-col .label { margin-bottom: .5rem; }
.foot-col a { border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease; }
.foot-col a:hover, .foot-col a:focus-visible { border-bottom-color: currentColor; }
.foot-col p { color: var(--muted); line-height: 1.6; }
.foot-base { padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s3) var(--s5); flex-wrap: wrap; font-family: var(--sans); font-size: var(--fs-label); color: var(--muted); }
.foot-base a { color: inherit; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease; }
.foot-base a:hover, .foot-base a:focus-visible { color: var(--on-ink); border-bottom-color: currentColor; }
.foot-base .group { display: inline-flex; align-items: center; gap: .5em; }
.foot-base .group svg { width: 1.1em; height: 1.1em; }
@media (max-width: 900px) { .foot-brand { grid-column: 1 / -1; } .foot-col { grid-column: span 4; } }
@media (max-width: 720px) { .foot-col { grid-column: span 6; } }

/* Ruled components on a dark band */
.band-ink .rows, .band-ink .faq, .band-ink .deflist, .band-ink .facts > div, .band-ink .row, .band-ink .faq details, .band-ink .deflist > div { border-bottom-color: var(--line); }
.band-ink .row-meta, .band-ink .faq-a, .band-ink .card p { color: var(--on-ink); }
.band-ink .faq-a, .band-ink .card p { color: var(--on-ink); }
.band-ink .foot-top { border-top-color: var(--line); }
.row-meta--wide { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
@media (max-width: 560px) { .row-meta--wide { grid-column: 2 / -1; } }

/* ---------- Motion: one soft reveal per block, nothing else ---------- */
.js:not(.static) [data-r] { opacity: 0; transform: translateY(10px); transition: opacity .6s ease-out, transform .6s var(--ease); }
.js:not(.static) [data-r].in { opacity: 1; transform: none; }
.js:not(.static) .sec-head[data-r] { opacity: 1; transform: none; }
.js:not(.static) .sec-head[data-r] .label { opacity: 0; transition: opacity .6s ease-out .25s; }
.js:not(.static) .sec-head[data-r] .rule { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.js:not(.static) .sec-head[data-r].in .label { opacity: 1; }
.js:not(.static) .sec-head[data-r].in .rule { transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .nav, .menu, .skip { display: none; } .js [data-r] { opacity: 1 !important; transform: none !important; } }
