/* Project Stardust — site stylesheet — see INTERNAL-NOTES.md [css-01] */

/* 0. FONTS — self-hosted — see INTERNAL-NOTES.md [css-02] */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/cormorant-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cormorant-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-latin-500-normal.woff2") format("woff2");
}

/* 1. TOKENS — see INTERNAL-NOTES.md [css-03] */
:root {
  /* --- Palette (from _ds/tokens/colors.css) --- */
  --linen:          #F7F3EE;
  --surface:        #FAF9F5;
  --sand:           #EFE7DC;
  --taupe:          #D9CFC1;
  --stone:          #857A6E;
  --charcoal:       #2B2622;
  --terracotta:     #A9603F;

  --charcoal-hover: #3A342E;
  --sand-hover:     #E7DCCD;
  --taupe-strong:   #C9BCA9;
  --terracotta-soft:#C07A56;

  /* Body-copy grey. Was #393431 inline; kept, named. */
  --ink-body:       #393431;
  /* Was #6B6154 inline — used for secondary prose inside cards. */
  --ink-secondary:  #5C5449;
    /* Was #A99C88 inline. Darkened from the original: at #… — see INTERNAL-NOTES.md [css-04] */
  --ink-faint:      #8A7C68;
  /* Footer links. Was #B8AE9F, ~4.9:1 on charcoal — kept. */
  --ink-on-dark-muted: #B8AE9F;

  /* --- Semantic aliases (prefer these) --- */
  --bg-page:        var(--surface);
  --surface-card:   var(--surface);
  --surface-sunk:   var(--sand);
  --border:         var(--taupe);
  --border-strong:  var(--taupe-strong);
  --text-strong:    var(--charcoal);
  --text-body:      var(--ink-body);
  --text-muted:     var(--stone);
  --text-on-dark:   var(--surface);
  --accent:         var(--terracotta);
  --accent-hover:   var(--terracotta-soft);
  --btn-primary-bg: var(--charcoal);
  --btn-primary-fg: var(--surface);
  --focus-ring:     rgba(43, 38, 34, 0.35);
  --focus-ring-on-dark: rgba(250, 249, 245, 0.7);

  /* --- Washes (from _ds/tokens/surfaces.css) --- */
  --wash-a:
    radial-gradient(98% 98% at 50% 2%, rgba(233, 210, 190, 0.34), transparent 73%),
    #FAF9F5;
  --wash-b:
    radial-gradient(85% 85% at 86% 3%, rgba(218, 222, 232, 0.38), transparent 70%),
    radial-gradient(78% 78% at 16% 98%, rgba(237, 225, 211, 0.24), transparent 70%),
    #F9F9F7;
  --wash-c:
    radial-gradient(100% 100% at 50% 104%, rgba(233, 222, 196, 0.32), transparent 74%),
    #FBFAF4;
  --wash-d:
    radial-gradient(92% 92% at 32% 4%, rgba(228, 211, 213, 0.32), transparent 72%),
    radial-gradient(70% 70% at 85% 98%, rgba(238, 226, 212, 0.20), transparent 70%),
    #FBF9F8;

  /* --- Type --- */
  --font-display: "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --track-eyebrow: 0.28em;
  --track-tight: -0.01em;

    /* FOUR SIZES PER TYPEFACE. Nothing else. — see INTERNAL-NOTES.md [css-05] */
  --fs-display:       clamp(2rem,     1.42rem + 2.6vw,  2.5rem);   /* 32 -> 40 */
  --fs-display-serif: clamp(2.5rem,   1.78rem + 3.2vw,  3.125rem); /* 40 -> 50 */
  --fs-heading:       clamp(1.5rem,   1.28rem + 0.98vw, 1.625rem); /* 24 -> 26 */
  --fs-heading-serif: clamp(1.875rem, 1.60rem + 1.22vw, 2rem);     /* 30 -> 32 */
  --fs-body:          1rem;                                        /* 16 */
  --fs-body-serif:    1.25rem;                                     /* 20 */
  --fs-small:         0.8125rem;                                   /* 13 */
  --fs-small-serif:   1rem;                                        /* 16 */

  /* --- Space --- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --content-max: 1320px;
    /* PICTURE HEADERS — one height for all five. — see INTERNAL-NOTES.md [css-06] */
  --hero-h: min(calc((100vw - 2 * var(--gutter)) / 2), 612px);
        /* 612 is not arbitrary: it is half the widest the fram… — see INTERNAL-NOTES.md [css-07] */
    /* Section rhythm and gutter both shrink on small scree… — see INTERNAL-NOTES.md [css-08] */
  --section-y: clamp(3rem, 1.7rem + 5.2vw, 4.5rem);   /* 48 -> 72 */
  --gutter:    clamp(1.25rem, 0.5rem + 3.3vw, 3rem);  /* 20 -> 48 */

  /* --- Radii --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* --- Shadows --- */
  --shadow-soft:   0 1px 2px rgba(43, 38, 34, 0.04), 0 6px 20px rgba(43, 38, 34, 0.05);
  --shadow-raised: 0 2px 4px rgba(43, 38, 34, 0.05), 0 14px 40px rgba(43, 38, 34, 0.08);
  --shadow-lift:   0 22px 44px rgba(43, 38, 34, 0.24);
  --shadow-nav:    0 6px 18px rgba(43, 38, 34, 0.06);
  --shadow-nav-scrolled: 0 12px 30px rgba(0, 0, 0, 0.28);
  --ring: 0 0 0 3px var(--focus-ring);

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.24s;
  --dur-mid: 0.45s;
}

/* 2. RESET & BASE — see INTERNAL-NOTES.md [css-09] */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps in-page anchors clear of the sticky nav. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Guards against any single long word forcing a horizontal scrollbar. */
  overflow-wrap: break-word;
}

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

/* The browser's own [hidden] rule is `display: none`,… — see INTERNAL-NOTES.md [css-10] */
[hidden] { display: none !important; }
button { font: inherit; }
input { font: inherit; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Visible focus for keyboard users everywhere. The design system defined
   --focus-ring but never applied it; this wires it up. */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.hero--dark :focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring-on-dark);
}

/* Skip link — the site had no keyboard bypass for the nav. */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 100;
  background: var(--charcoal);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
}
.skip-link:focus { top: var(--space-4); color: var(--surface); }

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

/* 3. LAYOUT PRIMITIVES — see INTERNAL-NOTES.md [css-11] */
.shell {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--hero { padding-block: clamp(1.5rem, 0.9rem + 2.7vw, 2.75rem) var(--section-y); }
.section--flush-top { padding-block-start: 0; }

.wash-a { background: var(--wash-a); }
.wash-b { background: var(--wash-b); }
.wash-c { background: var(--wash-c); }
.wash-d { background: var(--wash-d); }
.bg-linen { background: var(--linen); }
.bg-surface { background: var(--surface); }

/* Two-column editorial split. Collapses at 900px. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 1rem + 4.5vw, 4.5rem);
  align-items: start;
}
.split--wide-left { grid-template-columns: 1.35fr 1fr; }
.split--lead-left { grid-template-columns: 1.05fr 0.95fr; }
/* Two columns that finish level. — see INTERNAL-NOTES.md [css-12] */
.split--stretch { align-items: stretch; }
.split--stretch > * {
  display: flex;
  flex-direction: column;
}
.split--stretch > * > :last-child { margin-top: auto; }
.split--stretch > * > .stack--fill { flex: 1; margin-top: var(--space-7); }
.split--stretch > * > .stack--fill > :last-child { margin-top: auto; }

/* Card grids. Column counts step down at each breakpoint. */
.grid { display: grid; gap: var(--space-5); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 0.6rem + 3.5vw, 3.5rem);
  /* stretch, not start: each tile then fills the row's height, which is what
     lets the source line be pushed to a common bottom edge below. */
  align-items: stretch;
}
.grid--advisors {
  grid-template-columns: repeat(2, minmax(0, 377px));
  justify-content: center;
}
/* Team grid uses flex rather than grid so that an inco… — see INTERNAL-NOTES.md [css-13] */
.grid--team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
}
.grid--team > * {
  flex: 0 1 calc((100% - var(--space-5) * 2) / 3);
  min-width: 260px;
}

.stack { display: flex; flex-direction: column; }
.stack--4 { gap: var(--space-4); }
.stack--5 { gap: var(--space-5); }
.stack--6 { gap: var(--space-6); }

.center { text-align: center; }
.measure-narrow { max-width: 52ch; }
.measure { max-width: 60ch; }
.measure-wide { max-width: 66ch; }
.center .measure,
.center .measure-narrow,
.center .measure-wide { margin-inline: auto; }

/* 4. TYPOGRAPHY — see INTERNAL-NOTES.md [css-14] */
.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
}
.eyebrow--on-dark { color: var(--taupe-strong); }

.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--track-tight);
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}
/* THE RULE: a page's <h1> is always .display; a sectio… — see INTERNAL-NOTES.md [css-15] */
.display { font-size: var(--fs-display-serif); line-height: 1.06; }
.h1 { font-size: var(--fs-heading-serif); line-height: 1.08; }
.h2 { font-size: var(--fs-heading-serif); line-height: 1.1; }
.h3 { font-size: var(--fs-heading-serif); line-height: 1.15; }
.on-dark .display, .on-dark .h1, .on-dark .h2, .on-dark .h3 { color: var(--text-on-dark); }

.lead {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}
.on-dark .lead { color: var(--taupe); }

.prose { font-size: var(--fs-body); line-height: 1.75; color: var(--text-body); margin: 0; }
.prose + .prose { margin-top: var(--space-5); }
/* Inside a .stack the flex `gap` already separates the… — see INTERNAL-NOTES.md [css-16] */
.stack > .prose + .prose { margin-top: 0; }

/* Links inside running copy. The site default strips u… — see INTERNAL-NOTES.md [css-17] */
.prose a,
.lead a,
.bio__text a,
.meta a,
.citation a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.prose a:hover,
.lead a:hover,
.bio__text a:hover,
.meta a:hover,
.citation a:hover { color: var(--accent-hover); }

.meta { font-size: var(--fs-small); line-height: 1.55; color: var(--text-muted); margin: 0; }
.meta--faint { color: var(--ink-faint); }
/* Body-sized attribution. An attribution sitting direc… — see INTERNAL-NOTES.md [css-18] */
.meta--lg { font-size: var(--fs-body); line-height: 1.6; }
.journal {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-small-serif);
  color: var(--ink-faint);
}

/* Quotes are Cormorant, the body is Inter, and the two… — see INTERNAL-NOTES.md [css-19] */
.pull-quote {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--fs-body-serif);
  line-height: 1.55;
  color: var(--text-strong);
  margin: 0;
}

/* 5. BUTTONS, FORMS, CHIPS — see INTERNAL-NOTES.md [css-20] */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--fs-body);
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  /* 44px minimum touch target. */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn span[aria-hidden] { transition: transform var(--dur-fast) ease; }
.btn:hover span[aria-hidden] { transform: translate(2px, -2px); }

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
}
.btn--primary:hover {
  background: var(--charcoal-hover);
  border-color: var(--charcoal-hover);
  color: var(--btn-primary-fg);
}

.btn--secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--secondary:hover {
  background: var(--charcoal);
  color: var(--surface);
}

/* For use over photography / charcoal panels. */
.btn--inverted {
  background: transparent;
  color: var(--surface);
  border-color: var(--surface);
}
.btn--inverted:hover {
  background: var(--surface);
  color: var(--charcoal);
  border-color: var(--surface);
}

.btn--sm { padding: 11px 22px; font-size: var(--fs-small); }

.btn-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.btn-row--end { justify-content: flex-end; }
/* Paired hero CTAs render at the same width rather tha… — see INTERNAL-NOTES.md [css-21] */
.hero-panel .btn-row .btn { min-width: 15rem; }

/* Inline email capture (footer) */

/* Stacked form (product waitlist) */
.field { display: block; }
.field-label {
  display: block;
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.field-input {
  font-size: var(--fs-body);
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  padding: 12px 0;
  width: 100%;
  border-radius: 0;
  transition: border-color var(--dur-fast) ease;
}
.field-input::placeholder { color: var(--ink-faint); }
.field-input:hover { border-color: var(--border-strong); }
.field-input:focus-visible {
  border-color: var(--charcoal);
  box-shadow: 0 2px 0 0 var(--charcoal);
}
.field-hint { font-size: var(--fs-small); color: var(--text-muted); margin: var(--space-2) 0 0; }

.form-status {
  font-size: var(--fs-small);
  margin: 0;
  min-height: 1.4em;
}
.form-status--ok { color: var(--accent); }
.form-status--err { color: #8C3A22; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--taupe-strong);
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink-secondary);
}
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-content: flex-start; }

.tag-pill {
  align-self: flex-start;
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surface);
  border: 1px solid rgba(250, 249, 245, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}

.year-pill {
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(169, 96, 63, 0.08);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
}

.icon-link {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  font-size: var(--fs-small);
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.icon-link:hover { background: var(--sand); color: var(--charcoal); border-color: var(--border-strong); }

/* 6. NAV & FOOTER — see INTERNAL-NOTES.md [css-22] */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0;
  transition: padding var(--dur-mid) var(--ease);
}
.site-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  max-width: none;
  padding: 14px var(--gutter);
  border-radius: 0 0 22px 22px;
  background: rgba(250, 249, 245, 0.9);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  backdrop-filter: saturate(120%) blur(10px);
  border: 1px solid transparent;
  box-shadow: var(--shadow-nav);
  transition: max-width var(--dur-mid) var(--ease),
              padding var(--dur-mid) var(--ease),
              border-radius var(--dur-mid) var(--ease),
              background-color var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease),
              border-color var(--dur-mid) var(--ease);
}
.site-nav.is-scrolled { padding: 16px var(--space-5); }
.site-nav.is-scrolled .site-nav__bar {
  max-width: var(--content-max);
  padding: 9px 12px 9px 20px;
  border-radius: var(--radius-pill);
  background: rgba(43, 38, 34, 0.88);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  backdrop-filter: saturate(120%) blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-nav-scrolled);
}

.site-nav__logo { display: block; position: relative; flex-shrink: 0; }
.site-nav__logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity var(--dur-mid) var(--ease);
}
.site-nav__logo img + img { position: absolute; inset: 0 auto auto 0; }
.site-nav__logo .logo--light { opacity: 0; }
.site-nav.is-scrolled .logo--dark { opacity: 0; }
.site-nav.is-scrolled .logo--light { opacity: 1; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.1rem + 2vw, 2.25rem);
}
.nav-link {
  font-size: var(--fs-body);
  font-weight: var(--weight-medium);
  color: var(--charcoal);
  padding: 8px 2px;
  transition: color var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.nav-link:hover { color: var(--charcoal); opacity: 0.6; }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav.is-scrolled .nav-link { color: var(--surface); }
.site-nav.is-scrolled .nav-link:hover { color: var(--surface); }

/* No font-size here on purpose — it inherits .btn (Bod… — see INTERNAL-NOTES.md [css-23] */
.site-nav__cta {
  padding: 11px 20px;
  background: var(--surface);
  color: var(--charcoal);
  border-color: var(--charcoal);
  white-space: nowrap;
}
.site-nav__cta:hover { background: var(--charcoal); color: var(--surface); border-color: var(--charcoal); }
.site-nav.is-scrolled .site-nav__cta {
  background: rgba(250, 249, 245, 0.12);
  color: var(--surface);
  border-color: rgba(250, 249, 245, 0.6);
}
.site-nav.is-scrolled .site-nav__cta:hover { background: var(--surface); color: var(--charcoal); }

/* Mobile disclosure button, hidden on desktop. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}
.site-nav.is-scrolled .nav-toggle { border-color: rgba(250, 249, 245, 0.6); color: var(--surface); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--surface);
}
.site-footer__watermark {
    /* One variable drives the size and both offsets, so th… — see INTERNAL-NOTES.md [css-24] */
  --wm: clamp(420px, 46vw, 680px);
  position: absolute;
  width: var(--wm);
  right: calc(var(--wm) * -0.167);
  bottom: calc(var(--wm) * -0.214);
  opacity: 0.05;
  pointer-events: none;
}
.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-8) var(--gutter) var(--space-6);
  border-top: 1px solid rgba(133, 122, 110, 0.28);
}
.site-footer__logo { height: 40px; width: auto; margin-bottom: var(--space-7); }
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
/* Sits above the mailing-list button in the footer, where the email input
   used to be. Muted against the charcoal panel, same Small tier as the links. */
.footer-note {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-on-dark-muted);
  /* Sits BELOW the button, so the margin is on top. Flip both together if the
     order ever changes back. */
  margin: var(--space-4) 0 0;
  max-width: 34ch;
}
.footer-heading {
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--surface);
  margin: 0 0 var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.foot-link {
  color: var(--ink-on-dark-muted);
  font-size: var(--fs-small);
  transition: color var(--dur-fast) ease;
  padding: 2px 0;
}
.foot-link:hover { color: var(--surface); }
/* Medical disclaimer, carried over from the live site. Sits above the
   copyright line on every page. */
.site-footer__disclaimer {
  margin: var(--space-7) 0 0;
  max-width: 68ch;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-on-dark-muted);
}
.site-footer__disclaimer + .site-footer__base { margin-top: var(--space-5); }
.site-footer__base {
  border-top: 1px solid rgba(133, 122, 110, 0.28);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.site-footer__base span { font-size: var(--fs-small); color: var(--ink-on-dark-muted); }
.site-footer__legal { display: flex; gap: var(--space-6); flex-wrap: wrap; }

/* 7. PAGE COMPONENTS — see INTERNAL-NOTES.md [css-25] */

/* --- Media frame: replaces the CSS-background hero pattern so that
       <img srcset> can do responsive image selection. --- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  isolation: isolate;
}
.media > img,
.media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.media__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
/* Neutral counterpart to --right, at identical opaciti… — see INTERNAL-NOTES.md [css-26] */
.media__scrim--right-neutral {
  background: linear-gradient(to right,
    rgba(26, 26, 28, 0.86) 0%, rgba(26, 26, 28, 0.66) 48%, rgba(26, 26, 28, 0.34) 100%);
}
/* Warm counterpart for heroes whose copy sits top-left over a light
   photograph (landing). Darkest at the top-left, fading right and down. */
.media__scrim--left {
  background: linear-gradient(to right,
    rgba(30, 26, 22, 0.66) 0%, rgba(30, 26, 22, 0.42) 48%, rgba(30, 26, 22, 0.14) 100%);
}
.media__body {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 0.6rem + 5vw, 4rem);
}
/* Text sitting on a hero photo has no column to constr… — see INTERNAL-NOTES.md [css-27] */
.media__body .prose,
.media__body .lead { max-width: 66ch; }

/* Feature hero: full-bleed photo with the headline ove… — see INTERNAL-NOTES.md [css-28] */
.hero-feature { min-height: var(--hero-h); display: flex; }
.hero-feature .media__body,
.hero-about .media__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: var(--space-5);
}

/* Research / product heroes, and the home page mission card. */
.hero-panel { min-height: var(--hero-h); display: flex; }
.hero-panel .media__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  width: 100%;
}
/* SCRIMS ARE DIRECTIONAL — read this before changing a… — see INTERNAL-NOTES.md [css-29] */

/* About hero: full-bleed photo with the headline over… — see INTERNAL-NOTES.md [css-30] */
/* The sepia cast comes from the photograph itself — wa… — see INTERNAL-NOTES.md [css-31] */
.hero-about > picture > img,
.hero-about > img {
  filter: grayscale(0.62) contrast(1.04) brightness(1.02);
  object-position: 50% 55%;
}
.hero-about { min-height: var(--hero-h); display: flex; }

/* Stats row */
.stat { text-align: center; }
.stat__figure {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--fs-display-serif);
  line-height: 1;
  letter-spacing: var(--track-tight);
  margin-bottom: var(--space-3);
  color: var(--text-strong);
}
.stat__label {
  font-weight: var(--weight-medium);
  font-size: var(--fs-body);
  color: var(--charcoal);
  margin-bottom: var(--space-1);
}
.stat__sub { font-size: var(--fs-small); color: var(--text-muted); }
/* Source line under each figure. Every published number needs one — see the
   four that shipped without and had to be corrected. Small tier, no new size. */
.stat__src {
  font-size: var(--fs-small);
  margin: 0;
}
.stat__src a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stat__src a:hover { color: var(--text-strong); }

/* Only the source line is aligned, not every row. — see INTERNAL-NOTES.md [css-32] */
.grid--stats > .stat { display: flex; flex-direction: column; }
.stat__src {
  margin-top: auto;
  padding-top: var(--space-3);
  min-height: calc(3.2em + var(--space-3));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The rest of the rows are deliberately NOT height-ali… — see INTERNAL-NOTES.md [css-33] */

/* Generic bordered card */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.card--lg { border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.card--sunk { background: var(--sand); }

/* Callout with icon */
.callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: var(--space-5) clamp(1.25rem, 0.8rem + 1.6vw, 1.625rem);
}
.callout svg { flex-shrink: 0; margin-top: 2px; }
.callout p {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-secondary);
  margin: 0;
  letter-spacing: 0.015em;
}

.note-box {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
}
/* Two class names deep on purpose. `.note-box p` below… — see INTERNAL-NOTES.md [css-34] */
.note-box .note-box__title {
  font-weight: var(--weight-semibold);
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 0 0 var(--space-2);
}
.note-box p { font-size: var(--fs-small); line-height: 1.7; color: var(--text-body); margin: 0; }

/* Comparison chart (FGR detection) — see INTERNAL-NOTES.md [css-35] */
.compare {
  display: grid;
    /* The middle lane must be wide enough to hold the delt… — see INTERNAL-NOTES.md [css-36] */
  grid-template-columns: 1fr clamp(84px, 12vw, 132px) 1fr;
  align-items: end;
  height: clamp(220px, 26vw, 300px);
}
.compare__bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--space-5) var(--space-4);
  color: var(--surface);
}
.compare__bar--full { height: 100%; background: var(--charcoal); }
.compare__bar--half { height: 49%; background: var(--stone); }
.compare__value {
  font-weight: var(--weight-medium);
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: var(--track-tight);
}
.compare__unit { font-size: var(--fs-small); margin-top: var(--space-1); color: var(--taupe-strong); }
.compare__bar--half .compare__unit { color: var(--sand); }
.compare__col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
/* A dimension bracket: a short tick off the top of eac… — see INTERNAL-NOTES.md [css-37] */
.compare__delta { position: relative; height: 100%; }
.compare__delta i { position: absolute; background: var(--taupe); }
.compare__delta .tick-a { left: 0;  width: 14px; top: 0;        height: 1px; }
.compare__delta .tick-b { right: 0; width: 14px; bottom: 49%;   height: 1px; }
.compare__delta .rule-v { left: 50%; top: 0; bottom: 49%; width: 1px; }
.compare__delta .cap-a,
.compare__delta .cap-b  { left: calc(50% - 4px); width: 9px; height: 1px; }
.compare__delta .cap-a  { top: 0; }
.compare__delta .cap-b  { bottom: 49%; }
.compare__delta b {
  position: absolute;
  left: 50%; top: 24.5%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  padding: 5px 8px;
  border-radius: 3px;
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  color: var(--accent);
  white-space: nowrap;
}
.compare-legend {
  display: grid;
  /* Must track .compare's columns or the labels stop sitting under their bars. */
  grid-template-columns: 1fr clamp(84px, 12vw, 132px) 1fr;
  border-top: 1px solid var(--charcoal);
  padding-top: var(--space-4);
  margin-bottom: var(--space-6);
}
.compare-legend strong {
  display: block;
  font-weight: var(--weight-semibold);
  font-size: var(--fs-small);
  color: var(--charcoal);
  margin-bottom: var(--space-1);
}
.compare-legend span { font-size: var(--fs-small); line-height: 1.5; color: var(--text-muted); }
.citation {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-secondary);
}
.citation cite { font-style: italic; }

/* Between the tablet breakpoint and full width the evi… — see INTERNAL-NOTES.md [css-38] */
@media (min-width: 641px) and (max-width: 1080px) {
  .compare__value { font-size: var(--fs-heading); }
  .compare__bar { padding: var(--space-4) var(--space-3); }
  .compare__delta .delta-long { display: none; }
  .compare__delta .delta-short { display: inline; }
}
.compare__delta .delta-short { display: none; }

/* --- Carousel --- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  gap: var(--space-5);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel__slide {
  flex: 0 0 calc((100% - (var(--space-5) * 2)) / 3);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.carousel__slide .meta { margin-top: var(--space-5); }
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.carousel__arrow {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: var(--fs-body);
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.carousel__arrow:hover { background: var(--sand); border-color: var(--border-strong); }
.carousel__dots { display: flex; align-items: center; gap: var(--space-2); }
.carousel__dot {
  width: 24px; height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel__dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border);
  transition: background-color var(--dur-fast) ease;
}
.carousel__dot[aria-selected="true"]::after { background: var(--charcoal); }
/* Pause control — the original autoplayed with hover-pause only, which does
   nothing on a touch device. WCAG 2.2.2 requires a real control. */
.carousel__pause {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color var(--dur-fast) ease;
}
.carousel__pause:hover { background: var(--sand); }
.carousel__pause .icon-play { display: none; }
.carousel__pause[aria-pressed="true"] .icon-play { display: block; }
.carousel__pause[aria-pressed="true"] .icon-pause { display: none; }

/* --- Research area cards (hover-reveal description) --- */
.area-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(43, 38, 34, 0.08);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
/* Both selectors are needed: the photo is wrapped in <… — see INTERNAL-NOTES.md [css-39] */
.area-card > img,
.area-card > picture > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.area-card__scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(30, 26, 22, 0.6) 0%, rgba(30, 26, 22, 0.18) 40%, rgba(30, 26, 22, 0) 66%);
  transition: background var(--dur-mid) var(--ease);
}
.area-card__body {
  position: absolute;
  left: var(--space-5); right: var(--space-5); bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.area-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-body-serif);
  line-height: 1.06;
  color: var(--surface);
    /* The body is pinned to the bottom of the card, so a t… — see INTERNAL-NOTES.md [css-40] */
  min-height: 2.12em;
}
.area-card__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(250, 249, 245, 0.92);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--dur-mid) var(--ease), opacity var(--dur-mid) var(--ease);
}
/* :focus-within added so the description is reachable by keyboard. */
.area-card:hover, .area-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.area-card:hover .area-card__scrim,
.area-card:focus-within .area-card__scrim {
  background: linear-gradient(to top,
    rgba(30, 26, 22, 0.78) 0%, rgba(30, 26, 22, 0.5) 40%, rgba(30, 26, 22, 0.12) 78%);
}
.area-card:hover .area-card__desc,
.area-card:focus-within .area-card__desc { max-height: 200px; opacity: 1; }

/* --- Featured study + citations --- */
.study-card {
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* flex: 1 lets the photo absorb any height the card is… — see INTERNAL-NOTES.md [css-41] */
.study-card__media { position: relative; flex: 1; min-height: 220px; background: var(--sand); }
.study-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.study-card__body {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cite {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.cite__title {
  font-family: var(--font-display);
  font-size: var(--fs-body-serif);
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0 0 var(--space-3);
}
.cite__aside {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* --- Bio cards --- */
.bio {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bio__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--border);
  background: var(--sand);
}
.bio__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bio__body { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) var(--space-5) var(--space-4); }
.bio__name {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--fs-body-serif);
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0;
}
.bio__role {
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}
.bio__text { font-size: var(--fs-small); line-height: 1.65; color: var(--ink-secondary); margin: 0; }
.bio__text p { margin: 0 0 0.8em; }
.bio__text p:last-child { margin-bottom: 0; }
.bio__creds {
  margin-top: auto;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
}
/* The creds block is pinned to the base of each card,… — see INTERNAL-NOTES.md [css-42] */
.bio__creds .chip-row {
  min-height: 62px;
  align-content: flex-start;
}
.bio__creds-title {
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

/* Placeholder for imagery not yet supplied. Deliberately visible rather than
   silently broken, so missing assets are obvious before launch. */
.img-pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: var(--space-2);
  background:
    repeating-linear-gradient(45deg,
      rgba(217, 207, 193, 0.35) 0 10px, rgba(239, 231, 220, 0.35) 10px 20px);
  color: var(--text-muted);
  font-size: var(--fs-small);
  text-align: center;
  padding: var(--space-4);
}
.img-pending span { display: block; }

/* Legal documents (privacy, terms) — see INTERNAL-NOTES.md [css-43] */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--fs-heading-serif);
  line-height: 1.15;
  color: var(--text-strong);
  margin: var(--space-8) 0 var(--space-4);
  scroll-margin-top: 110px;
}
.legal h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--text-strong);
  margin: var(--space-6) 0 var(--space-3);
}
.legal h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-body);
  color: var(--text-strong);
  margin: var(--space-5) 0 var(--space-2);
}
.legal p, .legal li {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-body);
}
.legal p { margin: 0 0 var(--space-4); }
.legal ul, .legal ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
.legal li { margin-bottom: var(--space-2); }
.legal strong { color: var(--text-strong); font-weight: var(--weight-semibold); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-hover); }
/* The "In Short" summaries that head most sections. */
.legal .in-short {
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: var(--space-4);
  margin-bottom: var(--space-4);
}
.legal__updated {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-7);
}
.legal__toc {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
}
.legal__toc h2 {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--fs-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}
.legal__toc ol { margin: 0; padding-left: 1.1rem; }
.legal__toc li { margin-bottom: var(--space-2); font-size: var(--fs-small); }
.legal__table-wrap { overflow-x: auto; margin-bottom: var(--space-5); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  min-width: 520px;
}
.legal th, .legal td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.legal th {
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  background: var(--sand);
}
.legal td:last-child { white-space: nowrap; font-weight: var(--weight-medium); }
.legal address {
  font-style: normal;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-body);
}

/* 8. MOTION & REVEAL — see INTERNAL-NOTES.md [css-44] */
/* Reveal is opt-in via JS adding .reveal-ready to <html>. Without JS the
   content is simply visible — first paint is never gated on script. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

@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;
    scroll-behavior: auto !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .carousel__track { transition: none; }
}

/* 9. BREAKPOINTS — see INTERNAL-NOTES.md [css-45] */

/* --- Large tablet / small laptop --- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__cols > :first-child { grid-column: 1 / -1; max-width: 420px; }
}

/* --- Tablet --- */
@media (max-width: 900px) {
  :root { --content-max: 720px; }

  .split,
  .split--lead-left,
  .split--wide-left { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--advisors { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Hero copy needs a taller frame once it's a single column. */

  .hero-panel .media__body { gap: var(--space-6); }
  .btn-row--end { justify-content: flex-start; }

  /* Carousel: two per view. */
  .carousel__slide { flex-basis: calc((100% - var(--space-5)) / 2); }

    /* Team cards: two per row, same width as the advisor c… — see INTERNAL-NOTES.md [css-46] */
  .grid--team > * {
    flex-basis: calc((100% - var(--space-5)) / 2);
    min-width: 0;
  }

  /* Below the desktop breakpoint most devices are touch: hover never fires,
     so the area-card descriptions must be permanently visible. */
  .area-card__desc { max-height: 200px; opacity: 1; }
  .area-card__scrim {
    background: linear-gradient(to top,
      rgba(30, 26, 22, 0.82) 0%, rgba(30, 26, 22, 0.5) 45%, rgba(30, 26, 22, 0.12) 80%);
  }

  /* Nav collapses to a disclosure. */
  .nav-toggle { display: grid; }
  .site-nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    /* Collapsed by default; opened by the toggle. */
    display: none;
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links .nav-link {
    color: var(--charcoal) !important;
    padding: 14px var(--space-4);
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .site-nav__links .nav-link:hover { background: var(--sand); opacity: 1; }
  .site-nav__cta {
    margin-top: var(--space-3);
    background: var(--charcoal) !important;
    color: var(--surface) !important;
    border-color: var(--charcoal) !important;
    justify-content: center;
  }
  .site-nav.is-scrolled .site-nav__links { top: calc(100% + 12px); }
}

/* --- Phone --- */
@media (max-width: 640px) {
  :root {
    --content-max: 100%;
    /* Tighter again on a phone, where generous whitespace just reads as
       thumb-scrolling past nothing. */
    --section-y: 2.5rem;
  }

  .grid--4,
  .grid--3,
  .grid--2,
  .grid--advisors { grid-template-columns: 1fr; }

  .hero-feature .media__body,
  .hero-about .media__body { padding-block: var(--space-8) var(--space-7); }

  /* Stats: 2x2 rather than 1x4, which would be a very long column. */
  .grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }

  :root { --hero-h: calc((100vw - 2 * var(--gutter)) * 0.9375); }  /* 16/15, all five together */

  /* Area cards read better as a wider, shorter tile on one column. */
  .area-card { aspect-ratio: 4 / 3; }

  /* Team cards: one per row, full width — matches the advisor cards. */
  .grid--team > * { flex-basis: 100%; }

  /* Carousel: one per view, and swipeable. */
  .carousel__slide { flex-basis: 100%; min-height: 0; }
  /* Native scroll-snap mode: the looping clones would appear as duplicate
     quotes at the end of the strip, so hide them here. */
  .carousel__slide[data-clone] { display: none; }
  .carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .carousel__viewport::-webkit-scrollbar { display: none; }
  .carousel__slide { scroll-snap-align: start; }

  /* Bars go horizontal so the figures don't get crushed. */
  .compare {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    gap: var(--space-2);
    align-items: stretch;
  }
  .compare__col { height: auto; }
  .compare__bar { flex-direction: row; align-items: baseline; gap: var(--space-3); padding: var(--space-4); }
  .compare__bar--full,
  .compare__bar--half { height: auto; width: 100%; }
  .compare__bar--half { width: 60%; }
  .compare__unit { margin-top: 0; }
  .compare__delta { height: auto; padding: var(--space-2) 0; }
  .compare__delta i { display: none; }
  .compare__delta b { position: static; transform: none; padding: 0; background: none; }
  .compare-legend { grid-template-columns: 1fr; gap: var(--space-4); }
  .compare-legend > :nth-child(2) { display: none; }

  .cite { flex-direction: column; gap: var(--space-4); }
  .cite__aside { width: 100%; justify-content: space-between; order: -1; }

  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .site-footer__cols > :first-child { grid-column: 1 / -1; }
  .site-footer__base { flex-direction: column; align-items: flex-start; }

}

@media (max-width: 400px) {
  .grid--stats { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .site-nav__logo img { height: 34px; }
}

/* 10. PRINT — see INTERNAL-NOTES.md [css-47] */
@media print {
  .site-nav, .carousel__controls, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .media__scrim { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
