/* ==========================================================================
   Donald Harris, Ph.D., Personal Site Design System
   Version 1.0

   Contents
     1.  Tokens
     2.  Reset and base
     3.  Layout primitives
     4.  Typography
     5.  Buttons and links
     6.  Header and navigation
     7.  Hero
     8.  Section furniture (eyebrow, lede, rules)
     9.  Cards and grids
     10. Stat strips and marquee
     11. Media blocks, full-bleed panels, split layouts
     12. Lists: publications, timeline, index rows
     13. Quote and callout
     14. Accordion
     15. Forms
     16. Footer
     17. Motion and scroll reveal
     18. Utilities
     19. Responsive
     20. Print and reduced motion
   ========================================================================== */


/* 1. TOKENS ================================================================ */

:root {
  /* Core neutrals, the site is built on near-black and warm paper */
  --ink:          #0A0B0D;   /* near black, the dominant surface */
  --ink-2:        #131519;   /* raised dark surface */
  --ink-3:        #1D2026;   /* dark hairlines, dark cards */
  --paper:        #F5F3EE;   /* warm off white page background */
  --paper-2:      #EAE7E0;   /* alternating light section */
  --white:        #FFFFFF;

  /* Text */
  --text:         #14161A;   /* body text on paper */
  --text-mute:    #5C6068;   /* secondary text on paper */
  --text-faint:   #8A8E96;
  --on-dark:      #F5F3EE;   /* body text on ink */
  --on-dark-mute: #9DA3AD;   /* secondary text on ink */
  --on-dark-faint:#63696F;

  /* Hairlines */
  --line:         #D8D4CB;
  --line-dark:    #262A31;

  /* Accent, one confident signal color, used sparingly */
  --accent:       #2E5BFF;
  --accent-hi:    #5C82FF;
  --accent-deep:  #1B3ECC;
  --accent-soft:  rgba(46, 91, 255, 0.10);
  --warm:         #FF6A3D;   /* secondary signal, used very sparingly */

  /* Type families */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Consolas', monospace;

  /* Fluid type scale */
  --fs-mega:    clamp(3rem, 9.5vw, 9.5rem);
  --fs-display: clamp(2.6rem, 7vw, 6.25rem);
  --fs-h1:      clamp(2.2rem, 5vw, 4.25rem);
  --fs-h2:      clamp(1.75rem, 3.4vw, 3rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.75rem);
  --fs-h4:      clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-lede:    clamp(1.125rem, 1.65vw, 1.5rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-label:   0.75rem;

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;
  --section-y: clamp(4.5rem, 10vw, 9rem);

  /* Layout */
  --wrap:        1240px;
  --wrap-narrow: 780px;
  --wrap-wide:   1560px;
  --gutter:      clamp(1.25rem, 4vw, 3.5rem);
  --header-h:    72px;

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       0.45s;
  --dur-fast:  0.2s;

  /* Radii and shadow, kept minimal on purpose */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(10, 11, 13, 0.06), 0 8px 24px rgba(10, 11, 13, 0.06);
  --shadow-2: 0 2px 4px rgba(10, 11, 13, 0.08), 0 24px 60px rgba(10, 11, 13, 0.14);
}


/* 2. RESET AND BASE ======================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}

p { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

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

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

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
.skip-link:focus { left: 0; }


/* 3. LAYOUT PRIMITIVES ===================================================== */

.wrap        { width: 100%; max-width: var(--wrap);        margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide   { width: 100%; max-width: var(--wrap-wide);   margin-inline: auto; padding-inline: var(--gutter); }

.section        { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Surfaces */
.surface-ink   { background: var(--ink);   color: var(--on-dark); }
.surface-ink-2 { background: var(--ink-2); color: var(--on-dark); }
.surface-paper { background: var(--paper); color: var(--text); }
.surface-paper-2 { background: var(--paper-2); color: var(--text); }
.surface-accent { background: var(--accent); color: #fff; }

.surface-ink h1, .surface-ink h2, .surface-ink h3, .surface-ink h4,
.surface-ink-2 h1, .surface-ink-2 h2, .surface-ink-2 h3, .surface-ink-2 h4,
.surface-accent h1, .surface-accent h2, .surface-accent h3, .surface-accent h4 { color: inherit; }

/* Full bleed helper for elements inside a wrap */
.full-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}


/* 4. TYPOGRAPHY ============================================================ */

.mega    { font-size: var(--fs-mega);    letter-spacing: -0.045em; line-height: 0.92; }
.display { font-size: var(--fs-display); letter-spacing: -0.04em;  line-height: 0.98; }
.h1      { font-size: var(--fs-h1); }
.h2      { font-size: var(--fs-h2); }
.h3      { font-size: var(--fs-h3); letter-spacing: -0.02em; }
.h4      { font-size: var(--fs-h4); letter-spacing: -0.012em; }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.012em; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-mute);
  max-width: 62ch;
  letter-spacing: -0.011em;
}
.surface-ink .lede, .surface-ink-2 .lede { color: var(--on-dark-mute); }
.surface-accent .lede { color: rgba(255,255,255,0.86); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}
.eyebrow--plain::before { display: none; }
.surface-ink .eyebrow, .surface-ink-2 .eyebrow { color: var(--on-dark-faint); }
.surface-accent .eyebrow { color: rgba(255,255,255,0.75); }
.eyebrow--accent { color: var(--accent); }

/* Badge, a louder alternative to .eyebrow for status labels that should
   carry real weight ("In development", "Prototype", "New"). */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.5em 1em;
  border-radius: 999px;
  margin: 0 0 var(--sp-3);
}
.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex: none;
  animation: badge-pulse 2.4s var(--ease) infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.75); }
}
.badge--quiet {
  background: transparent;
  color: var(--accent-hi);
  border: 1px solid var(--accent);
  padding: 0.45em 0.95em;
}

.muted  { color: var(--text-mute); }
.faint  { color: var(--text-faint); }
.surface-ink .muted, .surface-ink-2 .muted { color: var(--on-dark-mute); }
.surface-ink .faint, .surface-ink-2 .faint { color: var(--on-dark-faint); }

.mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em; }

.prose p, .prose li { max-width: 70ch; }
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); }
.prose > :first-child { margin-top: 0; }

.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* Emphasized inline phrase inside big headings */
.hl {
  color: var(--accent);
  font-style: normal;
}
.surface-ink .hl, .surface-ink-2 .hl { color: var(--accent-hi); }

.underline-accent {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 2px;
}


/* 5. BUTTONS AND LINKS ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary   { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); color: #fff; }

.btn--accent    { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }

.btn--ghost     { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(10,11,13,0.04); }

.btn--light     { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--outline-light { background: transparent; color: var(--on-dark); border-color: rgba(245,243,238,0.28); }
.btn--outline-light:hover { border-color: var(--on-dark); background: rgba(245,243,238,0.07); }

.btn--sm { padding: 0.65rem 1.1rem; font-size: var(--fs-xs); }

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

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--accent);
  transition: gap var(--dur-fast) var(--ease);
}
.arrow-link::after {
  content: '\2192';
  transition: transform var(--dur-fast) var(--ease);
}
.arrow-link:hover { gap: 0.75em; }
.arrow-link:hover::after { transform: translateX(2px); }
.surface-ink .arrow-link, .surface-ink-2 .arrow-link { color: var(--accent-hi); }

/* Inline text link */
.link {
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.link:hover { color: var(--accent); border-color: var(--accent); }
.surface-ink .link, .surface-ink-2 .link { border-color: var(--line-dark); }
.surface-ink .link:hover, .surface-ink-2 .link:hover { color: var(--accent-hi); border-color: var(--accent-hi); }


/* 6. HEADER AND NAVIGATION ================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  width: 100%;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* Header sitting over a dark hero */
.site-header--over-dark { color: var(--on-dark); }
.site-header--over-dark .nav__link { color: rgba(245,243,238,0.82); }
.site-header--over-dark .nav__link:hover,
.site-header--over-dark .nav__link.is-active { color: var(--paper); }
.site-header--over-dark .nav-toggle__bar { background: var(--paper); }

/* Scrolled state */
.site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
  color: var(--on-dark);
}
.site-header.is-scrolled .nav__link { color: rgba(245,243,238,0.8); }
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active { color: var(--paper); }
.site-header.is-scrolled .nav-toggle__bar { background: var(--paper); }
.site-header.is-scrolled .wordmark { color: var(--paper); }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: inherit;
  white-space: nowrap;
}
.wordmark__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-1px);
}
.wordmark__suffix {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-mute);
  transition: color var(--dur-fast) var(--ease);
  padding-block: 0.35rem;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) 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(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-drawer__list { list-style: none; margin: 0; padding: 0; }
.nav-drawer__list li { margin: 0; border-bottom: 1px solid var(--line-dark); }
.nav-drawer__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.nav-drawer__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--on-dark-faint);
  font-weight: 500;
}
.nav-drawer__foot {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--on-dark-mute);
}
body.nav-open { overflow: hidden; }


/* 7. HERO ================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero--full {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero--tall {
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero--page {
  padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 8rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,11,13,0.86) 0%, rgba(10,11,13,0.55) 34%, rgba(10,11,13,0.88) 78%, rgba(10,11,13,0.97) 100%),
    linear-gradient(90deg, rgba(10,11,13,0.92) 0%, rgba(10,11,13,0.42) 55%, rgba(10,11,13,0.30) 100%);
}
/* Push the subject of a hero photo toward the right, so it clears the
   headline sitting bottom-left. The translate only kicks in on wider
   viewports; on phones the crop is already tight enough. */
.hero__media--right img { object-position: 30% 18%; }

@media (min-width: 900px) {
  .hero__media--right img {
    transform: translateX(11%) scale(1.16);
    transform-origin: center;
  }
}

.hero__scrim--soft {
  background: linear-gradient(180deg, rgba(10,11,13,0.90) 0%, rgba(10,11,13,0.72) 50%, rgba(10,11,13,0.94) 100%);
}

.hero__inner { position: relative; width: 100%; }
.hero__title { margin-bottom: var(--sp-4); }
.hero__lede  { max-width: 56ch; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.6em; }
.hero__meta span::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 6vw, 5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.scroll-cue__line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
}


/* 8. SECTION FURNITURE ===================================================== */

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--wide { max-width: 100%; }

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  max-width: 100%;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.surface-ink .rule, .surface-ink-2 .rule { border-top-color: var(--line-dark); }

.rule-label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}
.surface-ink .rule-label, .surface-ink-2 .rule-label {
  color: var(--on-dark-faint);
  border-bottom-color: var(--line-dark);
}
.rule-label__count { margin-left: auto; opacity: 0.7; }


/* 9. CARDS AND GRIDS ======================================================= */

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-lg { gap: clamp(2rem, 4vw, 3.5rem); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  height: 100%;
}
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
  border-color: #C7C2B6;
}
.card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.card__title { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.card__body { color: var(--text-mute); font-size: var(--fs-small); margin-bottom: var(--sp-3); }
.card__foot { margin-top: auto; padding-top: var(--sp-2); }

.card--dark {
  background: var(--ink-2);
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.card--dark .card__body { color: var(--on-dark-mute); }
.card--dark.card--link:hover { border-color: #383E48; box-shadow: none; }

.card--flush {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: var(--sp-4) 0 0;
}
.surface-ink .card--flush { border-top-color: var(--line-dark); }

/* Tag pills */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mute);
  margin: 0;
}
.surface-ink .tag, .surface-ink-2 .tag, .card--dark .tag {
  border-color: var(--line-dark);
  color: var(--on-dark-mute);
}
.tag--accent { border-color: var(--accent); color: var(--accent); }
.tag--solid { background: var(--accent-soft); border-color: transparent; color: var(--accent); }


/* 10. STAT STRIPS AND MARQUEE ============================================== */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.stat-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--line-dark);
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  line-height: 1.4;
}
.surface-paper .stat-strip,
.surface-paper .stat { border-color: var(--line); }
.surface-paper .stat__label { color: var(--text-faint); }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding-block: 1.15rem;
  background: var(--ink);
  color: var(--on-dark-mute);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: marquee 42s linear infinite;
}
.marquee__item {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee__item::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }


/* 11. MEDIA BLOCKS AND SPLITS ============================================== */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--media-first .split__media { order: -1; }
.split--top { align-items: start; }
.split--60-40 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.split--40-60 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }

.split__media img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.figure { margin: 0; }
.figure img { border-radius: var(--r-lg); width: 100%; }
.figure figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.surface-ink .figure figcaption, .surface-ink-2 .figure figcaption { color: var(--on-dark-faint); }

.ratio { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.ratio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio--1x1  { padding-top: 100%; }
.ratio--4x3  { padding-top: 75%; }
.ratio--3x4  { padding-top: 133.33%; }
.ratio--16x9 { padding-top: 56.25%; }
.ratio--21x9 { padding-top: 42.85%; }

/* Full-bleed image band */
.band {
  position: relative;
  min-height: clamp(300px, 46vw, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,11,13,0.94) 0%, rgba(10,11,13,0.72) 45%, rgba(10,11,13,0.35) 100%);
}
.band__inner { position: relative; width: 100%; padding-block: clamp(3rem, 7vw, 5.5rem); }
.band__content { max-width: 56ch; }

/* Feature panel, a big dark editorial block */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--ink-2);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.feature__body { padding: clamp(2rem, 4.5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.feature__media { position: relative; min-height: 320px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


/* 12. LISTS: PUBLICATIONS, TIMELINE, INDEX ROWS ============================ */

/* Index rows, big clickable rows with hover reveal */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.surface-ink .index-list, .surface-ink-2 .index-list { border-top-color: var(--line-dark); }
.index-list > li { margin: 0; border-bottom: 1px solid var(--line); }
.surface-ink .index-list > li, .surface-ink-2 .index-list > li { border-bottom-color: var(--line-dark); }

.index-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.35rem, 2.6vw, 2rem) 0;
  transition: padding-inline var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}
a.index-row:hover { padding-inline: 0.75rem; color: var(--accent); }
.surface-ink a.index-row:hover, .surface-ink-2 a.index-row:hover { color: var(--accent-hi); }
.index-row__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  color: var(--text-faint);
}
.surface-ink .index-row__num, .surface-ink-2 .index-row__num { color: var(--on-dark-faint); }
.index-row__title { display: block; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.022em; line-height: 1.2; margin: 0 0 0.4rem; }
.index-row__meta { display: block; font-size: var(--fs-small); color: var(--text-mute); margin: 0; }
.surface-ink .index-row__meta, .surface-ink-2 .index-row__meta { color: var(--on-dark-mute); }
.index-row__aside {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.surface-ink .index-row__aside, .surface-ink-2 .index-row__aside { color: var(--on-dark-faint); }

/* Publication entries */
.pub { padding-block: clamp(1.35rem, 2.4vw, 1.9rem); border-bottom: 1px solid var(--line); }
.surface-ink .pub, .surface-ink-2 .pub { border-bottom-color: var(--line-dark); }
.pub:first-of-type { border-top: 1px solid var(--line); }
.surface-ink .pub:first-of-type { border-top-color: var(--line-dark); }
.pub__year {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}
.pub__title { font-size: clamp(1.1rem, 1.6vw, 1.375rem); margin-bottom: 0.5rem; }
.pub__cite { font-size: var(--fs-small); color: var(--text-mute); margin-bottom: 0.75rem; }
.surface-ink .pub__cite, .surface-ink-2 .pub__cite { color: var(--on-dark-mute); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.surface-ink .timeline::before, .surface-ink-2 .timeline::before { background: var(--line-dark); }
.timeline > li {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0;
}
.timeline > li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
}
.surface-ink .timeline > li::before, .surface-ink-2 .timeline > li::before {
  background: var(--ink);
  border-color: var(--line-dark);
}
.timeline > li:first-child::before { border-color: var(--accent); background: var(--accent); }
.timeline__when {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.4rem;
}
.surface-ink .timeline__when, .surface-ink-2 .timeline__when { color: var(--on-dark-faint); }
.timeline__what { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); letter-spacing: -0.018em; margin: 0 0 0.35rem; }
.timeline__where { font-size: var(--fs-small); color: var(--text-mute); margin: 0; }
.surface-ink .timeline__where, .surface-ink-2 .timeline__where { color: var(--on-dark-mute); }

/* Definition rows (awards, credentials) */
.def-list { display: grid; gap: 0; margin: 0; }
.def-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.def-row:first-child { border-top: 1px solid var(--line); }
.surface-ink .def-row, .surface-ink-2 .def-row { border-color: var(--line-dark); }
.def-row__key {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.surface-ink .def-row__key, .surface-ink-2 .def-row__key { color: var(--on-dark-faint); }
.def-row__val { font-size: var(--fs-small); }
.def-row__val strong { font-weight: 600; }
.def-row__val p { margin: 0.2rem 0 0; color: var(--text-mute); font-size: var(--fs-small); }
.surface-ink .def-row__val p, .surface-ink-2 .def-row__val p { color: var(--on-dark-mute); }

/* Compact bullet list with accent markers */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  font-size: var(--fs-small);
  color: var(--text-mute);
}
.surface-ink .ticks li, .surface-ink-2 .ticks li { color: var(--on-dark-mute); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 1.5px;
  background: var(--accent);
}


/* 13. QUOTE AND CALLOUT ==================================================== */

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.pull-quote--wide { max-width: 30ch; }

.callout {
  border-left: 2px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: var(--text-mute);
  font-size: var(--fs-small);
}
.surface-ink .callout, .surface-ink-2 .callout { color: var(--on-dark-mute); }

.quadrant {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.quadrant__cell {
  background: var(--ink-2);
  padding: clamp(1.4rem, 2.6vw, 2rem);
}
.quadrant__cell h4 { margin-bottom: 0.5rem; }
.quadrant__cell p { font-size: var(--fs-small); color: var(--on-dark-mute); margin: 0; }
.quadrant__flag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.quadrant__flag--good { color: #4ADE80; }
.quadrant__flag--warn { color: var(--warm); }
.quadrant__flag--neutral { color: var(--accent-hi); }


/* 14. ACCORDION ============================================================ */

.accordion { border-top: 1px solid var(--line); }
.surface-ink .accordion, .surface-ink-2 .accordion { border-top-color: var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line); }
.surface-ink .acc-item, .surface-ink-2 .acc-item { border-bottom-color: var(--line-dark); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: transparent;
  border: 0;
  padding: 1.35rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: inherit;
}
.acc-icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  transition: transform var(--dur) var(--ease);
}
.acc-icon::before { left: 0; top: 6.25px; width: 14px; height: 1.5px; }
.acc-icon::after  { left: 6.25px; top: 0; width: 1.5px; height: 14px; }
.acc-trigger[aria-expanded='true'] .acc-icon::after { transform: scaleY(0); }
.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height var(--dur) var(--ease);
}
.acc-panel__inner { padding-bottom: 1.5rem; color: var(--text-mute); font-size: var(--fs-small); max-width: 72ch; }
.surface-ink .acc-panel__inner, .surface-ink-2 .acc-panel__inner { color: var(--on-dark-mute); }


/* 15. FORMS ================================================================ */

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.surface-ink .field label, .surface-ink-2 .field label { color: var(--on-dark-faint); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease);
  width: 100%;
}
.surface-ink .field input, .surface-ink .field select, .surface-ink .field textarea,
.surface-ink-2 .field input, .surface-ink-2 .field select, .surface-ink-2 .field textarea {
  border-bottom-color: var(--line-dark);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }
.surface-ink .field select option { color: #14161A; }

.form__note { font-size: var(--fs-xs); color: var(--text-faint); }
.surface-ink .form__note, .surface-ink-2 .form__note { color: var(--on-dark-faint); }

.form-status {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok   { background: rgba(74, 222, 128, 0.12); color: #4ADE80; }
.form-status--err  { background: rgba(255, 106, 61, 0.12);  color: var(--warm); }
.form-status--busy { background: var(--accent-soft); color: var(--accent-hi); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }


/* 16. FOOTER =============================================================== */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 2rem;
}
.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: var(--fs-small); color: var(--on-dark-mute); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-bio { font-size: var(--fs-small); color: var(--on-dark-mute); max-width: 40ch; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--on-dark-faint);
}
.footer-bar a:hover { color: var(--paper); }


/* 17. MOTION AND SCROLL REVEAL ============================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay='1'] { transition-delay: 0.08s; }
[data-reveal-delay='2'] { transition-delay: 0.16s; }
[data-reveal-delay='3'] { transition-delay: 0.24s; }
[data-reveal-delay='4'] { transition-delay: 0.32s; }
[data-reveal-delay='5'] { transition-delay: 0.40s; }

/* Line-by-line hero reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.95s var(--ease-out);
}
.is-loaded .reveal-line > span { transform: none; }
.reveal-line:nth-child(2) > span { transition-delay: 0.08s; }
.reveal-line:nth-child(3) > span { transition-delay: 0.16s; }


/* 17b. DARK CONTEXT INHERITANCE ===========================================
   Several surfaces are dark without carrying the .surface-ink class, the
   hero, full-bleed image bands, the footer and the mobile drawer. This block
   gives all of them the same light-on-dark treatment in one place, so a
   component dropped into any of them reads correctly. It sits after the
   component definitions so it wins on order, not on specificity hacks.
   ========================================================================== */

.dark-ctx,
.hero, .band, .site-footer, .nav-drawer,
.surface-ink, .surface-ink-2 {
  color-scheme: dark;
}

.hero .lede, .band .lede, .site-footer .lede,
.hero .muted, .band .muted, .site-footer .muted { color: var(--on-dark-mute); }

.hero .eyebrow, .band .eyebrow, .site-footer .eyebrow,
.hero .faint, .band .faint, .site-footer .faint { color: var(--on-dark-faint); }

.hero .eyebrow--accent, .band .eyebrow--accent, .site-footer .eyebrow--accent { color: var(--accent-hi); }

.hero .hl, .band .hl, .site-footer .hl { color: var(--accent-hi); }

.hero .arrow-link, .band .arrow-link, .site-footer .arrow-link { color: var(--accent-hi); }

.hero .rule, .band .rule, .site-footer .rule { border-top-color: var(--line-dark); }

.hero .rule-label, .band .rule-label, .site-footer .rule-label {
  color: var(--on-dark-faint);
  border-bottom-color: var(--line-dark);
}

.hero .callout, .band .callout, .site-footer .callout { color: var(--on-dark-mute); }

.hero .tag, .band .tag, .site-footer .tag {
  border-color: var(--line-dark);
  color: var(--on-dark-mute);
}
.hero .tag--accent, .band .tag--accent, .site-footer .tag--accent { border-color: var(--accent-hi); color: var(--accent-hi); }

.hero .link, .band .link, .site-footer .link { border-color: var(--line-dark); }
.hero .link:hover, .band .link:hover, .site-footer .link:hover { color: var(--accent-hi); border-color: var(--accent-hi); }

.hero .ticks li, .band .ticks li, .site-footer .ticks li { color: var(--on-dark-mute); }

.hero .index-list, .band .index-list, .site-footer .index-list { border-top-color: var(--line-dark); }
.hero .index-list > li, .band .index-list > li, .site-footer .index-list > li { border-bottom-color: var(--line-dark); }
.hero .index-row__num, .band .index-row__num, .site-footer .index-row__num,
.hero .index-row__aside, .band .index-row__aside, .site-footer .index-row__aside { color: var(--on-dark-faint); }
.hero .index-row__meta, .band .index-row__meta, .site-footer .index-row__meta { color: var(--on-dark-mute); }

.hero .def-row, .band .def-row, .site-footer .def-row { border-color: var(--line-dark); }
.hero .def-row__key, .band .def-row__key, .site-footer .def-row__key { color: var(--on-dark-faint); }
.hero .def-row__val p, .band .def-row__val p, .site-footer .def-row__val p { color: var(--on-dark-mute); }

.hero .figure figcaption, .band .figure figcaption { color: var(--on-dark-faint); }


/* 18. UTILITIES ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.sticky-top { position: sticky; top: calc(var(--header-h) + 2rem); }
.no-wrap { white-space: nowrap; }


/* 19. RESPONSIVE =========================================================== */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav__list { display: none; }
  .nav .btn { display: none; }
  .nav-toggle { display: flex; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--60-40, .split--40-60 { grid-template-columns: minmax(0, 1fr); }
  .split--media-first .split__media { order: 0; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__media { min-height: 260px; order: -1; }
  .footer-cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .band__scrim { background: linear-gradient(180deg, rgba(10,11,13,0.72) 0%, rgba(10,11,13,0.92) 100%); }
  .scroll-cue { display: none; }
}

@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .stat:last-child { border-bottom: 0; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .index-row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .index-row__num { display: none; }
  .index-row__aside { margin-top: 0.35rem; }
  .def-row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .quadrant { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero--full { min-height: 92svh; }
}


/* 20. PRINT AND 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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
  .marquee__track { animation: none; }
}

@media print {
  .site-header, .nav-drawer, .site-footer, .marquee, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .surface-ink, .surface-ink-2 { background: #fff !important; color: #000 !important; }
  .hero__media, .hero__scrim, .band__media, .band__scrim { display: none !important; }
  a { text-decoration: underline; }
  .section { padding-block: 1.5rem; }
}
