/* ============================================================
   Dr. Adaeze Oreh — Design System v4.0
   Fraunces (variable display) · DM Sans (body/UI) · Mrs Saint Delafield (script)
   Deep Green / Teal / Cream — health & vitality
   Aligned with official brand kit (Ewàolá Creative Studio)
   ============================================================ */

/* Fraunces — variable modern serif with warmth & personality (Google Fonts, OFL).
   Replaces DrAO Editorial / Newsreader. The 'wonky' axis adds distinctive character
   while remaining highly readable. */
/* Fraunces + Mrs Saint Delafield loaded via Google Fonts in enqueue.php */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Tells the UA which palette to paint the bits we don't own: the select
     dropdown popup, autofill fill, caret, spin buttons and scrollbars.
     Without it those stay light even under [data-theme="dark"], which is
     what made dark-mode form controls read as browser-default. */
  color-scheme: light;

  /* Brand colours — aligned with official brand kit */
  --color-primary:   #004225;   /* deep green — logo, primary surfaces */
  --color-accent:    #007A5E;   /* teal-green — CTAs, links, highlights (health/vitality) */
  --color-accent-2: #7842A5;   /* purple — secondary warmth accent */
  --color-accent-3: #E07020;   /* orange — energy/action accent */
  --color-bg:        #FAF8F4;  /* warm cream */
  --color-bg-mid:    #F2EDE4;  /* slightly deeper cream */
  --color-text:      #1A1714;  /* near-black */
  --color-muted:     #5E6E5E;  /* muted green-grey */
  --color-white:     #FFFFFF;  /* FIXED foreground for text/icons on dark fills.
                                  Never a page surface — it does not flip with
                                  the theme. Use --color-surface for that. */
  --color-border:    #D5DCCF;  /* soft green-grey border */

  /* Surfaces — these DO flip with the theme */
  --color-surface:      #FFFFFF;            /* raised card/panel above --color-bg */
  --color-field:        #FFFFFF;            /* form control fill */
  --color-field-border: var(--color-border);
  --color-success:   #2F7A4F;
  --color-success-tint: color-mix(in srgb, var(--color-success) 12%, var(--color-bg));
  --color-error:     #B3413A;
  --color-error-tint: color-mix(in srgb, var(--color-error) 10%, var(--color-bg));

  /* Typography */
  --font-display: 'Fraunces', 'DrAO Editorial', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-script:  'Mrs Saint Delafield', 'Pinyon Script', 'Snell Roundhand', cursive;  /* signature logotype — brand mark only, never body */

  /* Type scale */
  --text-xs:     0.75rem;    /* 12px */
  --text-sm:     0.875rem;   /* 14px */
  --text-base:   1rem;       /* 16px */
  --text-lg:     1.125rem;   /* 18px */
  --text-xl:     1.25rem;    /* 20px */
  --text-2xl:    1.5rem;     /* 24px */
  --text-3xl:    1.875rem;   /* 30px */
  --text-4xl:    2.375rem;   /* 38px */
  --text-5xl:    3rem;       /* 48px */
  --text-6xl:    4rem;       /* 64px */
  --text-7xl:    5.5rem;     /* 88px */
  --text-8xl:    7.5rem;     /* 120px — display/hero scale, for real type-scale drama */

  /* Spacing */
  --space-1:     0.25rem;
  --space-2:     0.5rem;
  --space-3:     0.75rem;
  --space-4:     1rem;
  --space-5:     1.25rem;
  --space-6:     1.5rem;
  --space-8:     2rem;
  --space-10:    2.5rem;
  --space-12:    3rem;
  --space-16:    4rem;
  --space-20:    5rem;
  --space-24:    6rem;
  --space-32:    8rem;

  /* Layout */
  --container:   1200px;
  --content-w:   640px;

  /* ---- Colour states & tints ---------------------------------- */
  --accent-strong:  #005C46;   /* teal, hover/pressed */
  --accent-weak:    color-mix(in srgb, var(--color-accent) 14%, transparent);
  --accent-tint:    color-mix(in srgb, var(--color-accent) 8%,  var(--color-bg));
  --primary-strong: #002E1A;   /* deeper green, hover/pressed */
  --primary-weak:   color-mix(in srgb, var(--color-primary) 8%, transparent);
  --on-primary:     #FAF8F4;   /* text/graphics on deep green */
  --on-accent:      #FFFFFF;   /* text on teal */

  /* ---- Radius ------------------------------------------------- */
  --radius-none: 0;
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   10px;
  --radius-pill: 999px;

  /* ---- Elevation — warm-tinted, never pure black -------------- */
  --shadow-sm:     0 1px 2px rgba(27, 24, 20, 0.06), 0 1px 1px rgba(27, 24, 20, 0.04);
  --shadow-md:     0 4px 14px rgba(27, 24, 20, 0.08);
  --shadow-lg:     0 18px 48px rgba(27, 24, 20, 0.14);
  --shadow-accent: 0 6px 20px rgba(0, 66, 37, 0.28);

  /* ---- Motion — easing (extracted from the reference analyses) - */
  --ease-out:      cubic-bezier(0.23, 1, 0.32, 1);    /* default deceleration */
  --ease-out-soft: cubic-bezier(0.16, 1, 0.30, 1);    /* long, gentle reveals */
  --ease-expo-out: cubic-bezier(0.19, 1, 0.22, 1);    /* dramatic deceleration — section/content reveals */
  --ease-spring:   cubic-bezier(0.34, 1.40, 0.64, 1); /* slight overshoot, used sparingly */
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);    /* symmetric, for toggles */

  /* ---- Motion — timing scale --------------------------------- */
  --t-hover:  150ms;  /* hover / focus feedback — must feel instant */
  --t-fast:   250ms;  /* small state changes */
  --t-medium: 400ms;  /* accordion, header, medium moves */
  --t-slow:   650ms;  /* short reveals */
  --t-reveal: 1000ms; /* section/content scroll-reveal — matches the reference's weight */

  /* ---- Motion — reveal geometry ------------------------------ */
  --reveal-y:  24px;  /* fade-up travel distance */
  --reveal-x:  30px;  /* slide travel distance */

  /* ---- Focus ------------------------------------------------- */
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-accent) 45%, transparent);

  /* ---- Legacy aliases (existing rules depend on these) -------- */
  --ease:      var(--ease-out);
  --duration:  var(--t-medium);

  /* ---- Theme transition — smooth colour cross-fade ------------- */
  --theme-transition: background-color 350ms var(--ease-out),
                      color 350ms var(--ease-out),
                      border-color 350ms var(--ease-out),
                      fill 350ms var(--ease-out),
                      stroke 350ms var(--ease-out);
}

/* ------------------------------------------------------------
   1b. DARK THEME — Deep Forest Green / Teal on dark
   ------------------------------------------------------------ */
[data-theme="dark"] {
  color-scheme: dark;

  --color-primary:   #002E1A;  /* deeper green for dark backgrounds */
  --color-accent:    #00A87A;  /* brighter teal for dark */
  --color-bg:        #0A1410;  /* near-black green tint */
  --color-bg-mid:    #0D1B14;
  --color-text:      #E0E8E0;  /* warm green-white */
  --color-muted:     #7A8A7A;
  --color-white:     #FFFFFF;
  --color-border:    #1A3326;
  --color-success:   #3FA86B;
  --color-error:     #D66158;

  /* Surfaces. Field sits recessed below the panel; its border is lifted to
     #3B6E57 so the control edge clears WCAG 1.4.11 (3.20:1 on the fill) —
     --color-border at #1A3326 is only 1.28:1 and vanishes. */
  --color-surface:      #101F18;
  --color-field:        #08130E;
  --color-field-border: #3B6E57;

  --accent-strong:   #00C490;
  --accent-weak:     rgba(0, 168, 122, 0.12);
  --accent-tint:     rgba(0, 168, 122, 0.06);
  --primary-strong:  #001A0E;
  --primary-weak:    rgba(255, 255, 255, 0.06);
  --on-primary:      #E0E8E0;
  --on-accent:       #0A1410;

  --shadow-sm:       0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.2);
  --shadow-md:       0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg:       0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-accent:   0 6px 20px rgba(0, 168, 122, 0.22);
}

/* Smooth theme transitions on key interactive surfaces */
[data-theme="dark"] body,
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer {
  transition: var(--theme-transition);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Keep semantic in-page destinations clear of the fixed site header. */
:target {
  scroll-margin-top: calc(60px + var(--space-6));
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  color: var(--color-text);
}

img, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ------------------------------------------------------------
   3. TYPOGRAPHY — Fraunces + DM Sans
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/*
  HEADING WEIGHT RULE:
    h1, h2 → 500 (display weight — large editorial headlines)
    h3–h6  → 600 (semibold — card titles, sub-heads, UI labels)
  Avoid per-component overrides: choose the correct heading level.
*/

/* Type-scale contrast is the single biggest signal of editorial confidence —
   a display size that dwarfs body/label text reads as considered, not safe. */
h1 { font-size: clamp(3rem, 8vw, var(--text-8xl)); font-weight: 500; line-height: 0.96; letter-spacing: -0.025em; }
h2 { font-size: clamp(2.25rem, 5vw, var(--text-7xl)); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  font-weight: 400;
  line-height: 1.7;
  max-width: 62ch;
}
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  font-weight: 350;
  color: var(--color-muted);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.eyebrow--invert { color: var(--color-white); }

.eyebrow__rule {
  width: 32px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: var(--space-6);
}

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-12); }
}

/*
  SECTION RHYTHM — pick one, do not invent a new clamp():
    .section        var(--space-32) — full-weight/default
    .section--sm    var(--space-20) — compact/CTA
    .section--fluid clamp(var(--space-16), 6vw, var(--space-24)) — editorial
*/
.section {
  padding-block: var(--space-32);
}

.section--fluid {
  padding-block: clamp(var(--space-16), 6vw, var(--space-24));
}

.section--sm {
  padding-block: var(--space-20);
}

.section-cta {
  text-align: center;
}

.section-cta__heading {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.section-cta__lead {
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.section-cta--inverse .section-cta__heading { color: var(--color-white); }
.section-cta--inverse .section-cta__lead { color: rgba(255, 255, 255, 0.72); }

/* ------------------------------------------------------------
   5. SITE HEADER — fixed, transparent → solid on scroll
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* A quiet frosted bar from the start — keeps the nav legible where it sits
     over the full-bleed hero image, without a hard opaque band. */
  background: color-mix(in srgb, var(--color-bg) 70%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 28px rgba(27, 24, 20, 0.06);
}

/* Progressive enhancement: only lean on translucency where blur is supported;
   otherwise fall back to a solid bar so text never sits on the raw image. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--color-bg); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .site-header__inner { padding-inline: var(--space-12); }
}

/* ---- Brand seal (shared component) ------------------------- */
.seal { display: block; flex-shrink: 0; }
.seal__ring  { stroke: var(--color-accent); }
.seal__ring--inner { opacity: 0.5; }
.seal__tick  { fill: var(--color-accent); }
.seal__letters {
  fill: currentColor;
  font-family: var(--font-display);
  font-weight: 300;
}

/* ---- Official brand logo (image-based monogram + wordmark) -- */
.brand-logo {
  display: block;
  height: auto;
  max-height: 40px;
  width: auto;
}

/* ---- Header lockup: logo ------------------------------------ */
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-primary);
}

.site-header__wordmark {
  font-family: var(--font-script);
  font-size: 1.75rem;      /* script needs more size to stay legible */
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  padding-bottom: 2px;     /* optical: script descenders/baseline sit low */
}

/* Optional legacy text name */
.site-header__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* Nav — desktop only */
.site-nav { display: none; }

@media (min-width: 768px) {
  .site-nav { display: block; }
}

/* ---- Mobile nav toggle (hamburger) — below 768px ----------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  margin-left: auto; /* always pinned to the right */
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* Mobile menu panel */
@media (max-width: 767px) {
  .site-nav {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    background: var(--color-bg);
    z-index: 100;
    padding: var(--space-8) var(--space-6);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity var(--t-fast) var(--ease-out),
      visibility var(--t-fast) var(--ease-out),
      transform var(--t-fast) var(--ease-out);
  }

  .site-nav.is-open,
  .site-nav[aria-hidden="false"] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
  }

  .site-nav.is-open .site-nav__list {
    flex-direction: column;
    gap: var(--space-6);
  }

  .site-nav.is-open .site-nav__link,
  .site-nav.is-open .menu-item a {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    font-weight: 500;
  }
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__list li { margin: 0; }

.site-nav__link,
.site-nav .menu-item a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
  transition: color var(--duration) var(--ease);
  text-decoration: none;
  padding-block: var(--space-1);
  position: relative;
}

.site-nav .menu-item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.site-nav .menu-item a:hover::after,
.site-nav .current-menu-item a::after {
  transform: scaleX(1);
}

.site-nav .menu-item a:hover {
  color: var(--color-text);
}

/* ------------------------------------------------------------
   6. SITE FOOTER — brand-led, on navy
   ------------------------------------------------------------ */
.site-footer {
  background: var(--color-primary);
  color: var(--on-primary);
  padding-block: var(--space-16) var(--space-8);
}

.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .site-footer__inner { padding-inline: var(--space-12); }
}

/* Brand lockup (seal + serif wordmark + descriptor) */
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--on-primary);   /* drives .seal__letters via currentColor */
}

.site-footer__lockup { display: flex; flex-direction: column; gap: 0.25rem; }

.site-footer__wordmark {
  font-family: var(--font-script);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-white);
}

.site-footer__descriptor {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
}

/* Footer nav */
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: right;
}

@media (max-width: 640px) {
  .site-footer__nav { text-align: left; }
}

.site-footer__nav .menu-item a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(250, 248, 244, 0.7);
  transition: color var(--t-hover) var(--ease-out);
  text-decoration: none;
}

.site-footer__nav .menu-item a:hover { color: var(--color-accent); }

/* Base line */
.site-footer__base {
  max-width: var(--container);
  margin: var(--space-12) auto 0;
  padding-inline: var(--space-6);
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  padding-top: var(--space-6);
}

@media (min-width: 768px) {
  .site-footer__base { padding-inline: var(--space-12); }
}

.site-footer__copy {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(250, 248, 244, 0.5);
  margin: 0;
  max-width: none;
}

/* ------------------------------------------------------------
   7. BUTTON SYSTEM
   ------------------------------------------------------------ */
/* Four semantic roles only:
     .btn--primary      solid gold  — the single most important action in a view
     .btn--secondary    solid navy  — a strong action that isn't the gold one
     .btn--outline      navy border — quiet boxed action on light backgrounds
     .btn--text / --text-light   bare link + arrow — everything else
   (.btn--ghost, --outline-light, --light kept as aliases so markup never breaks.) */

/* ------------------------------------------------------------
   7. BUTTON SYSTEM — refined micro-interactions
   ------------------------------------------------------------
   Roles:
     .btn--primary   solid teal   — the single most important action
     .btn--secondary solid navy   — a strong action that isn't the teal one
     .btn--outline   navy border  — quiet boxed action on light backgrounds
     .btn--ghost     true ghost   — ambient action on dark/photo backgrounds
     .btn--accent    solid orange — rare, urgent/celebratory action
     .btn--text      bare link + arrow — everything else
   Motion is restrained: small lifts (2px), no bounce except the deliberate
   spring easing on primary, and a shared press animation on click.
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.85rem;
  min-height: 2.85rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-spring);
}

.btn .arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(5px); }
.btn:active .arrow { transform: translateX(3px); }

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Shared fill-sweep pseudo-element: a soft diagonal wash that slides in on
   hover instead of an instant colour swap. Used by primary/secondary/accent. */
.btn--primary::before,
.btn--secondary::before,
.btn--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform var(--t-slow) var(--ease-out);
}
.btn--primary:hover::before,
.btn--secondary:hover::before,
.btn--accent:hover::before {
  transform: translateX(120%);
}

/* ---- Primary — filled teal, the "go" button ---- */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--on-accent);
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
  transition-duration: var(--t-hover);
}

/* ---- Secondary — filled navy, a strong but quieter action ---- */
.btn--secondary {
  background-color: var(--color-primary);
  color: var(--on-primary);
  border-color: var(--color-primary);
}
.btn--secondary:hover {
  background-color: var(--primary-strong);
  border-color: var(--primary-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
  transition-duration: var(--t-hover);
}

/* ---- Outline — navy border on light bg. The border itself animates:
   a filled bar sweeps up from the bottom instead of a flat bg swap. ---- */
.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
  z-index: 0;
}
.btn--outline::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-weak);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--accent-strong);
  transform: translateY(-2px);
}
.btn--outline:hover::after {
  transform: scaleY(1);
}
.btn--outline:active {
  transform: translateY(0) scale(0.98);
  transition-duration: var(--t-hover);
}

/* ---- Ghost — for dark/photo hero backgrounds. A hairline ring fades in
   on hover along with a soft frosted fill, so it reads as an ambient hint
   rather than a boxed control. ---- */
.btn--ghost,
.btn--outline-light,
.btn--light {
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn--ghost:hover,
.btn--outline-light:hover,
.btn--light:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost:active,
.btn--outline-light:active,
.btn--light:active {
  transform: translateY(0) scale(0.98);
  background-color: rgba(255, 255, 255, 0.1);
  transition-duration: var(--t-hover);
}

/* ---- Accent — solid orange, reserved for rare urgent/celebratory CTAs
   (e.g. "Donate", "Book Now"). Gets a slow ambient glow pulse so it
   draws the eye without being loud, plus the shared hover sweep. ---- */
.btn--accent {
  background-color: var(--color-accent-3);
  color: var(--color-white);
  border-color: var(--color-accent-3);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent-3) 45%, transparent);
  animation: btn-accent-glow 3.2s var(--ease-in-out) infinite;
}
.btn--accent:hover {
  background-color: color-mix(in srgb, var(--color-accent-3) 85%, black);
  border-color: color-mix(in srgb, var(--color-accent-3) 85%, black);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--color-accent-3) 38%, transparent);
  animation-play-state: paused;
}
.btn--accent:active {
  transform: translateY(0) scale(0.98);
  transition-duration: var(--t-hover);
}
@keyframes btn-accent-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent-3) 35%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent-3) 0%, transparent);
  }
}

/* ---- Text — bare link + arrow, no box. Underline draws on under the
   label only, arrow nudges right, colour warms slightly. ---- */
.btn--text,
.btn--text-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--t-hover) var(--ease-out);
}
.btn--text .arrow,
.btn--text-light .arrow {
  transition: transform var(--t-fast) var(--ease-out);
}
.btn--text:hover .arrow,
.btn--text-light:hover .arrow {
  transform: translateX(5px);
}

.btn--text .btn__label,
.btn--text-light .btn__label {
  position: relative;
}
.btn--text .btn__label::after,
.btn--text-light .btn__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn--text:hover .btn__label::after,
.btn--text-light:hover .btn__label::after,
.btn--text:focus-visible .btn__label::after,
.btn--text-light:focus-visible .btn__label::after {
  transform: scaleX(1);
}

.btn--text { color: var(--color-text); }
.btn--text:hover { color: var(--accent-strong); }
.btn--text-light { color: rgba(255, 255, 255, 0.78); }
.btn--text-light:hover { color: var(--color-white); }

.btn--text:focus-visible,
.btn--text-light:focus-visible {
  outline: none;
  color: var(--color-accent);
}

/* ---- Click-press micro-interaction (JS toggles .btn--pressed on
   pointerdown/keydown). A quick squash-and-settle, distinct from the
   hover lift so a click always reads as a click. ---- */
@keyframes btn-press {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.955); }
  100% { transform: scale(1); }
}
.btn--pressed {
  animation: btn-press var(--t-fast) var(--ease-out) forwards;
}

/* ------------------------------------------------------------
   Reduced motion: keep the state changes, drop the movement.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn .arrow,
  .btn--outline::after,
  .btn--primary::before,
  .btn--secondary::before,
  .btn--accent::before,
  .btn--text .btn__label::after,
  .btn--text-light .btn__label::after {
    transition-duration: 1ms !important;
    animation: none !important;
  }
  .btn--primary:hover,
  .btn--secondary:hover,
  .btn--outline:hover,
  .btn--ghost:hover,
  .btn--outline-light:hover,
  .btn--light:hover,
  .btn--accent:hover,
  .btn--primary:active,
  .btn--secondary:active,
  .btn--outline:active,
  .btn--ghost:active,
  .btn--outline-light:active,
  .btn--light:active,
  .btn--accent:active,
  .btn--pressed {
    transform: none;
  }
}

/* ------------------------------------------------------------
   7b. DARK MODE OVERRIDES — elements that use hardcoded colours
   ------------------------------------------------------------ */

/* Header — scrolled background becomes dark navy */
[data-theme="dark"] .site-header.is-scrolled {
  background: #0A1410;
  box-shadow: 0 1px 0 var(--color-border);
}

/* Header — logo and wordmark must stay legible */
[data-theme="dark"] .site-header__logo,
[data-theme="dark"] .site-header__wordmark {
  color: var(--color-text);
}

/* Page-header — banner scrim uses hardcoded rgba */
[data-theme="dark"] .page-header__scrim {
  background: linear-gradient(to top, rgba(5, 8, 18, 0.88) 0%, rgba(5, 8, 18, 0.3) 45%, transparent 75%);
}

/* Mobile nav toggle bars */
[data-theme="dark"] .nav-toggle__bar {
  background: var(--color-text);
}

/* Header logo — invert coloured PNG to light for dark backgrounds */
[data-theme="dark"] .site-header .brand-logo {
  filter: brightness(0) invert(1);
}


/* Mobile menu panel */
[data-theme="dark"] .site-nav.is-open {
  background: #0A1410;
}

/* Nav link underlines use --color-accent which is already overridden */

/* Footer is already navy, but text variables carry through.
   Footer base line: ensure it's visible on dark navy. */
[data-theme="dark"] .site-footer {
  background: #080E1A;
}

/* Contact form inputs now invert via --color-field / --color-field-border,
   so no dark-only override is needed here. (The rule that used to live at
   this spot hardcoded #1A2744, a leftover from the retired navy palette.) */

/* Form success/error states */
[data-theme="dark"] .form-alert--success {
  background: rgba(47, 122, 79, 0.14);
  border-color: rgba(47, 122, 79, 0.28);
  color: #6fcf8c;
}
[data-theme="dark"] .form-alert--error {
  background: rgba(179, 65, 58, 0.14);
  border-color: rgba(179, 65, 58, 0.28);
  color: #e88c87;
}

/* Citation block */
[data-theme="dark"] .citation-block {
  background: var(--color-bg-mid);
  border-color: var(--color-border);
}

/* Project cards */
[data-theme="dark"] .project-card {
  background: var(--color-bg-mid);
}

/* Lightbox */
[data-theme="dark"] .lightbox {
  background: rgba(5, 8, 18, 0.96);
}

/* Pull quote — tone down the gold tint for dark */
[data-theme="dark"] .pull-quote {
  background: rgba(212, 168, 75, 0.05);
}

/* Impact plate — the navy backing equals the section bg in dark, so give it a
   warm, faintly gilded navy to keep the depth offset legible. */
[data-theme="dark"] .impact-plate__backing {
  background: color-mix(in srgb, var(--color-accent) 16%, var(--color-primary));
}



/* ------------------------------------------------------------
   8. HOMEPAGE SECTIONS
   ------------------------------------------------------------ */

/* — 8a. Hero — grid split text / image ------------------- */
.hero {
  position: relative;
  min-height: 90svh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-bg);
  padding-top: 60px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero__image-col {
    grid-column: 2;
    grid-row: 1;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* children hug their content — no accidental full-width stretch */
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  max-width: 580px;
}

.hero__seal {
  margin-bottom: var(--space-6);
}

/* The header already carries the AO mark on small screens; avoid repeating it
   immediately above the hero eyebrow on mobile. Keep the editorial seal on
   wider layouts where the two-column composition benefits from the cue. */
@media (max-width: 767px) {
  .hero__seal { display: none; }
}

.hero__rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: var(--space-6);
}

@media (min-width: 900px) {
  .hero__content {
    padding: var(--space-20) var(--space-12) var(--space-20) var(--space-12);
    margin-left: auto;
  }
}

.hero__title {
  /* Sized for the ~55%-width split-hero column, not the generic h1 clamp —
     that clamp (up to 120px) overflows "Commissioner" into the image track. */
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 440px;
}

.hero__actions {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* Image column */
.hero__image-col {
  position: relative;
  min-height: 50vh;
}

@media (min-width: 900px) {
  .hero__image-col {
    min-height: 90svh;
  }
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* — 8b. Credentials & Affiliations — icon category grid -- */
.credentials {
  padding-block: var(--space-16);
  background: var(--color-bg);
}

.credentials__eyebrow {
  display: block;
  margin-bottom: var(--space-10);
  max-width: none;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10) var(--space-8);
  margin-bottom: var(--space-16);
}

@media (min-width: 620px) {
  .credentials-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 940px) {
  .credentials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12) var(--space-10);
  }
}

/* Each category = a card: icon, navy label, item list */
.cred-category {
  border-top: 2px solid var(--color-accent);
  padding-top: var(--space-5);
}

.cred-category__icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.cred-category__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-5);
  line-height: 1.2;
}

.cred-category__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cred-category__list li {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

/* Sub-sections: Fellowships & Recognitions / Institutional Affiliations / Current Roles */
.credentials-sub {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
}

.credentials-sub__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.credentials-sub__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.credentials-sub__list li {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.credentials-sub__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.credentials-sub__list--roles li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: baseline;
}

.cred-role__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
}

.cred-role__org {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Institutional affiliations — text lockups, monochrome, no logos */
.affiliations-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-10);
}

.affiliation-item {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .affiliation-item { font-size: var(--text-lg); }
}

/* — 8b-2. Experience Timeline — stacked cards ------------ */
.experience {
  background: var(--color-bg-mid);
}

.timeline {
  max-width: 780px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .timeline-item {
    grid-template-columns: 140px 1fr;
    gap: var(--space-8);
  }
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.timeline-item__years {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.timeline-item__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: var(--space-1);
}

.timeline-item__org {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.timeline-item__desc {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  max-width: 56ch;
}

.current-roles {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-accent);
  max-width: 780px;
}

.current-roles__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.current-roles__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.current-roles__list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: baseline;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.current-roles__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* — 8c. About Teaser — bg-mid, 2-col grid -------------- */
.about-teaser {
  background: var(--color-bg-mid);
  overflow: hidden;
}

.about-teaser__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .about-teaser__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.about-teaser__media {
  position: relative;
  min-height: 50vh;
}

@media (min-width: 900px) {
  .about-teaser__media {
    min-height: 100%;
  }
}

.about-teaser__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.about-teaser__body {
  padding: clamp(var(--space-16), 6vw, var(--space-24)) var(--space-6);
  text-align: center;
}

@media (min-width: 900px) {
  .about-teaser__body {
    padding: var(--space-20) var(--space-16) var(--space-20) var(--space-12);
    text-align: center;
  }
}

.about-teaser__heading {
  max-width: 14ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.about-teaser__text {
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.about-teaser__text p {
  margin-bottom: var(--space-4);
  max-width: 52ch;
  margin-inline: auto;
}
.about-teaser__text p:last-child {
  margin-bottom: 0;
}
.about-teaser__text strong {
  font-weight: 600;
}

.about-teaser__pull-quote {
  max-width: 44ch;
  margin-inline: auto;
  margin-block: var(--space-8);
  padding: var(--space-6) 0;
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  border-left: none;
  text-align: center;
}

.about-teaser__pull-quote p {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.about-teaser__pull-quote cite {
  display: block;
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.about-teaser__rule {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-8) auto;
}

/* Stats — balanced 3-column grid, equal column widths */
.about-teaser__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (max-width: 560px) {
  .about-teaser__stats {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.35;
  margin-top: var(--space-2);
  display: block;
  max-width: 22ch;
  margin-inline: auto;
  text-align: center;
}

/* — 8d. Featured Research ------------------------------- */
.featured-research {
  background: var(--color-bg-mid);
}

.research-list {
  border-top: 1px solid var(--color-border);
  counter-reset: research;
}

.research-row {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: var(--space-2) var(--space-6);
  align-items: baseline;
  counter-increment: research;
  padding: var(--space-6) var(--space-4) var(--space-6) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--t-fast) var(--ease-out),
              padding-left var(--t-fast) var(--ease-out);
}

.research-row::before {
  content: counter(research, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
  padding-top: 0.35rem;
  transition: color var(--t-fast) var(--ease-out);
}

.research-row__arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--color-accent);
  font-size: var(--text-xl);
  line-height: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.research-row:hover,
.research-row:focus-visible {
  background: var(--accent-tint);
  padding-left: var(--space-4);
  outline: none;
}
.research-row:hover::before,
.research-row:focus-visible::before { color: var(--color-accent); }
.research-row:hover .research-row__title,
.research-row:focus-visible .research-row__title { color: var(--accent-strong); }
.research-row:hover .research-row__arrow,
.research-row:focus-visible .research-row__arrow { opacity: 1; transform: translateX(0); }

.research-row__title {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 1.6vw, var(--text-xl));
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: var(--space-1);
  transition: color var(--t-fast) var(--ease-out);
}

.research-row__meta {
  grid-column: 2;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .research-row { grid-template-columns: 2.2rem 1fr; }
  .research-row__arrow { display: none; }
}

/* — 8e. CTA Strip — dark navy, white text -------------- */
.cta-strip {
  background: var(--color-primary);
  padding-block: clamp(var(--space-16), 6vw, var(--space-20));
}

.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.cta-strip h2 {
  color: var(--color-white);
  margin-bottom: 0;
  max-width: 18ch;
}

.cta-strip__actions {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* — 8f-2. Kaibeya Care Foundation — cream card ------------ */
.kaibeya {
  background: var(--color-bg);
}

.kaibeya-card {
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.kaibeya-card__heading {
  margin-bottom: var(--space-5);
}

.kaibeya-card__text {
  color: var(--color-muted);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* — 8f-2a. Kaibeya foundation page ------------------------ */
.kaibeya-page__hero {
  background: var(--color-primary);
  color: #fff;
  padding: clamp(7rem, 15vw, 12rem) 0 clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}

.kaibeya-page__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-10);
  align-items: end;
}

.kaibeya-page__intro { max-width: 48rem; }
.kaibeya-page__intro .eyebrow { color: var(--color-accent); }
.kaibeya-page__hero h1 { color: #fff; margin: var(--space-5) 0 var(--space-6); }
.kaibeya-page__dek { color: rgba(255, 255, 255, .72); max-width: 40ch; font-size: var(--text-lg); }
.kaibeya-page__marker { color: var(--color-accent); font-size: clamp(4rem, 13vw, 11rem); font-weight: 700; letter-spacing: -.08em; line-height: .8; }

.kaibeya-page__story { background: var(--color-bg); }
.kaibeya-page__story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(var(--space-10), 10vw, var(--space-24)); }
.kaibeya-page__story h2 { max-width: 12ch; margin-top: var(--space-5); }
.kaibeya-page__copy { max-width: 60ch; color: var(--color-muted); }
.kaibeya-page__copy p + p { margin-top: var(--space-6); }
.kaibeya-page__note { background: var(--color-bg-mid); padding: 0 0 clamp(5rem, 10vw, 8rem); }
.kaibeya-page__note-card { border-top: 1px solid var(--color-border); padding-top: var(--space-8); max-width: 50rem; }
.kaibeya-page__note-card p { color: var(--color-muted); max-width: 55ch; margin-top: var(--space-4); }

@media (max-width: 700px) {
  .kaibeya-page__hero-inner, .kaibeya-page__story-grid { grid-template-columns: 1fr; }
  .kaibeya-page__marker { font-size: 5rem; }
}

/* — 8f. Selected impact — editorial "case file" ------------
   A framed photographic plate cross-fades through the markers of the work,
   in step with a numbered ledger. On-palette navy/gold/cream throughout. */
.achievements {
  background: var(--color-bg);
  overflow: hidden;
}

.achievements__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(var(--space-10), 7vw, var(--space-24));
  align-items: center;
}

.achievements__intro { position: relative; z-index: 1; }
.achievements__title {
  max-width: 14ch;
  margin-block: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--color-text);
}
.achievements__lead { max-width: 40ch; }

/* Numbered, clickable ledger — doubles as the section's tab control */
.impact-ledger {
  margin-top: clamp(var(--space-8), 3vw, var(--space-12));
  border-top: 1px solid var(--color-border);
}
.impact-ledger__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0 var(--space-5) var(--space-4);
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out),
              padding-left var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out);
}
.impact-ledger__item:hover { padding-left: var(--space-5); }
.impact-ledger__item.is-active {
  border-left-color: var(--color-accent);
  padding-left: var(--space-5);
  background: linear-gradient(90deg, var(--accent-weak), transparent 70%);
}
.impact-ledger__item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.impact-ledger__num {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding-top: 0.28rem;
  transition: color var(--t-fast) var(--ease-out);
}
.impact-ledger__item.is-active .impact-ledger__num { color: var(--color-accent); }
.impact-ledger__body { display: block; }
.impact-ledger__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.impact-ledger__desc {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 44ch;
}

/* Framed plate — navy backing offset for depth, gold index tab */
.achievements__visual { position: relative; }
.impact-plate {
  position: relative;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.impact-plate__backing {
  position: absolute;
  inset: var(--space-6) calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-6);
  z-index: -1;
  background: var(--color-primary);
  border-radius: var(--radius-md);
}
.impact-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  outline: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  outline-offset: -1px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms var(--ease-out-soft), transform 900ms var(--ease-out-soft);
}
.impact-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.impact-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.impact-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.25rem;
  padding: var(--space-8) var(--space-5) var(--space-4);
  background: linear-gradient(to top, rgba(13, 21, 38, 0.9) 10%, rgba(13, 21, 38, 0.55) 55%, transparent);
}
.impact-slide__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: #fff;
}
.impact-slide__credit {
  font-size: var(--text-xs);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
}
.impact-plate__index {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.7rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--on-accent);
  background: var(--color-accent);
  border-radius: var(--radius-sm);
}
.impact-plate__index [data-impact-current] { font-size: var(--text-sm); }

@media (max-width: 860px) {
  .achievements__inner { grid-template-columns: 1fr; gap: clamp(var(--space-10), 8vw, var(--space-16)); }
  .achievements__visual { order: -1; max-width: 30rem; }
  .impact-plate__backing { inset: var(--space-4) calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .impact-slide { transition: opacity 0.01ms; transform: none; }
  .impact-slide.is-active { transform: none; }
}

/* — 8g. Awards Accordion — recognition section ------------ */
.awards-accordion {
  background: var(--color-bg-mid);
}

.accordion-list {
  max-width: 720px;
  margin-inline: auto;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:first-child {
  border-top: 1px solid var(--color-border);
}

.accordion-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.accordion-item__trigger:hover {
  color: var(--color-accent);
}

.accordion-item__trigger[aria-expanded="true"] {
  color: var(--color-accent);
}

.accordion-item__name {
  flex: 1;
  padding-right: var(--space-4);
}

.accordion-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease);
}

.accordion-item.is-open .accordion-item__panel {
  max-height: 300px;
}

.accordion-item__content {
  padding: 0 0 var(--space-5) var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

.accordion-item__year {
  display: inline;
  font-weight: 600;
  color: var(--color-accent);
}

.accordion-item__sep {
  display: inline;
  margin-inline: var(--space-2);
  color: var(--color-border);
}

.accordion-item__institution {
  display: inline;
  color: var(--color-muted);
}

.accordion-item__desc {
  margin-top: var(--space-3);
  max-width: 52ch;
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* — 8h. Media Mentions — dark navy, white text ----------- */
.media-mentions {
  background: var(--color-primary);
}

.media-mentions .section-header__title {
  color: var(--color-white);
}

.media-mentions__intro {
  max-width: 42ch;
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.64);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.media-mentions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 600px) {
  .media-mentions__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .media-mentions__grid {
    gap: var(--space-8);
  }
}

.media-mention {
  padding-block: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.media-mention__source {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.media-mention__quote {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: var(--space-4);
}

.media-mention__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: opacity var(--duration) var(--ease);
}

.media-mention__link:hover {
  opacity: 0.7;
}

.media-mention__link .arrow {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  transition: transform var(--duration) var(--ease);
}

.media-mention__link:hover .arrow {
  transform: translateX(4px);
}

.speaking-engagements {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.speaking-engagements__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.speaking-engagements__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.speaking-engagements__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.speaking-engagements__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.speaking-engagements__event {
  font-family: var(--font-display);
  font-weight: 500;
}

.speaking-engagements__meta {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.media-mentions__action {
  text-align: center;
}

/* — 8i-b. Pull Quote — full-width pacing break --------------- */
.pull-quote {
  background: color-mix(in srgb, var(--color-accent) 9%, var(--color-bg));
  padding-block: clamp(var(--space-20), 8vw, var(--space-32));
}

.pull-quote__inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.pull-quote__text {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(var(--text-2xl), 3.6vw, var(--text-5xl));
  line-height: 1.35;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

.pull-quote__attribution {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* — 8i. Hero eyebrow — clean credential label (no box) ----- */
/* Shared eyebrow pattern — hero + page-header use identical inline-flex
   layout; the class is set on the specific element for placement context
   only (margin, etc.). */
.hero__eyebrow,
.page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-6);
}

.hero__eyebrow-rule,
.page-header__eyebrow-rule {
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* — 8j. Research DOI meta line --------------------------- */
.research-row__doi {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
  font-family: monospace;
}

/* — 8j. Editorial hero refresh --------------------------------
   The opening view is treated as a journal cover: a short index,
   deliberate type scale, and one restrained signature gesture. */
.hero__content {
  position: relative;
  isolation: isolate;
}

.hero__content::before {
  content: 'AO';
  position: absolute;
  z-index: -1;
  top: 12%;
  right: -0.08em;
  color: var(--color-primary);
  opacity: 0.035;
  font-family: var(--font-script);
  font-size: clamp(10rem, 22vw, 20rem);
  line-height: 0.7;
  pointer-events: none;
}

.hero__index {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--space-5);
  color: var(--color-muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.hero__index-number {
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.hero__index-label {
  padding-left: 0.65rem;
  border-left: 1px solid var(--color-border);
}

.hero__title {
  max-width: 11ch;
  font-size: clamp(3.5rem, 15vw, 7.5rem);
  line-height: 0.91;
  letter-spacing: -0.045em;
}

.hero__title strong {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-decoration: underline;
  text-decoration-thickness: 0.038em;
  text-underline-offset: 0.14em;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
}

.hero__subtitle {
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.6;
}

.hero__image-col {
  overflow: hidden;
}

.hero__image {
  transition: transform 1.1s var(--ease-out-soft), filter 700ms var(--ease-out);
}

.hero__image-col.is-visible .hero__image {
  transform: scale(1.01);
}

@media (max-width: 767px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__image-col {
    order: -1;
    min-height: 62svh;
    height: 62svh;
    border-bottom: 4px solid var(--color-accent);
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    min-height: auto;
    padding: 3.5rem var(--space-6) 4.5rem;
  }

  .hero__content::before {
    top: 25%;
    right: -0.1em;
    font-size: 14rem;
  }

  .hero__eyebrow {
    gap: 0.65rem;
    margin-bottom: var(--space-8);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .hero__title {
    margin-bottom: var(--space-8);
  }

  .hero__rule {
    width: 44px;
    margin-bottom: var(--space-5);
  }

  .hero__subtitle {
    margin-bottom: var(--space-8);
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-5);
  }

  .hero__actions .btn--primary,
  .hero__actions .btn--text {
    width: 100%;
    justify-content: center;
  }

  .hero__image {
    object-position: center 15%;
  }
}

@media (min-width: 900px) {
  .hero__content {
    padding-block: var(--space-20);
  }

  .hero__title {
    max-width: 12ch;
  }
}

/* ---- Theme FAB — subtle, always reachable utility control ---- */
.theme-fab {
  position: fixed;
  right: max(var(--space-5), env(safe-area-inset-right));
  bottom: max(var(--space-5), env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0.55;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity var(--t-hover) var(--ease-out),
              color var(--t-hover) var(--ease-out),
              background-color var(--t-hover) var(--ease-out),
              border-color var(--t-hover) var(--ease-out),
              transform var(--t-hover) var(--ease-out);
}

.theme-fab:hover {
  opacity: 1;
  color: var(--color-accent);
  border-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
  transform: translateY(-2px);
}

.theme-fab:focus-visible {
  outline: none;
  opacity: 1;
  box-shadow: var(--shadow-md), var(--focus-ring);
}

.theme-fab__icon-wrap {
  position: relative;
  width: 19px;
  height: 19px;
}

.theme-fab__icon {
  position: absolute;
  inset: 0;
  width: 19px;
  height: 19px;
  transition: opacity var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

.theme-fab__icon--sun  { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.theme-fab__icon--moon { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="dark"] .theme-fab__icon--sun  { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="dark"] .theme-fab__icon--moon { opacity: 0; transform: scale(0.5) rotate(90deg); }

/* The open mobile navigation is modal; keep the utility control out of its way. */
@media (max-width: 767px) {
  body.nav-open .theme-fab { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-fab,
  .theme-fab__icon { transition: none; }
  .theme-fab:hover { transform: none; }
}

/* ------------------------------------------------------------
   9. ANIMATIONS
   ------------------------------------------------------------ */
/* Duration + easing matched to the reference: long (1s-class), hard
   expo-out deceleration reads considerably more "premium" than a quick
   ease. Distance driven by the --reveal-x/y tokens, not hardcoded. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(var(--reveal-y)); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(calc(-1 * var(--reveal-x))); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(var(--reveal-x)); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animation classes — applied via JS IntersectionObserver */
.animate-fade-up,
.animate-fade-in,
.animate-slide-left,
.animate-slide-right {
  opacity: 0;
}

.animate-fade-up.is-visible {
  animation: fadeUp var(--t-reveal) var(--ease-expo-out) forwards;
}

.animate-fade-in.is-visible {
  animation: fadeIn var(--t-reveal) var(--ease-expo-out) forwards;
}

.animate-slide-left.is-visible {
  animation: slideInLeft var(--t-reveal) var(--ease-expo-out) forwards;
}

.animate-slide-right.is-visible {
  animation: slideInRight var(--t-reveal) var(--ease-expo-out) forwards;
}

/* Stagger delays — clean 100ms/step, same cadence as the reference */
.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }
.stagger-6 { animation-delay: 600ms; }

/* Stat counter animation */
.stat-item.is-visible .stat-item__number {
  animation: countUp 400ms var(--ease) forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-fade-up,
  .animate-fade-in,
  .animate-slide-left,
  .animate-slide-right {
    opacity: 1;
  }
}

/* ------------------------------------------------------------
   10. POST / PAGE TEMPLATES
   ------------------------------------------------------------ */
/* ---- Shared page-header component -----------------------------
   One template, every interior page. Locked title scale (matches the
   reference's discipline: the same heading treatment everywhere, no
   per-page one-off sizing) with an optional full-bleed photo variant. */
.page-header {
  position: relative;
  padding-top: calc(60px + var(--space-20));
  padding-bottom: var(--space-12);
  margin-bottom: var(--space-12);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.page-header__inner {
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .page-header { padding-inline: var(--space-12); }
}

/* Locked scale — every interior page title renders at the same size.
   No per-template clamp overrides. */
.page-header__title,
.entry-title {
  font-size: clamp(var(--text-4xl), 4.2vw, var(--text-6xl));
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  max-width: 16ch;
}

/* Mixed-weight emphasis inside a title — the device the reference uses
   repeatedly: a regular lead-in, then a heavier, accent-tinted key phrase. */
.page-header__title strong,
.entry-title strong {
  font-weight: 800;
  color: var(--color-accent);
}

.page-header__lead {
  max-width: 60ch;
  margin-bottom: 0;
}

.page-header__subtitle {
  max-width: 56ch;
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---- Banner variant — full-bleed photo, content overlaid ------ */
.page-header--banner {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: var(--space-16);
  border-bottom: none;
  overflow: hidden;
}

.page-header__media {
  position: relative;
  height: clamp(360px, 46vw, 560px);
  margin-top: 60px; /* clears the fixed site header */
}

.page-header__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 24, 20, 0.78) 0%, rgba(27, 24, 20, 0.25) 45%, transparent 75%);
}

.page-header--banner .page-header__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: var(--space-10);
}

.page-header--banner .page-header__title,
.page-header--banner .entry-title {
  color: var(--color-white);
}

.page-header--banner .page-header__lead {
  color: rgba(255, 255, 255, 0.82);
}

.entry-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.entry-content {
  max-width: var(--content-w);
  margin-inline: auto;
}

.entry-content p {
  font-size: var(--text-base);
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.entry-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.entry-content a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--duration) var(--ease);
}

.entry-content a:hover {
  border-color: var(--color-accent);
}

.entry-content blockquote {
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-6);
  margin-block: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}

.citation-block {
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  margin-block: var(--space-10);
}

.citation-block__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.citation-block__text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

.citation-block__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* Single-post footer (back-links, co-author credit) */
.entry-footer__inner {
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-12);
}

.entry-footer__coauthors {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.entry-footer__links {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* Archive fallback list (generic post types / categories) */
.archive-entry {
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.archive-entry__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.archive-empty {
  text-align: center;
  padding-block: var(--space-16);
}

.archive-content { padding-bottom: var(--space-24); }

/* ---- Projects grid / card — used by the project archive -------
   (Also available to any homepage section that wants it; currently
   only /projects/ renders these, by deliberate editorial choice.) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-mid);
  overflow: hidden;
}

.project-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.project-card:hover .project-card__image img {
  transform: scale(1.04);
}

.project-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.project-card__title {
  font-size: var(--text-xl);
  line-height: 1.25;
  margin: 0;
}

.project-card__title a { color: var(--color-text); }

.project-card__body p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  flex: 1;
}

/* ---- Gallery — album archive cards ----------------------- */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.album-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.album-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-mid);
  border-radius: var(--radius-md);
}

.album-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.album-card:hover .album-card__image img {
  transform: scale(1.04);
}

.album-card__count {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  padding: 0.3rem 0.7rem;
  background: rgba(27, 24, 20, 0.65);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
}

.album-card__body {
  padding-top: var(--space-4);
}

.album-card__title {
  font-size: var(--text-xl);
  line-height: 1.25;
  margin: 0 0 var(--space-1);
  color: var(--color-text);
  transition: color var(--t-hover) var(--ease-out);
}

.album-card:hover .album-card__title { color: var(--color-accent); }

.album-card__meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---- Gallery — image grid inside a single album ----------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  padding-bottom: var(--space-16);
}

.entry-content--album { margin-bottom: var(--space-10); }

.album-grid__item {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-bg-mid);
}

.album-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-hover) var(--ease-out);
}

.album-grid__item:hover img,
.album-grid__item:focus-visible img {
  transform: scale(1.05);
}

.album-grid__item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---- Lightbox overlay -------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 9, 8, 0.94);
  padding: var(--space-8);
}

.lightbox[hidden] { display: none; }

body.lightbox-open { overflow: hidden; }

.lightbox__figure {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.lightbox__image {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 60ch;
}
.lightbox__caption[hidden] { display: none; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lightbox__close { top: var(--space-6); right: var(--space-6); }
.lightbox__nav--prev { left: var(--space-6); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--space-6); top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__nav--prev { left: var(--space-2); }
  .lightbox__nav--next { right: var(--space-2); }
  .lightbox__close { top: var(--space-3); right: var(--space-3); }
}

/* ---- Contact page + form ------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-24);
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); }
}

.contact-form-wrap { max-width: 560px; }

.contact-form__feedback {
  margin-block: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

.contact-form__feedback--success {
  background: var(--color-success-tint);
  border-color: color-mix(in srgb, var(--color-success) 30%, transparent);
  color: var(--color-success);
}

.contact-form__feedback--error {
  background: var(--color-error-tint);
  border-color: color-mix(in srgb, var(--color-error) 30%, transparent);
  color: var(--color-error);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-form__field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-field);
  transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}

/* Firefox ships placeholders at opacity 0.54; reset it and drive the colour
   from --color-muted, which clears 4.5:1 on the fill in both themes
   (5.43:1 light, 5.18:1 dark). Unstyled, these fell back to the UA's
   #757575 — only 3.22:1 on the dark fill. */
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.contact-form__field textarea { resize: vertical; min-height: 8rem; }

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-accent);
}

/* Keyboard focus gets a real outline, not just the box-shadow ring: shadows
   are dropped entirely in forced-colors mode, outlines are not. Pointer
   focus on a <select> stops at the border-color change above. */
.contact-form__field input:focus-visible,
.contact-form__field select:focus-visible,
.contact-form__field textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}

.contact-form__field.has-error input,
.contact-form__field.has-error textarea {
  border-color: var(--color-error);
}

.contact-form__field.has-error label { color: var(--color-error); }

.contact-form .btn { align-self: flex-start; margin-top: var(--space-2); }

/* Honeypot — visually hidden but present in the DOM and tab order is
   removed via tabindex="-1" in the markup; screen readers skip it via
   aria-hidden on the wrapper. */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------
   11. ACCESSIBILITY
   ------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ------------------------------------------------------------
   12. ARCHIVE & PAGINATION
   ------------------------------------------------------------ */
.pagination {
  margin-top: var(--space-12);
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  gap: var(--space-2);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.pagination .page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-size: var(--text-lg);
  line-height: 1;
}

.entry-excerpt {
  margin-top: var(--space-4);
  max-width: 56ch;
}

.site-main {
  min-height: 60vh;
}

/* ============================================================
   11. ABOUT PAGE  (scoped `.about-*`)
   Editorial, portrait-led profile. Dark ink/navy + warm cream +
   copper/gold accents, asymmetrical composition. Self-contained:
   shares only the header/footer, tokens, `.btn` and the reveal
   animation classes with the rest of the theme.
   ============================================================ */
.about {
  /* Scoped palette. Cream/ink flip automatically with the theme via
     --color-bg / --color-text; copper is an about-only accent. */
  --about-cream:        var(--color-bg);
  --about-panel:        var(--color-white);
  --about-copper:       #B87333;   /* decorative rules / hairlines */
  --about-copper-text:  #9A5B2A;   /* AA on cream for small labels */
  --about-gold:         var(--color-accent);
  --about-ink:          #002E1A;   /* fixed deep green for the impact panel */
  --about-ink-text:     #ECE6DA;
  --about-ink-copper:   #D89767;

  background: var(--about-cream);
  color: var(--color-text);
  overflow-x: clip;
}
[data-theme="dark"] .about {
  --about-copper:      #C88A5A;
  --about-copper-text: #D89767;
  --about-panel:       var(--color-bg-mid);
}

.about > section,
.about > header {
  padding-inline: var(--space-6);
}
.about-masthead__inner,
.about-story__inner,
.about-collage,
.about-notes__inner,
.about-impact__inner,
.about-cta__inner {
  max-width: var(--container);
  margin-inline: auto;
}

/* ---- shared eyebrow uses the global `.eyebrow` component ---- */

/* ---- reusable figure ---- */
.about-figure { margin: 0; }
.about-figure__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--about-copper) 8%, var(--about-cream));
  box-shadow: var(--shadow-md);
  outline: 1px solid color-mix(in srgb, var(--about-copper) 22%, transparent);
  outline-offset: -1px;
}
.about-figure__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-expo-out);
}
.about-figure__frame:hover img { transform: scale(1.035); }
/* Figcaption removed — images render clean without subtitles/credits.
   Preserved for reference in case captions are re-introduced later.
.about-figure__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  line-height: 1.4;
}
.about-figure__note {
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.about-figure__credit {
  color: var(--color-muted);
  font-style: normal;
}
.about-figure__credit::before { content: "Source: "; font-style: normal; }
*/

/* ---- 1. MASTHEAD ---- */
.about-masthead {
  padding-top: clamp(var(--space-16), 9vw, var(--space-32));
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-24));
}
.about-masthead__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.about-masthead__name {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-size: clamp(3.5rem, 11vw, 8rem);
  margin: 0 0 var(--space-6);
}
.about-masthead__name-given {
  font-weight: 400;
  letter-spacing: -0.015em;
}
.about-masthead__name em {
  font-style: normal;
  color: var(--about-copper-text);
}
.about-masthead__descriptor {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  max-width: 34ch;
}
.about-masthead__intro {
  font-size: var(--text-xl);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--color-text);
  margin: 0;
}
.about-masthead__portrait .about-figure--portrait .about-figure__frame {
  aspect-ratio: 7 / 9;
  box-shadow: var(--shadow-lg);
}
/* offset the portrait a touch for asymmetry */
.about-masthead__portrait { transform: translateY(-0.5rem); }

/* ---- 2. STORY ---- */
.about-story__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}
.about-story__aside { position: sticky; top: var(--space-16); }
.about-story__aside .about-figure--square .about-figure__frame { aspect-ratio: 1 / 1; }
.about-story__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
  max-width: 20ch;
}
.about-story__prose p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text) 88%, var(--color-muted));
  margin: 0 0 var(--space-5);
  max-width: 62ch;
}
.about-story__lead { color: var(--color-text) !important; }
.about-story__lead::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.74;
  font-weight: 600;
  padding: 0.05em 0.12em 0 0;
  color: var(--about-copper-text);
}
.about-pullquote {
  margin: var(--space-10) 0 0;
  padding: var(--space-6) 0 var(--space-2) var(--space-8);
  border-left: 3px solid var(--about-copper);
}
.about-pullquote p {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.35rem, 2.4vw, var(--text-3xl));
  line-height: 1.32;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  max-width: 30ch;
}
.about-pullquote cite {
  font-style: normal;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--about-copper-text);
}

/* ---- 3. COLLAGE (asymmetric masonry) ---- */
.about-collage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.about-collage__head .eyebrow { margin-bottom: 0; }
.about-collage__intro {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-xl);
  color: var(--color-muted);
  margin: 0;
  max-width: 40ch;
}
.about-collage__grid {
  columns: 2;
  column-gap: clamp(var(--space-4), 2.5vw, var(--space-8));
}
.about-collage__grid .about-figure {
  break-inside: avoid;
  margin-bottom: clamp(var(--space-4), 2.5vw, var(--space-8));
}
.about-collage__grid .about-figure--wide .about-figure__frame { aspect-ratio: 16 / 10; }
.about-collage__grid .about-figure--tall .about-figure__frame { aspect-ratio: 3 / 4; }

/* ---- 4. FIELD NOTES ---- */
.about-notes {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--about-copper) 5%, var(--about-cream)),
      var(--about-cream));
}
.about-notes__head { margin-bottom: var(--space-12); }
.about-notes__heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, var(--text-4xl));
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.about-timeline { list-style: none; margin: 0; padding: 0; }
.about-timeline__item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}
.about-timeline__item:last-child { border-bottom: 1px solid var(--color-border); }
.about-timeline__years {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--about-copper-text);
  padding-top: 0.35rem;
}
.about-timeline__role {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-1);
}
.about-timeline__org {
  display: block;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.about-timeline__note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 85%, var(--color-muted));
  max-width: 54ch;
}
.about-recognition { margin-top: var(--space-12); }
.about-recognition__heading {
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 var(--space-5);
}
.about-recognition__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.about-recognition__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  background: var(--about-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 2px solid var(--about-copper);
}
.about-recognition__year {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--about-copper-text);
}
.about-recognition__what {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
}
.about-recognition__by { font-size: var(--text-sm); color: var(--color-muted); }

/* ---- Logo marquee (replaces text-only list) ---- */
.about-recognition__marquee {
  --logo-size-max-w: 120px;
  --logo-size-max-h: 44px;
  --logo-gap: 3rem;

  margin-top: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--about-copper);
}

.about-recognition__marquee-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--logo-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-recognition__logo-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.about-recognition__marquee-list.is-visible .about-recognition__logo-item {
  opacity: 1;
  transform: translateY(0);
}

/* stagger — nth-child delay ladder, 8 items max */
.about-recognition__marquee-list.is-visible .about-recognition__logo-item:nth-child(1) { transition-delay: 0ms; }
.about-recognition__marquee-list.is-visible .about-recognition__logo-item:nth-child(2) { transition-delay: 60ms; }
.about-recognition__marquee-list.is-visible .about-recognition__logo-item:nth-child(3) { transition-delay: 120ms; }
.about-recognition__marquee-list.is-visible .about-recognition__logo-item:nth-child(4) { transition-delay: 180ms; }
.about-recognition__marquee-list.is-visible .about-recognition__logo-item:nth-child(5) { transition-delay: 240ms; }
.about-recognition__marquee-list.is-visible .about-recognition__logo-item:nth-child(6) { transition-delay: 300ms; }
.about-recognition__marquee-list.is-visible .about-recognition__logo-item:nth-child(7) { transition-delay: 360ms; }
.about-recognition__marquee-list.is-visible .about-recognition__logo-item:nth-child(8) { transition-delay: 420ms; }

.about-recognition__logo {
  display: block;
  max-width: var(--logo-size-max-w);
  max-height: var(--logo-size-max-h);
  width: auto;
  height: auto;
  object-fit: contain;
}

.about-recognition__pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--about-copper-text);
  border: 1px solid var(--about-copper);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}

/* Responsive — grid with uniform cells for clean alignment */
@media (max-width: 768px) {
  .about-recognition__marquee-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-6) var(--space-5);
  }

  .about-recognition__logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
  }

  .about-recognition__logo {
    max-width: 100px;
    max-height: 40px;
  }
}

/* Respect reduced motion — show everything statically */
@media (prefers-reduced-motion: reduce) {
  .about-recognition__logo-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- 5. IMPACT (fixed dark ink panel) ---- */
.about-impact__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
  background: var(--about-ink);
  color: var(--about-ink-text);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 5vw, var(--space-20));
  box-shadow: var(--shadow-lg);
  background-image:
    radial-gradient(120% 90% at 100% 0%,
      color-mix(in srgb, var(--about-ink-copper) 16%, transparent), transparent 55%);
}
.about-impact__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--space-6);
  max-width: 16ch;
}
.about-impact__text p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: color-mix(in srgb, var(--about-ink-text) 92%, transparent);
  margin: 0 0 var(--space-5);
  max-width: 54ch;
}
.about-impact__text strong { color: #fff; font-weight: 600; }
.about-impact__strip-heading {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--about-ink-copper);
  margin: 0 0 var(--space-4);
}
.about-impact__media { display: grid; gap: var(--space-5); }
.about-impact__media .about-figure__frame {
  aspect-ratio: 16 / 9;
  outline-color: color-mix(in srgb, var(--about-ink-copper) 40%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.about-impact__media .about-figure__note { color: var(--about-ink-text); }
.about-impact__media .about-figure__credit {
  color: color-mix(in srgb, var(--about-ink-text) 65%, transparent);
}

/* ---- 6. Selected conversations ---- */
.about-conversations { background: var(--about-panel); padding-block: clamp(var(--space-16), 10vw, var(--space-32)); }
.about-conversations__inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
.about-conversations__head { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-6); align-items: end; margin-bottom: var(--space-10); }
.about-conversations__heading { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, var(--text-6xl)); font-weight: 500; line-height: .98; }
.about-conversations__head p { max-width: 34ch; margin: 0; color: var(--color-muted); }
.about-conversations__list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--color-border); }
.about-conversation { display: grid; grid-template-columns: 7rem 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.about-conversation:nth-child(odd) { margin-right: var(--space-8); }
.about-conversation:nth-child(even) { padding-left: var(--space-8); }
.about-conversation:hover, .about-conversation:focus-visible { padding-left: var(--space-2); color: var(--about-copper-text); }
.about-conversation__type { color: var(--about-copper-text); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; }
.about-conversation__title { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.15; }
.about-conversation__source { color: var(--color-muted); font-size: var(--text-xs); white-space: nowrap; }
.about-conversations__archive { margin: var(--space-8) 0 0; color: var(--color-muted); font-size: var(--text-sm); }
.about-conversations__archive a { color: var(--about-copper-text); text-underline-offset: .2em; }
@media (max-width: 700px) {
  .about-conversations__head, .about-conversations__list { grid-template-columns: 1fr; }
  .about-conversation:nth-child(odd), .about-conversation:nth-child(even) { margin-right: 0; padding-left: 0; }
  .about-conversation { grid-template-columns: 5.5rem 1fr; }
  .about-conversation__source { grid-column: 2; }
}

/* ---- 7. CTA ---- */


/* ---- Signature flourish (from brand kit) ---- */
.about-signature {
  text-align: left;
}
.about-signature__mark {
  display: inline-block;
  transition: opacity 300ms var(--ease-out);
}
.about-signature__mark:hover {
  opacity: 1 !important;
}
.about-teaser__cite-signature img,
.about-pullquote cite img {
  display: inline-block;
  max-width: 200px;
  height: auto;
  opacity: 0.8;
  color: var(--color-text);
  vertical-align: middle;
}
.about-pullquote cite img { margin-top: var(--space-2); }

/* Dark mode — signature must be light on dark backgrounds */
[data-theme="dark"] .about-teaser__cite-signature img,
[data-theme="dark"] .about-pullquote cite img,
[data-theme="dark"] .about-signature__mark {
  filter: brightness(0) invert(1);
  opacity: 1 !important;
}

.about-cta {
  text-align: center;
}
.about-cta__kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--about-copper-text);
  margin: 0 0 var(--space-4);
}
.about-cta__heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, var(--text-6xl));
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0 auto var(--space-10);
  max-width: 18ch;
}
.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .about-masthead__inner,
  .about-story__inner,
  .about-impact__inner {
    grid-template-columns: 1fr;
  }
  .about-masthead__portrait {
    transform: none;
    max-width: 30rem;
    margin-inline: auto;
    order: -1;              /* portrait leads on narrow screens */
  }
  .about-story__aside {
    position: static;
    max-width: 24rem;
  }
}
@media (max-width: 640px) {
  .about > section,
  .about > header { padding-inline: var(--space-5); }
  .about-collage__grid { columns: 1; }
  .about-timeline__item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .about-timeline__years { padding-top: 0; }
  .about-cta__actions { flex-direction: column; }
  .about-cta__actions .btn { width: 100%; justify-content: center; }
}

/* ---- reduced motion (in addition to the global reset) ---- */
@media (prefers-reduced-motion: reduce) {
  .about-figure__frame img { transition: none; }
  .about-figure__frame:hover img { transform: none; }
  .about-masthead__portrait { transform: none; }
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section {
  padding-top: var(--space-16);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-panel__info {
  padding: var(--space-12);
  background: var(--color-bg-mid);
  border-right: 1px solid var(--color-border);
}


.contact-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-detail + .contact-detail {
  margin-top: var(--space-6);
}

.contact-detail__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-detail__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
}

a.contact-detail__value:hover {
  color: var(--color-accent);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.contact-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: transparent;
  transition: color var(--t-hover) var(--ease-out),
              background-color var(--t-hover) var(--ease-out);
}

.contact-social__link:hover {
  color: var(--color-accent);
  background: var(--accent-weak);
}

/* Platform-specific hover colours */
.contact-social__link:hover .contact-social__icon--linkedin { color: #0A66C2; }
.contact-social__link:hover .contact-social__icon--instagram { color: #E4405F; }
.contact-social__link:hover .contact-social__icon--x { color: inherit; }

/* Dark mode: X logo becomes white */
[data-theme="dark"] .contact-social__link:hover .contact-social__icon--x { color: #FFFFFF; }

.contact-social__icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .contact-social__link {
    transition: none;
  }
}

.contact-panel__note {
  margin: var(--space-10) 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.contact-panel__form {
  padding: var(--space-12);
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: var(--space-3);
}

.contact-form__honeypot {
  opacity: 0;
  position: absolute;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel__info {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .contact-panel__info,
  .contact-panel__form {
    padding: var(--space-8);
  }

  .contact-form__submit {
    width: 100%;
    justify-content: center;
  }
}
