/* ==========================================================================
   Kinyan · kinyan.org — shared stylesheet (design system v3)
   Brand palette is locked: navy #1A3A6B, teal #2BB5C0, green #7CC246/#5BA130,
   cream #FCFAF6 — extended below into 9-step ramps (tints/shades), never
   replaced. Raw teal and light green fail WCAG AA as small text on cream,
   so the darkened companions are used wherever they carry text.
   Contrast contract (computed, WCAG 2.2):
     ink #25303E on cream #FCFAF6 ............ 12.6:1
     navy-700 #1A3A6B on cream ............... 9.2:1
     teal-700 #0E6B74 on cream ............... 6.0:1   (links, eyebrows)
     white on navy-700 ........................ 9.7:1
     white on green-700 #47821F .............. 4.7:1   (all CTA buttons, normal text)
     white on green-800 #356317 .............. 7.1:1   (CTA hover)
     teal-300 #7FD4DA on navy-800 #132B50 .... 8.3:1   (eyebrows on hero)
     teal-300 #7FD4DA on navy-900 #0D1F3C .... 9.7:1   (focus ring on dark)
     navy-100 #DCE4EF on navy-900 ............ 12.8:1  (footer body)
     teal-200 #A9E2E6 on navy-900 ............ 11.5:1  (footer links/credo)
     navy-200 #BCCCE0 on navy-900 ............ 10.1:1  (footer legal bar)
     error-700 #9E4A28 on cream .............. 5.8:1   (functional form errors only)
   ========================================================================== */

/* ---- Tokens --------------------------------------------------------------- */

:root {
  /* color ramps (50 = lightest, 900 = darkest; 700 navy / 500 teal / 500-600
     green are the locked brand hexes) */
  --navy-50:  #EEF2F8;
  --navy-100: #DCE4EF;
  --navy-200: #BCCCE0;
  --navy-300: #93AACB;
  --navy-400: #6886B0;
  --navy-500: #426198;
  --navy-600: #2C4C82;
  --navy-700: #1A3A6B;
  --navy-800: #132B50;
  --navy-900: #0D1F3C;

  --teal-50:  #EBF8F9;
  --teal-100: #D3F0F2;
  --teal-200: #A9E2E6;
  --teal-300: #7FD4DA;
  --teal-400: #4FC4CD;
  --teal-500: #2BB5C0;
  --teal-600: #18929C;
  --teal-700: #0E6B74;
  --teal-800: #0A4F56;
  --teal-900: #07383D;

  --green-50:  #F2F9EA;
  --green-100: #E2F2D2;
  --green-200: #C7E6A6;
  --green-300: #A8D878;
  --green-400: #8FCC57;
  --green-500: #7CC246;
  --green-600: #5BA130;
  --green-700: #47821F;
  --green-800: #356317;
  --green-900: #25470F;

  --neutral-50:  #FCFAF6;  /* brand cream */
  --neutral-100: #F6F1E8;
  --neutral-200: #EDE7DA;
  --neutral-300: #E3DDD0;
  --neutral-400: #C9C2B2;
  --neutral-500: #A8A294;
  --neutral-600: #75705F;
  --neutral-700: #57534A;
  --neutral-800: #3B3831;
  --neutral-900: #232119;

  /* legacy aliases (v1 names, kept as the contract) */
  --navy: var(--navy-700);
  --navy-deep: var(--navy-800);
  --teal: var(--teal-500);        /* decorative accents only — not body text */
  --teal-dark: var(--teal-700);   /* links, eyebrows: 6.0:1 on cream */
  --green: var(--green-500);      /* decorative accents only */
  --green-dark: var(--green-600); /* CTA bg; white bold large text = 3.2:1 */
  --green-deeper: var(--green-700);
  --cream: var(--neutral-50);
  --cream-deep: #F4EFE5;
  --ink: #25303E;
  --ink-soft: #4D5868;
  --white: #FFFFFF;
  --border: var(--neutral-300);
  /* Functional status color — NOT brand. Form errors only, never decorative.
     Muted terracotta: 5.8:1 on cream, 6.1:1 on white (logged in CONFIRM). */
  --error-700: #9E4A28;

  /* gradients — radial glows fade through a mid stop to 0 at 100% so no
     edge arc ever paints (the v2 "seam"); grain overlay dithers the rest */
  --grad-hero:
    radial-gradient(60rem 34rem at 80% 8%, rgba(43, 181, 192, 0.17), rgba(43, 181, 192, 0.06) 55%, transparent 100%),
    linear-gradient(166deg, var(--navy-900) 0%, var(--navy-800) 36%, var(--navy-700) 72%, var(--navy-600) 100%);
  --grad-band:
    radial-gradient(48rem 26rem at 14% 110%, rgba(43, 181, 192, 0.14), rgba(43, 181, 192, 0.05) 55%, transparent 100%),
    linear-gradient(120deg, var(--navy-800) 0%, var(--navy-700) 58%, var(--teal-900) 100%);
  --grad-duotone:
    linear-gradient(150deg, var(--navy-600) 0%, var(--navy-700) 45%, var(--teal-800) 100%);

  /* type */
  --font-serif: "Frank Ruhl Libre", "Frank Ruhl Libre Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans 3 Fallback", "Segoe UI", Tahoma, Arial, sans-serif;
  --text-display-1: clamp(2.75rem, 6vw, 4.5rem);
  --text-display-2: clamp(2.25rem, 4.5vw, 3.25rem);
  --text-h2: clamp(1.65rem, 3vw, 2.3rem);
  --text-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --text-h3-sm: 1.125rem;        /* compact list headings */
  --text-caps: 0.78rem;          /* the one caps-label size */
  --tracking-caps: 0.16em;       /* the one caps-label tracking */
  --leading-display: 1.08;
  --leading-tight: 1.16;

  /* space — three rhythm steps so pages alternate dense and airy movements */
  --space-section: clamp(4rem, 10vw, 8rem);
  --space-section-tight: clamp(3rem, 6vw, 5rem);
  --space-section-dense: clamp(2.25rem, 4vw, 3.5rem);
  --space-section-grand: clamp(6rem, 12vw, 9rem);
  --measure: 42rem;
  --container: 72rem;
  --container-narrow: 46rem;

  /* depth */
  --shadow-rest: 0 1px 2px rgba(19, 41, 77, 0.05), 0 2px 10px rgba(19, 41, 77, 0.06);
  --shadow-raised: 0 4px 14px rgba(19, 41, 77, 0.10), 0 14px 36px rgba(19, 41, 77, 0.10);
  --shadow-overlay: 0 8px 24px rgba(19, 41, 77, 0.16), 0 28px 64px rgba(19, 41, 77, 0.20);

  /* radius + motion */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;
  --dur-slow: 400ms;

  /* texture: faint paper-grain dot grid on cream, ≤2% ink */
  --texture-cream: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><circle cx="6" cy="6" r="1" fill="%231A3A6B" fill-opacity="0.02"/><circle cx="20" cy="20" r="1" fill="%231A3A6B" fill-opacity="0.02"/></svg>');
}

/* ---- Webfonts: self-hosted subset variable WOFF2 (see website/README.md) --- */

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../assets/fonts/FrankRuhlLibre-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../assets/fonts/FrankRuhlLibre-hebrew.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metrics-tuned local fallback so the hero serif doesn't reflow on font swap */
@font-face {
  font-family: "Frank Ruhl Libre Fallback";
  src: local("Georgia");
  size-adjust: 106%;
  ascent-override: 79%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* Metrics-tuned local fallback for body sans — computed from Source Sans 3
   hhea metrics vs Arial (frequency-weighted advance widths), so body copy
   occupies identical lines before and after the webfont swap (zero CLS) */
@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Arial");
  size-adjust: 90.25%;
  ascent-override: 113.47%;
  descent-override: 44.32%;
  line-gap-override: 0%;
}

/* ---- Reset / base -------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--texture-cream);
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy-700);
  line-height: var(--leading-tight);
  margin: 0 0 0.85rem;
}

h1 { font-size: var(--text-display-2); font-weight: 700; line-height: var(--leading-display); }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-h3); font-weight: 700; }

.display-1 { font-size: var(--text-display-1); font-weight: 900; letter-spacing: -0.02em; }
.display-2 { font-size: var(--text-display-2); font-weight: 700; letter-spacing: -0.008em; }

p, ul, ol { margin: 0 0 1.1rem; }

a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-700); }
@media (prefers-reduced-motion: no-preference) {
  a { transition: color var(--dur-fast) var(--ease-out-soft); }
}

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

/* On dark surfaces the teal-700 ring vanishes (≈1.7:1 on navy). Context-aware
   ring: teal-300 (8.3:1 on navy-800, 9.7:1 on navy-900) with a navy-900
   separator filling the offset gap so the ring also reads against light
   elements (e.g. white-filled buttons) inside dark bands. */
.hero--navy :focus-visible,
.hero--vision :focus-visible,
.quote-band :focus-visible,
.cta-band :focus-visible,
.vision-frame :focus-visible,
.photo-slot :focus-visible,
.portrait-slot :focus-visible,
.site-footer :focus-visible {
  outline: 3px solid var(--teal-300);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy-900);
}

[lang="he"] { font-family: var(--font-serif); unicode-bidi: isolate; }

/* ---- Layout helpers ------------------------------------------------------ */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-section-tight); }
.section--dense { padding-block: var(--space-section-dense); }
.section--grand { padding-block: var(--space-section-grand); }

.section--alt {
  background-color: var(--white);
  border-block: 1px solid var(--neutral-200);
}

/* Intermediate tonal step (≈3% darker than cream) so adjacent cream movements
   never sit white-on-white; marks a dense movement boundary */
.section--tonal {
  background-color: var(--neutral-100);
  border-block: 1px solid var(--neutral-200);
}

.measure { max-width: var(--measure); }
.measure-heading { max-width: 22ch; }

.center { text-align: center; }
.center .measure,
.center .measure-heading { margin-inline: auto; }

/* ---- Caps label (systematized: one size, one tracking, sitewide) ---------- */

.caps-label {
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 1.1rem;
}

/* ---- Skip link ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -10rem;
  z-index: 100;
  background: var(--navy-700);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---- Header / navigation -------------------------------------------------- */

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Header gutter aligns with the content gutter (same container, same padding).
   Scrolled state animates transform/box-shadow only — no layout properties. */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.55rem;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow var(--dur-med) var(--ease-out-soft); }
  .brand img { transition: transform var(--dur-med) var(--ease-out-soft); }
}
.site-header.is-scrolled { box-shadow: var(--shadow-raised); }
.site-header.is-scrolled .brand img { transform: scale(0.78); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 56px; height: 56px; transform-origin: left center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-700);
}
.brand-descriptor {
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 700;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-700);
}
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle .bar { transition: transform var(--dur-fast) var(--ease-out-soft), opacity var(--dur-fast) ease; }
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer: internally scrollable so short-landscape phones can always
   reach the Support CTA; overscroll stays contained */
.site-nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-overlay);
  max-height: calc(100vh - 4.5rem);
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .site-nav {
    transition: opacity var(--dur-med) var(--ease-out-soft),
                transform var(--dur-med) var(--ease-out-soft),
                visibility 0s linear var(--dur-med);
  }
  .site-nav li {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--dur-med) var(--ease-out-soft), transform var(--dur-med) var(--ease-out-soft);
  }
  .site-nav.is-open li { opacity: 1; transform: none; }
  .site-nav.is-open li:nth-child(2) { transition-delay: 30ms; }
  .site-nav.is-open li:nth-child(3) { transition-delay: 60ms; }
  .site-nav.is-open li:nth-child(4) { transition-delay: 90ms; }
  .site-nav.is-open li:nth-child(5) { transition-delay: 120ms; }
  .site-nav.is-open li:nth-child(6) { transition-delay: 150ms; }
  .site-nav.is-open li:nth-child(7) { transition-delay: 180ms; }
  .site-nav.is-open li:nth-child(8) { transition-delay: 210ms; }
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.65rem;
  text-decoration: none;
  color: var(--navy-700);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { background: var(--cream); color: var(--navy-700); }
.site-nav a[aria-current="page"] {
  color: var(--teal-700);
  box-shadow: inset 3px 0 0 var(--teal-500);
  background: var(--cream);
}

.site-nav .nav-cta a {
  background: var(--green-700); /* white on green-700 = 4.7:1, normal-text AA */
  color: var(--white);
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.site-nav .nav-cta a:hover { background: var(--green-800); }

/* Desktop nav from 64em (1024px): no laptop ever sees the phone drawer.
   12.5px+ caps at every desktop width — width is recovered by hiding the
   brand descriptor (64–84em) and tightening padding, never by shrinking
   below 0.78rem or abbreviating items. */
@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: none;
    max-height: none;
    overflow: visible;
  }
  .site-nav li { opacity: 1; transform: none; }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  .site-nav a {
    padding: 0.55rem 0.28rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    white-space: nowrap;
  }
  .site-nav a:hover { background: none; }
  .site-nav a:not(.nav-cta a)::after {
    content: "";
    position: absolute;
    left: 0.28rem;
    right: 100%;
    bottom: 0.18rem;
    height: 2px;
    background: var(--teal-500);
  }
  @media (prefers-reduced-motion: no-preference) {
    .site-nav a:not(.nav-cta a)::after { transition: right 200ms var(--ease-out-soft); }
  }
  .site-nav a:hover::after { right: 0.28rem; }
  .site-nav a[aria-current="page"] {
    box-shadow: none;
    background: none;
    border-radius: 0;
    color: var(--teal-700);
  }
  .site-nav a[aria-current="page"]::after { right: 0.28rem; }
  .site-nav .nav-cta a {
    margin: 0 0 0 0.4rem;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-transform: none;
  }
  .site-nav .nav-cta a::after { content: none; }
  /* recover row width: descriptor off, compact brand, slim header gutter */
  .brand-descriptor { display: none; }
  .brand { gap: 0.55rem; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.3rem; }
  .site-header .container { padding-inline: 1rem; gap: 0.75rem; }
}

/* Roomier nav once there's width to spare */
@media (min-width: 84em) {
  .brand-descriptor { display: block; }
  .brand { gap: 0.7rem; }
  .brand img { width: 56px; height: 56px; }
  .brand-name { font-size: 1.45rem; }
  .site-header .container { padding-inline: clamp(1.25rem, 4vw, 2rem); gap: 1rem; }
  .site-nav a { padding-inline: 0.45rem; letter-spacing: 0.04em; }
  .site-nav a:not(.nav-cta a)::after { left: 0.45rem; }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0.45rem; }
  .site-nav .nav-cta a { margin-left: 0.5rem; padding: 0.55rem 1rem; font-size: 1rem; }
}
@media (min-width: 92em) {
  .site-nav a { font-size: 0.84rem; letter-spacing: 0.05em; padding-inline: 0.55rem; }
  .site-nav a:not(.nav-cta a)::after { left: 0.55rem; }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0.55rem; }
  .site-nav .nav-cta a { margin-left: 0.6rem; padding: 0.6rem 1.1rem; }
}

/* The Support Kinyan button keeps its button styling even on its own page —
   the generic aria-current rules above would otherwise strip its background. */
.site-nav .nav-cta a[aria-current="page"] {
  background: var(--green-700);
  color: var(--white);
  box-shadow: none;
  border-radius: var(--radius-sm);
}
.site-nav .nav-cta a[aria-current="page"]:hover { background: var(--green-800); }

/* ---- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color var(--dur-fast) var(--ease-out-soft),
                color var(--dur-fast) var(--ease-out-soft),
                transform var(--dur-fast) var(--ease-out-soft),
                box-shadow var(--dur-fast) var(--ease-out-soft);
  }
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-raised); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-rest); }

/* Paired buttons share one size; hierarchy comes from color, not scale.
   green-700 carries white at 4.7:1 — normal-text AA with no size proviso. */
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  font-size: 1.0625rem;
}
.btn-primary:hover { background: var(--green-800); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
  font-size: 1.0625rem;
}
.btn-secondary:hover { background: var(--navy-700); color: var(--white); }

.hero--navy .btn-secondary,
.hero--vision .btn-secondary { color: var(--white); border-color: var(--white); }
.hero--navy .btn-secondary:hover,
.hero--vision .btn-secondary:hover { background: var(--white); color: var(--navy-700); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* Quiet link with animated underline (arrow lives in the copy) */
.arrow-link {
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  padding-bottom: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .arrow-link { transition: background-size 200ms var(--ease-out-soft), color var(--dur-fast) ease; }
}
.arrow-link:hover { background-size: 100% 2px; text-decoration: none; }

/* ---- Hero ------------------------------------------------------------------ */

.hero {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero--navy { background: var(--grad-hero); }
.hero--navy h1, .hero--navy p { color: var(--white); }
.hero--navy .eyebrow { color: var(--teal-300); } /* 8.6:1 on navy-800 */

.hero .container { position: relative; z-index: 2; }
.hero .lead { font-size: clamp(1.15rem, 2vw, 1.3rem); max-width: var(--measure); color: var(--ink); }
.hero--navy .lead, .hero--vision .lead { color: var(--navy-100); }
.hero .btn-group { margin-top: 2rem; }

/* Home hero: full-height editorial moment (svh: stable when the mobile URL
   bar collapses; vh line is the fallback for older engines) */
.hero--home {
  display: flex;
  align-items: center;
  min-height: clamp(34rem, 88vh, 46rem);
  min-height: clamp(34rem, 88svh, 46rem);
}
.hero--home h1 { max-width: 42rem; } /* rem, not ch: wrap identical across font swap */

/* Oversized Hebrew watermark — the brand's signature device. Committed: it
   bleeds off the top-right at an opacity that registers as art (0.11 ≤ the
   documented 0.14 ceiling), and on the home hero it "settles" once on load
   (the site's single theatrical moment — see the signature block below). */
.hero-hebrew {
  position: absolute;
  z-index: 1;
  right: -0.07em;
  top: -0.13em;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(16rem, 38vw, 34rem);
  line-height: 1;
  color: var(--white);
  opacity: 0.11;
  pointer-events: none;
  user-select: none;
}

/* Motif watermark in hero (decorative). On the home hero it grounds the
   bottom-left under the קנין; on interior heroes it counterweights the empty
   right half instead. */
.hero-motif {
  position: absolute;
  z-index: 1;
  left: clamp(-6rem, -8vw, -3rem);
  bottom: -4rem;
  width: clamp(16rem, 30vw, 26rem);
  color: var(--teal-500);
  opacity: 0.1;
  pointer-events: none;
}
@media (min-width: 64em) {
  .hero--navy:not(.hero--home) .hero-motif,
  .hero--vision .hero-motif {
    left: auto;
    right: clamp(-5rem, -6vw, -2rem);
    bottom: auto;
    top: 50%;
    transform: translateY(-46%);
    width: clamp(18rem, 28vw, 26rem);
    opacity: 0.13;
  }
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.2rem;
  color: var(--teal-300);
  opacity: 0.85;
}
.scroll-cue svg { width: 26px; height: 26px; }
@media (max-height: 30em) { .scroll-cue { display: none; } }

/* Editorial masthead hero (cream, journal-style) */
.hero--masthead {
  border-bottom: 1px solid var(--neutral-300);
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero--masthead h1 {
  font-size: var(--text-display-1);
  font-weight: 900;
  letter-spacing: -0.012em;
  max-width: 24ch;
}
.hero--masthead .lead { color: var(--ink); }

/* Two-column editorial prose with drop cap */
.prose-2col { max-width: 62rem; }
.prose-2col p { max-width: var(--measure); }
@media (min-width: 64em) {
  .prose-2col { column-count: 2; column-gap: clamp(2.5rem, 4vw, 4rem); }
  .prose-2col p { max-width: none; }
  .prose-2col p:first-child { margin-top: 0; }
}
.drop-cap > p:first-child::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.04em 0.12em 0 0;
  color: var(--navy-700);
}

/* Hebrew watermark on light sections */
.has-hebrew-watermark { position: relative; overflow: hidden; }
.has-hebrew-watermark > .container { position: relative; z-index: 2; }
.hebrew-watermark {
  position: absolute;
  z-index: 1;
  right: -0.04em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(9rem, 24vw, 17rem);
  line-height: 1;
  color: var(--navy-700);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

/* ---- Motif & ornaments ------------------------------------------------------ */

.motif { color: var(--teal-600); }

/* Section divider: motif mark between two hairlines */
.divider-motif {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2rem;
  color: var(--teal-600);
}
.divider-motif::before,
.divider-motif::after {
  content: "";
  height: 1px;
  background: var(--neutral-300);
  flex: 0 1 4rem;
}
.divider-motif svg { width: 28px; height: 28px; flex: none; }
.center .divider-motif { justify-content: center; }

/* Small Hebrew mark beside headings */
.heading-mark {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.heading-mark .hebrew-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--teal-600);
}

/* Legacy thin rule, restyled */
.divider-rule {
  border: 0;
  height: 3px;
  width: 4.5rem;
  background: linear-gradient(90deg, var(--green-500), var(--teal-500));
  margin: 0 0 1.6rem;
  border-radius: 2px;
}
.center .divider-rule { margin-inline: auto; }

/* ---- Icon block -------------------------------------------------------------- */

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 1.1rem;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---- Cards & grids ------------------------------------------------------------ */

/* Credo: three ornamented columns */
.credo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  list-style: none;
  text-align: center;
}
.credo-col { padding-inline: clamp(0rem, 2vw, 1.5rem); }
.credo-col .icon-badge { margin-inline: auto; }
.credo-col h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.6rem;
}
.credo-col p { margin-bottom: 0; color: var(--ink); }
@media (min-width: 48em) {
  .credo-grid { grid-template-columns: repeat(3, 1fr); }
  .credo-col + .credo-col { border-left: 1px solid var(--neutral-200); }
}

/* Standards teaser: numbered editorial list (home) */
.std-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  margin: 2.25rem 0 0;
  list-style: none;
  counter-reset: none;
  border-top: 1px solid var(--neutral-300);
}
.std-teaser li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.05rem 0.25rem;
  border-bottom: 1px solid var(--neutral-300);
}
.std-teaser .std-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--teal-600);
  flex: none;
  min-width: 2.4ch;
  font-variant-numeric: lining-nums tabular-nums;
}
.std-teaser h3 { margin: 0; font-size: var(--text-h3); }
@media (min-width: 64em) {
  .std-teaser {
    grid-template-columns: repeat(5, 1fr);
    border-top: 0;
    gap: 0;
  }
  .std-teaser li {
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.5rem 1.4rem 0.5rem 0;
    margin-right: 1.4rem;
    border-bottom: 0;
    border-right: 1px solid var(--neutral-300);
  }
  .std-teaser li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
  .std-teaser .std-num { font-size: 2.6rem; }
  .std-teaser h3 { font-size: var(--text-h3-sm); }
}

/* Standards: full-width editorial numbered rows (the showpiece) */
.std-rows-label { color: var(--teal-700); margin-bottom: 0; }
.std-rows {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  padding: 0;
}
.std-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2.5rem;
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
  border-top: 1px solid var(--neutral-300);
}
.std-row:last-child { border-bottom: 1px solid var(--neutral-300); }
.std-row-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 0.9;
  color: var(--teal-600); /* 4.0:1 on white — AA for large/graphic */
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.std-row-body h3 {
  font-size: var(--text-display-2);
  font-weight: 700;
  letter-spacing: -0.008em;
  margin-bottom: 0.6rem;
}
.std-row-body p { max-width: var(--measure); margin-bottom: 0; font-size: 1.125rem; }
@media (min-width: 64em) {
  .std-row { grid-template-columns: 11rem 1fr; align-items: start; }
  .std-row-num { padding-top: 0.4rem; }
}

/* Audit: domain icon grid */
.domain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}
/* Non-interactive surface: no hover lift (lift implies clickability).
   Flex column so trailing pills (giving cards) pin to the card foot instead
   of trapping whitespace mid-card. */
.domain-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-rest);
  display: flex;
  flex-direction: column;
}
.domain-card h3 { margin-bottom: 0.5rem; }
.domain-card .icon-badge { flex: none; }
.domain-card .amount-tbd { margin-top: auto; padding-top: 0.4em; align-self: flex-start; }
.domain-card p:last-child { margin-bottom: 0; }
@media (min-width: 48em) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .domain-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 78em) {
  .domain-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Master Teachers: honor-roll cards */
.badge-cohort {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: 999px;
  padding: 0.4em 1.1em;
  vertical-align: middle;
  margin-bottom: 1rem;
}
.honor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}
@media (min-width: 40em) {
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .honor-grid { grid-template-columns: repeat(3, 1fr); }
}
.honor-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-rest);
}
/* Medal, not avatar: radial duotone depth, hairline teal ring held off the
   disc by a white gap, faint letterpress on the initials */
.monogram {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  background: radial-gradient(circle at 32% 28%, var(--navy-500), var(--navy-700) 55%, var(--navy-800) 100%);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px var(--white),
    0 0 0 4px var(--teal-400),
    var(--shadow-rest);
  text-shadow: 0 1px 1px rgba(7, 22, 46, 0.55);
}
.honor-card h3 { margin-bottom: 0.45rem; font-size: var(--text-h3); }
.honor-card p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft); /* 7.5:1 on white */
}

/* Art-directed placeholder for future photography */
.photo-slot {
  position: relative;
  overflow: hidden;
  background: var(--grad-duotone);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  min-height: clamp(11rem, 28vw, 17rem);
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  margin-top: 2.25rem;
}
.photo-slot .band-motif {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  width: clamp(8rem, 16vw, 12rem);
  color: var(--teal-300);
  opacity: 0.22;
  pointer-events: none;
}
.photo-slot-caption {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-200); /* 7.7:1 on navy-600..teal-800 gradient */
  border: 1px solid rgba(169, 226, 230, 0.45);
  border: 1px solid color-mix(in srgb, var(--teal-200) 45%, transparent);
  border-radius: 999px;
  padding: 0.45em 1.2em;
  background: rgba(13, 31, 60, 0.35);
  background: color-mix(in srgb, var(--navy-900) 35%, transparent);
}

/* Audit: connected vertical timeline */
.timeline {
  list-style: none;
  counter-reset: tstep;
  margin: 2.25rem 0 0;
  padding: 0;
  position: relative;
  max-width: 46rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 2px;
  background: linear-gradient(var(--teal-400), var(--navy-300));
}

/* The one scroll-driven flourish: the timeline line draws itself as the list
   crosses the viewport. Scrubbed transform only; the static gradient line
   above is the fallback (and the reduced-motion state). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .timeline::before { background: var(--navy-100); }
    .timeline::after {
      content: "";
      position: absolute;
      left: 1.35rem;
      top: 1.4rem;
      bottom: 1.4rem;
      width: 2px;
      background: linear-gradient(var(--teal-400), var(--green-600));
      transform-origin: top;
      animation: timeline-draw linear both;
      animation-timeline: view();
      animation-range: entry 30% exit 85%;
    }
  }
  @keyframes timeline-draw {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
  }
}
.timeline li {
  counter-increment: tstep;
  position: relative;
  padding: 0 0 clamp(1.75rem, 3.5vw, 2.75rem) 4.25rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(tstep);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy-700);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--navy-200);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline h3 { margin-bottom: 0.3rem; font-size: var(--text-h3); }
.timeline p { margin: 0; max-width: var(--measure); }

/* Academy roadmap: ascending variant — the line climbs toward green, the
   destination node is green */
.timeline--ascend::before { background: linear-gradient(var(--teal-400), var(--green-500)); }
.timeline--ascend li:last-child::before { background: var(--green-700); } /* white numeral 4.7:1 */

/* ---- Bands ---------------------------------------------------------------------- */

/* Vision frame (Academy teaser): a framed duotone object on cream —
   "in development" reads through the dashed inner keyline */
.vision-frame {
  position: relative;
  overflow: hidden;
  background: var(--grad-duotone);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-raised);
}
.vision-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(127, 212, 218, 0.5);
  border: 1px dashed color-mix(in srgb, var(--teal-300) 50%, transparent);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.vision-frame h2, .vision-frame p { color: var(--white); position: relative; z-index: 2; }
.vision-frame .eyebrow { color: var(--teal-300); }
.vision-frame a:not(.btn) { color: var(--teal-200); }
.vision-frame a:not(.btn):hover { color: var(--white); }
.vision-frame .band-motif {
  position: absolute;
  right: -2.5rem;
  bottom: -3rem;
  width: clamp(11rem, 20vw, 16rem);
  color: var(--teal-300);
  opacity: 0.14;
  pointer-events: none;
}

/* Pull-quote band (one per page max) — teal-leaning so stacked bands read
   as distinct movements */
.quote-band {
  background: var(--grad-duotone);
  padding-block: var(--space-section-tight);
  position: relative;
  overflow: hidden;
}
.quote-band + .cta-band {
  border-top: 1px solid rgba(127, 212, 218, 0.3);
  border-top: 1px solid color-mix(in srgb, var(--teal-300) 30%, transparent);
}
.quote-band h2 {
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 1.25rem;
}
.quote-band .pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  max-width: 34ch;
  margin: 0;
}
/* Long-form quotes scale down a step so the band stays a band */
.quote-band .pull-quote--long {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  max-width: 46ch;
}

/* Essay layout (Our Approach) */
.essay h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 1rem; }
.essay .measure { font-size: 1.125rem; line-height: 1.75; }
.quote-band .band-motif {
  position: absolute;
  right: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(11rem, 20vw, 16rem);
  color: var(--teal-300);
  opacity: 0.12;
  pointer-events: none;
}
.quote-band .container { position: relative; z-index: 2; }

/* CTA band v2: split composition */
.cta-band {
  background: var(--grad-band);
  padding-block: var(--space-section-tight);
  position: relative;
  overflow: hidden;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band a:not(.btn) { color: var(--teal-200); }
.cta-band a:not(.btn):hover { color: var(--white); }

.cta-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

/* Single statement + action variant (interior pages) */
.cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
.cta-row p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  margin: 0;
  max-width: 26ch;
}
@media (min-width: 48em) {
  .cta-row { grid-template-columns: 1fr auto; gap: 2.5rem; }
}
.cta-cell { position: relative; }
.cta-cell p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  margin-bottom: 0.9rem;
  max-width: 24ch;
}
.cta-cell .arrow-link { font-size: 1.0625rem; font-family: var(--font-sans); }
@media (min-width: 48em) {
  .cta-split { grid-template-columns: 1fr 1fr; }
  .cta-cell + .cta-cell {
    border-left: 1px solid rgba(127, 212, 218, 0.3);
    border-left: 1px solid color-mix(in srgb, var(--teal-300) 30%, transparent);
    padding-left: clamp(1.75rem, 4vw, 3rem);
  }
}

/* ---- Forms -------------------------------------------------------------------------- */

.form { max-width: var(--measure); }
.form-field { margin-bottom: 1.4rem; }
.form-field label {
  display: block;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--neutral-500);
  border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: no-preference) {
  .form-field input, .form-field select, .form-field textarea {
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  }
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border: 2px solid var(--teal-700);
  box-shadow: 0 0 0 4px rgba(43, 181, 192, 0.18);
  padding: calc(0.75rem - 1px) calc(0.85rem - 1px);
}
.form-note { font-size: 0.92rem; color: var(--ink-soft); }
.form-submit {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-200);
}

/* ---- Footer ---------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: var(--navy-100); /* 12.8:1 on navy-900 */
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}
.site-footer .container { position: relative; z-index: 2; }
.site-footer p { margin-bottom: 0.5rem; }
.site-footer a { color: var(--teal-200); } /* 11.5:1 on navy-900 */
.site-footer a:hover { color: var(--white); }

.footer-motif {
  position: absolute;
  z-index: 1;
  right: -3rem;
  bottom: -4rem;
  width: clamp(14rem, 24vw, 20rem);
  color: var(--teal-300);
  opacity: 0.07;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
}

.footer-brand img {
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  background: var(--white);
  padding: 7px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
}
.site-footer .footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.45;
}
.site-footer .footer-credo {
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-size: var(--text-caps);
  font-weight: 700;
  color: var(--teal-200); /* 11.5:1 on navy-900 */
  margin-top: 0.9rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-300); /* 9.7:1 on navy-900 */
  margin: 0 0 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-legal {
  border-top: 1px solid rgba(169, 226, 230, 0.22);
  border-top: 1px solid color-mix(in srgb, var(--teal-200) 22%, transparent);
  padding-block: 1.4rem;
  font-size: 0.88rem;
  color: var(--navy-200); /* 10.1:1 on navy-900 */
}
.footer-legal p { margin: 0; }
.footer-legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0.7rem 0 0;
  padding: 0;
}
.footer-legal-links a { color: var(--teal-200); }
.footer-copyright { margin: 0.7rem 0 0 !important; color: var(--navy-300); }

/* ---- Misc --------------------------------------------------------------------------------- */

.after-grid { margin-top: 2rem; }

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--navy-700);
  line-height: 1.4;
}

/* Credential block: colophon-style centered credit line */
.credential-section { padding-block: var(--space-section-tight); }
.credential-line {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--navy-600); /* 7.6:1 on cream */
  max-width: 52rem;
}

.notice {
  background: var(--cream-deep);
  border-left: 4px solid var(--teal-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.25rem;
  max-width: var(--measure);
}
.notice p:last-child { margin-bottom: 0; }

/* Support: designed TBD state (one idiom — .amount-tbd and .tbd-pill are the
   same component) + sealed trust block */
.amount-tbd,
.tbd-pill {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px dashed var(--neutral-400);
  border-radius: 999px;
  padding: 0.4em 1em;
}
.trust-block {
  max-width: var(--measure);
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  box-shadow: var(--shadow-rest);
}
.trust-block .icon-badge { margin-inline: auto; }
.trust-block p {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--navy-600);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* "In development" notice: dashed keyline */
.notice--dashed {
  border: 2px dashed var(--teal-600);
  border-radius: var(--radius-md);
  background: var(--teal-50);
  padding: 1.4rem 1.5rem;
}

/* Vision hero (Academy): teal-leaning temperature */
.hero--vision {
  background:
    radial-gradient(52rem 30rem at 85% 0%, rgba(43, 181, 192, 0.24), transparent 62%),
    linear-gradient(162deg, var(--navy-800) 0%, var(--navy-600) 48%, var(--teal-800) 100%);
}
.hero--vision h1, .hero--vision p { color: var(--white); }
.hero--vision .eyebrow { color: var(--teal-300); }
.hero--vision .lead { color: var(--navy-100); }

/* ---- 404: warm motif moment --------------------------------------------------------------------- */

.hero--404 {
  padding-block: clamp(5rem, 12vw, 9rem);
}
.hero--404 .container { display: flex; flex-direction: column; align-items: center; }
.hero--404 .lead { margin-inline: auto; }
.hero--404 .btn-group { justify-content: center; }
.motif-404 {
  width: clamp(7rem, 14vw, 10rem);
  color: var(--green-600);
  margin-bottom: 2rem;
}

/* ---- Contact split layout ---------------------------------------------------------------------- */

.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 64em) {
  .contact-split { grid-template-columns: 1.6fr 1fr; }
}
.contact-aside {
  background: var(--cream-deep);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.contact-aside .icon-badge { background: var(--white); }
.contact-aside a { font-weight: 700; font-size: 1.15rem; }

/* ---- FAQ ------------------------------------------------------------------------------------- */

.faq-index {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2.5rem;
}
@media (min-width: 48em) {
  .faq-index { grid-template-columns: 1fr 1fr; max-width: 56rem; }
}
.faq-index a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--teal-700);
  border-bottom: 1px solid var(--neutral-200);
}
.faq-index a:hover { color: var(--navy-700); }

/* FAQ as native disclosure widgets; the h2 inside each summary keeps the
   document outline identical to the old flat list */
.faq-list details {
  border-bottom: 1px solid var(--neutral-200);
  max-width: 52rem;
}
.faq-list details:first-of-type { border-top: 1px solid var(--neutral-200); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0.25rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--teal-600);
  flex: none;
}
.faq-list details[open] summary::after { content: "\2212"; } /* minus */
.faq-list summary h2 {
  font-size: var(--text-h3);
  margin: 0;
  display: inline;
}
.faq-list summary:hover h2 { color: var(--teal-700); }
.faq-list details > p { padding: 0 0.25rem 1.3rem; margin: 0; color: var(--ink); }
.faq-list details:target { background: var(--teal-50); }

/* ---- Messaging upgrade components (June 2026) ------------------------------------------------
   New variants composed from the v2 vocabulary — no token or existing-component changes. */

/* Credential block v2: individual presentation of the creators */
.person-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) {
  .person-grid { grid-template-columns: repeat(3, 1fr); }
}
.person-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-rest);
  display: flex;
  flex-direction: column;
}
/* trailing placeholder/bio pins to the card foot so a row of cards with
   differently-wrapping names keeps one clean bottom edge */
.person-card .tbd-pill { margin-top: auto; align-self: center; }
.person-card .person-bio { margin-top: 0.85rem; }
/* portrait-ratio variant of the photo-slot idiom */
.portrait-slot {
  position: relative;
  overflow: hidden;
  background: var(--grad-duotone);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  min-height: 10.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.8rem;
  margin-bottom: 1.4rem;
}
.portrait-slot .band-motif {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 5.5rem;
  color: var(--teal-300);
  opacity: 0.22;
  pointer-events: none;
}
.portrait-slot .photo-slot-caption { padding: 0.4em 1em; }
/* owner-supplied headshot: a square avatar fills the slot edge-to-edge */
.portrait-slot--photo {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  background: var(--navy-800);
}
.portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-card h3 { margin-bottom: 0.4rem; font-size: var(--text-h3); }
.person-role {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft); /* 7.5:1 on white */
}
.person-bio { margin: 0.85rem 0 0; font-size: 0.98rem; color: var(--ink-soft); }

/* Endorsed-by tier */
.endorse-tier { margin-top: 3rem; }
.endorse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
  max-width: 52rem;
}
@media (min-width: 48em) {
  .endorse-grid { grid-template-columns: repeat(2, 1fr); }
}
.endorse-card {
  background: var(--cream-deep);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.endorse-card h3 { font-size: var(--text-h3); margin-bottom: 0.3rem; }
/* clarifies that endorsers endorse the MTSA — they did not create it
   (parallel muted-caps treatment to the creators' "Co-creator of the MTSA") */
.endorse-role {
  margin: 0 0 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft); /* 4.6:1 on cream-deep */
}
.endorse-stature {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--navy-600); /* 7.0:1 on cream-deep */
  font-size: 1.02rem;
  line-height: 1.55;
}
/* endorser portrait: large square portrait, matched to the creator cards */
.endorse-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 0 1.3rem;
  box-shadow: var(--shadow-rest);
  background: var(--navy-800);
}

/* ── Featured-person sections (about): endorsement letter + essay ──────── */
/* Section header shared by both featured-person blocks */
.feature-person__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.feature-person__avatar {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-rest);
  background: var(--navy-800);
}
.feature-person__head h2 { margin: 0; }
.feature-person__credential {
  margin: 0.2rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Dr. Pelcovitz: framing text beside the scanned endorsement letter */
.endorsement-feature .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 56em) {
  .endorsement-feature .feature-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.letter-figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: clamp(0.65rem, 1.5vw, 1rem);
  box-shadow: var(--shadow-raised);
}
.letter-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.letter-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-align: center;
}
.letter-figure figcaption a { white-space: nowrap; }

/* Sarah Chana Radcliffe: long-form essay */
.essay-feature blockquote {
  margin: 1.6rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--teal-300);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy-700);
}
.essay-source {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Compact credential strip (home): names + roles in one row */
.person-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) {
  .person-strip { grid-template-columns: repeat(3, 1fr); }
}
.person-strip li {
  border-top: 2px solid var(--teal-200);
  padding-top: 0.9rem;
}
.person-strip h3 { font-size: var(--text-h3-sm); margin-bottom: 0.25rem; }
.person-strip p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Inside the Audit: the whole movement sits on one centered exhibit column */
.specimen-col { max-width: 56rem; margin-inline: auto; }
.mtsa-specimen {
  max-width: 56rem;
  margin-inline: auto;
  margin-top: 2.25rem;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.mtsa-head { background: var(--grad-band); padding: 1.4rem 1.6rem; }
.mtsa-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-h3-sm);
  letter-spacing: 0.02em;
  color: var(--white);
}
.mtsa-sub {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-300);
}
.mtsa-items { list-style: none; margin: 0; padding: 0; }
.mtsa-items li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem 1.25rem;
  padding: 1.05rem 1.6rem;
}
.mtsa-items li + li { border-top: 1px solid var(--neutral-200); }
@media (min-width: 48em) {
  .mtsa-items li { grid-template-columns: 13rem 1fr; align-items: baseline; }
}
.mtsa-domain {
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-700); /* 5.9:1 on white */
}
.mtsa-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--navy-700);
}
.mtsa-foot {
  background: var(--cream-deep);
  border-top: 1px solid var(--neutral-300);
  padding: 1.2rem 1.6rem;
}
.mtsa-rubric-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mtsa-rubric {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mtsa-rubric li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.rubric-num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-700);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
}

/* Coaching curriculum (teacher-development): numbered chapter-theme list,
   same numeral + hairline idiom as the standards teaser */
.curriculum-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 3rem;
  padding: 0;
  margin: 2.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--neutral-300);
  max-width: 62rem;
}
@media (min-width: 48em) {
  .curriculum-list { grid-template-columns: repeat(2, 1fr); }
}
.curriculum-list li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.05rem 0.25rem;
  border-bottom: 1px solid var(--neutral-300);
}
.curriculum-list .std-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--teal-600); /* large serif numerals: 3.0 UI bar, 3.4:1 on cream */
  flex: none;
  min-width: 2.4ch;
}
.curriculum-list h3 { margin: 0; font-size: var(--text-h3-sm); }

/* Why trio: three reasons packaged at the point of action */
.why-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) {
  .why-trio { grid-template-columns: repeat(3, 1fr); }
}
.why-trio li {
  border-top: 2px solid var(--teal-200);
  padding-top: 0.9rem;
}
.why-trio h3 { font-size: var(--text-h3-sm); margin-bottom: 0.35rem; }
.why-trio p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }

/* ============================================================================
   AUDIT — assurance layer (June 2026). "Institutional dossier" register built
   on v3 tokens only; no new brand colors, no new motion (reveals reused).
   Components: trust-strip · criteria-row · score-legend · standard-callout ·
   scorecard · mekoros-quote · governance-panel.
   ============================================================================ */

/* ---- Hero trust strip: the seal as a notary mark + instrument + stat chips - */
.trust-strip {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
  max-width: 54rem;
}
.trust-seal-wrap {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), var(--shadow-raised);
}
.trust-seal { width: 90%; height: 90%; }
.trust-meta { flex: 1 1 16rem; }
.trust-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-200); /* 11.5:1 on navy-900; AA on every hero stop */
}
.trust-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.01em;
}
.trust-note {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--navy-100); /* 12.8:1 on navy-900, 4.5+:1 on navy-600 worst stop */
}
.trust-chips {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.9rem;
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.trust-chips li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0;
  color: var(--navy-100);
  font-size: 0.86rem;
}
.chip-fig {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--teal-200); /* 11.5:1 on navy-900, AA on every hero stop */
  font-variant-numeric: lining-nums tabular-nums;
}
.chip-lab { max-width: 8rem; }
@media (min-width: 48em) {
  .trust-chips {
    flex: 0 1 auto;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0.2rem 0 0.2rem 1.9rem;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    align-self: stretch;
  }
}

/* ---- The Standard: criteria rows (domain → sub-domains + indicators) -------- */
.standard-lede { color: var(--ink-soft); margin-top: 0.6rem; }
.criteria-list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--neutral-300);
}
.criteria-row {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--neutral-300);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem 3rem;
}
@media (min-width: 60em) {
  .criteria-row { grid-template-columns: 20rem 1fr; align-items: start; }
}
.criteria-head { display: flex; gap: 0.9rem; align-items: flex-start; }
.criteria-head .icon-badge {
  margin-bottom: 0;
  flex: none;
  width: 46px;
  height: 46px;
}
.criteria-head .icon-badge svg { width: 22px; height: 22px; }
.criteria-tag {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-700); /* 6.0:1 on cream */
  font-variant-numeric: lining-nums tabular-nums;
}
.criteria-head-text h3 { margin: 0 0 0.4rem; font-size: var(--text-h3); }
.criteria-desc { margin: 0; color: var(--ink); font-size: 0.98rem; }
.criteria-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem 2.25rem;
}
@media (min-width: 40em) {
  .criteria-detail { grid-template-columns: 15rem 1fr; }
}
.criteria-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-soft); /* 7.5:1 on white, 6.x:1 on cream */
}
.criteria-subs ul,
.criteria-indicators ul { margin: 0; padding: 0; list-style: none; }
.criteria-subs li {
  font-family: var(--font-serif);
  color: var(--navy-700); /* 9.2:1 on cream */
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--neutral-200);
}
.criteria-subs li:last-child { border-bottom: 0; }
.criteria-indicators li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}
.criteria-indicators li + li { margin-top: 0.15rem; }
.criteria-indicators li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.72em;
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--teal-600); /* 3.0+:1 UI mark on cream */
  border-radius: 1px;
  transform: rotate(45deg);
}
.standard-foot { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.standard-instrument-note {
  font-family: var(--font-serif);
  color: var(--navy-600); /* 7.6:1 on cream */
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* ---- The Scoring Standard: score legend + competency-rules callout --------- */
.score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
@media (min-width: 52em) {
  .score-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.score-legend,
.standard-callout {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  padding: clamp(1.4rem, 3vw, 1.9rem);
}
.score-legend-label,
.standard-callout-label { margin: 0 0 1rem; }
.score-scale { list-style: none; margin: 0; padding: 0; }
.score-step {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
}
.score-step + .score-step { border-top: 1px solid var(--neutral-200); }
.score-num {
  flex: none;
  min-width: 2.4rem;
  height: 2.4rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--navy-700);
  color: var(--white); /* 9.7:1 */
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: lining-nums tabular-nums;
}
.score-step--na .score-num {
  background: var(--neutral-200);
  color: var(--neutral-700); /* 6.0:1 on neutral-200 */
  font-family: var(--font-sans);
  font-size: 0.8rem;
}
.score-term { font-size: 0.98rem; color: var(--ink); }
.score-term b { color: var(--navy-700); font-weight: 700; }

.standard-rules { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.standard-rules li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--neutral-200);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}
.standard-rules li:last-child { border-bottom: 0; }
.standard-rules li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--teal-600);
  border-radius: 1px;
}
.standard-rules li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---- The Deliverable: anonymized, labeled sample scorecard ----------------- */
.scorecard {
  max-width: 40rem;
  margin: clamp(1.75rem, 3.5vw, 2.5rem) auto 0;
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.scorecard-flag {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--neutral-300);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-soft); /* 4.6:1 on cream-deep */
}
.scorecard-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 2px solid var(--navy-700);
}
.scorecard-seal { width: 60px; height: 60px; flex: none; }
.scorecard-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-700);
}
.scorecard-sub {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.scorecard-rows { list-style: none; margin: 0; padding: 0; }
.scorecard-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.1rem 1rem;
  padding: 0.8rem 1.5rem;
}
.scorecard-rows li + li { border-top: 1px solid var(--neutral-200); }
.sc-domain {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-serif);
  color: var(--navy-700);
  font-size: 1.02rem;
}
.sc-meta {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.sc-result {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  text-align: center;
}
.sc-result--met {
  background: var(--green-50);
  color: var(--green-800); /* 7.0:1 on green-50 */
  border: 1px solid var(--green-200);
}
.sc-result--dev {
  background: var(--cream-deep);
  color: var(--navy-600); /* 7.0:1 on cream-deep */
  border: 1px solid var(--neutral-400);
}
/* narrow screens: stack the result tag below the domain so a long tag never
   squeezes the "13 indicators" label onto two lines */
@media (max-width: 26em) {
  .scorecard-rows li { grid-template-columns: 1fr; gap: 0.15rem; }
  .sc-result { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.45rem; }
}
.scorecard-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.7rem 1.5rem 1.4rem;
  border-top: 1px solid var(--neutral-300);
  background: var(--cream-deep);
}
.sc-sign-line { display: flex; flex-direction: column; }
.sc-sign-rule {
  height: 0;
  border-bottom: 1.5px solid var(--navy-300);
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
}
.sc-sign-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.deliverable-list {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  padding: 0;
  max-width: 40rem;
  border-top: 1px solid var(--neutral-300);
}
.deliverable-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.1rem;
  border-bottom: 1px solid var(--neutral-300);
  color: var(--ink);
}
.deliverable-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.05em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--green-700); /* 4.4:1 UI on cream */
  border-bottom: 2px solid var(--green-700);
  transform: rotate(-45deg);
}

/* ---- The Foundation: mekoros (themes only; paraphrased, attributed) -------- */
.mekoros-strip {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 56em) {
  .mekoros-strip { grid-template-columns: repeat(3, 1fr); }
}
.mekoros-quote {
  background: var(--cream-deep);
  border: 1px solid var(--neutral-300);
  border-left: 3px solid var(--teal-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.mekoros-theme {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--navy-700); /* 8.5:1 on cream-deep */
}
.mekoros-source {
  margin: auto 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.mekoros-link {
  margin: 0.6rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--neutral-300);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-700); /* 5.5:1 on cream-deep */
}
.mekoros-note { margin-top: 1.6rem; font-size: 0.92rem; color: var(--ink-soft); }

/* ---- Governance panel: the standards board (people + endorsements) --------- */
.governance-seal { width: 76px; height: 76px; margin: 0 auto 1.1rem; }
.governance-section .endorse-tier { margin-top: 2.5rem; }
.governance-section .credential-line { margin-inline: auto; }
/* reserve a uniform name block so the role line + pill align across the board
   even when names wrap to 2 vs 3 lines */
.governance-section .person-card h3 {
  min-height: 3.4em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* dignified monogram medallion while headshots are pending (decorative) */
.portrait-monogram {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.3rem;
  letter-spacing: 0.04em;
  color: var(--white); /* on duotone navy slot — >4.5:1 on every stop */
}

/* ---- Scroll reveal -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out-soft);
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }

  html.js .reveal-group > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out-soft);
  }
  /* Stagger driven by a --i custom property set in main.js (capped there at 8,
     so a 10-item group choreographs instead of items 7+ popping with item 1) */
  html.js .reveal-group.is-visible > * {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 65ms);
  }
}

/* ==========================================================================
   v3 — the best-of-the-best layer. Everything below is progressive
   enhancement: each block is inert (or has a designed fallback) in engines
   that don't support it.
   ========================================================================== */

/* ---- Typography micro-craft ------------------------------------------------ */

h1, h2, h3 { text-wrap: balance; }
p, .lead { text-wrap: pretty; }

.pull-quote { hanging-punctuation: first; } /* Safari only; harmless elsewhere */

/* True drop cap where the engine supports it; the float cap is the fallback */
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .drop-cap > p:first-child::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    padding: 0 0.14em 0 0;
    -webkit-initial-letter: 3;
    initial-letter: 3;
  }
}

/* ---- Designed states --------------------------------------------------------- */

html {
  -webkit-tap-highlight-color: rgba(43, 181, 192, 0.18);
  scrollbar-gutter: stable;
}

::selection { background: var(--navy-700); color: var(--cream); }
.hero--navy ::selection,
.hero--vision ::selection,
.quote-band ::selection,
.cta-band ::selection,
.vision-frame ::selection,
.site-footer ::selection { background: var(--cream); color: var(--navy-800); }

/* Anchor-jump orientation (FAQ index, #people, …): a static ink-low highlight —
   no motion, so it needs no reduced-motion gate */
h2:target, h3:target {
  background: linear-gradient(transparent 58%, var(--teal-100) 58%);
  display: inline-block;
  padding-inline: 0.15em;
  margin-inline: -0.15em;
}

/* ---- Form errors (functional terracotta — never decorative) ------------------ */

/* Hints stay out of the visual flow until the field is actually invalid
   (still announced via aria-describedby either way) */
.form-hint {
  display: none;
  font-size: 0.88rem;
  margin-top: 0.35rem;
}
.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid {
  border-color: var(--error-700);
  box-shadow: 0 0 0 1px var(--error-700);
}
.form-field input:user-invalid + .form-hint,
.form-field select:user-invalid + .form-hint,
.form-field textarea:user-invalid + .form-hint {
  display: block;
  color: var(--error-700);
  font-weight: 600;
}
.form-status:not(:empty) {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--error-700);
}
.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- Grain: feTurbulence paper noise on navy bands only (felt, not seen) ----- */

.hero--navy::before,
.hero--vision::before,
.quote-band::before,
.cta-band::before,
.vision-frame::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---- Glass header (dignified glassmorphism; solid header is the fallback) ---- */

@supports ((-webkit-backdrop-filter: blur(14px)) or (backdrop-filter: blur(14px))) {
  .site-header {
    background: rgba(252, 250, 246, 0.85);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
  }
}

/* ---- Cross-document view transitions (zero JS; absent engines just navigate) - */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 300ms; }
  /* the header holds still while the page content crossfades */
  .site-header { view-transition-name: site-header; }
}

/* ---- Scroll-driven reveals (view() timeline; IntersectionObserver fallback) -- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.js .reveal {
      opacity: 1;
      transform: none;
      transition: none;
      animation: reveal-scrub var(--dur-slow) var(--ease-out-soft) both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
  @keyframes reveal-scrub {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---- The signature moment: קנין settles into the headline (home hero) --------
   The site's one theatrical motion. Once, on load, ≤600ms, transform/opacity
   only. Reduced-motion users (and no-JS visitors) get the static final state. */

@media (prefers-reduced-motion: no-preference) {
  html.js .hero--home .hero-hebrew {
    animation: kinyan-settle 600ms var(--ease-out-soft) both;
  }
  html.js .hero--home h1 {
    animation: kinyan-reveal 520ms var(--ease-out-soft) 120ms both;
  }
  @keyframes kinyan-settle {
    from { opacity: 0.3; transform: scale(1.035); }
    to   { opacity: 0.11; transform: none; }
  }
  @keyframes kinyan-reveal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---- Print: ink on white, chrome and ornament gone, links legible ------------ */

@media print {
  .site-header, .site-footer, .nav-toggle, .scroll-cue, .skip-link,
  .hero-hebrew, .hero-motif, .hebrew-watermark, .band-motif, .footer-motif,
  .divider-motif, .cta-band, .quote-band { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  .hero--navy, .hero--vision, .section, .section--alt { background: #fff; padding-block: 1.5rem; }
  .hero--navy h1, .hero--navy p, .hero--vision h1, .hero--vision p { color: #000; }
  a { color: #000; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .card, .domain-card, .honor-card, .person-card { box-shadow: none; border: 1px solid #bbb; page-break-inside: avoid; }
}

/* Final guard: anyone who prefers reduced motion gets none, anywhere. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   HOME — evidence stat callout (owner-directed critique implementation,
   July 2026). Composes v3 tokens only: serif display figure in teal-700
   (6.0:1 on cream, large text), ink-soft support line. No new motion.
   ========================================================================== */
.stat-callout { margin: 0.25rem auto 1.9rem; }
.stat-figure {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-display-1);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--teal-700);
}
.stat-label {
  display: block;
  margin: 0.6rem auto 0;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* HOME — First Five name roll (owner-directed critique implementation, July
   2026): the proof carries names on the homepage itself. Serif, navy-700 on
   the alt cream band (9.2:1); teal-600 middot separators are decorative. */
.name-roll {
  list-style: none;
  margin: 0.4rem auto 1.1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.65rem;
  row-gap: 0.35rem;
  max-width: 56rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--navy-700);
}
.name-roll li + li::before { content: "\00B7"; margin-right: 0.65rem; color: var(--teal-600); }

/* HOME — closing band with both the statement row and pathway cells
   (owner-directed critique implementation, July 2026) */
.cta-row + .cta-split {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(127, 212, 218, 0.3);
  border-top: 1px solid color-mix(in srgb, var(--teal-300) 30%, transparent);
}

/* ==========================================================================
   INSTITUTIONAL POLISH — soul layer (owner-directed, July 2026)
   Composes v3 tokens only; no new brand colors; every accent below is
   decorative or an existing AA contract pair; no new motion outside gates.
   ========================================================================== */

/* 1 · (Removed after visual review: an oversized quote-mark watermark on the
      bands read as clutter against the existing motif. Restraint won.) */

/* 2 · Home hero: atmospheric depth — two soft brand-color glows beneath the
      קנין watermark (z-0 < watermark z-1 < content z-2). */
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(56rem 34rem at 16% 28%, rgba(43, 181, 192, 0.13), transparent 62%),
    radial-gradient(44rem 32rem at 86% 88%, rgba(124, 194, 70, 0.07), transparent 65%);
  pointer-events: none;
}
.hero--home h1 { font-size: clamp(2.9rem, 6.2vw, 5rem); }

/* 3 · Evidence: asymmetric editorial grid — the stat holds the left column,
      the story reads on the right. Breaks the centered cadence on purpose. */
.evidence-grid { text-align: left; display: grid; gap: 2rem; }
@media (min-width: 64em) {
  .evidence-grid {
    grid-template-columns: minmax(20rem, 0.9fr) 1.1fr;
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }
}
.evidence-grid .stat-callout,
.evidence-grid .stat-label,
.evidence-grid .measure { margin-inline: 0; }
.evidence-grid h2 { margin-bottom: 0.75rem; }

/* Evidence painting — "The Teacher Is the Variable" (owner-supplied artwork, July 2026).
   Framed like .letter-figure so artwork reads as a documented object, not decoration. */
.painting-figure {
  margin: clamp(2.4rem, 5vw, 3.75rem) auto 0;
  max-width: 62rem;
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: clamp(0.65rem, 1.5vw, 1rem);
  box-shadow: var(--shadow-raised);
}
.painting-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.painting-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Research ledger — HOME #research (July 2026). Citation-backed evidence set
   as an institutional record: a centerpiece economic figure, a scale stat row,
   then the findings as full-width editorial year rows (the .std-rows showpiece
   idiom, dated 2004→2025). Every block closes on a linked peer-reviewed
   citation. v3 tokens only; no new JS, no new motion (.reveal reused);
   teal-600 year numerals follow the .std-row-num large-numeral idiom
   (decorative, aria-hidden; 3.5:1 on neutral-100 — large-text AA, pairing in
   contrast_check.py). */
.research-head .measure { margin-top: 0; }
.research-callout {
  text-align: center;
  margin: clamp(2.5rem, 5vw, 4rem) auto clamp(2rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  max-width: 52rem;
}
.research-callout-kicker {
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 1rem;
}
.research-callout-figure {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy-700);
  font-variant-numeric: lining-nums;
  margin: 0 0 1rem;
}
.research-callout-label {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
}
.research-callout-label em { font-style: italic; }
.research-stats {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 0;
}
@media (min-width: 48em) {
  .research-stats { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
}
.research-stat {
  border-top: 3px solid var(--teal-500); /* decorative rule, not text */
  padding-top: 1rem;
}
.research-stat-figure {
  display: block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy-700);
  font-variant-numeric: lining-nums;
}
.research-stat-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 24rem;
}
.research-rows-label { color: var(--teal-700); margin-bottom: 0; }
.research-rows {
  list-style: none;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  padding: 0;
}
.research-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2.5rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--neutral-300);
}
.research-row:last-child { border-bottom: 1px solid var(--neutral-300); }
.research-year {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 0.95;
  color: var(--teal-600); /* large serif numerals, .std-row-num idiom */
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.research-row-tag { color: var(--teal-700); margin: 0.35rem 0 0.5rem; }
.research-row-body h3 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.008em;
  margin-bottom: 0.6rem;
}
.research-row-body p { max-width: var(--measure); margin-bottom: 0; }
@media (min-width: 64em) {
  .research-row { grid-template-columns: 10.5rem 1fr; align-items: start; }
  .research-year { padding-top: 0.5rem; }
  .research-row-tag { margin-top: 0; }
}
.research-cite {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.research-cite--center { margin-top: 1.25rem; }
.research-cite a { color: var(--teal-700); text-decoration-color: var(--teal-300); }
.research-cite a:hover { color: var(--navy-700); }
.research-cite cite { font-style: italic; }
.research-note {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-left: 1.25rem;
  border-left: 3px solid var(--neutral-300);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 4 · Lexicon entry — the name, set like a dictionary object. */
.lexicon { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 64em) {
  .lexicon {
    grid-template-columns: minmax(19rem, 25rem) 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}
.lexicon-entry {
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-rest);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.lexicon-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--navy-700);
  margin: 0 0 0.3rem;
}
.lexicon-word [lang="he"] { font-weight: 900; margin-inline-start: 0.35rem; }
.lexicon-pos {
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 1rem;
}
.lexicon-def {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.lexicon > .measure { margin-bottom: 0; }


/* Kinyan painting system: project-bound artwork used as content, not ornament. */
.band-art,
.page-art,
.mission-art,
.lexicon-art,
.std-row-art {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: clamp(0.55rem, 1.3vw, 0.9rem);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.band-art picture,
.page-art picture,
.mission-art picture,
.lexicon-art picture,
.std-row-art picture { display: block; }
.band-art img,
.page-art img,
.mission-art img,
.lexicon-art img,
.std-row-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.quote-band--with-art { padding-block: clamp(3.25rem, 7vw, 5.75rem); }
.quote-band--with-art .container {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.quote-band--with-art .band-art {
  background: rgba(252, 250, 246, 0.94);
  border-color: rgba(220, 228, 239, 0.58);
}
.quote-band--with-art .band-art img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
@media (min-width: 64em) {
  .quote-band--with-art .container {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  }
  .quote-band--with-art h2,
  .quote-band--with-art .pull-quote { grid-column: 1; }
  .quote-band--with-art .band-art {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.page-art {
  max-width: 62rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
}
.page-art--flush { margin-top: 0; }
.page-art--wide img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mission-split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
.mission-art {
  max-width: 24rem;
  margin-inline: auto;
}
.mission-art img,
.lexicon-art img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.mission-copy .measure { margin-inline: 0; }
.mission-copy .divider-rule { margin-left: 0; margin-right: auto; }
@media (min-width: 56em) {
  .mission-split { grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr); }
  .mission-split--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr); }
  .mission-split--reverse .mission-art { order: 2; }
  .mission-split--reverse .mission-copy { order: 1; }
}

.std-row-art {
  max-width: 30rem;
  margin-top: 1.25rem;
}
.std-row-art img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 64em) {
  .std-row {
    grid-template-columns: 8rem minmax(0, 1fr) minmax(18rem, 28rem);
    align-items: center;
  }
  .std-row-num { padding-top: 0; }
  .std-row-art { margin-top: 0; }
}
@media (min-width: 64em) and (max-width: 72em) {
  .std-row {
    grid-template-columns: 7rem minmax(0, 1fr) minmax(16rem, 22rem);
    gap: 2rem;
  }
}

.lexicon-art { max-width: 23rem; }
@media (min-width: 64em) {
  .lexicon {
    grid-template-columns: minmax(17rem, 22rem) minmax(17rem, 22rem) minmax(0, 1fr);
    gap: clamp(1.75rem, 3vw, 3rem);
  }
  .lexicon > .measure { align-self: center; }
}

/* 5 · Buttons: statelier proportions (same hierarchy, same colors). */
.btn { padding: 0.9rem 1.9rem; letter-spacing: 0.012em; }
