/* ==========================================================================
   main.css — every component and layout style for asrevops.com.
   All values come from tokens.css. No colour, size or spacing literal
   belongs in this file, and no page may carry inline styles or a <style>
   block. See Build Brief §3.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS — self-hosted (Build Brief §5). Nothing here may reference
   fonts.googleapis.com or fonts.gstatic.com; loading fonts from Google's CDN
   leaks visitor IPs and has been ruled a GDPR violation by German courts.

   latin covers ü, ö, ä. latin-ext covers ğ (U+011F) — the character in
   "Süleymanoğlu" most likely to be missing from a narrow subset.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ebgaramond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ebgaramond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/ebgaramond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/ibmplexsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/ibmplexsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* --------------------------------------------------------------------------
   2. RESET AND BASE
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: var(--lh-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-normal);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
a:hover { color: var(--link-hover); }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Visible keyboard focus everywhere (Build Brief §9). Mouse users do not
   see it; keyboard and switch users always do. */
:focus-visible {
  outline: var(--bw-rule) solid var(--focus-ring);
  outline-offset: 3px;
}
.is-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.cookie :focus-visible {
  outline-color: var(--focus-ring-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: var(--z-banner);
  transform: translateY(-200%);
  background: var(--white);
  color: var(--text-brand);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }


/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES

   The design is drawn at 1440px with 120px gutters, i.e. a 1200px content
   column. `.shell` reproduces that: it pads by the fluid gutter and caps the
   inner column at 1200px so the layout does not keep stretching on very wide
   monitors.
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  padding-inline: var(--edge);
}

.section { padding-block: var(--section-y); }
.section--top { padding-block: var(--section-y) 0; }
.section--rule { border-bottom: var(--bw-rule) solid var(--border-strong); }
.section--alt { background: var(--bg-alt); }

/* Standard section opener: eyebrow, heading, optional standfirst. Gives the
   design's 20px / 24px rhythm without a margin on every instance. */
.section__head > * + * { margin-top: var(--sp-5); }
.section__head > .h-section + p,
.section__head > .h-page + p,
.section__head > .h-page--sm + p { margin-top: var(--sp-6); }

.measure    { max-width: var(--measure); }
.measure-sm { max-width: var(--measure-sm); }
.measure-lg { max-width: var(--measure-lg); }
.measure-md { max-width: 43.75rem; }   /* 700 */


/* --------------------------------------------------------------------------
   4. TYPOGRAPHY COMPONENTS
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.eyebrow--dark  { color: var(--accent); }

.label {
  font-family: var(--font-display);
  font-size: var(--fs-3xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.label--dark  { color: var(--accent); }
.label--brand { color: var(--link-hover); }

.h-hero {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-on-dark);
}
.h-page {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-brand);
}
.h-page--sm { font-size: var(--fs-h1-sm); line-height: var(--lh-snug); }

.h-section {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--text-heading);
}
.h-section--sm { font-size: var(--fs-h2-sm); }
.h-section--dark { color: var(--green-bright); }

.h-cta {
  font-size: var(--fs-display);
  line-height: var(--lh-snug);
  color: var(--text-on-dark);
}

.h-card {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  color: var(--text-brand);
}
.h-card--sm { font-size: var(--fs-h3-sm); }
.h-card--lg { font-size: var(--fs-h2-sm); }

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-normal);
  color: var(--text-lede);
}
.lede--dark { color: var(--green-lede); font-size: var(--fs-body); }

.prose      { color: var(--text-secondary); }
.prose--md  { font-size: var(--fs-md); }
.prose--mut { color: var(--text-muted); }

/* Vertical rhythm inside a block of copy */
.flow > * + *  { margin-top: var(--sp-6); }


/* --------------------------------------------------------------------------
   5. BUTTONS AND INLINE LINKS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.2;
  text-align: center;
  border: var(--bw-rule) solid transparent;
  padding: var(--sp-3-5) var(--sp-8);
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.btn--solid {
  background: var(--white);
  color: var(--text-brand);
}
.btn--solid:hover {
  background: var(--green-100);
  color: var(--text-brand);
}

.btn--outline {
  background: none;
  color: var(--text-on-dark);
  border-color: var(--accent);
}
.btn--outline:hover {
  color: var(--text-on-dark);
  border-color: var(--white);
}

.btn--dark {
  background: var(--bg-dark);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--link-hover);
  color: var(--white);
}

.btn--sm {
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-5-5);
  border-width: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* Underlined text link — the design's standard "read more" affordance */
.ulink {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--link);
  border-bottom: var(--bw-hair) solid var(--accent);
  padding-bottom: var(--sp-1);
}
.ulink:hover { color: var(--link-hover); border-bottom-color: var(--link-hover); }
.ulink--lg { font-size: var(--fs-base); border-bottom-color: var(--link); }


/* --------------------------------------------------------------------------
   6. SITE HEADER

   Markup is byte-identical across every page in a language apart from
   `aria-current` on the active link and the href on the language toggle.
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: var(--z-nav);
  background: var(--bg-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding-block: var(--sp-3);
  min-height: var(--header-h);
}

/* The mark is pulled slightly outside the content column. That is deliberate:
   the logo's optical left edge sits inboard of its bounding box, so aligning
   the box to the gutter makes the mark look indented next to the copy below. */
.site-header__logo {
  flex: none;
  display: block;
  margin-left: -1rem;
}
.site-header__logo img {
  width: 7.4rem;     /* 118px — 80% of the 148px in the design */
  height: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: var(--sp-12);
}
.site-header__util {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-9);
  font-size: var(--fs-nav);
  list-style: none;
}
.nav a {
  color: var(--green-on-dark);
  padding-bottom: var(--sp-1);
  border-bottom: var(--bw-rule) solid transparent;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current='page'] {
  color: var(--white);
  border-bottom-color: var(--accent);
}

/* Language switcher */
.lang { position: relative; flex: none; }
.lang__toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  background: none;
  border: var(--bw-hair) solid var(--border-dark);
  color: var(--green-on-dark);
  padding: var(--sp-2) var(--sp-2-5);
}
.lang__toggle:hover { color: var(--white); border-color: var(--accent); }
/* Scoped to the caret. The button holds two icons now, and an unscoped rule
   here spins the globe along with it. */
.lang__caret { transition: transform var(--dur) var(--ease); }
.lang__toggle[aria-expanded='true'] .lang__caret { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + var(--sp-2));
  z-index: var(--z-menu);
  width: 5rem;   /* 80px — two-letter codes, nothing more */
  background: var(--bg-raised);
  border: var(--bw-hair) solid var(--border-strong);
  box-shadow: var(--shadow-menu);
  display: flex;
  flex-direction: column;
  list-style: none;
}
.lang__menu[hidden] { display: none; }
.lang__menu a {
  display: block;
  text-align: left;
  letter-spacing: var(--ls-wide);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--link);
  border-bottom: var(--bw-hair) solid var(--rule-menu);
}
.lang__menu li:last-child a { border-bottom: 0; }
.lang__menu a:hover { background: var(--green-hover); }
.lang__menu a[aria-current='true'] { font-weight: var(--fw-semi); }


/* Mobile menu button — hidden until the nav collapses */
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2-5);
  margin-left: auto;
  background: none;
  border: var(--bw-hair) solid var(--border-dark);
  color: var(--green-on-dark);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-3-5);
}
.nav-toggle:hover { color: var(--white); border-color: var(--accent); }
.nav-toggle__bars {
  position: relative;
  width: 1rem;
  height: 0.625rem;
  flex: none;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--bw-hair);
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { top: calc(100% - var(--bw-hair)); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  top: 50%; transform: rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  top: 50%; transform: rotate(-45deg);
}


/* --------------------------------------------------------------------------
   7. MEDIA BLOCKS (hero, quote bands, CTA panels)

   The base layer is a built texture in the brand green, standing in wherever
   no photograph has been supplied. Two things can replace it:

     - `.media__img`, an <img> at z-index -2, where the picture carries
       meaning and wants alt text and a loading priority. The About portrait
       uses this.
     - a background on the element itself, where the picture is composed
       against the copy rather than sitting behind it. The hero uses this and
       opts out of both pseudo-elements below.

   There used to be a third route, a `--media-image` custom property set
   inline on the element. It is gone. Nothing ever set it, and the inline
   style it depended on is rejected by audit.py without exception, so it was
   an unusable hook that still read as the sanctioned way to do this.
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-darkest);
  isolation: isolate;
}

/* Layer 1 — the built texture standing in for a photograph.
   Layers are -3 texture, -2 photograph, -1 scrim. Give them distinct values:
   two layers sharing one z-index resolves by tree order, which Chrome does not
   apply the way the spec reads here, and the photo ends up buried. */
.media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    repeating-linear-gradient(
      104deg,
      transparent 0 5.5rem,
      var(--texture-line-a) 5.5rem 5.5625rem
    ),
    repeating-linear-gradient(
      14deg,
      transparent 0 8.75rem,
      var(--texture-line-b) 8.75rem 8.8125rem
    ),
    radial-gradient(120% 90% at 78% 18%, var(--dark-core) 0%, var(--dark-edge) 68%);
  background-position: center;
  filter: grayscale(1) contrast(1.06);
}

/* A real photograph, as an <img> rather than a CSS background. The element
   version earns its place where the picture carries meaning: it takes alt
   text, intrinsic dimensions and a loading priority, none of which a
   background can. It sits between the stand-in texture (-3) and the
   scrim (-1), so it hides the former and is toned by the latter. */
.media__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;   /* keeps the face in frame as the panel grows */
  filter: grayscale(1) contrast(1.06);
}
/* The band photographs are framed centrally, not head-high, and they arrive
   near-monochrome already. Grayscale would only strip the warm cast that
   stops them reading as cold stock renders, so it is dialled back rather
   than applied in full. */
.media__img--band {
  object-position: center;
  filter: saturate(0.35) contrast(1.04);
}

/* Layer 2 — the scrim that keeps the copy legible */
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    var(--scrim-a) 0%,
    var(--scrim-b) 34%,
    var(--scrim-c) 68%,
    var(--scrim-d) 100%
  );
}
.media--cta::after {
  background: linear-gradient(
    90deg,
    var(--scrim-cta-a) 0%,
    var(--scrim-cta-b) 40%,
    var(--scrim-d) 100%
  );
}
.media--band::after {
  background: linear-gradient(
    90deg,
    var(--scrim-band-a) 0%,
    var(--scrim-band-b) 55%,
    var(--scrim-band-c) 100%
  );
}
.media--panel::after {
  background: linear-gradient(180deg, var(--scrim-panel-top), var(--scrim-panel-base));
}

/* Hero

   The hero carries a real photograph, so it opts out of the built texture and
   the scrim above rather than layering over them.

   The engine sits in the right 41% of the source frame, and the brief is that
   type must never cross it. Keeping the picture full-bleed and computing a
   safe text width does not survive: sized by height, the image holds a fixed
   width while the viewport narrows, so the engine walks left into the copy
   and every width needs its own offset.

   So the separation is structural instead. The art is its own panel pinned to
   the right, and the copy is capped to clear it. The panel crops from its own
   left as it narrows, which bleeds the engine off the right edge exactly the
   way it should, at full height and full sharpness. Left of the panel the
   hero fills with --hero-ground, which is the flat #090909 the image's own
   left third samples at, so the join is invisible at any width. */
.hero {
  display: flex;
  align-items: center;
  min-height: 43.75rem;
  background-color: var(--hero-ground);
  /* Ramps the flat ground up to the photograph's own glow so the two meet at
     the same tone where the panel begins, at 54%. */
  background-image: linear-gradient(
    90deg,
    var(--hero-ground) 0%,
    var(--hero-ground) 24%,
    var(--hero-glow) 54%
  );
}
.hero::before,
.hero::after { display: none; }

.hero__art {
  position: absolute;
  inset-block: 0;
  right: 0;
  z-index: -2;
  width: 46%;
  /* AVIF at a fifth of the JPEG's weight. A browser that cannot read
     image-set() with type() drops the second declaration and keeps the JPEG.
     The <link rel="preload"> pair in each homepage <head> fetches this AVIF
     and the 1200px one below, split at the same 640px line. Keep them in
     step, or a phone downloads the hero twice. */
  background: url('/assets/img/hero-engine.jpg') right center / cover no-repeat;
  background-image: image-set(
    url('/assets/img/hero-engine.avif') type('image/avif'),
    url('/assets/img/hero-engine.jpg') type('image/jpeg')
  );
  /* Feathers the join into the ground. The engine begins at worst 3.8% into
     the panel, at the 1320px end of this layout, so 3% is the most that can
     be faded without eating metal. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--mask-opaque) 3%);
  mask-image: linear-gradient(90deg, transparent 0, var(--mask-opaque) 3%);
}

.hero > .shell { width: 100%; }
/* 46vw is what keeps the copy clear of the 58% mark the panel starts at,
   once the shell's own gutter is accounted for. */
.hero__inner { padding-block: var(--section-y-lg); max-width: min(40rem, 44vw); }
.hero p { margin-top: var(--sp-9); max-width: 40rem; }
.hero .btn-row { margin-top: var(--sp-11); }

/* Full-width quote band */
.band { display: flex; align-items: center; min-height: 27.5rem; }
.band p {
  font-family: var(--font-display);
  font-size: var(--fs-band);
  line-height: var(--lh-heading);
  color: var(--text-on-dark);
  max-width: 38.75rem;
  margin: 0;
}

/* Closing call to action */
.cta { padding-block: var(--section-y-lg); }
.cta p { margin-top: var(--sp-8); max-width: var(--measure-sm); color: var(--green-on-dark); }
.cta .btn-row { margin-top: var(--sp-12); }


/* --------------------------------------------------------------------------
   8. HOME — the four outcomes grid

   Four columns divided by hairlines, each carrying an icon, a one-word
   outcome, what it means, and the symptom of its absence. The last line is
   deliberately quieter than the paragraph above it: it is the diagnosis, not
   the promise.
   -------------------------------------------------------------------------- */

.outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--sp-18);
}
.outcome {
  display: flex;
  flex-direction: column;
  padding: 0 var(--sp-8) var(--section-y);
  border-left: var(--bw-hair) solid var(--border);
}
.outcome:first-child { padding-left: 0; border-left: 0; }
.outcome:last-child  { padding-right: 0; }
.outcome svg { color: var(--text-brand); }
.outcome .h-card {
  font-size: var(--fs-h4);
  margin-top: var(--sp-6);
}
/* `.outcome__without` is also a direct child, so exclude it here or this
   rule out-specifies it and the diagnosis line renders at the body size. */
.outcome > p:not(.outcome__without) {
  flex: 1 1 auto;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text-secondary);
}
/* The paragraphs above differ in length, so the four rules would sit at four
   different heights. Growing the paragraph rather than pushing this element
   down is what aligns the rules: `margin-top: auto` would align the bottoms
   instead, and the bottoms are the edge nobody sees.

   That only holds while the four diagnosis lines are the same height, which
   stopped being true once Turkish gave them one to three sentences each. With
   subgrid every card shares the row tracks of .outcomes (icon, title,
   paragraph, diagnosis), so each diagnosis row starts on the same line however
   long any of them runs. Browsers without subgrid keep the flex layout. */
@supports (grid-template-rows: subgrid) {
  .outcome {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
  }
  .outcome svg { justify-self: start; }
}
.outcome__without {
  margin-top: 0;
  padding-top: var(--sp-4);
  border-top: var(--bw-hair) solid var(--border);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--text-muted);
}
.outcome__without strong {
  font-weight: var(--fw-semi);
  color: var(--text-brand);
}


/* --------------------------------------------------------------------------
   9. HOME — the dark "whole engine" statement band
   -------------------------------------------------------------------------- */

.engine {
  background: radial-gradient(ellipse at 50% 38%, var(--dark-core) 0%, var(--dark-edge) 72%);
  padding-block: var(--section-y-lg);
}
.engine .h-section { margin-top: var(--sp-5); max-width: var(--measure-lg); }
.engine .engine__lede {
  margin-top: var(--sp-8);
  max-width: var(--measure);
  color: var(--green-quiet);
}


/* --------------------------------------------------------------------------
   10b. HOME — the four pillars, in brief

   A list, not cards: the homepage names the four and hands the detail to
   Services. Deliberately a different shape from the card grids above and
   below it, because the page already leans hard on cards.
   -------------------------------------------------------------------------- */

.plist {
  margin-top: var(--sp-14);
  border-top: var(--bw-rule) solid var(--border-strong);
}
.plist__row {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: var(--sp-10);
  align-items: baseline;
  padding-block: var(--sp-8);
  border-bottom: var(--bw-hair) solid var(--border);
}
.plist__row .h-card { font-size: var(--fs-h3); }
.plist__row .h-card a {
  color: var(--text-brand);
  border-bottom: var(--bw-hair) solid transparent;
}
.plist__row .h-card a:hover { border-bottom-color: var(--link-hover); }
.plist__row p {
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text-secondary);
}


/* --------------------------------------------------------------------------
   10c. HOME — testimonials

   Sized by how many there are. `auto-fit` lets two sit side by side; with one
   the section would stretch a quote across the full 1200px column, which is
   twice a readable measure, so a single card carries `--single` and is capped
   instead.
   -------------------------------------------------------------------------- */

/* Two cards side by side only while each column keeps 34rem; below that the
   quote text, set at heading size, ran to twenty-odd lines in a narrow column.
   Stacked, each card keeps the 50rem cap the single testimonial had. */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 34rem), 1fr));
  gap: var(--sp-7);
  margin-top: var(--sp-16);
}
/* The site's proof, so these are the cards that invert: deep green on the alt
   band rather than another paper panel. They read at a glance from halfway
   down the page, which a bordered white card at body size did not. */
.quote {
  display: flex;
  flex-direction: column;
  max-width: 50rem;
  margin: 0;
  background: var(--bg-dark);
  box-shadow: var(--shadow-panel);
  padding: var(--sp-13) var(--sp-12) var(--sp-11);
}
.quote svg { color: var(--accent); }
.quote blockquote {
  margin: var(--sp-8) 0 0;
  font-family: var(--font-display);
  /* 15% under the h3 step: at full h3 two quotes side by side read as
     shouting. Still fluid, 20 → 26px. */
  font-size: calc(var(--fs-h3) * 0.85);
  line-height: var(--lh-heading);
  color: var(--green-bright);
}
.quote figcaption {
  margin-top: auto;
  padding-top: var(--sp-9);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.quote__avatar {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  outline: var(--bw-rule) solid var(--accent);
  outline-offset: var(--sp-0-5);
}
.quote__name {
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  color: var(--text-on-dark);
}
.quote__meta { margin-top: var(--sp-0-5); font-size: var(--fs-sm); color: var(--text-on-dark-2); }


/* --------------------------------------------------------------------------
   11. HOME — four-step process
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-14) var(--sp-10);
  margin-top: var(--sp-18);
}
.step { border-top: var(--bw-rule) solid var(--bg-dark); padding-top: var(--sp-6); }

/* The oversized ordinals on this page and on Services (.srow__n) are drawn in
   a deliberately faint green, well under the 3:1 contrast floor. They are
   marked aria-hidden in the markup and the real ordinal is carried by a
   visually-hidden span inside the heading, so the sequence is available to
   everyone and these remain what the design intends: decoration. Do not
   remove that span if you change these styles. */
.step__n {
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  line-height: 1;
  color: var(--accent);
}
.step .h-card { font-size: var(--fs-h3-sm); margin-top: var(--sp-5); }
.step p { margin-top: var(--sp-3); font-size: var(--fs-md); color: var(--text-secondary); }


/* --------------------------------------------------------------------------
   12. TWO-UP SPLIT (Home: "who I work with" / "about")
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split__pane {
  padding-block: var(--section-y);
  padding-left: var(--sp-14);
  padding-right: var(--edge);
}
.split__pane--rule {
  padding-left: var(--edge);
  padding-right: var(--sp-20);
  border-right: var(--bw-rule) solid var(--border-strong);
}
.split__pane p { margin-top: var(--sp-8); color: var(--text-secondary); }
.split__pane p + p { margin-top: var(--sp-5); }
.split__pane .ulink { margin-top: var(--sp-7); }

/* Three panes side by side, for the 404 where each language gets its own way
   back. The --rule modifier carries the divider. The edge sits on the
   container rather than on the outer panes: three equal tracks grow by a
   third of any extra width while --edge grows by half of it, so padding
   the outer panes squeezed them on wide screens. */
.split--tri {
  grid-template-columns: repeat(3, 1fr);
  padding-inline: var(--edge);
}
.split--tri .split__pane {
  padding-left: var(--sp-10);
  padding-right: var(--sp-10);
}
.split--tri .split__pane:first-child { padding-left: 0; }
.split--tri .split__pane:last-child { padding-right: 0; }


/* --------------------------------------------------------------------------
   13. SERVICES — the four pillar rows
   -------------------------------------------------------------------------- */

.srow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--bw-hair) solid var(--border);
}
.srow:last-child { border-bottom: 0; }
.srow--alt { background: var(--bg-alt); }

.srow__head {
  padding-block: var(--section-y);
  padding-left: var(--edge);
  padding-right: var(--sp-20);
}
.srow__body {
  padding-block: var(--section-y);
  padding-left: var(--sp-20);
  padding-right: var(--edge);
  border-left: var(--bw-hair) solid var(--border);
}
.srow__title { display: flex; align-items: center; gap: var(--sp-6); }
.srow__title svg { flex: none; color: var(--text-brand); }

/* Alternate rows put the list on the left and the heading on the right.
   Source order stays head-then-body, so the heading is still read first and
   the stacked layout below 860px needs no reordering of its own. */
.srow--flip .srow__head {
  grid-column: 2;
  grid-row: 1;
  padding-left: var(--sp-20);
  padding-right: var(--edge);
}
.srow--flip .srow__body {
  grid-column: 1;
  grid-row: 1;
  padding-left: var(--edge);
  padding-right: var(--sp-20);
  border-left: 0;
  border-right: var(--bw-hair) solid var(--border);
}

.srow__def {
  margin-top: var(--sp-7);
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  color: var(--text-lede);
  max-width: 32.5rem;
}
.srow__head .label { margin-top: var(--sp-10); }
.srow__head .label + p {
  margin-top: var(--sp-3-5);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-secondary);
  max-width: 32.5rem;
}
.srow__body .label + * { margin-top: var(--sp-5); }

.ticklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2-5);
  font-size: var(--fs-base);
  color: var(--text-secondary);
}
.ticklist li { display: flex; gap: var(--sp-3); }
.ticklist li::before {
  content: '—';
  color: var(--accent);
  flex: none;
}

.aside-note {
  margin-top: var(--sp-8);
  border-left: var(--bw-rule) solid var(--accent);
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-5);
}
.aside-note p { margin-top: var(--sp-2-5); font-size: var(--fs-base); color: var(--text-secondary); }


/* --------------------------------------------------------------------------
   14. FAQ

   Built on <details>/<summary>. Answers stay in the DOM when collapsed, so
   crawlers and AI search read the full text (Build Brief §6), and keyboard
   and screen-reader behaviour comes for free.
   -------------------------------------------------------------------------- */

/* Two equal columns of introductory copy (Services opener) */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  max-width: 67.5rem;   /* 1080 */
  margin-top: var(--sp-14);
}

.two-col {
  display: grid;
  grid-template-columns: 23.75rem 1fr;
  gap: var(--sp-20);
}
.two-col__head .h-section { margin-top: var(--sp-5); }

.faq { border-top: var(--bw-hair) solid var(--border-strong); }
.faq__item { border-bottom: var(--bw-hair) solid var(--border-strong); }

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-8);
  padding-block: var(--sp-7);
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  color: var(--text-brand);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--link-hover); }
.faq__sign {
  flex: none;
  font-family: var(--font-text);
  font-size: var(--fs-h4);
  line-height: 1;
  color: var(--accent);
}
.faq__sign::before { content: '+'; }
.faq__item[open] .faq__sign::before { content: '\2013'; }

.faq__a {
  margin: 0;
  padding-bottom: var(--sp-7);
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: var(--measure);
}

/* The reveal is a fade, not a height transition.
   Animating the height of a disclosure means either the grid 0fr/1fr trick or
   ::details-content { block-size }. Both were tried here and both leave the
   panel collapsed at zero in current Chrome, which hides the answer outright —
   a far worse failure than no animation. This animates opacity and offset
   only, so it cannot affect layout and cannot hide content if it misbehaves.
   Under prefers-reduced-motion the global rule near the end of this file
   reduces it to nothing. */
.faq__item[open] .faq__a { animation: faq-reveal var(--dur) var(--ease); }
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-0.25rem); }
}


/* --------------------------------------------------------------------------
   15. ABOUT
   -------------------------------------------------------------------------- */

.about-hero { display: grid; grid-template-columns: 1fr 32.5rem; }
.about-hero__text {
  padding-block: var(--section-y-lg) var(--section-y);
  padding-left: var(--edge);
  padding-right: var(--sp-20);
}
.about-hero__text .h-page { margin-top: var(--sp-6); }
.about-hero__text .lede { margin-top: var(--sp-9); max-width: 37.5rem; }
.about-hero__text .prose { margin-top: var(--sp-6); max-width: 37.5rem; }
.about-hero__img { border-left: var(--bw-rule) solid var(--border-strong); min-height: 25rem; }

/* Four principles, joined by a mortar joint of the page rule colour */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bw-rule);
  background: var(--border-strong);
  margin-top: var(--sp-16);
}
.tile { background: var(--paper-tile); padding: var(--sp-12) var(--sp-11); }
.tile svg { color: var(--text-brand); }
.tile .h-card { font-size: var(--fs-h3-sm); margin-top: var(--sp-6-5); }
.tile p { margin-top: var(--sp-3-5); font-size: var(--fs-md); color: var(--text-secondary); }

/* CV */
.cv { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-20); margin-top: var(--sp-16); }
.cv__head {
  font-family: var(--font-display);
  font-size: var(--fs-3xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: var(--sp-4);
  border-bottom: var(--bw-rule) solid var(--bg-dark);
}
.cv__head + * { margin-top: 0; }
.cv__item { padding-block: var(--sp-7); border-bottom: var(--bw-hair) solid var(--border); }
.cv__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-8);
}
/* The employer or institution is the heading. The role sits under it in a
   smaller bold line, then the description and any detail points. */
.cv__row .h-card { font-size: var(--fs-h3-sm); }
.cv__when {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
  flex: none;
}
.cv__item p:not(.cv__when):not(.cv__role):not(.cv__rot) {
  margin-top: var(--sp-2-5);
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 38.75rem;
}
.cv__role {
  margin-top: var(--sp-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  color: var(--text-lede);
}

/* A rotation within a role: quieter than .cv__role, which marks the role itself */
.cv__rot {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}

/* A second role at the same employer: its own line, with its own dates */
.cv__sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}
.cv__sub .cv__role { margin-top: 0; }

.cv__points {
  list-style: none;
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 38.75rem;
}
.cv__points li { display: flex; gap: var(--sp-3); }
.cv__points li::before { content: '—'; color: var(--accent); flex: none; }

.cv__block + .cv__block { margin-top: var(--sp-12); }

.deflist > div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4-5);
  border-bottom: var(--bw-hair) solid var(--border);
  font-size: var(--fs-base);
}
.deflist dt { color: var(--text-lede); }
.deflist dd { color: var(--text-muted); margin: 0; }


/* --------------------------------------------------------------------------
   16. CONTACT
   -------------------------------------------------------------------------- */

/* The side panel runs to the window edge and pads by --edge to stay on the
   grid. A fixed 26.25rem track could not absorb that: --edge grows with the
   window, so past 1440px the text column shrank, to 4px on a 1920 screen.
   The track now grows with --edge and keeps 244px of text (18.75rem minus the
   3.5rem inset), which is exactly what it had at 1440. */
.contact {
  display: grid;
  grid-template-columns: 1fr max(26.25rem, calc(18.75rem + var(--edge)));
}
.contact__main {
  padding-block: var(--section-y);
  padding-left: var(--edge);
  padding-right: var(--sp-20);
}
.contact__side {
  padding-block: var(--section-y);
  padding-left: var(--sp-14);
  padding-right: var(--edge);
  border-left: var(--bw-rule) solid var(--border-strong);
  background: var(--bg-alt);
}

.formframe {
  border: var(--bw-hair) solid var(--border-strong);
  background: var(--bg-raised);
  box-shadow: var(--shadow-panel);
}
.formframe__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-5-5) var(--sp-8);
  border-bottom: var(--bw-hair) solid var(--rule-faint);
  background: var(--paper-strip);
}
.formframe__note { font-size: var(--fs-2xs); color: var(--text-muted); }
.formframe__body { padding: var(--sp-6); }
/* The enquiry form.

   The fields are ours, in the site's own type and colour. The submission still
   goes to Google Forms, so responses keep landing in the same sheet: the form
   posts to the form's formResponse endpoint, targeting a hidden iframe so the
   page does not navigate away. That works with JavaScript switched off; the
   script only adds validation and the success panel on top.

   Nothing loads from Google until the visitor presses send, which is why the
   privacy note on this page changed. */

.form__sink { display: none; }

.form__field + .form__field { margin-top: var(--sp-7); }

.form__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-2-5);
}
.form__req { color: var(--link-hover); }

.form__input,
.form__textarea {
  display: block;
  width: 100%;
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--white);
  border: var(--bw-hair) solid var(--border-strong);
  border-radius: 0;
  padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--dur-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form__input { height: 3rem; }
.form__textarea { min-height: 8.25rem; resize: vertical; }

.form__input:hover,
.form__textarea:hover { border-color: var(--text-muted); }
.form__input:focus,
.form__textarea:focus {
  outline: var(--bw-rule) solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--focus-ring);
}
.form__input[aria-invalid='true'],
.form__textarea[aria-invalid='true'] { border-color: var(--link-hover); }

.form__error {
  margin-top: var(--sp-2);
  font-size: var(--fs-2xs);
  color: var(--link-hover);
}
.form__error:empty { display: none; }

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.form__note {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  max-width: 16.25rem;
  text-align: right;
}
.form__submit[disabled] { opacity: 0.6; cursor: default; }

/* Swapped in once the submission has gone through */
.form__done { text-align: center; padding: var(--sp-10) var(--sp-4); }
.form__done .h-card { margin-top: var(--sp-5); }
.form__done p { margin-top: var(--sp-3); color: var(--text-secondary); }
.form__done svg { margin-inline: auto; color: var(--link); }
.formframe__foot {
  margin-top: var(--sp-5);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.contact__side .deflist-lg { margin-top: var(--sp-7); }
/* The rows are divs, which is what a <dl> wraps its pairs in. This selector
   read `> li` and so matched nothing: no row ever got its rule or its
   padding, and the only lines on the panel were the links underlining
   themselves. That is why the one row without a link, "Based in", looked
   unfinished next to the two with one.

   Every row keeps its rule, the last one included, so the note underneath
   sits below a closing line rather than floating off the end. */
.contact__side .deflist-lg > div {
  padding-block: var(--sp-6);
  border-bottom: var(--bw-hair) solid var(--border-strong);
}
.contact__side .deflist-lg > div:first-child { padding-top: 0; }
/* The label carries the emphasis here, the value sits quietly under it. */
.contact__side .deflist-lg dt {
  font-family: var(--font-display);
  font-size: var(--fs-h3-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  color: var(--text-brand);
}
.contact__side .deflist-lg dd {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-base);
  color: var(--text-secondary);
  overflow-wrap: break-word;   /* <wbr> hints in the markup place the breaks */
}
/* A real underline rather than a border on an inline-block. The old one grew
   to the full column width whenever the address wrapped, which read as a
   second row rule sitting two pixels above the first. */
.contact__side .deflist-lg dd a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: var(--bw-hair);
  text-underline-offset: 0.3em;
}
.contact__side .deflist-lg dd a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

/* The travel note is a footnote to the whole panel, not a value belonging to
   "Based in", so it sits outside the list and is sized to say so. */
.contact__note {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  max-width: 20rem;
}


/* --------------------------------------------------------------------------
   17. LEGAL PAGES
   -------------------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: var(--sp-7);
  margin-top: var(--sp-8);
  font-size: var(--fs-sm);
}
.tabs a {
  color: var(--text-muted);
  border-bottom: var(--bw-rule) solid transparent;
  padding-bottom: var(--sp-1);
}
.tabs a:hover { color: var(--link); }
.tabs a[aria-current='page'] { color: var(--link); border-bottom-color: var(--link); }

.legal { display: grid; grid-template-columns: 17.5rem 1fr; gap: var(--sp-20); }

.legal__toc ul { list-style: none; }
.legal__toc a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  padding-block: var(--sp-3-5);
  border-bottom: var(--bw-hair) solid var(--border);
}
.legal__toc a:hover { color: var(--link); }

.legal__body { max-width: 45rem; }
.legal__body h2 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  color: var(--text-brand);
}
.legal__body h2 + p { margin-top: var(--sp-4-5); }
.legal__body h2:not(:first-child) {
  margin-top: var(--sp-12);
  padding-top: var(--sp-10);
  border-top: var(--bw-hair) solid var(--border);
}
.legal__body h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  color: var(--text-brand);
  margin-top: var(--sp-8);
}
.legal__body h3 + p { margin-top: var(--sp-3); }
.legal__body p,
.legal__body li { color: var(--text-secondary); }
.legal__body p + p { margin-top: var(--sp-4); }
.legal__body ul {
  list-style: none;
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2-5);
}
.legal__body ul li { display: flex; gap: var(--sp-3); }
.legal__body ul li::before { content: '—'; color: var(--accent); flex: none; }
.legal__body a { border-bottom: var(--bw-hair) solid var(--accent); padding-bottom: var(--sp-1); }
.legal__body a:hover { border-bottom-color: var(--link-hover); }
.legal__updated {
  margin-top: var(--sp-14);
  padding-top: var(--sp-8);
  border-top: var(--bw-rule) solid var(--border-strong);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   18. COOKIE CONSENT BANNER

   Anchored to the bottom of the document flow, never a modal overlay: it must
   not hide page content from crawlers or require interaction before the page
   renders (Build Brief §7).
   -------------------------------------------------------------------------- */

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-banner);
  background: var(--bg-darkest);
  border-top: var(--bw-rule) solid var(--border-dark);
  box-shadow: var(--shadow-lift);
}
.cookie[hidden] { display: none; }

.cookie__inner {
  display: grid;
  grid-template-columns: 1fr 32.5rem;
  gap: var(--sp-16);
  align-items: center;
  padding-block: var(--sp-8);
}
.cookie p {
  margin-top: var(--sp-3);
  font-size: var(--fs-base);
  color: var(--green-lede);
  max-width: var(--measure-sm);
}
.cookie__switches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-7);
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
}
.cookie__switch {
  display: flex;
  align-items: center;
  gap: var(--sp-2-5);
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-text);
  font-size: var(--fs-xs);
  color: var(--accent);
}
.cookie__switch[disabled] { cursor: default; }
.cookie__track {
  width: 2.25rem;
  height: 1.25rem;
  flex: none;
  background: var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--sp-1) var(--sp-0-5);
}
.cookie__track::before {
  content: '';
  width: 1rem;
  height: 1rem;
  background: var(--green-lede);
  transition: transform var(--dur) var(--ease);
}
.cookie__switch[aria-pressed='true'] .cookie__track::before,
.cookie__switch[disabled] .cookie__track::before { transform: translateX(1rem); }
.cookie__switch[aria-pressed='false'] .cookie__track { background: var(--green-950); border: var(--bw-hair) solid var(--border-dark); }

.cookie__policy {
  display: inline-block;
  margin-top: var(--sp-4-5);
  font-size: var(--fs-xs);
  color: var(--green-on-dark);
  border-bottom: var(--bw-hair) solid var(--border-dark);
  padding-bottom: var(--sp-1);
}
.cookie__policy:hover { color: var(--white); border-bottom-color: var(--white); }

/* Accept and Decline carry identical visual weight in the second row.
   Anything else would not be a genuine choice under GDPR. */
.cookie__actions { display: flex; flex-direction: column; gap: var(--sp-3); }
.cookie__actions .btn-row { gap: var(--sp-3); }
.cookie__actions .btn-row .btn { flex: 1; padding-inline: var(--sp-6); }


/* --------------------------------------------------------------------------
   19. SITE FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--green-on-dark);
  font-size: var(--fs-sm);
  padding-block: var(--sp-18) var(--sp-12);
}
.site-footer a { color: var(--green-on-dark); }
.site-footer a:hover { color: var(--white); }

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-15);
  padding-bottom: var(--sp-12);
  border-bottom: var(--bw-hair) solid var(--border-dark);
}
.site-footer__logo img { width: 10.5rem; height: auto; }
.site-footer__blurb {
  margin-top: var(--sp-5);
  max-width: 20rem;
  color: var(--accent);
  font-size: var(--fs-xs);
}
.site-footer__col { display: flex; flex-direction: column; gap: var(--sp-3); list-style: none; }
.site-footer__col .label { margin-bottom: var(--sp-1); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-7);
  font-size: var(--fs-2xs);
  color: var(--accent);
}
.site-footer__bottom a { color: var(--accent); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-7); list-style: none; }
.cookie-reopen {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-text);
  font-size: var(--fs-2xs);
  color: var(--accent);
  text-decoration: none;
}
.cookie-reopen:hover { color: var(--white); }


/* --------------------------------------------------------------------------
   20. RESPONSIVE

   The design was drawn at 1440px only. These breakpoints carry it down.
   -------------------------------------------------------------------------- */

/* --- 1320px: the hero gives up its side-by-side split -------------------
   `cover` crops the panel to its own aspect, so as the viewport narrows the
   crop marches right and eventually cuts through the engine. The framing only
   holds while the panel stays wider than about 0.73x the hero's height, which
   is roughly 1320px. Below it the picture becomes a band under the copy. */
@media (max-width: 1320px) {
  /* Stacked, the panel becomes a band beneath the copy rather than
     disappearing: the picture is worth keeping on a phone. */
  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .hero > .shell { order: 1; }
  .hero__art {
    order: 2;
    position: static;
    width: 100%;
    height: 15rem;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__inner { max-width: none; }
}

/* A phone shows the hero as a full-width 15rem band. A 1200px source covers
   a 400px phone at 3x and a 600px one at 2x, at a third of the full file's
   weight. Matches the preload's media query. The plain url() first is the
   fallback for a browser without image-set() type support. */
@media (max-width: 640px) {
  .hero__art {
    background-image: url('/assets/img/hero-engine-1200.jpg');
    background-image: image-set(
      url('/assets/img/hero-engine-1200.avif') type('image/avif'),
      url('/assets/img/hero-engine-1200.jpg') type('image/jpeg')
    );
  }
}

/* --- 1180px: the widest grids give up a column ------------------------- */
@media (max-width: 1180px) {
  .outcomes { grid-template-columns: repeat(2, 1fr); }
  .outcome { padding: 0 var(--sp-7) var(--sp-16); }
  .outcome:nth-child(odd) { padding-left: 0; border-left: 0; }
  .outcome:nth-child(even) { padding-right: 0; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--sp-12) var(--sp-10); }
  .two-col { grid-template-columns: 1fr; gap: var(--sp-12); }
  .cv { grid-template-columns: 1fr; gap: var(--sp-16); }
  .about-hero { grid-template-columns: 1fr 24rem; }
  .about-hero__text { padding-right: var(--sp-12); }
  .contact { grid-template-columns: 1fr 22rem; }
  .contact__main { padding-right: var(--sp-12); }
  .contact__side { padding-left: var(--sp-10); }
  .legal { grid-template-columns: 15rem 1fr; gap: var(--sp-12); }
  .srow__head { padding-right: var(--sp-12); }
  .srow__body { padding-left: var(--sp-12); }
  .split__pane { padding-left: var(--sp-12); }
  .split__pane--rule { padding-right: var(--sp-12); }
  .cookie__inner { grid-template-columns: 1fr 22rem; gap: var(--sp-10); }
}

/* --- 1000px: the header nav collapses --------------------------------- */
@media (max-width: 1000px) {
  .site-header__inner { gap: var(--sp-5); flex-wrap: wrap; }
  .site-header__logo img { width: 6.5rem; }
  .nav-toggle { display: inline-flex; }

  .site-header__nav {
    order: 3;
    flex: 0 0 100%;
    display: none;
    padding-bottom: var(--sp-5);
  }
  .site-header__nav.is-open { display: block; }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: var(--fs-base);
    border-top: var(--bw-hair) solid var(--border-dark);
  }
  .nav a {
    display: block;
    padding: var(--sp-4) 0;
    border-bottom: var(--bw-hair) solid var(--border-dark);
    border-left: var(--bw-rule) solid transparent;
    padding-left: var(--sp-4);
  }
  .nav a[aria-current='page'] {
    border-bottom-color: var(--border-dark);
    border-left-color: var(--accent);
  }

  .site-header__util {
    margin-left: 0;
    margin-top: var(--sp-5);
    flex-wrap: wrap;
    gap: var(--sp-4);
  }
  .lang__menu { left: 0; right: auto; }

  .tiles { grid-template-columns: 1fr; }
}

/* --- 860px: two-column page layouts stack ----------------------------- */
@media (max-width: 860px) {

  .outcomes { margin-top: var(--sp-12); }
  .quotes { grid-template-columns: 1fr; gap: var(--sp-5); margin-top: var(--sp-12); }
  .plist__row { grid-template-columns: 12rem 1fr; gap: var(--sp-7); }

  .two-up { grid-template-columns: 1fr; gap: var(--sp-6); margin-top: var(--sp-10); }

  .split { grid-template-columns: 1fr; }
  .split--tri { grid-template-columns: 1fr; padding-inline: 0; }
  .split__pane--rule {
    border-right: 0;
    border-bottom: var(--bw-rule) solid var(--border-strong);
    padding-right: var(--edge);
  }
  .split__pane { padding-left: var(--edge); }
  .split--tri .split__pane,
  .split--tri .split__pane:first-child,
  .split--tri .split__pane:last-child {
    padding-left: var(--edge);
    padding-right: var(--edge);
  }
  .srow { grid-template-columns: 1fr; }
  .srow__head,
  .srow--flip .srow__head {
    grid-column: 1;
    grid-row: auto;
    padding-left: var(--edge);
    padding-right: var(--edge);
    padding-bottom: var(--sp-8);
  }
  .srow__body,
  .srow--flip .srow__body {
    grid-column: 1;
    grid-row: auto;
    padding-left: var(--edge);
    padding-right: var(--edge);
    padding-top: 0;
    border-left: 0;
    border-right: 0;
  }

  .about-hero { grid-template-columns: 1fr; }
  .about-hero__text { padding-right: var(--edge); }
  .about-hero__img {
    border-left: 0;
    border-top: var(--bw-rule) solid var(--border-strong);
    min-height: 18rem;
    order: -1;
  }

  .contact { grid-template-columns: 1fr; }
  .contact__main { padding-right: var(--edge); padding-bottom: var(--sp-10); }
  .contact__side {
    padding-left: var(--edge);
    padding-top: var(--sp-12);
    border-left: 0;
    border-top: var(--bw-rule) solid var(--border-strong);
  }

  .legal { grid-template-columns: 1fr; gap: var(--sp-10); }
  .legal__toc { order: 2; }

  .cookie__inner { grid-template-columns: 1fr; gap: var(--sp-6); }

  .site-footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
  .site-footer__logo { grid-column: 1 / -1; }
}

/* --- 620px: single column throughout ---------------------------------- */
@media (max-width: 620px) {
  /* The gutter is only ~31px here, so ease off the optical pull */
  .site-header__logo { margin-left: -0.5rem; }
  .site-header__logo img { width: 5.5rem; }
  .site-footer__logo img { width: 8rem; }

  .band { min-height: 20rem; }
  .band p { font-size: var(--fs-h3); }

  .outcomes { grid-template-columns: 1fr; }
  .outcome,
  .outcome:nth-child(odd),
  .outcome:nth-child(even) {
    padding: var(--sp-10) 0;
    border-left: 0;
    border-top: var(--bw-hair) solid var(--border);
  }
  .outcome:first-child { border-top: 0; padding-top: 0; }
  .quote { padding: var(--sp-9) var(--sp-7) var(--sp-8); }
  .plist__row { grid-template-columns: 1fr; gap: var(--sp-3); }

  .steps { grid-template-columns: 1fr; gap: var(--sp-10); }

  .cv__row,
  .cv__sub { flex-direction: column; gap: var(--sp-1); }
  .btn-row .btn { flex: 1 1 100%; }
  .cookie__actions .btn-row { flex-wrap: wrap; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
  .formframe__head { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .formframe__body { padding: var(--sp-3); }
  .form__foot { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .form__note { text-align: left; max-width: none; }
}


/* --------------------------------------------------------------------------
   21. MOTION PREFERENCES
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
