/* ==========================================================================
   The Global Neurodiversity Initiative — site stylesheet
   Built on the TGNI Design System v1.0. Section 1 is the token layer and is
   the single source of truth; change a token, not a component.

   NOTE ON --text-ink: the source package defines --text-body twice — as a
   colour in tokens/colors.css and as a size in tokens/typography.css. The size
   wins, so `color: var(--text-body)` is invalid and body text falls back to
   pure black, which this brand explicitly forbids. The colour alias is named
   --text-ink here to keep both usable.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root{
  /* Navy — the anchor */
  --navy-950:#07152F; --navy-900:#0A1C3D; --navy-800:#12295A; --navy-700:#1B3A76;
  --navy-600:#274C93; --navy-300:#8FA4C6; --navy-100:#D8E1EF; --navy-50:#EDF2F9;
  /* Brand blue — the interactive colour */
  --blue-700:#0F5CA3; --blue-600:#1670C4; --blue-500:#2E88D8;
  --blue-200:#BEDCF3; --blue-100:#DCEBF8; --blue-50:#F1F7FC;
  /* Neutrals — cool-tinted, never pure black */
  --ink-900:#14181F; --ink-700:#333B47; --ink-600:#4A5563; --ink-500:#667286;
  --ink-300:#A9B3C1; --ink-200:#D5DBE3; --ink-100:#E8ECF1; --ink-50:#F4F6F9;
  --white:#FFFFFF; --paper:#FBFCFE;
  /* Spectrum — decorative fills only */
  --spectrum-amber:#E08A2E; --spectrum-citron:#D9C21F; --spectrum-lime:#7CBE4E;
  --spectrum-teal:#2AB5AE; --spectrum-cyan:#16A5D2; --spectrum-blue:#1670C4;
  --spectrum-violet:#6B57C8;
  /* Spectrum — text-safe inks */
  --amber-ink:#8A4A08; --citron-ink:#6E5A00; --lime-ink:#3E6B22;
  --teal-ink:#0F6A66; --cyan-ink:#0B6688; --violet-ink:#463A9E;

  --gradient-spectrum:linear-gradient(90deg,var(--spectrum-amber) 0%,var(--spectrum-citron) 18%,var(--spectrum-lime) 36%,var(--spectrum-teal) 54%,var(--spectrum-cyan) 70%,var(--spectrum-blue) 85%,var(--spectrum-violet) 100%);
  --gradient-wave:linear-gradient(160deg,var(--blue-50) 0%,var(--blue-100) 55%,var(--blue-200) 100%);
  --gradient-navy:linear-gradient(155deg,var(--navy-800) 0%,var(--navy-900) 60%,var(--navy-950) 100%);

  --success:#1C7A4B; --success-surface:#E7F4ED;
  --warning:#8A5A00; --warning-surface:#FDF3DF;
  --danger:#A32232;  --danger-surface:#FBEAEC;
  --info:var(--blue-700); --info-surface:var(--blue-50);

  --text-heading:var(--navy-800); --text-ink:var(--ink-700); --text-muted:var(--ink-500);
  --text-on-dark:#FFFFFF; --text-on-dark-muted:#C9D6EA;
  --text-link:var(--blue-700); --text-link-hover:var(--navy-800);
  --surface-page:var(--paper); --surface-card:var(--white); --surface-sunken:var(--ink-50);
  --surface-tint:var(--blue-50); --surface-inverse:var(--navy-800);
  --border-subtle:var(--ink-100); --border-default:var(--ink-200); --border-strong:var(--navy-300);
  --action-primary:var(--navy-800); --action-primary-hover:var(--navy-700); --action-primary-active:var(--navy-900);
  --action-donate:var(--blue-600); --action-donate-hover:var(--blue-700); --action-donate-active:var(--navy-800);
  --focus-ring:var(--blue-600);

  --font-display:"Figtree","Segoe UI",system-ui,sans-serif;
  --font-body:"Atkinson Hyperlegible","Figtree",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,monospace;
  --text-display-1:4.25rem; --text-display-2:3.25rem;
  --text-h1:2.5rem; --text-h2:2rem; --text-h3:1.5rem; --text-h4:1.25rem;
  --text-lead:1.25rem; --text-body-lg:1.125rem; --text-body:1rem;
  --text-small:0.9375rem; --text-label:0.8125rem;
  --leading-tight:1.15; --leading-heading:1.25; --leading-body:1.65; --leading-loose:1.75;
  --tracking-tight:-0.02em; --tracking-label:0.09em;
  --weight-regular:400; --weight-medium:500; --weight-semibold:600; --weight-bold:700;
  --measure-narrow:34ch; --measure-body:66ch; --measure-wide:78ch;

  --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-9:4rem;
  --space-10:5rem; --space-11:6rem; --space-12:8rem;
  --section-y:var(--space-11); --section-y-tight:var(--space-9);
  --stack-gap:var(--space-5); --card-pad:var(--space-6);
  --grid-gutter:var(--space-5);
  --container-max:1200px; --container-narrow:760px; --container-wide:1400px;
  --page-margin:var(--space-5); --tap-min:44px;

  --radius-sm:6px; --radius-md:10px; --radius-lg:14px; --radius-xl:20px;
  --radius-2xl:28px; --radius-pill:999px; --radius-circle:50%;
  --rule-gradient-height:4px;
  --shadow-xs:0 1px 2px rgba(10,28,61,.06);
  --shadow-sm:0 1px 3px rgba(10,28,61,.07),0 1px 2px rgba(10,28,61,.04);
  --shadow-md:0 4px 14px rgba(10,28,61,.08);
  --shadow-lg:0 12px 32px rgba(10,28,61,.10);
  --shadow-focus:0 0 0 3px rgba(22,112,196,.35);

  --duration-instant:80ms; --duration-fast:140ms; --duration-base:200ms; --duration-slow:320ms;
  --ease-standard:cubic-bezier(.2,0,.2,1); --ease-out:cubic-bezier(0,0,.2,1);
  --motion-lift:-2px;

  --header-h:76px;
}
@media (max-width:1024px){:root{--text-display-1:3.25rem;--text-display-2:2.5rem;--text-h1:2rem;--text-h2:1.75rem;--section-y:var(--space-9)}}
@media (max-width:640px){:root{--text-display-1:2.5rem;--text-display-2:2rem;--text-h1:1.75rem;--text-h2:1.5rem;--text-h3:1.3125rem;--card-pad:var(--space-5)}}
@media (prefers-reduced-motion:reduce){
  :root{--duration-instant:0ms;--duration-fast:0ms;--duration-base:0ms;--duration-slow:0ms;--motion-lift:0px}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px)}
body{margin:0;background:var(--surface-page);color:var(--text-ink);font-family:var(--font-body);
  font-size:var(--text-body-lg);line-height:var(--leading-body);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5{font-family:var(--font-display);color:var(--text-heading);line-height:var(--leading-heading);
  letter-spacing:var(--tracking-tight);margin:0 0 var(--space-4);text-wrap:balance}
h1{font-size:var(--text-h1)}h2{font-size:var(--text-h2)}h3{font-size:var(--text-h3)}
h4{font-size:var(--text-h4);letter-spacing:0}
p{margin:0 0 var(--space-4);max-width:var(--measure-body);text-wrap:pretty}
p:last-child{margin-bottom:0}
a{color:var(--text-link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;
  transition:color var(--duration-fast) var(--ease-out)}
a:hover{color:var(--text-link-hover);text-decoration-thickness:2px}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--focus-ring);
  outline-offset:2px;border-radius:var(--radius-sm)}
::selection{background:var(--blue-100);color:var(--navy-900)}
img{max-width:100%;height:auto;display:block}
ul,ol{margin:0 0 var(--space-4)}
hr{border:0;margin:0}

.container{max-width:var(--container-max);margin-inline:auto;padding-inline:var(--page-margin)}
.container--narrow{max-width:var(--container-narrow)}
.eyebrow{font-family:var(--font-display);font-size:var(--text-label);font-weight:var(--weight-bold);
  letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--blue-700);display:block}
.rule{height:var(--rule-gradient-height);border-radius:var(--radius-pill);
  background:var(--gradient-spectrum);width:96px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lead{font-size:var(--text-lead);color:var(--ink-600);max-width:60ch}
.stack{display:flex;flex-direction:column;gap:var(--space-4);align-items:flex-start}
.stack--center{align-items:center;text-align:center;margin-inline:auto}
.stack--center p{margin-inline:auto}

/* --------------------------------------------------------------------------
   3. LAYOUT — sections and bands. Two background tones per page, maximum.
   -------------------------------------------------------------------------- */
.section{padding-block:var(--section-y)}
.section--tight{padding-block:var(--section-y-tight)}
.section--tint{background:var(--surface-tint)}
.section--wave{background:var(--gradient-wave)}
.section--inverse{background:var(--gradient-navy);color:var(--text-on-dark-muted)}
.section--inverse h1,.section--inverse h2,.section--inverse h3,.section--inverse h4{color:var(--text-on-dark)}
.section--inverse .eyebrow{color:var(--blue-200)}
.section--inverse .lead{color:var(--text-on-dark-muted)}
.section__head{margin-bottom:var(--space-8);max-width:var(--measure-wide)}
.section__head .rule{margin-bottom:var(--space-4)}
.section__head--center{margin-inline:auto;text-align:center}
.section__head--center .rule{margin-inline:auto}
.section__head--center .lead{margin-inline:auto}

.grid{display:grid;gap:var(--space-5)}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-9);align-items:center}
.split--wide-left{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.split--top{align-items:start}
@media (min-width:901px){.split--reverse > *:first-child{order:2}}
@media (max-width:900px){.split,.split--wide-left{grid-template-columns:1fr;gap:var(--space-7)}}

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

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--font-display);font-weight:var(--weight-semibold);font-size:var(--text-body);
  line-height:1.2;letter-spacing:.005em;text-decoration:none;text-align:center;
  padding:14px 24px;min-height:var(--tap-min);border-radius:var(--radius-lg);border:1px solid transparent;
  cursor:pointer;box-shadow:var(--shadow-xs);
  transition:background var(--duration-fast) var(--ease-out),transform var(--duration-instant) var(--ease-out),color var(--duration-fast) var(--ease-out)}
.btn:hover{text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn svg{width:20px;height:20px;flex:0 0 auto}
.btn--lg{padding:18px 32px;font-size:var(--text-body-lg);min-height:56px;gap:12px}
.btn--lg svg{width:22px;height:22px}
.btn--sm{padding:10px 16px;font-size:var(--text-small);min-height:40px;gap:8px}
.btn--sm svg{width:18px;height:18px}
.btn--primary{background:var(--action-primary);color:var(--text-on-dark)}
.btn--primary:hover{background:var(--action-primary-hover);color:var(--text-on-dark)}
.btn--primary:active{background:var(--action-primary-active)}
.btn--donate{background:var(--action-donate);color:var(--text-on-dark)}
.btn--donate:hover{background:var(--action-donate-hover);color:var(--text-on-dark)}
.btn--donate:active{background:var(--action-donate-active)}
.btn--secondary{background:var(--white);color:var(--navy-800);border:2px solid var(--navy-800)}
.btn--secondary:hover{background:var(--navy-50);color:var(--navy-800)}
.btn--ghost{background:transparent;color:var(--blue-700);box-shadow:none}
.btn--ghost:hover{background:var(--blue-50);color:var(--blue-700)}
.btn--inverse{background:var(--white);color:var(--navy-800)}
.btn--inverse:hover{background:var(--blue-50);color:var(--navy-800)}
.btn--full{display:flex;width:100%}
.btn[aria-disabled="true"],.btn:disabled{opacity:.45;cursor:not-allowed}
.section--inverse .btn:focus-visible{outline-color:var(--white)}
.btn-row{display:flex;flex-wrap:wrap;gap:var(--space-4)}

/* Icon discs */
.disc{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;
  border-radius:var(--radius-circle);flex:0 0 auto}
.disc svg{width:26px;height:26px}
.tone-amber{background:#FBEFDD;color:var(--amber-ink)}
.tone-citron{background:#F7F2D5;color:var(--citron-ink)}
.tone-lime{background:#E8F3DE;color:var(--lime-ink)}
.tone-teal{background:#DDF1F0;color:var(--teal-ink)}
.tone-cyan{background:#DCEEF6;color:var(--cyan-ink)}
.tone-blue{background:var(--blue-100);color:var(--blue-700)}
.tone-violet{background:#E7E3F7;color:var(--violet-ink)}
.tone-navy{background:var(--navy-100);color:var(--navy-800)}

/* Badge */
.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:var(--radius-pill);
  font-family:var(--font-display);font-size:var(--text-label);font-weight:var(--weight-bold);
  letter-spacing:.02em;line-height:1.3}
.badge svg{width:14px;height:14px}
.badge--info{background:var(--info-surface);color:var(--info)}
.badge--success{background:var(--success-surface);color:var(--success)}

/* Cards */
.card{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--card-pad);
  background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-xl);
  box-shadow:var(--shadow-sm);height:100%;align-items:flex-start;
  transition:box-shadow var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out),border-color var(--duration-base) var(--ease-out)}
.card h3,.card h4{margin:0}
.card p{margin:0;font-size:var(--text-body);max-width:48ch}
a.card{text-decoration:none;color:inherit}
a.card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md);transform:translateY(var(--motion-lift))}
.card__link{margin-top:auto;padding-top:var(--space-2);display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-display);font-weight:var(--weight-semibold);font-size:var(--text-body);
  color:var(--blue-700);text-decoration:underline;text-underline-offset:3px}
.card__link svg{width:18px;height:18px}
a.card:hover .card__link{color:var(--navy-800);text-decoration-thickness:2px}
.card__list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;font-size:var(--text-body)}
.card--flat{box-shadow:none;background:transparent;border:0;padding:0}
.card--middle{justify-content:center}

/* Media panel — photography always sits in its own rounded frame, never behind text */
.figure{margin:0;border-radius:var(--radius-2xl);overflow:hidden;background:var(--gradient-wave);
  box-shadow:var(--shadow-md)}
.figure img{width:100%;height:100%;object-fit:cover}
.figure figcaption{padding:var(--space-3) var(--space-5);font-size:var(--text-small);
  color:var(--text-muted);background:var(--surface-card)}
.figure--tall img{aspect-ratio:4/5}
.figure--wide img{aspect-ratio:3/2}

/* Quote */
.quote{margin:0;padding:var(--space-6);border-radius:var(--radius-xl);background:var(--surface-card);
  border:1px solid var(--border-subtle);display:flex;flex-direction:column;gap:var(--space-5);
  position:relative;overflow:hidden}
.quote::before{content:"";position:absolute;inset:0 0 auto 0;height:var(--rule-gradient-height);
  background:var(--gradient-spectrum)}
.quote p{margin:0;font-family:var(--font-display);font-size:var(--text-h3);font-weight:var(--weight-medium);
  line-height:1.4;color:var(--navy-800);letter-spacing:var(--tracking-tight);max-width:44ch}
.quote footer{font-size:var(--text-small);color:var(--ink-600)}
.quote footer b{display:block;font-family:var(--font-display);font-weight:var(--weight-bold);
  color:var(--navy-800);font-size:var(--text-body)}

/* Stats */
.stat{display:flex;flex-direction:column;gap:var(--space-2)}
.stat b{font-family:var(--font-display);font-size:var(--text-display-2);font-weight:var(--weight-bold);
  line-height:1.05;letter-spacing:var(--tracking-tight);color:var(--navy-800)}
.stat strong{font-family:var(--font-display);font-size:var(--text-h4);font-weight:var(--weight-semibold);
  color:var(--navy-800);line-height:var(--leading-heading)}
.stat small{font-size:var(--text-small);color:var(--text-muted);line-height:1.5;max-width:34ch}
.section--inverse .stat b,.section--inverse .stat strong{color:var(--text-on-dark)}
.section--inverse .stat small{color:var(--text-on-dark-muted)}

/* Value / list rows */
.rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-5)}
.rows li{display:flex;gap:var(--space-4);align-items:flex-start}
.rows .disc{width:48px;height:48px}
.rows .disc svg{width:22px;height:22px}
.rows b{display:block;font-family:var(--font-display);font-size:var(--text-h4);font-weight:var(--weight-bold);
  color:var(--navy-800);margin-bottom:4px}
.rows p{margin:0;font-size:var(--text-body)}

/* --------------------------------------------------------------------------
   5. FORMS
   -------------------------------------------------------------------------- */
.field{display:flex;flex-direction:column;gap:var(--space-2)}
.label{font-family:var(--font-display);font-size:var(--text-body);font-weight:var(--weight-semibold);
  color:var(--navy-800);line-height:1.4}
.label .req{color:var(--danger);margin-left:2px}
.help{font-size:var(--text-small);color:var(--text-muted);margin:0}
.error{font-size:var(--text-small);color:var(--danger);margin:0;display:none;align-items:center;gap:6px;
  font-weight:var(--weight-bold)}
.error svg{width:16px;height:16px;flex:0 0 auto}
.field.is-invalid .error{display:flex}
.input,.select,.textarea{font-family:var(--font-body);font-size:var(--text-body);line-height:1.5;
  color:var(--ink-700);background:var(--white);border:1px solid var(--border-default);
  border-radius:var(--radius-md);padding:12px 14px;min-height:var(--tap-min);width:100%;
  transition:border-color var(--duration-fast) var(--ease-out)}
.input:hover,.select:hover,.textarea:hover{border-color:var(--border-strong)}
.input::placeholder,.textarea::placeholder{color:var(--ink-500)}
.textarea{min-height:140px;resize:vertical}
.select{appearance:none;padding-right:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2312295A' stroke-width='1.75' 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 14px center}
.field.is-invalid .input,.field.is-invalid .select,.field.is-invalid .textarea{
  border-color:var(--danger);border-width:2px;background:var(--danger-surface)}
.choice{display:flex;align-items:flex-start;gap:var(--space-3);min-height:var(--tap-min);
  padding:10px 0;cursor:pointer;font-size:var(--text-body)}
.choice input{width:22px;height:22px;margin:0;flex:0 0 auto;accent-color:var(--blue-600)}
.choice span{line-height:1.5}

/* Donation form */
.donate-card{background:var(--surface-card);border:1px solid var(--border-subtle);
  border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);padding:var(--card-pad);
  display:flex;flex-direction:column;gap:var(--space-5)}
.donate-card > .rule{margin-bottom:calc(var(--space-2) * -1)}
.segmented{display:flex;padding:4px;gap:4px;background:var(--ink-50);border-radius:var(--radius-pill);
  border:1px solid var(--border-subtle)}
.segmented button{flex:1;border:1px solid transparent;background:transparent;font-family:var(--font-display);
  font-size:var(--text-body);font-weight:var(--weight-semibold);color:var(--ink-600);
  padding:10px 16px;min-height:44px;border-radius:var(--radius-pill);cursor:pointer;
  transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}
.segmented button:hover{color:var(--navy-800)}
.segmented button[aria-pressed="true"]{background:var(--white);color:var(--navy-800);
  box-shadow:var(--shadow-xs);border-color:var(--border-default);font-weight:var(--weight-bold)}
.amounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:var(--space-3)}
.amount{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  min-height:82px;padding:12px;border-radius:var(--radius-xl);border:1px solid var(--border-default);
  background:var(--white);color:var(--navy-800);font-family:var(--font-display);
  font-size:var(--text-h4);font-weight:var(--weight-semibold);cursor:pointer;text-align:center;
  transition:background var(--duration-fast) var(--ease-out),border-color var(--duration-fast) var(--ease-out)}
.amount small{font-family:var(--font-body);font-size:var(--text-small);font-weight:400;
  color:var(--text-muted);line-height:1.3}
.amount:hover{background:var(--blue-50);border-color:var(--border-strong)}
.amount[aria-pressed="true"]{background:var(--blue-100);border:2px solid var(--blue-600);
  font-weight:var(--weight-bold)}
.amount[aria-pressed="true"] small{color:var(--blue-700)}
.impact-line{display:flex;gap:var(--space-3);align-items:flex-start;padding:var(--space-4);
  border-radius:var(--radius-md);background:var(--surface-tint);font-size:var(--text-body);
  color:var(--navy-800);border-left:4px solid var(--blue-600)}
.impact-line svg{width:20px;height:20px;flex:0 0 auto;color:var(--blue-700);margin-top:3px}
.impact-line p{margin:0;max-width:none}
.reassure{display:flex;gap:10px;align-items:flex-start;font-size:var(--text-small);color:var(--text-muted)}
.reassure svg{width:18px;height:18px;flex:0 0 auto;color:var(--success);margin-top:3px}
.form-status{display:none;gap:var(--space-3);padding:var(--space-5);border-radius:var(--radius-lg);
  background:var(--success-surface);border-left:4px solid var(--success);color:var(--success);
  font-size:var(--text-body);align-items:flex-start}
.form-status svg{width:22px;height:22px;flex:0 0 auto;margin-top:2px}
.form-status.is-visible{display:flex}
.form-status p{margin:0;color:var(--ink-700);max-width:none}
.form-status b{color:var(--success)}

/* --------------------------------------------------------------------------
   6. HEADER & FOOTER
   -------------------------------------------------------------------------- */
.skiplink{position:absolute;left:var(--space-4);top:-100px;z-index:100;background:var(--navy-800);
  color:var(--text-on-dark);padding:12px 20px;border-radius:var(--radius-md);text-decoration:none;
  font-family:var(--font-display);font-weight:var(--weight-semibold)}
.skiplink:focus{top:var(--space-4);color:var(--text-on-dark)}

.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border-subtle)}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-5);
  min-height:var(--header-h);max-width:var(--container-max);margin-inline:auto;
  padding-inline:var(--page-margin)}
.header__logo{display:flex;align-items:center;flex:0 0 auto;text-decoration:none;padding:4px 0}
.header__logo img{height:42px;width:auto}
.header__nav{display:flex;align-items:center;gap:var(--space-5)}
.header__nav a:not(.btn){font-family:var(--font-display);font-size:var(--text-body);font-weight:var(--weight-semibold);
  color:var(--navy-800);text-decoration:none;padding:10px 2px;border-bottom:2px solid transparent;
  white-space:nowrap}
.header__nav a:not(.btn):hover{border-bottom-color:var(--blue-600);color:var(--navy-800)}
.header__nav a:not(.btn)[aria-current="page"]{border-bottom-color:var(--navy-800)}
.header__nav a.btn[aria-current="page"]{box-shadow:inset 0 0 0 2px var(--navy-800),var(--shadow-xs)}
.header__toggle{display:none;align-items:center;justify-content:center;width:var(--tap-min);
  height:var(--tap-min);border:1px solid var(--border-default);border-radius:var(--radius-md);
  background:var(--white);color:var(--navy-800);cursor:pointer}
.header__toggle svg{width:24px;height:24px}
.header__toggle .icon-close{display:none}
.header__toggle[aria-expanded="true"] .icon-open{display:none}
.header__toggle[aria-expanded="true"] .icon-close{display:block}
@media (max-width:960px){
  .header__toggle{display:inline-flex}
  .header__nav{position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;
    gap:0;background:var(--white);border-bottom:1px solid var(--border-subtle);
    box-shadow:var(--shadow-md);padding:var(--space-3) var(--page-margin) var(--space-5);display:none}
  .header__nav.is-open{display:flex}
  .header__nav a:not(.btn){padding:14px 0;border-bottom:1px solid var(--border-subtle)}
  .header__nav a:not(.btn)[aria-current="page"]{border-bottom-color:var(--border-subtle);color:var(--blue-700)}
  .header__nav .btn{margin-top:var(--space-4)}
}

.footer{background:var(--gradient-navy);color:var(--text-on-dark-muted);
  padding:var(--section-y-tight) 0 var(--space-6);position:relative}
.footer::before{content:"";position:absolute;inset:0 0 auto 0;height:var(--rule-gradient-height);
  background:var(--gradient-spectrum)}
.footer__grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:var(--space-7)}
@media (max-width:860px){.footer__grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}
.footer h2{font-family:var(--font-display);font-size:var(--text-label);letter-spacing:var(--tracking-label);
  text-transform:uppercase;color:var(--text-on-dark);margin:0 0 var(--space-4);font-weight:var(--weight-bold)}
.footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-3)}
.footer a{color:var(--text-on-dark-muted);text-decoration:none;font-size:var(--text-body)}
.footer a:hover{color:var(--text-on-dark);text-decoration:underline}
.footer p{color:var(--text-on-dark-muted);font-size:var(--text-small);max-width:36ch}
.footer__logo{background:var(--white);padding:12px 16px;border-radius:var(--radius-md);
  display:inline-block;margin-bottom:var(--space-4)}
.footer__logo img{height:36px;width:auto}
.footer__base{margin-top:var(--space-8);padding-top:var(--space-5);
  border-top:1px solid rgba(255,255,255,.14);display:flex;flex-wrap:wrap;gap:var(--space-4) var(--space-5);
  justify-content:space-between;font-size:var(--text-label);line-height:1.6}
.footer__base ul{flex-direction:row;flex-wrap:wrap;gap:var(--space-3) var(--space-5)}
.footer__base a{font-size:var(--text-label)}

/* --------------------------------------------------------------------------
   7. PAGE-LEVEL PIECES
   -------------------------------------------------------------------------- */
.hero{position:relative;overflow:hidden;background:var(--gradient-wave);
  padding-block:var(--space-11) var(--space-11);border-bottom:1px solid var(--blue-200)}
.hero .container{position:relative;z-index:1}
.hero__copy{max-width:640px}
.hero h1{font-size:clamp(2.75rem,5.4vw,5rem);line-height:1.04;margin-bottom:var(--space-5)}
.hero .rule{margin-bottom:var(--space-5)}
.hero__body{font-size:var(--text-body-lg);max-width:52ch;margin-bottom:var(--space-7)}
.hero__sub{font-size:var(--text-lead);color:var(--navy-700);font-family:var(--font-display);
  font-weight:var(--weight-semibold);max-width:44ch;margin-bottom:var(--space-5)}

/* The photograph carries its own alpha fade, baked into the file — no CSS mask.
   The box is sized to the image's own aspect and pushed past the right edge so
   the four children land clear of the copy column while the fade's transparent
   end covers the text. The hero clips the overflow. */
.hero__media{position:absolute;inset:0 -20% 0 auto;width:82%;z-index:0;pointer-events:none}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
@media (max-width:1280px){
  /* Below the split point the copy would reach the image, so it becomes its own
     panel underneath instead. */
  .hero{overflow:visible}
  .hero__media{position:static;width:min(100% - 2 * var(--page-margin),var(--container-max));
    margin:var(--space-6) auto 0;-webkit-mask-image:none;mask-image:none}
  .hero__media img{height:auto;aspect-ratio:3/2;object-position:center;
    border-radius:var(--radius-2xl);box-shadow:var(--shadow-md)}
}
.pagehero{background:var(--gradient-wave);padding-block:var(--space-10) var(--space-10);
  border-bottom:1px solid var(--blue-200)}
.pagehero h1{font-size:var(--text-h1);margin-bottom:var(--space-4)}
.pagehero .rule{margin-bottom:var(--space-4)}

.breadcrumb{font-size:var(--text-small);color:var(--ink-600);margin-bottom:var(--space-4)}
.breadcrumb a{color:var(--blue-700)}
.breadcrumb span{color:var(--ink-600);margin-inline:8px}

.cta-band{background:var(--gradient-navy);color:var(--text-on-dark-muted);position:relative}
.cta-band h2{color:var(--text-on-dark)}
.cta-band p{color:var(--text-on-dark-muted)}

.prose h3{margin-top:var(--space-7)}
.prose h3:first-child{margin-top:0}
.prose ul{padding-left:20px;display:flex;flex-direction:column;gap:10px;max-width:var(--measure-body)}

.note{display:flex;gap:var(--space-4);padding:var(--space-5);border-radius:var(--radius-lg);
  background:var(--info-surface);border-left:4px solid var(--blue-600)}
.note svg{width:22px;height:22px;flex:0 0 auto;color:var(--blue-700);margin-top:2px}
.note p{margin:0;font-size:var(--text-body);max-width:none}

.legal{max-width:var(--container-narrow)}
.legal h2{font-size:var(--text-h3);margin:var(--space-9) 0 var(--space-4)}
.legal h2:first-of-type{margin-top:var(--space-6)}
.legal h3{font-size:var(--text-h4);margin:var(--space-6) 0 var(--space-3)}
.legal p,.legal li{font-size:var(--text-body-lg)}
.legal ul{padding-left:22px;display:flex;flex-direction:column;gap:12px;margin-bottom:var(--space-5)}
.legal dl{margin:0 0 var(--space-5)}
.legal dt{font-family:var(--font-display);font-weight:var(--weight-bold);color:var(--navy-800);margin-top:var(--space-4)}
.legal dd{margin:4px 0 0}
.legal__meta{font-family:var(--font-mono);font-size:var(--text-label);color:var(--ink-600);
  letter-spacing:.02em;margin-bottom:var(--space-5);display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-5)}
.legal__toc{background:var(--surface-tint);border:1px solid var(--blue-100);border-radius:var(--radius-xl);
  padding:var(--space-5) var(--space-6);margin-bottom:var(--space-8)}
.legal__toc h2{font-family:var(--font-display);font-size:var(--text-label);letter-spacing:var(--tracking-label);
  text-transform:uppercase;color:var(--blue-700);margin:0 0 var(--space-3)}
.legal__toc ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.legal__toc a{font-size:var(--text-body)}

@media print{.header,.skiplink,.cta-band{display:none}}
