@charset "UTF-8";
/* ===========================================================================
   Personal Chargeback — Design System
   Production stylesheet. Authored as a token-driven system with a focused
   utility layer; the Tailwind source in /src/css compiles to this same
   contract for teams that prefer the build pipeline (see PERFORMANCE_GUIDE.md).
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------------- */
:root {
  /* ---------------------------------------------------------------------
     Brand palette — Forest & Gold

     Modelled on the reference law-firm layout, which alternates deep blocks,
     cream, and a pale aqua panel, with a saturated gold call to action and
     serif headings. Deep forest green takes the role the reference gives to
     navy: it carries the same "long-established practice" weight, and it
     agrees with the pale mint panel rather than sitting beside it.

     Gold is the only high-chroma colour in the system, so it is reserved for
     things people should click. Nothing decorative uses it at full strength.
     --------------------------------------------------------------------- */

  /* Forest — dark surfaces, headings, footer */
  --forest-900: #071C15;
  --forest-800: #0C2A20;
  --forest-700: #12392C;   /* primary dark section */
  --forest-600: #1A4C3B;
  --forest-500: #24634D;
  --forest-400: #2F7B60;

  /* Gold — calls to action, rules, ornaments */
  --gold-700: #7B570E;     /* foreground-safe on cream, mint and gold-100 */
  --gold-600: #A97B12;
  --gold-500: #D9A227;
  --gold-400: #F2B830;     /* CTA fill */
  --gold-300: #F7CF6B;
  --gold-200: #FAE3AC;
  --gold-100: #FCF2D8;

  /* Mint — the pale panel colour */
  --mint-700: #2C6B57;
  --mint-500: #5FA48C;
  --mint-200: #BFDFD4;
  --mint-100: #D6EAE2;
  --mint-50:  #E9F4F0;

  /* Cream & paper — the light surface ramp. Kept under the historical
     --ink-* names so existing component rules keep resolving; the scale is
     still "higher number = further back", as it was in the light theme. */
  --ink-1000: #FFFFFF;
  --ink-950:  #FDFBF6;   /* page */
  --ink-900:  #FAF6EC;
  --ink-850:  #F6F1E4;
  --ink-800:  #F0E9D9;
  --ink-750:  #E9E0CB;
  --ink-700:  #DFD4BA;
  --ink-600:  #CFC2A3;

  /* Aliases kept so older rules and stored accent values still resolve */
  --baltic-600: var(--forest-900);
  --baltic-500: var(--forest-700);
  --baltic-400: var(--forest-500);
  --teal-600:   var(--forest-600);
  --teal-500:   var(--forest-500);
  --teal-400:   var(--mint-700);
  --teal-300:   var(--mint-500);
  --mint-400:   var(--mint-500);
  --green-400:  var(--forest-500);
  --tea-200:    var(--mint-50);

  /* Semantic */
  --brand:         var(--gold-400);   /* CTA fill only */
  --brand-ink:     var(--forest-900); /* label colour on a gold fill */
  --accent:        var(--forest-600); /* anything read as text */
  --accent-soft:   rgba(26, 76, 59, 0.08);
  --accent-line:   rgba(26, 76, 59, 0.22);
  --rule:          var(--gold-500);   /* ornamental rules under headings */

  /* Text — warm near-blacks so they sit on cream rather than fighting it */
  --text:        #26382F;
  --text-strong: #0B2119;
  --text-muted:  #4C6157;
  --text-faint:  #5E7368;

  /* Text on forest surfaces */
  --on-dark:        #F2F7F3;
  --on-dark-muted:  #B7CDC2;
  --on-dark-faint:  #93AEA1;

  /* Lines & glass — warm alpha over cream */
  --line:        rgba(11, 33, 25, 0.12);
  --line-strong: rgba(11, 33, 25, 0.22);
  --glass:       rgba(11, 33, 25, 0.03);
  --glass-hover: rgba(11, 33, 25, 0.06);

  /* Status */
  --critical: #B3261E;
  --high:     #9A5B08;
  --medium:   #7A5A07;
  --low:      var(--forest-600);
  --positive: var(--forest-600);

  /* Typography */
  --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Fluid type scale — clamp() keeps ultra-wide displays in proportion.
     Body sits at 16px rather than 15px: this is a consumer site read by people
     under stress, and the extra pixel is worth more than the density. */
  --fs-xs:   0.75rem;      /* 12 — legal, meta */
  --fs-sm:   0.875rem;     /* 14 — captions, hints */
  --fs-base: 1rem;         /* 16 — body */
  --fs-md:   1.0625rem;    /* 17 — emphasised body */
  --fs-lg:   clamp(1.125rem, 0.35vw + 1.03rem, 1.25rem);
  --fs-xl:   clamp(1.25rem, 0.55vw + 1.11rem, 1.5rem);
  --fs-2xl:  clamp(1.5rem, 0.9vw + 1.28rem, 1.9rem);
  --fs-3xl:  clamp(1.75rem, 1.5vw + 1.38rem, 2.4rem);
  --fs-4xl:  clamp(2.1rem, 2.4vw + 1.5rem, 3.15rem);
  --fs-5xl:  clamp(2.5rem, 3.6vw + 1.4rem, 4.25rem);

  /* Optical tracking — display type needs negative tracking, small caps positive */
  --track-tight:  -0.022em;
  --track-tighter: -0.034em;
  --track-wide:    0.02em;
  --track-caps:    0.12em;

  /* Spacing — 4px base. Use these rather than ad-hoc rem values so vertical
     rhythm stays consistent when components are recomposed. */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  /* Section rhythm */
  --section-y:       clamp(3.5rem, 5.5vw, 5.5rem);
  --section-y-tight: clamp(2.5rem, 4vw, 3.5rem);

  /* Layout */
  --container:  1200px;
  --container-w: 1400px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-2xl: 32px;

  /* Elevation — layered rather than single-drop. A tight contact shadow plus a
     wide ambient one is what separates a real surface from a pasted-on box. */
  --shadow-xs: 0 1px 2px rgba(11, 33, 25, 0.06);
  --shadow-sm: 0 1px 2px rgba(11, 33, 25, 0.06),
               0 2px 6px -1px rgba(11, 33, 25, 0.07);
  --shadow-md: 0 2px 4px -1px rgba(11, 33, 25, 0.06),
               0 8px 20px -4px rgba(11, 33, 25, 0.10);
  --shadow-lg: 0 4px 8px -2px rgba(11, 33, 25, 0.06),
               0 18px 36px -8px rgba(11, 33, 25, 0.13);
  --shadow-xl: 0 8px 16px -4px rgba(11, 33, 25, 0.07),
               0 32px 64px -16px rgba(11, 33, 25, 0.18);
  --shadow-lift: var(--shadow-lg);
  --shadow-glow: 0 0 0 1px var(--accent-line),
                 0 18px 40px -24px rgba(26, 76, 59, 0.35);
  --ring:        0 0 0 3px rgba(217, 162, 39, 0.45);

  /* Motion — tuned short. Anything above ~450ms reads as lag rather than polish. */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast:  130ms;
  --dur:       230ms;
  --dur-slow:  400ms;

  --header-h: 72px;
}

/* ---------------------------------------------------------------------------
   Accent variants, applied via data-accent on any component.
   Named after the palette; the legacy blue/cyan/violet/indigo names are kept as
   aliases so existing database rows keep working.
   --------------------------------------------------------------------------- */
/* Deliberately uniform. Content rows carry accent values ('teal', 'mint',
   'green', 'baltic') from when this was a multi-practice consultancy, and
   honouring them tinted every card's link a different colour — which reads as
   a rendering fault rather than a choice. One accent, applied consistently, is
   what makes a set of cards look like one product. The selectors stay so the
   stored values remain valid; they simply resolve to the brand. */
[data-accent='teal'],   [data-accent='blue'],
[data-accent='mint'],   [data-accent='violet'],
[data-accent='green'],  [data-accent='cyan'],
[data-accent='baltic'], [data-accent='indigo'] {
  --accent:      var(--forest-600);
  --brand:       var(--gold-400);
  --accent-soft: rgba(26, 76, 59, 0.08);
  --accent-line: rgba(26, 76, 59, 0.22);
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}

/* No ambient gradient washes and no background grid. Soft radial blobs behind
   flat content are the single clearest signature of a generated layout; this
   design gets its depth from flat blocks of colour meeting at hard edges. */

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
svg { fill: none; }

/* The icon partial emits <svg class="icon"> with a viewBox but no intrinsic
   width, so every icon depended on a component rule like `.btn svg` to be
   visible at all. Outside those components — the footer contact block, for
   instance — icons collapsed to zero. Component rules are more specific, so
   they still win where they apply. */
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Manrope is a geometric sans: it carries display sizes at 700–800 and wants
   real negative tracking, or large headings read slack. */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: var(--track-tight);
  color: var(--text-strong);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--line); }

::selection { background: rgba(242, 184, 48, 0.38); color: var(--text-strong); }

:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 99px; border: 3px solid var(--ink-900); }
::-webkit-scrollbar-thumb:hover { background: #b3c7d2; }

/* ---------------------------------------------------------------------------
   3. Accessibility helpers
   --------------------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  transform: translateY(-160%);
  padding: 0.7rem 1.15rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------------------------------------------------------------------------
   4. Layout primitives
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-w); }
.container--narrow { max-width: 820px; }
.container--reading { max-width: 760px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: var(--section-y-tight); }
.section--flush-top { padding-top: 0; }
.section--bordered { border-top: 1px solid var(--line); }

/* Block rhythm: the reference alternates cream, a pale mint panel and a deep
   block. These variants carry their own foreground colours so any component
   dropped inside them inherits the right contrast. */
.section--mint { background: var(--mint-100); }
.section--cream { background: var(--ink-900); }
.section--dark {
  background: var(--forest-700);
  color: var(--on-dark);
  --text: var(--on-dark);
  --text-strong: #fff;
  --text-muted: var(--on-dark-muted);
  --text-faint: var(--on-dark-faint);
  --accent: var(--gold-300);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --accent-soft: rgba(242, 184, 48, 0.14);
  --accent-line: rgba(242, 184, 48, 0.34);
  --rule: var(--gold-400);
}
.section--dark .btn--ghost { border-color: var(--gold-300); color: var(--gold-300); }
.section--dark .btn--ghost:hover { background: var(--gold-400); color: var(--forest-900); border-color: var(--gold-400); }
.section--dark .card,
.section--dark .panel { background: rgba(255, 255, 255, 0.05); border-color: var(--line); box-shadow: none; }
/* Cards carry their own [data-accent], which is set on the element itself and
   therefore beats the section's inherited value. Without this, a card's accent
   resolved to forest green inside a forest block and its badges vanished. */
.section--dark [data-accent],
.footer [data-accent] {
  --accent:      var(--gold-300);
  --accent-soft: rgba(242, 184, 48, 0.14);
  --accent-line: rgba(242, 184, 48, 0.34);
}
.section--dark .card:hover { border-color: var(--gold-400); }
.section--dark .card .icon-tile { background: rgba(242, 184, 48, 0.12); border-color: var(--accent-line); color: var(--gold-300); }
.section--dark .card:hover .icon-tile { background: var(--gold-400); color: var(--forest-900); }

/* A gold seal centred on the seam between two blocks, as in the reference. */
.seam { position: relative; height: 0; }
.seam i {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 6px var(--ink-950);
  z-index: 2;
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
/* Explicit column counts rather than auto-fit. auto-fit meant `.grid-2` with
   four children rendered 3 + 1 on a 1200px container — a stranded card. The
   name of the class should describe what it does at the wide breakpoint. */
.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; }
/* A section head is tall; its trailing link should sit on the first line
   rather than floating at the vertical midpoint of the whole block. */
.between--head { align-items: flex-start; }
@media (max-width: 47.99rem) { .between--head { align-items: flex-start; } }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--aside { grid-template-columns: minmax(0, 1fr) 340px; }
  .split--aside-left { grid-template-columns: 320px minmax(0, 1fr); }
  .split--wide-first { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  /* A long step list leaves its heading column empty for most of the scroll;
     pinning it keeps the section's context on screen. */
  .split--aside-left > :first-child { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.full { width: 100%; }
.relative { position: relative; }

/* ---------------------------------------------------------------------------
   5. Typography components
   --------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 600;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold-300); }
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--rule);
}
.eyebrow--center::before { display: none; }

.display-1 { font-size: var(--fs-5xl); font-weight: 800; letter-spacing: var(--track-tighter); line-height: 1.05; }
.display-2 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: var(--track-tighter); line-height: 1.08; }
.h2 { font-size: var(--fs-3xl); }
.h3 { font-size: var(--fs-2xl); }
.h4 { font-size: var(--fs-xl); }
.h5 { font-size: var(--fs-lg); }

.lede {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
}
.lede--center { margin-inline: auto; }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: -0.01em; }

.gradient-text {
  background: linear-gradient(105deg, var(--text-strong) 6%, var(--teal-600) 48%, var(--mint-500) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gold rule with a lozenge, set beside or beneath a heading. The reference
   uses this as its main sectioning device in place of borders. */
.rule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-3);
}
.rule::before,
.rule::after { content: ''; height: 1px; background: var(--rule); }
.rule::before { width: 3.5rem; }
.rule::after  { flex: 1; max-width: 0; }
.rule i {
  width: 7px;
  height: 7px;
  flex: none;
  rotate: 45deg;
  background: var(--rule);
}
.rule--center { justify-content: center; }
.rule--center::after { max-width: 3.5rem; }

.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head .h2 { margin-top: var(--space-3); }
.section-head .lede { margin-top: var(--space-4); }

/* ---------------------------------------------------------------------------
   6. Buttons
   --------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;               /* touch target floor on every size */
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* The arrow leans forward on hover — the only motion the button needs. */
.btn .btn__icon, .btn > svg:last-child { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__icon, .btn:hover > svg:last-child { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--brand);
  color: var(--brand-ink);
  font-weight: 650;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { --btn-bg: var(--gold-300); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn--primary:focus-visible { box-shadow: var(--ring), var(--shadow-sm); }

/* The reference sets the arrow in a filled disc at the end of the button. */
.btn--primary .btn__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: -0.35rem;
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--gold-300);
}
.btn--primary .btn__icon svg { width: 13px; height: 13px; }

.btn--ghost {
  border-color: var(--forest-700);
  background: transparent;
  color: var(--forest-700);
}
.btn--ghost:hover { background: var(--forest-700); color: var(--on-dark); border-color: var(--forest-700); }

.btn--quiet { min-height: 0; padding: 0.35rem; color: var(--text-muted); }
.btn--quiet:hover { color: var(--text-strong); }

.btn--danger { --btn-bg: #c62828; color: #fff; }
.btn--danger:hover { --btn-bg: #a81f1f; }
.btn--sm { min-height: 38px; padding: 0.5rem 0.95rem; font-size: var(--fs-sm); border-radius: 8px; }
.btn--lg { min-height: 52px; padding: 0.95rem 1.7rem; font-size: var(--fs-md); border-radius: 12px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--accent);
  transition: gap var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover { color: var(--gold-700); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ---------------------------------------------------------------------------
   7. Surfaces & cards
   --------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--ink-1000);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel--pad { padding: clamp(1.5rem, 3vw, 2.5rem); }
.panel--flat { background: var(--ink-900); box-shadow: none; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.4rem, 2vw, 1.75rem);
  background: var(--ink-1000);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  isolation: isolate;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
/* Hairline of brand colour that wipes in along the top edge on hover. */
.card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-500); box-shadow: var(--shadow-lg); }
.card:hover::after, .card:focus-within::after { transform: scaleX(1); opacity: 1; }
.card:focus-within { border-color: var(--accent-line); box-shadow: var(--shadow-md); }

.card__title { font-size: var(--fs-lg); font-family: var(--font-display); letter-spacing: var(--track-tight); }
.card__body { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: var(--space-4); }

/* Whole-card link target without nesting interactive elements */
.card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  color: var(--forest-600);
  background: var(--mint-50);
  border: 1px solid var(--mint-200);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease-spring);
}
.icon-tile svg { width: 19px; height: 19px; }
.icon-tile--lg { width: 52px; height: 52px; border-radius: 14px; }
.icon-tile--lg svg { width: 23px; height: 23px; }
.card:hover .icon-tile { background: var(--forest-700); color: var(--gold-300); border-color: transparent; transform: scale(1.04); }

/* ---------------------------------------------------------------------------
   8. Badges, pills, tags
   --------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border-radius: 99px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.badge--accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.badge--critical { color: var(--critical); background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.3); }
.badge--high     { color: var(--high);     background: rgba(251, 146, 60, 0.12);  border-color: rgba(251, 146, 60, 0.3); }
.badge--medium   { color: var(--medium);   background: rgba(251, 191, 36, 0.12);  border-color: rgba(251, 191, 36, 0.3); }
.badge--low      { color: var(--low);      background: rgba(99, 203, 205, 0.12);  border-color: rgba(99, 203, 205, 0.3); }
.badge--positive { color: var(--positive); background: rgba(87, 204, 153, 0.12);  border-color: rgba(87, 204, 153, 0.3); }

/* Long-form stat inside a card. A pill was used here originally, but with
   `white-space: nowrap` a label like "Usual window from the delivery due date"
   pushed ~50px past the viewport on a 390px screen. */
.card-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  padding-top: var(--space-2);
  margin-top: auto;
}
.card-stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 650;
  color: var(--accent);
  letter-spacing: var(--track-tight);
}
.card-stat__label { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; }

.dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex: none; }
.dot--pulse { animation: pulse-dot 2.4s var(--ease) infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50%      { opacity: 0.65; box-shadow: 0 0 0 5px rgba(10, 122, 92, 0); }
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.32rem 0.7rem;
  border-radius: 7px;
  background: #fff;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
a.tag:hover { color: var(--text-strong); border-color: var(--accent-line); }
.tag--active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------------------------------------------------------------------------
   9. Header & navigation
   --------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled='true'] {
  background: rgba(253, 251, 246, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.header__inner { display: flex; align-items: center; gap: 1.25rem; width: 100%; }

/* Over the home page's forest hero the header is transparent, so it inherits
   on-dark foregrounds until the scrolled (cream, blurred) state takes over.
   Driven by a body class rather than :has() so it is not dependent on
   selector support. */
.has-dark-hero .header:not([data-scrolled='true']) {
  --text-muted:  rgba(255, 255, 255, 0.86);
  --text-strong: #fff;
  --text-faint:  rgba(255, 255, 255, 0.7);
  --line:        rgba(255, 255, 255, 0.22);
  --glass:       rgba(255, 255, 255, 0.10);
  --glass-hover: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.34);
}
.has-dark-hero .header:not([data-scrolled='true']) .logo__text { color: #fff; }
.has-dark-hero .header:not([data-scrolled='true']) .logo__text span { color: var(--gold-300); }
.has-dark-hero .header:not([data-scrolled='true']) .nav__link { color: rgba(255, 255, 255, 0.86); }
.has-dark-hero .header:not([data-scrolled='true']) .nav__link:hover,
.has-dark-hero .header:not([data-scrolled='true']) .nav__link[aria-current='page'] { color: #fff; }
.has-dark-hero .header:not([data-scrolled='true']) .icon-btn { color: rgba(255, 255, 255, 0.86); }
.has-dark-hero .header:not([data-scrolled='true']) .icon-btn:hover { color: #fff; }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; flex: none; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo__text {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.logo__text span { color: var(--text-faint); font-weight: 400; }

.nav { display: none; margin-left: auto; }
@media (min-width: 64rem) { .nav { display: flex; align-items: center; gap: 0.15rem; } }

.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  font-size: var(--fs-base);
  font-weight: 450;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded='true'] { color: var(--text-strong); background: var(--glass); }
.nav__link[aria-current='page'] { color: var(--text-strong); font-weight: 550; }
.nav__link:focus-visible { outline: none; box-shadow: var(--ring); }
.nav__link svg { width: 13px; height: 13px; opacity: 0.6; transition: transform var(--dur-fast) var(--ease); }
.nav__link[aria-expanded='true'] svg { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  width: min(94vw, 680px);
  padding: 0.6rem;
  background: var(--ink-950);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 70px -30px rgba(12, 40, 52, 0.38);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.mega[data-open='true'] { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem; }
.mega__link {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 11px;
  transition: background-color var(--dur-fast) var(--ease);
}
.mega__link:hover { background: var(--accent-soft); }
.mega__link:hover .icon-tile { background: var(--brand); color: #fff; border-color: transparent; }
.mega__link:focus-visible { outline: none; box-shadow: var(--ring); }
.mega__link .icon-tile { transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.mega__link .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
.mega__link .icon-tile svg { width: 16px; height: 16px; }
.mega__label { font-size: var(--fs-base); font-weight: 500; color: var(--text); }
.mega__desc { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.45; }
.mega__foot {
  margin-top: 0.35rem;
  padding: 0.75rem 0.8rem 0.3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
@media (min-width: 64rem) { .header__actions { margin-left: 0.75rem; } }
.header__actions .btn--primary { display: none; }
@media (min-width: 48rem) { .header__actions .btn--primary { display: inline-flex; } }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: var(--glass);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }

.burger { display: grid; }
@media (min-width: 64rem) { .burger { display: none; } }
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  padding: 1.25rem var(--gutter) 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink-950);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.drawer[data-open='true'] { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 64rem) { .drawer { display: none; } }

.drawer__group + .drawer__group { margin-top: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.4rem; }
.drawer__toggle,
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 0.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text);
  text-align: left;
}
.drawer__toggle svg { width: 15px; height: 15px; opacity: 0.6; transition: transform var(--dur-fast) var(--ease); }
.drawer__toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.drawer__sub { display: none; padding: 0 0 0.6rem 0.25rem; }
.drawer__sub[data-open='true'] { display: block; }
.drawer__sub a {
  display: block;
  padding: 0.55rem 0;
  font-size: var(--fs-base);
  color: var(--text-muted);
}
.drawer__sub a:hover { color: var(--accent); }
.drawer__cta { margin-top: 1.5rem; display: grid; gap: 0.65rem; }

/* Scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--forest-700), var(--gold-500), var(--gold-300), var(--forest-600));
}

/* ---------------------------------------------------------------------------
   10. Hero
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

/* Layered ambient wash. Replaces the particle canvas that shipped with the
   security template: a drifting node network reads as "infosec", which is the
   wrong signal for someone who has just lost money. */
/* The reference opens on a deep block with the enquiry card overlapping it.
   Everything inside the hero therefore inherits on-dark foreground tokens. */
.hero {
  background: var(--forest-700);
  color: var(--on-dark);
  --text: var(--on-dark);
  --text-strong: #fff;
  --text-muted: var(--on-dark-muted);
  --text-faint: var(--on-dark-faint);
  --line: rgba(255, 255, 255, 0.14);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--forest-700);
}
/* One hard-edged plane change instead of a gradient. A rule was tried here too
   and cut straight through the headline, which reads as a fault rather than a
   decision, so the block carries a single mark: the angle. */
.hero__bg::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(40%, 32rem);
  background: var(--forest-800);
  border-left: 1px solid rgba(217, 162, 39, 0.3);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 61.99rem) { .hero__bg::after { display: none; } }

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}
.hero__content { max-width: 42rem; min-width: 0; }
.hero__title { font-size: var(--fs-5xl); font-weight: 800; letter-spacing: var(--track-tighter); line-height: 1.03; margin-top: var(--space-4); }
.hero__lede { margin-top: var(--space-5); font-size: var(--fs-lg); color: var(--text-muted); max-width: 40ch; }
.hero__actions { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 26rem) {
  /* Ragged button widths read as sloppy on a narrow screen. */
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
.hero__trust { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; }
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero__trust-item svg { width: 15px; height: 15px; color: var(--gold-300); flex: none; }

/* ---- Hero aside: example claim assessment ---- */
.hero__aside { position: relative; }
.hero .btn--ghost { border-color: var(--gold-300); color: var(--gold-300); }
.hero .btn--ghost:hover { background: var(--gold-400); color: var(--forest-900); border-color: var(--gold-400); }
.claim-card {
  color: var(--text);
  --text: #26382F;
  --text-strong: #0B2119;
  --text-muted: #4C6157;
  --text-faint: #5E7368;
  background: var(--ink-950);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  display: grid;
  gap: var(--space-5);
  max-width: 25.5rem;
  margin-inline: auto;
}
.claim-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.claim-card__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-faint);
}

.claim-card__rows { display: grid; gap: 0; }
.claim-card__rows > div {
  border-bottom-color: rgba(11, 33, 25, 0.12);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.claim-card__rows > div:first-child { padding-top: 0; }
.claim-card__rows dt { font-size: var(--fs-sm); color: var(--text-muted); }
.claim-card__rows dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 550;
  color: var(--text-strong);
  text-align: right;
}

.claim-card__route {
  padding: var(--space-4);
  border-radius: var(--radius-xs);
  background: var(--mint-100);
  border: 1px solid var(--mint-200);
}
.claim-card__route-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 600;
}
.claim-card__route-value {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: var(--track-tight);
  color: var(--text-strong);
}
.claim-card__route-note { margin-top: 0.4rem; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); }

.claim-card__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.claim-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.claim-card__meta svg { width: 14px; height: 14px; flex: none; }

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border-radius: 99px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill--positive { color: var(--forest-700); background: var(--mint-100); border-color: var(--mint-200); }
.pill .dot { width: 6px; height: 6px; }

/* Reveal animation — applied only when JS is available.
   Kept deliberately short: 12px of travel over 400ms reads as "the page is
   alive", while the 22px/750ms it replaced read as "the page is still loading".
   Staggers cap at 175ms so the last card in a row is never noticeably late. */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal[data-revealed='true'] {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.js .reveal[data-delay='1'][data-revealed='true'] { transition-delay: 35ms; }
.js .reveal[data-delay='2'][data-revealed='true'] { transition-delay: 70ms; }
.js .reveal[data-delay='3'][data-revealed='true'] { transition-delay: 105ms; }
.js .reveal[data-delay='4'][data-revealed='true'] { transition-delay: 140ms; }
.js .reveal[data-delay='5'][data-revealed='true'] { transition-delay: 175ms; }

/* Split-word hero reveal */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > span { display: inline-block; }
.js .hero__title .word > span { transform: translateY(105%); }
.js .hero__title[data-revealed='true'] .word > span {
  transform: none;
  transition: transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 22ms);
}

/* ---------------------------------------------------------------------------
   11. Logo wall & stats
   --------------------------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-wall__cell {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  background: #ffffff;
  transition: background-color var(--dur) var(--ease);
}
.logo-wall__cell:hover { background: var(--ink-850); }
.logo-wall__cell svg { width: 100%; max-width: 118px; height: 30px; opacity: 0.55; transition: opacity var(--dur) var(--ease); }
.logo-wall__cell:hover svg { opacity: 0.8; }

.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  /* auto-fit, not a fixed 4: service pages carry three metrics and a fixed
     grid left a dead cell showing the divider colour. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  border: 0;
  background: transparent;
  gap: var(--space-4);
  overflow: visible;
}
/* Settlement-tag treatment: cream card, gold keyline, clipped top corners. */
.stat {
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1rem, 1.8vw, 1.35rem);
  background: var(--ink-900);
  border: 1px solid var(--gold-500);
  text-align: center;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat:hover { background: var(--gold-100); transform: translateY(-2px); }
.section--dark .stat { background: rgba(255, 255, 255, 0.05); border-color: var(--gold-400); }
.section--dark .stat__value { color: var(--gold-300); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: var(--track-tighter);
  line-height: 1.1;
  color: var(--forest-700);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; text-wrap: balance; }

/* ---------------------------------------------------------------------------
   12. Service / feature cards
   --------------------------------------------------------------------------- */
.service-card { min-height: 100%; }
/* Icon and category share the top line so the title always starts at the same
   y-position across a row, whatever the category length. */
.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: var(--space-2);
}
.service-card__cat {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: right;
  transition: color var(--dur) var(--ease);
}
.card:hover .service-card__cat { color: var(--accent); }
.service-card .card__title { font-size: var(--fs-xl); }
.service-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }

.feature-row {
  display: grid;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .feature-row { grid-template-columns: 44px minmax(0, 1fr); align-items: start; } }
.feature-row__index {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------------------
   Tenets
   Ruled columns rather than floating cards. The rule above each item does the
   grouping work a card border would, without six identical boxes on a page.
   --------------------------------------------------------------------------- */
.tenets {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--forest-700);
}
@media (min-width: 44rem)  { .tenets { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); } }
@media (min-width: 68rem)  { .tenets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tenet { padding: var(--space-5) 0 var(--space-6); border-bottom: 1px solid var(--line); }
.tenet__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-700);
  font-variant-numeric: tabular-nums;
}
.tenet__title {
  margin-top: var(--space-3);
  font-size: var(--fs-lg);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
.tenet__body { margin-top: 0.55rem; color: var(--text-muted); line-height: 1.62; }
.section--mint .tenet__num { color: var(--forest-600); }

/* ---------------------------------------------------------------------------
   Index list
   A numbered, ruled reference list. Used where the content is an ordered set
   rather than a set of independent things to browse.
   --------------------------------------------------------------------------- */
.index { border-top: 1px solid var(--line); }
.index__row {
  position: relative;
  display: grid;
  align-items: baseline;
  gap: 0.15rem 1.75rem;
  grid-template-columns: 2.75rem minmax(0, 20rem) minmax(0, 1fr) 8.5rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
.index__row::after {
  /* Gold wipe on hover, drawn from the left rather than a box shadow. */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-slow) var(--ease);
}
.index__row:hover::after, .index__row:focus-within::after { transform: scaleX(1); }
.index__row:hover, .index__row:focus-within { background: var(--ink-900); }

.index__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.index__title { font-size: var(--fs-xl); letter-spacing: var(--track-tight); margin: 0; }
.index__link::after { content: ''; position: absolute; inset: 0; }
.index__desc { color: var(--text-muted); font-size: var(--fs-base); margin: 0; }
.index__meta {
  font-size: var(--fs-sm);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-wrap: balance;
}
.index__go { color: var(--text-faint); transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.index__row:hover .index__go { color: var(--accent); transform: translateX(4px); }

@media (max-width: 61.99rem) {
  .index__row {
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem;
    gap: 0.3rem 1rem;
  }
  .index__title { grid-column: 2; }
  .index__desc  { grid-column: 2; }
  .index__meta  { grid-column: 2; }
  .index__go    { grid-column: 3; grid-row: 1; align-self: center; }
}

/* Process / steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  gap: 0.3rem 1.25rem;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 1.4rem 0;
}
.step + .step { border-top: 1px solid var(--line); }
/* Vertical rail joining the step markers, stopping short of the last one. */
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: calc(1.4rem + 40px);
  bottom: -1.4rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), transparent);
}
.step__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--forest-700);
  background: var(--gold-200);
  border: 1.5px solid var(--gold-500);
  box-shadow: var(--shadow-xs);
}
.step__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--text-strong); letter-spacing: var(--track-tight); }
.step__body { color: var(--text-muted); line-height: 1.6; }

/* Check list */
.checklist { display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-muted); }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 0.18rem; color: var(--accent); }

/* ---------------------------------------------------------------------------
   13. Marquee / ticker
   --------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__item { color: var(--text-faint); font-size: var(--fs-sm); }
.marquee__item svg { color: var(--accent); opacity: 0.7; }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--text-faint); white-space: nowrap; }
.marquee__item svg { width: 15px; height: 15px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------------
   Floating contact launcher
   One control that expands into the published channels. Sits clear of the
   recovery ticker and of iOS safe-area insets.
   --------------------------------------------------------------------------- */
.cfloat {
  position: fixed;
  right: clamp(0.85rem, 2.5vw, 1.5rem);
  bottom: calc(34px + env(safe-area-inset-bottom, 0px) + clamp(0.85rem, 2.5vw, 1.5rem));
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.cfloat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--gold-400);
  color: var(--forest-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.cfloat__toggle:hover { background: var(--gold-300); transform: translateY(-2px); }
.cfloat__toggle:focus-visible { outline: none; box-shadow: var(--shadow-lg), 0 0 0 3px var(--forest-700); }

/* One icon slot, two glyphs: the close mark swaps in when open. */
.cfloat__toggle-icon { position: relative; display: grid; place-items: center; width: 20px; height: 20px; }
.cfloat__toggle-icon svg { grid-area: 1 / 1; width: 19px; height: 19px; transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease); }
.cfloat__toggle-icon svg:last-child { opacity: 0; transform: rotate(-45deg); }
.cfloat__toggle[aria-expanded='true'] .cfloat__toggle-icon svg:first-child { opacity: 0; transform: rotate(45deg); }
.cfloat__toggle[aria-expanded='true'] .cfloat__toggle-icon svg:last-child { opacity: 1; transform: none; }

@media (max-width: 30rem) {
  /* Collapse to a disc on the narrowest screens so it never covers copy. */
  .cfloat__toggle { padding: 0.7rem; width: 48px; justify-content: center; }
  .cfloat__toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.cfloat__list {
  display: grid;
  gap: 0.4rem;
  width: min(17rem, calc(100vw - 2rem));
  padding: 0.4rem;
  border-radius: var(--radius-lg);
  background: var(--ink-1000);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  animation: cfloat-in var(--dur) var(--ease) both;
}
.cfloat__list[hidden] { display: none; }
@keyframes cfloat-in { from { opacity: 0; transform: translateY(6px); } }

.cfloat__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease);
}
.cfloat__link:hover { background: var(--ink-900); }
.cfloat__link:focus-visible { outline: none; box-shadow: var(--ring); }
.cfloat__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--mint-50);
  border: 1px solid var(--mint-200);
  color: var(--forest-600);
}
.cfloat__icon svg { width: 17px; height: 17px; }
.cfloat__text { display: grid; min-width: 0; }
.cfloat__label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--text-strong); }
.cfloat__detail { font-size: var(--fs-xs); color: var(--text-muted); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { .cfloat__list { animation: none; } }

/* ---------------------------------------------------------------------------
   Recovery ticker
   Pinned to the bottom of the viewport. Deliberately small: it is ambient
   reassurance, not a banner, and it must never compete with the page's own
   calls to action.
   --------------------------------------------------------------------------- */
.ticker {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: flex;
  align-items: stretch;
  height: 34px;
  background: #12392C;
  border-top: 1px solid rgba(242, 184, 48, 0.32);
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}
.ticker__label {
  flex: none;
  display: grid;
  place-items: center;
  padding-inline: 0.7rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  white-space: nowrap;
}
.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 96%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: ticker-scroll 68s linear infinite;
}
.ticker[data-paused='true'] .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.ticker__item { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; line-height: 1; }
.ticker__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-400);
}
.ticker__amount {
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.ticker__what { color: rgba(242, 247, 243, 0.72); }

.ticker__pause {
  flex: none;
  width: 34px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-300);
  cursor: pointer;
}
.ticker__pause:hover { background: rgba(255, 255, 255, 0.07); }
.ticker__pause:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gold-400); }
/* Two bars when running, a triangle when paused. */
.ticker__pause-icon {
  width: 8px;
  height: 9px;
  border-left: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
}
.ticker__pause[aria-pressed='true'] .ticker__pause-icon {
  width: 0; height: 0;
  border: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Keep the bar clear of page content and above the iOS home indicator. */
body { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
.ticker { padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(34px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  /* Do not auto-scroll; show a static sample instead of animating. */
  .ticker__track { animation: none; }
}

/* ---------------------------------------------------------------------------
   14. Testimonials
   --------------------------------------------------------------------------- */
.quote-card { display: flex; flex-direction: column; gap: 1.25rem; height: 100%; }
.quote-card__mark { width: 30px; height: 24px; color: var(--accent); opacity: 0.75; }
.quote-card__text { font-size: var(--fs-lg); line-height: 1.6; color: var(--text); }
.quote-card__by { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote-card__name { font-family: var(--font-display); font-weight: 500; color: var(--text-strong); font-size: var(--fs-base); }
.quote-card__org { font-size: var(--fs-sm); color: var(--text-faint); }

.avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.avatar--lg { width: 62px; height: 62px; font-size: var(--fs-md); }

/* ---------------------------------------------------------------------------
   15. Article & prose
   --------------------------------------------------------------------------- */
.prose { color: var(--text-muted); font-size: var(--fs-md); line-height: 1.78; max-width: 72ch; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  font-size: var(--fs-2xl);
  margin-top: 2.4em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h3 { font-size: var(--fs-xl); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { font-size: var(--fs-lg); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.7em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); }
.prose a { color: var(--teal-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(99, 203, 205, 0.45); transition: text-decoration-color var(--dur-fast) var(--ease); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: 0.55rem; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--accent);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 0.85em; }
.prose blockquote {
  padding: 0.2rem 0 0.2rem 1.35rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: var(--fs-lg);
  line-height: 1.6;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.855em;
  padding: 0.14em 0.42em;
  border-radius: 5px;
  color: var(--green-400);
  background: rgba(15, 122, 85, 0.07);
  border: 1px solid rgba(15, 122, 85, 0.18);
}
.prose pre {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--ink-850);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.prose pre code { padding: 0; background: none; border: 0; color: var(--text); font-size: inherit; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.prose th, .prose td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--text-strong); font-weight: 600; font-family: var(--font-display); }
.prose hr { margin-block: 2.4em; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Article meta */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; font-size: var(--fs-sm); color: var(--text-faint); }
.article-meta__sep { width: 3px; height: 3px; border-radius: 99px; background: currentColor; opacity: 0.5; }

.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc__list { display: grid; gap: 0.15rem; border-left: 1px solid var(--line); }
.toc__list a {
  display: block;
  padding: 0.42rem 0 0.42rem 0.9rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: var(--fs-sm);
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.toc__list a:hover { color: var(--text); }
.toc__list a[data-active='true'] { color: var(--accent); border-left-color: var(--accent); }
.toc__list a[data-level='3'] { padding-left: 1.7rem; }

/* Post card */
.post-card { min-height: 100%; }
.post-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: calc(-1 * clamp(1.35rem, 2.2vw, 1.85rem)) calc(-1 * clamp(1.35rem, 2.2vw, 1.85rem)) 0.35rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 22% 12%, var(--accent-soft), transparent 62%),
    linear-gradient(150deg, var(--ink-750), var(--ink-900));
}
.post-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
}
.post-card__cover-mark {
  position: absolute;
  right: 1rem; bottom: 0.85rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

/* ---------------------------------------------------------------------------
   16. Accordion (FAQ)
   --------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.3rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-strong);
  transition: color var(--dur-fast) var(--ease);
}
.accordion__trigger:hover { color: var(--accent); }
.accordion__trigger:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.accordion__icon {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  margin-top: 0.2rem;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  inset: 50% 5px auto;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  translate: 0 -50%;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded='true'] .accordion__icon { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.accordion__trigger[aria-expanded='true'] .accordion__icon::after { transform: rotate(0deg); opacity: 0; }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.accordion__panel[data-open='true'] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel .prose { padding-bottom: 1.4rem; max-width: 68ch; }

/* ---------------------------------------------------------------------------
   17. Forms
   --------------------------------------------------------------------------- */
.field { display: grid; gap: 0.4rem; }
.field__label { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.field__label .req { color: var(--accent); }
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.5; }
.field__error { font-size: var(--fs-xs); color: var(--critical); display: none; }
.field[data-invalid='true'] .field__error { display: block; }
.field[data-invalid='true'] .input,
.field[data-invalid='true'] .select,
.field[data-invalid='true'] .textarea { border-color: rgba(248, 113, 113, 0.55); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(12, 26, 34, 0.32); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: var(--ring);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f747c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.select option { background: #ffffff; color: var(--text); }

.checkbox, .radio { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; }
.checkbox input, .radio input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 0.14rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  appearance: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.radio input { border-radius: 99px; }
.checkbox input:checked, .radio input:checked { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.radio input:checked { box-shadow: inset 0 0 0 3.5px #ffffff; }
.checkbox span, .radio span { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  border-radius: 99px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.chip:hover span { border-color: var(--line-strong); color: var(--text); }
.chip input:checked + span { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.chip input:focus-visible + span { outline: 2px solid var(--green-400); outline-offset: 2px; }

/* Honeypot — hidden from humans and assistive technology alike */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  display: none;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  line-height: 1.6;
  border: 1px solid;
}
.form-status[data-state='error'],
.form-status[data-state='success'] { display: flex; }
.form-status[data-state='success'] { color: var(--positive); background: rgba(87, 204, 153, 0.09); border-color: rgba(87, 204, 153, 0.3); }
.form-status[data-state='error']   { color: var(--critical); background: rgba(248, 113, 113, 0.09); border-color: rgba(248, 113, 113, 0.3); }
.form-status svg { width: 18px; height: 18px; flex: none; margin-top: 0.1rem; }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
}
.form-success[data-visible='true'] { display: block; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 1.35rem;
  border-radius: 99px;
  color: var(--positive);
  background: rgba(87, 204, 153, 0.12);
  border: 1px solid rgba(87, 204, 153, 0.3);
}
.form-success__icon svg { width: 28px; height: 28px; }
.form-success__ref {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--green-400);
  background: rgba(128, 237, 153, 0.08);
  border: 1px solid rgba(128, 237, 153, 0.22);
}

.btn__spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 99px; animation: spin 0.65s linear infinite; }
.btn[data-loading='true'] .btn__spinner { display: block; }
.btn[data-loading='true'] .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   18. Footer
   --------------------------------------------------------------------------- */
.footer {
  position: relative;
  border-top: 3px solid var(--gold-500);
  background: var(--forest-700);
  color: var(--on-dark);
  --text: var(--on-dark);
  --text-strong: #fff;
  --text-muted: var(--on-dark-muted);
  --text-faint: var(--on-dark-faint);
  --accent: var(--gold-300);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --glass: rgba(255, 255, 255, 0.05);
}
.footer .logo__text { color: #fff; }
.footer .logo__text span { color: var(--gold-300); }
.footer__top { padding-block: clamp(3rem, 6vw, 5rem); }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.05rem;
}
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { font-size: var(--fs-base); color: var(--text-muted); transition: color var(--dur-fast) var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__links a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.footer__bottom {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-faint);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.social { display: flex; gap: 0.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.social a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.social svg { width: 16px; height: 16px; }

.ethics-note {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-500);
  background: rgba(242, 184, 48, 0.10);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
}
.ethics-note strong { color: var(--gold-300); }

/* ---------------------------------------------------------------------------
   19. Breadcrumbs, pagination, misc
   --------------------------------------------------------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: var(--fs-sm); color: var(--text-faint); }
.breadcrumbs a { transition: color var(--dur-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs svg { width: 13px; height: 13px; opacity: 0.45; }
.breadcrumbs [aria-current] { color: var(--text-muted); }

.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; justify-content: center; }
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.75rem;
  border-radius: 10px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.pagination a:hover { color: var(--text-strong); border-color: var(--line-strong); }
.pagination [aria-current='page'] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.pagination .is-disabled { opacity: 0.35; pointer-events: none; }

.page-header { padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem)); padding-bottom: clamp(2rem, 4vw, 3rem); position: relative; }
.page-header__inner { max-width: 52rem; }
.page-header .display-2 { margin-top: var(--space-4); }
.page-header .lede { margin-top: var(--space-4); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.empty-state__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.15rem; border-radius: 16px; color: var(--text-faint); border: 1px solid var(--line); }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filters__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-right: 0.25rem; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(4rem, 12vh, 9rem) var(--gutter) 2rem;
  background: rgba(233, 240, 244, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.search-overlay[data-open='true'] { opacity: 1; visibility: visible; }
.search-panel {
  width: min(100%, 660px);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(12, 40, 52, 0.45);
  transform: translateY(-12px);
  transition: transform var(--dur) var(--ease);
}
.search-overlay[data-open='true'] .search-panel { transform: none; }
.search-panel__input { display: flex; align-items: center; gap: 0.85rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.search-panel__input svg { width: 19px; height: 19px; color: var(--text-faint); flex: none; }
.search-panel__input input { flex: 1; background: none; border: 0; outline: none; font-size: var(--fs-lg); color: var(--text); }
.search-panel__input input::placeholder { color: var(--text-faint); }
.search-results { max-height: min(56vh, 460px); overflow-y: auto; padding: 0.4rem; }
.search-result { display: block; padding: 0.8rem 0.95rem; border-radius: 11px; transition: background-color var(--dur-fast) var(--ease); }
.search-result:hover, .search-result[data-active='true'] { background: var(--glass-hover); }
.search-result__type { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.search-result__title { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 500; color: var(--text-strong); margin-top: 0.15rem; }
.search-result__summary { font-size: var(--fs-sm); color: var(--text-faint); margin-top: 0.2rem; }
.search-panel__foot { padding: 0.75rem 1.3rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-faint); display: flex; gap: 1rem; }
kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   20. Loader & cursor
   --------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.loader[data-done='true'] { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { width: 44px; height: 44px; }
.loader__bar { width: 168px; height: 2px; margin-top: 1.5rem; border-radius: 2px; background: var(--ink-700); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--mint-500)); animation: loader-slide 1.05s var(--ease) infinite; }
@keyframes loader-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }


/* ---------------------------------------------------------------------------
   21. Swiper overrides (loaded from CDN, styled to match the system)
   --------------------------------------------------------------------------- */
/* The slider needs room for card hover lift and focus rings without letting
   slides escape the page — `overflow: visible` here put ~1700px of slides
   outside the viewport and forced mobile browsers to zoom out. Negative
   margins reclaim the bleed, and `clip` still paints the shadow inside it. */
.swiper {
  overflow-x: clip;
  overflow-y: visible;
  margin-inline: calc(-1 * var(--space-5));
  padding-inline: var(--space-5);
  margin-block: calc(-1 * var(--space-5));
  padding-block: var(--space-5);
}
@supports not (overflow: clip) { .swiper { overflow-x: hidden; } }
.swiper-slide { height: auto; }
.swiper-wrapper { align-items: stretch; }
.slider-nav { display: flex; gap: 0.5rem; }
.slider-nav button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--text-muted); border: 1px solid var(--line); transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.slider-nav button:hover:not([disabled]) { color: var(--text-strong); border-color: var(--accent-line); }
.slider-nav button[disabled] { opacity: 0.3; cursor: default; }
.slider-nav svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------------------
   22. Print
   --------------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .hero__bg, .header, .footer, .drawer, .loader, .progress { display: none !important; }
  .prose, .lede, .muted { color: #333; }
  h1, h2, h3, h4 { color: #000; }
  a { color: #0645ad; text-decoration: underline; }
  .card, .panel { border: 1px solid #ccc; background: none; }
}

/* ---------------------------------------------------------------------------
   23. Reduced motion — honoured everywhere, not only for decorative effects
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero__title .word > span { transform: none !important; }
  .marquee__track { display: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* High contrast / forced colours */
@media (forced-colors: active) {
  .card, .panel, .input, .btn { border: 1px solid CanvasText; }
  .gradient-text, .stat__value { color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
