/* ==========================================================================================
   Nordelis Law — public stylesheet
   ------------------------------------------------------------------------------------------
   Minimal Scandinavian / editorial: warm off-white paper, deep navy, thin 1px rules and a
   very restrained gold accent. No external fonts (system stacks), no frameworks.
   Class reference: docs/COMPONENTS.md.

   Contents
     1.  Tokens
     2.  Reset & base
     3.  Typography
     4.  Layout primitives (container, section, grids)
     5.  Buttons & links
     6.  Header & navigation
     7.  Footer
     8.  Heroes (home, page)
     9.  Section header, eyebrow, section index
    10.  Cards (service, article, audience, info, value, profile)
    11.  Feature blocks (trust, split feature, check list, steps, pillars)
    12.  Prose (rich text)
    13.  Content layouts (sidebar, aside cards, link lists, TOC)
    14.  FAQ, legal notice, callout, CTA band
    15.  Forms & alerts
    16.  Insights (filters, search, article page)
    17.  Contact, confirmation, error pages
    18.  Pagination, breadcrumbs
    19.  Cookie banner, placeholders, demo note
    20.  Motion & utilities
    21.  Print
   ========================================================================================== */

/* 1. Tokens ---------------------------------------------------------------------------- */
:root {
  --navy-950: #0b1422;
  --navy-900: #0f1c2e;
  --navy-800: #172a42;
  --navy-700: #22395a;
  --charcoal: #262a30;
  --ink: #18202b;
  --slate: #4a5362;
  --muted: #5f6674;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --line: #dcd4c6;
  --line-soft: #e7e1d6;
  --gold: #a8844f;
  --gold-light: #c9ad7c;
  --white: #ffffff;
  --error: #9b2c2c;
  --error-bg: #fbf0ee;
  --success: #2f5d46;
  --success-bg: #edf4ef;
  --info-bg: #eef1f5;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --container: 1240px;
  --narrow: 780px;
  --gutter: 24px;
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px rgba(168, 132, 79, .45);
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, .05);
  --shadow-md: 0 18px 40px -24px rgba(15, 28, 46, .35);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 40px; --header-h: 84px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

body.nav-open { overflow: hidden; }

img,
svg,
video { display: block; max-width: 100%; height: auto; }
svg.icon { height: 1.25em; }

a { color: var(--navy-800); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--navy-950); text-decoration-color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

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

address { font-style: normal; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--navy-800); color: var(--paper); }

/* 3. Typography ------------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

small, .small { font-size: .875rem; }

.lead {
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  line-height: 1.6;
  color: var(--slate);
}

.muted { color: var(--muted); }

.serif { font-family: var(--font-serif); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: var(--gold);
}
.eyebrow--light { color: rgba(247, 244, 238, .78); }
.eyebrow--light::before { background: var(--gold-light); }
.section-header--center .eyebrow,
.eyebrow--center { justify-content: center; }

/* 4. Layout primitives ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.container--medium { max-width: calc(1000px + var(--gutter) * 2); }

.section { padding-block: 72px; }
@media (min-width: 992px) {
  .section { padding-block: 112px; }
}
.section--tight { padding-block: 56px; }
@media (min-width: 992px) {
  .section--tight { padding-block: 80px; }
}
.section--flush-top { padding-top: 0; }
.section--paper-2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--ruled { border-top: 1px solid var(--line); }
.section--navy {
  background: var(--navy-900);
  color: rgba(247, 244, 238, .86);
}
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--paper); }
.section--navy a:not(.btn) { color: var(--paper); }
.section--navy .section-header__text,
.section--navy .lead { color: rgba(247, 244, 238, .78); }
.section--pattern {
  background-image: url("../images/pattern-grid.svg");
  background-size: 240px 240px;
}

.grid { display: grid; gap: 32px; }
@media (min-width: 768px) {
  .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: 992px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grid--gap-lg { gap: 48px; }

.stack > * + * { margin-top: 24px; }

.two-col {
  display: grid;
  gap: 40px;
}
@media (min-width: 992px) {
  .two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .two-col--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col--reverse > :first-child { order: 2; }
}

/* 5. Buttons & links ------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: var(--paper);
  --btn-border: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn:hover .icon-arrow-right { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn[disabled],
.btn.is-loading { opacity: .6; cursor: not-allowed; }

.btn--primary:hover { --btn-bg: var(--navy-700); --btn-border: var(--navy-700); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  --btn-border: var(--navy-900);
}
.btn--outline:hover { --btn-bg: var(--navy-900); --btn-fg: var(--paper); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  --btn-border: transparent;
  padding-inline: 4px;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .35em;
}
.btn--ghost:hover { --btn-fg: var(--navy-700); }

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--navy-900);
  --btn-border: var(--paper);
}
.btn--light:hover { --btn-bg: var(--white); --btn-border: var(--white); --btn-fg: var(--navy-950); }

/* Outline buttons on dark backgrounds */
.section--navy .btn--outline,
.cta-band:not(.cta-band--paper) .btn--outline,
.page-hero--navy .btn--outline,
.home-hero--navy .btn--outline {
  --btn-fg: var(--paper);
  --btn-border: rgba(247, 244, 238, .5);
}
.section--navy .btn--outline:hover,
.cta-band:not(.cta-band--paper) .btn--outline:hover,
.page-hero--navy .btn--outline:hover {
  --btn-bg: var(--paper);
  --btn-fg: var(--navy-900);
  --btn-border: var(--paper);
}
.page-hero--navy .btn--primary { --btn-bg: var(--paper); --btn-fg: var(--navy-900); --btn-border: var(--paper); }

.btn--sm { min-height: 40px; padding: 9px 18px; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--navy-700); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--paper); border-color: var(--gold-light); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--navy-900);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; color: var(--paper); }

/* 6. Header & navigation --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* The translucent background lives on a pseudo-element: a backdrop-filter on the header
   itself would become the containing block of the fixed mobile menu and clip it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 244, 238, .96);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header::before { background: rgba(247, 244, 238, .86); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }
}
.nav-open .site-header::before { background: var(--paper); }
.site-header.is-scrolled,
.nav-open .site-header { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-right: auto;
  color: var(--navy-900);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--navy-900); }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  letter-spacing: .22em;
}
.brand__sub {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--gold);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--navy-900);
  cursor: pointer;
}
.nav-toggle__open,
.nav-toggle__close { display: inline-flex; align-items: center; gap: 10px; }
.nav-toggle__close { display: none; }
.nav-toggle__label { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

.header-cta { display: none; }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link {
  color: var(--ink);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
}
.nav__link:hover { color: var(--navy-700); }
.nav__link.is-active,
.nav__link[aria-current="page"] { color: var(--navy-900); }

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy-900);
  cursor: pointer;
}
.nav__dropdown-toggle .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.nav__dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav__dropdown-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--navy-900);
}
.nav__dropdown-text { margin: 0; font-size: .9375rem; color: var(--slate); line-height: 1.6; }
.nav__dropdown-heading {
  margin: 0 0 10px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__dropdown-list { list-style: none; margin: 0; padding: 0; }
.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
  line-height: 1.4;
}
.nav__dropdown-link:hover,
.nav__dropdown-link[aria-current="page"] { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold); }
.nav__dropdown-link .icon { width: 16px; height: 16px; }
.nav__dropdown-link--all { font-weight: 600; }
.nav__dropdown-divider { display: none; }
.nav__footer { display: none; }
.nav__meta { margin: 16px 0 0; font-size: .8125rem; color: var(--muted); letter-spacing: .04em; }

/* Mobile navigation (< 1200px) */
@media (max-width: 1199.98px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 8px var(--gutter) 32px;
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .no-js .nav-toggle { display: none; }
  .no-js .nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    width: 100%;
    padding: 0 0 16px;
  }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .nav__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  .nav__link {
    flex: 1;
    display: block;
    padding: 16px 0;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
  }
  .nav__link.is-active { color: var(--gold); }
  .nav__dropdown {
    flex: 0 0 100%;
    display: none;
    padding: 0 0 20px;
  }
  .nav__dropdown.is-open,
  .no-js .nav__dropdown { display: block; }
  .nav__dropdown-intro { display: none; }
  .nav__dropdown-inner { display: grid; gap: 20px; }
  .nav__footer { display: block; margin-top: 32px; }
}
@media (min-width: 576px) and (max-width: 1199.98px) {
  .nav__dropdown-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}

/* Desktop navigation (≥ 1200px) */
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .nav { margin-left: auto; }
  .nav__list { display: flex; align-items: center; gap: 4px; }
  .nav__item { position: static; display: flex; align-items: center; }
  .nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--header-h);
    padding: 0 14px;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 22px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__item--dropdown .nav__link { padding-right: 2px; }
  .nav__item--dropdown .nav__link::after { right: 2px; }
  .nav__dropdown-toggle { width: 28px; margin-right: 8px; }

  .nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown:focus-within .nav__dropdown,
  .nav__dropdown.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
  }
  .nav__item--dropdown.is-closed .nav__dropdown { visibility: hidden; opacity: 0; }
  .nav__dropdown-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 40px var(--gutter) 44px;
  }
  .nav__dropdown-intro { padding-right: 24px; border-right: 1px solid var(--line); }
  .nav__footer { display: none; }
  .header-cta { margin-left: 12px; }
}

/* 7. Footer --------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(247, 244, 238, .74);
  font-size: .9375rem;
  padding: 80px 0 40px;
}
.site-footer a { color: rgba(247, 244, 238, .86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold-light); }

.footer-grid {
  display: grid;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247, 244, 238, .14);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

.footer-brand__name {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: .22em;
  color: var(--paper);
}
.footer-brand__name span { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .32em; color: var(--gold-light); }
.footer-brand__tagline {
  margin: 0 0 20px;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, .58);
}
.footer-brand__text { max-width: 34ch; margin: 0; line-height: 1.7; }

.footer-social { display: flex; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 244, 238, .24);
  border-radius: 50%;
}
.footer-social a:hover { border-color: var(--gold-light); }
.footer-social .icon { width: 18px; height: 18px; }

.footer-title {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-contact__item { display: flex; gap: 14px; margin: 0 0 14px; line-height: 1.6; }
.footer-contact__item .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-light); }
.footer-cta { margin-top: 10px; color: var(--paper) !important; border-color: var(--gold-light); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 10px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  font-size: .8125rem;
}
.footer-copyright { margin: 0; }
.footer-cvr { margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(247, 244, 238, .2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-legal .link-button { color: rgba(247, 244, 238, .86); text-decoration: none; }
.footer-legal .link-button:hover { color: var(--white); text-decoration: underline; }
.footer-disclaimer,
.demo-note {
  max-width: 90ch;
  margin: 24px 0 0;
  font-size: .8125rem;
  line-height: 1.6;
  color: rgba(247, 244, 238, .56);
}
.demo-note {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
}
.site-footer .placeholder { background: rgba(201, 173, 124, .12); color: var(--gold-light); border-color: rgba(201, 173, 124, .4); }

/* 8. Heroes --------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 992px) {
  .home-hero { padding: 96px 0 112px; }
}
.home-hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 992px) {
  .home-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
}
.home-hero__title {
  margin-bottom: 28px;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.home-hero__title em { font-style: italic; color: var(--navy-700); }
.home-hero__lead {
  max-width: 54ch;
  margin-bottom: 40px;
  font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--slate);
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.home-hero__media {
  position: relative;
  margin: 0;
}
.home-hero__media img { width: 100%; }
.home-hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 -24px 24px;
  height: 1px;
  background: var(--line);
}
.home-hero__note {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}
.home-hero__note li { display: inline-flex; align-items: center; gap: 8px; }
.home-hero__note .icon { width: 16px; height: 16px; color: var(--gold); }

.page-hero {
  position: relative;
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 992px) {
  .page-hero { padding: 56px 0 88px; }
}
.page-hero__content { max-width: 860px; margin-top: 40px; }
.page-hero__title { margin-bottom: 24px; }
.page-hero__lead {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  line-height: 1.6;
  color: var(--slate);
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 36px; }

.page-hero--navy {
  background: var(--navy-900);
  border-bottom-color: var(--navy-900);
  color: rgba(247, 244, 238, .86);
}
.page-hero--navy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern-grid.svg");
  background-size: 240px 240px;
  opacity: .07;
  pointer-events: none;
}
.page-hero--navy .page-hero__inner { position: relative; }
.page-hero--navy .page-hero__title { color: var(--paper); }
.page-hero--navy .page-hero__lead { color: rgba(247, 244, 238, .8); }
.page-hero--navy .breadcrumbs,
.page-hero--navy .breadcrumbs a { color: rgba(247, 244, 238, .7); }
.page-hero--navy .breadcrumbs__item + .breadcrumbs__item::before { color: rgba(247, 244, 238, .4); }
.page-hero--navy .breadcrumbs [aria-current="page"] { color: var(--paper); }
.page-hero--navy .btn--ghost { --btn-fg: var(--paper); text-decoration-color: var(--gold-light); }

.page-hero--compact .page-hero__content { margin-top: 28px; }

/* 9. Section header ------------------------------------------------------------------ */
.section-header { max-width: 760px; margin-bottom: 48px; }
@media (min-width: 992px) {
  .section-header { margin-bottom: 64px; }
}
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: none;
}
.section-header--split .section-header__main { max-width: 760px; }
.section-header__title { margin-bottom: 0; }
.section-header__title + .section-header__text { margin-top: 20px; }
.section-header__text { color: var(--slate); font-size: 1.0625rem; line-height: 1.7; }
@media (min-width: 768px) {
  .section-header__text { font-size: 1.125rem; }
}
.section-header__more { margin: 28px 0 0; }
.section-header__link { white-space: nowrap; }

.section-index {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}
.section-index__number {
  font-family: var(--font-serif);
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--gold);
}
.section-index__number::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 16px;
  vertical-align: middle;
  background: var(--line);
}
.section--navy .section-index { color: rgba(247, 244, 238, .7); }
.section--navy .section-index__number { color: var(--gold-light); }

/* 10. Cards --------------------------------------------------------------------------- */
.service-grid,
.article-grid,
.audience-grid,
.info-grid,
.value-grid,
.profile-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .service-grid,
  .info-grid,
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .service-grid,
  .info-grid--3,
  .value-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid--4,
  .value-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--paper);
  transition: background-color .3s var(--ease);
}
.section--paper-2 .service-card { background: var(--paper-2); }
.section--white .service-card { background: var(--white); }
.service-card:hover { background: var(--white); }
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy-800);
}
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card__title { margin-bottom: 14px; font-size: 1.375rem; }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; }
.service-card__title a:focus-visible { outline: none; }
.service-card:focus-within { outline: 2px solid var(--gold); outline-offset: -2px; }
.service-card__text { flex: 1; margin-bottom: 28px; color: var(--slate); font-size: .9688rem; line-height: 1.7; }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.service-card__link .icon { width: 16px; height: 16px; color: var(--gold); transition: transform .3s var(--ease); }
.service-card:hover .service-card__link .icon { transform: translateX(4px); }

/* Article grid */
.article-grid { background: none; border: 0; gap: 48px 32px; }
@media (min-width: 768px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.article-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card__media--placeholder {
  --ph-tint: rgba(15, 28, 46, .9);
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  background-color: var(--navy-900);
  background-image: linear-gradient(var(--ph-tint), var(--ph-tint)), url("../images/pattern-grid.svg");
  background-size: auto, 160px 160px;
  border-color: var(--navy-900);
}
.article-card:nth-child(3n+2) .article-card__media--placeholder { --ph-tint: rgba(23, 42, 66, .9); background-color: var(--navy-800); }
.article-card:nth-child(3n+3) .article-card__media--placeholder { --ph-tint: rgba(34, 57, 90, .9); background-color: var(--navy-700); }
.article-card__media-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--paper);
}
.article-card__media-label::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--gold-light);
}
.article-card__body { display: flex; flex: 1; flex-direction: column; }
.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-card__category { color: var(--gold); }
.article-card__title { margin-bottom: 12px; font-size: 1.375rem; line-height: 1.3; }
.article-card__title a { color: inherit; text-decoration: none; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card__title a:focus-visible { outline: none; }
.article-card:focus-within { outline: 2px solid var(--gold); outline-offset: 6px; }
.article-card:hover .article-card__title { color: var(--navy-700); }
.article-card__excerpt { flex: 1; margin-bottom: 20px; color: var(--slate); font-size: .9688rem; line-height: 1.7; }
.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.article-card__link .icon { width: 16px; height: 16px; color: var(--gold); transition: transform .3s var(--ease); }
.article-card:hover .article-card__link .icon { transform: translateX(4px); }

/* Audience cards (employers / individuals) */
.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  background: var(--paper);
}
@media (min-width: 992px) {
  .audience-card { padding: 56px 48px; }
}
.audience-card--navy { background: var(--navy-900); color: rgba(247, 244, 238, .82); }
.audience-card--navy .audience-card__title { color: var(--paper); }
.audience-card--navy .check-list li::before { border-color: var(--gold-light); }
.audience-card--navy .link-arrow { color: var(--paper); border-color: var(--gold-light); }
.audience-card__label {
  margin: 0 0 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.audience-card--navy .audience-card__label { color: var(--gold-light); }
.audience-card__title { margin-bottom: 16px; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.audience-card__text { margin-bottom: 28px; }
.audience-card .check-list { margin-bottom: 36px; }
.audience-card__action { margin-top: auto; }

/* Info cards (schemes, topics) */
.info-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--paper);
}
.section--paper-2 .info-card { background: var(--paper-2); }
.section--white .info-card { background: var(--white); }
.info-card__icon { width: 28px; height: 28px; margin-bottom: 20px; color: var(--gold); }
.info-card__label {
  margin: 0 0 12px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-card__title { margin-bottom: 12px; font-size: 1.25rem; }
.info-card__text { margin: 0; color: var(--slate); font-size: .9688rem; line-height: 1.7; }
.info-card__link { margin-top: 20px; }

/* Value cards (about) */
.value-card { padding: 36px 32px; background: var(--paper); }
.section--paper-2 .value-card { background: var(--paper-2); }
.value-card__number {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
}
.value-card__title { margin-bottom: 12px; font-size: 1.375rem; }
.value-card__text { margin: 0; color: var(--slate); font-size: .9688rem; }

/* Profile placeholder cards (team) */
.profile-grid { background: none; border: 0; gap: 32px; }
@media (min-width: 768px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.profile-card { border: 1px solid var(--line); background: var(--white); }
.profile-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  color: var(--line);
}
.profile-card__media .icon { width: 56px; height: 56px; color: var(--muted); opacity: .5; }
.profile-card__body { padding: 24px 28px 28px; }
.profile-card__name { margin-bottom: 4px; font-size: 1.25rem; }
.profile-card__role { margin: 0 0 14px; font-size: .875rem; color: var(--muted); }
.profile-card__text { margin: 0; font-size: .9375rem; color: var(--slate); }

/* 11. Feature blocks --------------------------------------------------------------- */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-grid {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.trust-item {
  display: flex;
  gap: 18px;
  padding: 32px 0;
}
.trust-item + .trust-item { border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .trust-item { padding: 40px 32px; }
  .trust-item:first-child { padding-left: 0; }
  .trust-item + .trust-item { border-top: 0; border-left: 1px solid var(--line); }
}
.trust-item__icon { flex: none; width: 28px; height: 28px; color: var(--gold); }
.trust-item__title { margin: 0 0 6px; font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy-900); }
.trust-item__text { margin: 0; color: var(--slate); font-size: .9375rem; line-height: 1.6; }

.feature-split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 992px) {
  .feature-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; }
  .feature-split--reverse .feature-split__media { order: 2; }
}
.feature-split__media { margin: 0; }
.feature-split__media img { width: 100%; }
.feature-split__media--framed {
  padding: 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.feature-split__caption { margin-top: 14px; font-size: .8125rem; color: var(--muted); }

.check-list { list-style: none; margin: 0 0 1.4em; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.check-list--columns { columns: 1; }
@media (min-width: 768px) {
  .check-list--columns { columns: 2; column-gap: 48px; }
  .check-list--columns li { break-inside: avoid; }
}

.steps {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
}
.step {
  position: relative;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1200px) {
  .step { padding: 40px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--gold);
  }
}
.step__number {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--gold);
}
.step__title { margin-bottom: 10px; font-size: 1.25rem; }
.step__text { margin: 0; color: var(--slate); font-size: .9688rem; line-height: 1.7; }
.section--navy .step,
.section--navy .steps { border-color: rgba(247, 244, 238, .16); }
.section--navy .step__text { color: rgba(247, 244, 238, .74); }
.section--navy .step__number { color: var(--gold-light); }

.pillar-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pillar {
  display: grid;
  gap: 8px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .pillar { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
.pillar__title { margin: 0; font-size: 1.375rem; }
.pillar__text { margin: 0; color: var(--slate); }

.quote-block {
  margin: 0;
  padding: 0;
  border: 0;
}
.quote-block p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem);
  line-height: 1.3;
  color: var(--navy-900);
}
.section--navy .quote-block p { color: var(--paper); }
.quote-block .icon { width: 36px; height: 36px; margin-bottom: 24px; color: var(--gold); }

/* 12. Prose (rich text) ------------------------------------------------------------ */
.prose {
  max-width: 72ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--charcoal);
}
@media (min-width: 768px) {
  .prose { font-size: 1.125rem; }
}
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .7em; font-size: clamp(1.625rem, 1.4rem + .9vw, 2.125rem); }
.prose h3 { margin: 1.8em 0 .6em; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); }
.prose h4 { margin: 1.6em 0 .5em; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; }
.prose p,
.prose ul,
.prose ol { margin: 0 0 1.3em; }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .5em; padding-left: .3em; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold); font-family: var(--font-serif); }
.prose a { color: var(--navy-800); text-decoration-color: var(--gold); }
.prose a:hover { color: var(--navy-950); }
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 1.25em;
  line-height: 1.5;
  color: var(--navy-900);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose code,
code {
  padding: .1em .35em;
  background: var(--paper-2);
  border-radius: 2px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .86em;
}
.table-scroll {
  margin: 0 0 1.5em;
  overflow-x: auto;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
  font-size: .9375rem;
  line-height: 1.55;
}
.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table thead th {
  background: var(--paper);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table tbody th { font-weight: 500; white-space: nowrap; }
.prose--lead > p:first-child { font-size: 1.18em; line-height: 1.65; color: var(--slate); }
.prose .legal-notice { margin-top: 3em; }

/* 13. Content layouts ------------------------------------------------------------- */
.content-layout {
  display: grid;
  gap: 56px;
}
@media (min-width: 992px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
}
@media (min-width: 1200px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 96px; }
}
/* Grid children may shrink below their content width (wide tables scroll inside .table-scroll). */
.content-layout > *,
.contact-layout > *,
.two-col > *,
.feature-split > *,
.home-hero__grid > * { min-width: 0; }
.content-layout__aside { display: grid; gap: 24px; }
@media (min-width: 992px) {
  .content-layout__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

.aside-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}
.aside-card--navy {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: rgba(247, 244, 238, .82);
}
.aside-card--navy .aside-card__title { color: var(--paper); }
.aside-card--navy .btn--primary { --btn-bg: var(--paper); --btn-fg: var(--navy-900); --btn-border: var(--paper); }
.aside-card--navy .btn--primary:hover { --btn-bg: var(--white); }
.aside-card--navy .btn--outline { --btn-fg: var(--paper); --btn-border: rgba(247, 244, 238, .5); }
.aside-card--navy .btn--outline:hover { --btn-bg: var(--paper); --btn-fg: var(--navy-900); }
.aside-card__title { margin-bottom: 12px; font-size: 1.375rem; }
.aside-card__text { margin-bottom: 20px; font-size: .9375rem; line-height: 1.65; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-card__label {
  margin: 0 0 16px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-top: 1px solid var(--line-soft); }
.link-list li:first-child { border-top: 0; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
}
.link-list a:hover { color: var(--navy-700); }
.link-list a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.link-list .icon { flex: none; width: 16px; height: 16px; color: var(--gold); transition: transform .3s var(--ease); }
.link-list a:hover .icon { transform: translateX(3px); }

.toc { font-size: .9375rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line-soft); }
.toc li:first-child { border-top: 0; }
.toc a { display: flex; gap: 12px; padding: 9px 0; color: var(--ink); text-decoration: none; line-height: 1.45; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-family: var(--font-serif); color: var(--gold); }
.toc a:hover { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold); }

.key-facts { margin: 0; }
.key-facts div { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.key-facts div:first-child { border-top: 0; padding-top: 0; }
.key-facts dt { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.key-facts dd { margin: 4px 0 0; font-size: .9375rem; }

/* 14. FAQ, legal notice, callout, CTA ------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
  position: relative;
  display: block;
  padding: 24px 56px 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  line-height: 1.4;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ""; }
.faq__question::before,
.faq__question::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--navy-900);
  transition: transform .3s var(--ease);
}
.faq__question::after { transform: rotate(90deg); }
.faq__item[open] > .faq__question::after { transform: rotate(0deg); }
.faq__question:hover { color: var(--navy-700); }
.faq__answer { padding: 0 0 28px; max-width: 72ch; color: var(--slate); }
.faq__answer p { margin-bottom: 1em; }

.legal-notice {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--paper-2);
  border-left: 2px solid var(--gold);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--slate);
}
.legal-notice__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.legal-notice__text { margin: 0; }
.legal-notice strong { color: var(--ink); }

.callout {
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}
.callout__title { margin-bottom: 10px; font-size: 1.25rem; }
.callout p:last-child { margin-bottom: 0; }

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--navy-900);
  color: rgba(247, 244, 238, .82);
}
@media (min-width: 992px) {
  .cta-band { padding: 104px 0; }
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern-grid.svg");
  background-size: 240px 240px;
  opacity: .06;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: end;
}
@media (min-width: 992px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 80px; }
}
.cta-band__content { max-width: 720px; }
.cta-band__title { margin-bottom: 18px; color: var(--paper); }
.cta-band__text { margin: 0; font-size: 1.0625rem; line-height: 1.7; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.cta-band--paper {
  background: var(--paper-2);
  color: var(--slate);
  border-top: 1px solid var(--line);
}
.cta-band--paper::before { opacity: .5; }
.cta-band--paper .cta-band__title { color: var(--navy-900); }

/* 15. Forms & alerts ------------------------------------------------------------ */
.form-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .form-card { padding: 48px; }
}
.form-card__title { margin-bottom: 8px; font-size: 1.625rem; }
.form-card__intro { margin-bottom: 32px; color: var(--slate); font-size: .9688rem; }

.form-grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-group--full { grid-column: 1 / -1; }
}
.form-section { margin: 0 0 36px; padding: 0; border: 0; min-width: 0; }
.form-section__title {
  display: block;
  width: 100%;
  margin: 0 0 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}

.form-group { display: flex; flex-direction: column; min-width: 0; }
.form-label {
  margin-bottom: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.form-label__req { color: var(--error); font-weight: 400; margin-left: 2px; }
.form-label__optional { font-weight: 400; color: var(--muted); }
.form-control {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #c9c0b0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:hover { border-color: var(--slate); }
.form-control:focus { outline: none; border-color: var(--navy-800); background: var(--white); box-shadow: var(--focus); }
.form-control::placeholder { color: #8a8f99; }
textarea.form-control { min-height: 160px; resize: vertical; }
select.form-control {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172a42' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}
.form-control.is-invalid,
.form-control[aria-invalid="true"] { border-color: var(--error); background-color: var(--error-bg); }
.form-control.is-invalid:focus,
.form-control[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(155, 44, 44, .2); }
.form-help { margin: 8px 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.form-error {
  display: flex;
  gap: 6px;
  margin: 8px 0 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--error);
}
.form-counter { margin: 6px 0 0; font-size: .75rem; color: var(--muted); text-align: right; }
.form-counter.is-over { color: var(--error); }

.form-check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--slate);
  cursor: pointer;
}
.form-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy-900);
  cursor: pointer;
}
.form-check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-check a { color: var(--navy-800); }
.form-check.is-invalid { color: var(--error); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-actions__note { margin: 0; font-size: .8125rem; color: var(--muted); max-width: 46ch; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  gap: 14px;
  margin: 0 0 32px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--white);
  font-size: .9375rem;
  line-height: 1.6;
}
.alert .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.alert__title { margin: 0 0 6px; font-weight: 600; }
.alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.alert li + li { margin-top: 4px; }
.alert a { color: inherit; }
.alert--error { border-color: #e2c3bf; border-left-color: var(--error); background: var(--error-bg); color: #6f1f1f; }
.alert--success { border-color: #c5dacd; border-left-color: var(--success); background: var(--success-bg); color: #234836; }
.alert--info { border-color: #cfd6e0; border-left-color: var(--navy-700); background: var(--info-bg); color: var(--navy-900); }

/* 16. Insights ----------------------------------------------------------------- */
.insights-toolbar {
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 992px) {
  .insights-toolbar { grid-template-columns: minmax(0, 1fr) 360px; align-items: end; }
}
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.chip.is-active,
.chip[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--paper); }

.search-form { display: flex; }
.search-form .form-control { border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.search-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  border: 1px solid var(--navy-900);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--navy-900);
  color: var(--paper);
  cursor: pointer;
}
.search-form__button:hover { background: var(--navy-700); }
.search-form__button .icon { width: 20px; height: 20px; }

.results-summary { margin: -24px 0 40px; color: var(--muted); font-size: .9375rem; }

.empty-state {
  padding: 64px 24px;
  border: 1px dashed var(--line);
  text-align: center;
}
.empty-state .icon { width: 40px; height: 40px; margin: 0 auto 20px; color: var(--gold); }
.empty-state__title { margin-bottom: 10px; font-size: 1.5rem; }
.empty-state__text { max-width: 52ch; margin: 0 auto 24px; color: var(--slate); }

.featured-article {
  display: grid;
  gap: 32px;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 992px) {
  .featured-article { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
}
.featured-article .article-card__media { margin-bottom: 0; aspect-ratio: 16 / 9; }
.featured-article .article-card__title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.15; }
.featured-article .article-card__excerpt { font-size: 1.0625rem; }

.article-header { padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
@media (min-width: 992px) {
  .article-header { padding: 56px 0 72px; }
}
.article-header__content { max-width: 860px; margin-top: 40px; }
.article-header__title { margin-bottom: 24px; font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.375rem); }
.article-header__excerpt { max-width: 62ch; margin-bottom: 32px; font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.6; color: var(--slate); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}
.article-meta li { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .icon { width: 16px; height: 16px; color: var(--gold); }
.article-meta__category { color: var(--gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }

.article-figure { margin: 0 0 56px; }
.article-figure img { width: 100%; border: 1px solid var(--line); }
.article-figure figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: 72ch;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--muted);
}

/* 17. Contact, confirmation, error pages ------------------------------------- */
.contact-layout {
  display: grid;
  gap: 48px;
}
@media (min-width: 992px) {
  .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; }
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list__item { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-list__item:first-child { border-top: 0; padding-top: 0; }
.contact-list__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy-800);
}
.contact-list__icon .icon { width: 20px; height: 20px; }
.contact-list__label {
  margin: 0 0 4px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list__value { margin: 0; line-height: 1.6; }
.aside-card--navy .contact-list__item { border-color: rgba(247, 244, 238, .14); }
.aside-card--navy .contact-list__icon { border-color: rgba(247, 244, 238, .24); color: var(--gold-light); }
.aside-card--navy .contact-list__label { color: rgba(247, 244, 238, .6); }
.aside-card--navy a:not(.btn) { color: var(--paper); }
.aside-card--navy .placeholder { background: rgba(201, 173, 124, .12); color: var(--gold-light); border-color: rgba(201, 173, 124, .4); }

.confirmation {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  text-align: center;
}
@media (min-width: 768px) {
  .confirmation { padding: 64px 72px; }
}
.confirmation__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--success);
}
.confirmation__icon .icon { width: 28px; height: 28px; }
.confirmation__reference {
  display: inline-block;
  margin: 8px 0 28px;
  padding: 12px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.0625rem;
  letter-spacing: .08em;
  color: var(--navy-900);
}
.confirmation .steps-mini { text-align: left; }
.steps-mini { list-style: none; margin: 32px 0; padding: 0; counter-reset: mini; border-top: 1px solid var(--line); }
.steps-mini li {
  counter-increment: mini;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9688rem;
  color: var(--slate);
}
.steps-mini li::before { content: counter(mini, decimal-leading-zero); flex: none; font-family: var(--font-serif); color: var(--gold); }

.error-hero { padding: 96px 0 120px; text-align: center; }
.error-hero__code {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  line-height: 1;
  color: var(--line);
}
.error-hero .lead { max-width: 56ch; margin: 0 auto 40px; }
.error-hero .btn-row { justify-content: center; }
.error-hero__links { max-width: 640px; margin: 64px auto 0; text-align: left; }

/* Standalone error page (includes/error-page.php) */
.error-page { display: flex; min-height: 100vh; background: var(--paper); }
.error-page__main { display: flex; flex: 1; align-items: center; justify-content: center; padding: 48px var(--gutter); }
.error-page__inner { max-width: 600px; text-align: center; }
.error-page__brand { margin-bottom: 64px; }
.error-page__wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: .22em;
  color: var(--navy-900);
  text-decoration: none;
}
.error-page__code { justify-content: center; }
.error-page__lead { font-size: 1.1875rem; color: var(--slate); }
.error-page__text { color: var(--muted); }
.error-page__actions { margin-top: 40px; }

/* 18. Pagination, breadcrumbs ------------------------------------------------- */
.pagination { margin-top: 72px; }
.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination__link,
.pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
}
a.pagination__link:hover { border-color: var(--line); color: var(--navy-900); }
.pagination__link.is-current { border-color: var(--navy-900); background: var(--navy-900); color: var(--paper); }
.pagination__link.is-disabled { color: #a9adb5; }
.pagination__gap { min-width: 24px; padding: 0; color: var(--muted); }

.breadcrumbs { font-size: .8125rem; color: var(--muted); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin: 0 12px;
  color: var(--line);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* 19. Cookie banner, placeholders, demo ------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 560px;
  padding: 24px;
  background: var(--navy-950);
  color: rgba(247, 244, 238, .86);
  box-shadow: 0 24px 48px -16px rgba(11, 20, 34, .5);
  border-top: 2px solid var(--gold);
  animation: nl-rise .5s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
@media (min-width: 768px) {
  .cookie-banner { left: 24px; bottom: 24px; padding: 28px 32px; }
}
.cookie-banner__text { margin: 0 0 20px; font-size: .9375rem; line-height: 1.6; }
.cookie-banner__text a { color: var(--paper); text-decoration-color: var(--gold-light); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn--outline { --btn-fg: var(--paper); --btn-border: rgba(247, 244, 238, .45); }
.cookie-banner .btn--outline:hover { --btn-bg: var(--paper); --btn-fg: var(--navy-900); --btn-border: var(--paper); }

.placeholder {
  display: inline;
  padding: 0 .25em;
  background: rgba(168, 132, 79, .1);
  border: 1px dashed rgba(168, 132, 79, .55);
  border-radius: 2px;
  color: #7a5d31;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .82em;
  letter-spacing: .02em;
  white-space: normal;
  word-break: break-word;
}

/* 20. Motion & utilities ---------------------------------------------------- */
@keyframes nl-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="delay-1"] { transition-delay: .08s; }
.js [data-reveal="delay-2"] { transition-delay: .16s; }
.js [data-reveal="delay-3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

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

.icon { flex: none; width: 1.25em; height: 1.25em; vertical-align: middle; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 48px; height: 48px; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: 56px; }
.mb-lg { margin-bottom: 56px; }
.max-prose { max-width: 72ch; }
.nowrap { white-space: nowrap; }
.rule { height: 1px; margin: 0; border: 0; background: var(--line); }
.js .no-js-only { display: none !important; }

/* 21. Print ----------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .cta-band,
  .skip-link,
  .nav,
  .content-layout__aside,
  .pagination,
  .btn,
  .btn-row,
  .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero,
  .article-header,
  .section { padding: 16px 0; border: 0; }
  .page-hero--navy { background: none; color: #000; }
  .page-hero--navy .page-hero__title,
  .page-hero--navy .page-hero__lead { color: #000; }
  .content-layout { display: block; }
  .prose { max-width: none; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  .faq__item { break-inside: avoid; }
  .faq__answer { display: block; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
