/* ==========================================================================
   PATHWAY CHESS — Collegiate Dark Academia
   --------------------------------------------------------------------------
   PALETTE — three colors, each with one job:
     #1B1B1E  charcoal   → page ground; text on gold fills
     #F4EFE6  parchment  → all body/heading text, hairline rules
     #C8A45C  gold       → CTA fills, key headings, numerals, small details

   CONTRAST — measured, not estimated:
     gold on charcoal      7.3:1  ✓ usable as TEXT on dark (headings, links)
     charcoal on gold      7.3:1  ✓ CTA button fills
     parchment on charcoal 15.0:1 ✓ body text
     gold on parchment     2.1:1  ✗ never — gold cannot sit on a cream surface

   That last line is why this page has no full-parchment panels. Gold is the
   inverse of a red accent: red needed light panels to be legible, gold needs
   dark ones. Section rhythm therefore comes from three DARK surface tiers
   plus hairline rules, not from inverted light blocks.

     base   #1B1B1E  sections
     band   #202023  supporting sections (credentials, testimonials)
     raised #242326  cards
   Verified: parchment ≥13.6:1 and gold ≥6.6:1 on all three.
   ========================================================================== */

/* ------------------------------ 1. TOKENS ------------------------------ */
:root {
  /* Brand */
  --charcoal:  #1B1B1E;
  --parchment: #F4EFE6;
  --gold:      #C8A45C;

  /* Surface tiers — parchment at low alpha over charcoal, no new hues */
  --surface-base:   #1B1B1E;
  --surface-band:   #202023;
  --surface-raised: #242326;

  /* Ink — parchment at descending alpha (all ≥5.5:1 on every tier) */
  --ink:    var(--parchment);
  --ink-2:  rgba(244, 239, 230, 0.72);
  --ink-3:  rgba(244, 239, 230, 0.58);

  /* Lines */
  --line:        rgba(244, 239, 230, 0.13);
  --line-strong: rgba(244, 239, 230, 0.22);
  --line-faint:  rgba(244, 239, 230, 0.07);
  --gold-line:   rgba(200, 164, 92, 0.38);

  /* Placeholder fills */
  --p-08: rgba(244, 239, 230, 0.08);
  --p-04: rgba(244, 239, 230, 0.04);

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-small:   0.875rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.0625rem, 0.95rem + 0.55vw, 1.3125rem);
  --fs-h3:      1.3125rem;
  --fs-h2:      clamp(1.875rem, 1.35rem + 2.2vw, 2.875rem);
  --fs-h1:      clamp(2.375rem, 1.5rem + 3.9vw, 4.25rem);

  /* Rhythm — 8px base */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;
  --sp-4: 2rem;    --sp-6: 3rem;   --sp-8: 4rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 8.5rem);

  /* Layout */
  --wrap: 1280px;
  --gutter: clamp(1.25rem, 0.7rem + 2.6vw, 3rem);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-base: 260ms;

  /* Layers */
  --z-header: 100;
  --z-nav: 90;
}

@media (max-width: 719px) {
  :root { --header-h: 64px; --fs-body: 1rem; }
}


/* ------------------------------ 2. BASE ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--surface-base);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

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

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: var(--charcoal); }

/* Focus — parchment reads at 13.6:1 or better on every surface tier */
:focus-visible {
  outline: 2px solid var(--parchment);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; left: var(--gutter); top: 0;
  transform: translateY(-140%);
  z-index: 1000;
  background: var(--parchment); color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-small); font-weight: 600;
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.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;
}

.sprite { position: absolute; }
.sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.ico {
  width: 1.05em; height: 1.05em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}


/* ---------------------------- 3. LAYOUT ---------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* Supporting sections sit one tier up — a shift you feel, not one you notice */
.band {
  background-color: var(--surface-band);
  border-block: 1px solid var(--line-faint);
}


/* -------------------------- 4. TYPE PIECES -------------------------- */
/* Small-caps serif eyebrow — uppercase + wide tracking is the reliable
   cross-font implementation; Playfair's true smcp is not in the web build. */
.eyebrow {
  font-family: var(--serif);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);          /* 7.3:1 on base, 6.9:1 on band */
  margin: 0 0 var(--sp-3);
}

.section-title { font-size: var(--fs-h2); max-width: 20ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-title { max-width: 24ch; margin-inline: auto; }

.section-intro { color: var(--ink-2); max-width: 56ch; margin-top: var(--sp-3); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 54ch;
}

.note {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-3);
  margin-top: var(--sp-4);
  max-width: 62ch;
}

.rule {
  display: block;
  width: 64px; height: 2px;
  background: var(--line-strong);
  margin-block: var(--sp-3);
}
.rule--accent { background: var(--gold); }

/* Visible marker for unverified placeholder content */
.ph { border-bottom: 1px dotted currentColor; opacity: 0.85; }


/* --------------------------- 5. BUTTONS --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--gold);
  color: var(--charcoal);            /* 7.3:1 on gold */
  border: 1px solid var(--gold);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease);
}
.btn:hover {
  background: var(--parchment);
  border-color: var(--parchment);
  color: var(--charcoal);            /* 15.0:1 */
}
.btn:active { background: var(--ink-2); }

.btn--sm { min-height: 42px; padding: 0.5rem 1.125rem; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 1rem 2.25rem; font-size: 1rem; }

/* Text link with arrow — gold is legible on every surface here */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.link-arrow .ico { transition: transform var(--t-base) var(--ease); }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* Quieter secondary beside a solid gold CTA */
.link-arrow--ondark { color: var(--parchment); border-bottom-color: var(--line-strong); }
.link-arrow--ondark:hover { color: var(--gold); border-bottom-color: var(--gold); }


/* --------------------------- 6. HEADER --------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.site-header.is-stuck {
  background: rgba(27, 27, 30, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
}

.wordmark {
  display: inline-flex; align-items: center; gap: 0.625rem;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark__text { font-weight: 400; }
.wordmark__text strong { font-weight: 700; }
/* Two offset board squares — the one ornament in the header */
.wordmark__mark {
  width: 10px; height: 10px; flex: none;
  background: var(--gold);
  box-shadow: 4px -4px 0 -1px var(--line-strong);
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.875rem); }
.nav__list a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.nav__list a:hover { color: var(--ink); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  margin-right: -0.5rem;
  color: var(--ink);
}
.nav-toggle__icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

@media (max-width: 979px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    z-index: var(--z-nav);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0;
    padding: var(--sp-6) var(--gutter) var(--sp-8);
    background: var(--surface-base);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-base) var(--ease),
                transform var(--t-base) var(--ease),
                visibility var(--t-base) var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a {
    min-height: 60px; width: 100%;
    font-family: var(--serif);
    font-size: 1.375rem;
    color: var(--ink);
    border-bottom: 0;
  }
  /* Full-size target in the mobile sheet, not the compact header variant */
  .nav__cta { width: 100%; min-height: 52px; margin-top: var(--sp-4); }
}


/* ----------------------------- 7. HERO ----------------------------- */
.hero {
  padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem) clamp(4rem, 2rem + 7vw, 7rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.hero__title { font-size: var(--fs-h1); max-width: 15ch; }
.hero__body .rule { margin-block: var(--sp-4); }

.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: clamp(2rem, 4vw, 2.75rem);
}


/* --------------------- 8. FIGURES / PHOTO SLOTS --------------------- */
.frame { margin: 0; }

.frame__ph,
.frame img {
  display: block; width: 100%;
  border: 1px solid var(--line);
}

/* Duotone so mixed real photos still read as one set */
.frame img {
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  object-fit: cover;
}

.frame--4x5 .frame__ph, .frame--4x5 img { aspect-ratio: 4 / 5; }
.frame--3x2 .frame__ph, .frame--3x2 img { aspect-ratio: 3 / 2; }

/* Faint 8×8 board — reads as intentional, not broken */
.frame__ph {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.375rem;
  background-color: var(--p-04);
  background-image: conic-gradient(from 90deg,
      var(--p-04) 0 25%, transparent 0 50%,
      var(--p-04) 0 75%, transparent 0);
  background-size: 25% 20%;
  text-align: center; padding: var(--sp-2);
}
/* Inset in a raised card: drops back to the base tier so it reads recessed */
.frame--inset .frame__ph {
  background-color: var(--surface-base);
  background-image: conic-gradient(from 90deg,
      var(--p-04) 0 25%, transparent 0 50%,
      var(--p-04) 0 75%, transparent 0);
  background-size: 25% 33.333%;
  border-color: transparent;
  border-bottom: 1px solid var(--line);
}

.frame__ph-kicker {
  font-family: var(--serif);
  font-size: var(--fs-eyebrow);
  font-weight: 600; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--ink-3);
}
.frame__ph-note { font-size: 0.75rem; color: var(--line-strong); letter-spacing: 0.04em; }

.frame__cap {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-small);
  color: var(--ink-3);
  margin-top: 0.875rem;
  padding-left: 0.875rem;
  border-left: 2px solid var(--gold);
  line-height: 1.5;
}


/* --------------------- 9. CREDENTIAL / TRUST BAR --------------------- */
.credentials { padding-block: clamp(3rem, 4.5vw, 4.25rem); }

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.cred {
  padding: var(--sp-1) clamp(1.25rem, 2.4vw, 2.25rem);
  border-left: 1px solid var(--line);
}
.cred:first-child { border-left: 0; padding-left: 0; }
.cred:last-child { padding-right: 0; }

.cred__icon {
  width: 26px; height: 26px;
  color: var(--gold);
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 0.875rem;
}

.cred__value {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.cred__note {
  font-size: 0.875rem; line-height: 1.6;
  color: var(--ink-3);
  margin: 0; max-width: 30ch;
}


/* ---------------------- 10. PROGRAM CARDS ---------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  transition: border-color var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease);
}
.card:hover { border-color: var(--gold-line); }
.card:hover .card__title { color: var(--gold); }

.card__body {
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(1.5rem, 2vw, 1.875rem);
}

.card__index {
  font-family: var(--serif);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);              /* 6.6:1 on the raised tier */
  margin: 0 0 0.625rem;
}

.card__title {
  font-size: var(--fs-h3); font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  transition: color var(--t-base) var(--ease);
}

.card__text {
  font-size: 0.9375rem; line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: var(--sp-3);
}

.meta { margin: 0 0 var(--sp-3); border-top: 1px solid var(--line); }
.meta__row {
  display: flex; justify-content: space-between; gap: var(--sp-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-faint);
  font-size: 0.8125rem;
}
.meta dt {
  font-family: var(--serif);
  letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.6875rem; font-weight: 600;
  color: var(--ink-3);
  padding-top: 0.15em;
}
.meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.card .link-arrow { margin-top: auto; align-self: flex-start; }


/* ------------------------ 11. APPROACH ------------------------ */
.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}

.approach__figure { position: sticky; top: calc(var(--header-h) + 3rem); }
.approach__body > p { color: var(--ink-2); max-width: 62ch; }
.approach__body .section-title { margin-bottom: var(--sp-3); max-width: 22ch; }

.principles {
  display: grid; gap: 0;
  margin-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
/* The numeral holds column 1 across both rows; title + copy share column 2. */
.principle__num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 0.35em;
  font-variant-numeric: tabular-nums;
}
.principle__title, .principle p { grid-column: 2; }
.principle__title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.principle p { font-size: 0.9375rem; color: var(--ink-3); margin: 0; max-width: 52ch; }


/* --------------------- 12. TESTIMONIALS --------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.quote {
  display: flex; flex-direction: column;   /* lets bylines align to a baseline */
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.6vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.quote:first-child { border-left: 0; padding-left: 0; }
.quote:last-child { padding-right: 0; }

.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
/* Hanging gold quote mark */
.quote blockquote p::before {
  content: "\201C";
  color: var(--gold);
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -0.18em;
  margin-right: 0.06em;
  margin-left: -0.42em;
}

.quote__by {
  display: flex; flex-direction: column; gap: 0.15rem;
  margin-top: auto;              /* bylines sit level across the row */
  padding-block-start: var(--sp-3);
  border-top: 1px solid var(--line);
}
.quote__name {
  font-family: var(--serif);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  align-self: flex-start;
}
.quote__role { font-size: 0.8125rem; color: var(--ink-3); }


/* ------------------------ 13. FOOTER CTA ------------------------ */
.cta {
  padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  border-top: 3px solid var(--gold);
  text-align: center;
}
.cta__inner { max-width: 62ch; margin-inline: auto; }

.cta__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  max-width: 18ch;
  margin-inline: auto;
}
.cta__text {
  color: var(--ink-2);
  margin-top: var(--sp-3);
  max-width: 54ch; margin-inline: auto;
}
.cta__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: clamp(2rem, 4vw, 2.75rem);
}


/* -------------------------- 14. FOOTER -------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 5vw, 4.5rem) var(--sp-4);
  font-size: 0.9375rem;
}

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

.site-footer__brand { max-width: 34ch; }
.wordmark--footer { font-size: 1rem; }
.site-footer__blurb {
  color: var(--ink-3);
  font-size: 0.875rem; line-height: 1.7;
  margin-top: var(--sp-2);
}

.site-footer__heading {
  font-family: var(--serif);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-2);
}
.site-footer__col ul { display: grid; gap: 0.125rem; }
.site-footer__col a,
.site-footer__contact li {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.site-footer__col a {
  border-bottom: 1px solid transparent;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.site-footer__col a:hover { color: var(--ink); border-bottom-color: var(--gold); }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-faint);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
/* Inline legal links: 44px height, and the 24px gap supplies target spacing */
.site-footer__legal a {
  display: inline-flex; align-items: center; min-height: 44px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.site-footer__legal a:hover { color: var(--ink); border-bottom-color: var(--gold); }


/* -------------------------- 15. MOTION -------------------------- */
[data-hero] {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 720ms var(--ease) forwards;
  animation-delay: calc(160ms + (var(--i, 0) * 110ms));
}
.hero__figure[data-hero] { transform: translateY(20px); }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-hero], [data-reveal] { opacity: 1 !important; transform: none !important; }
  .link-arrow:hover .ico { transform: none; }
}


/* ------------------------ 16. RESPONSIVE ------------------------ */
@media (max-width: 1099px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; max-width: 46ch; }
}

@media (max-width: 979px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .hero__title { max-width: 18ch; }
  .hero__figure { max-width: 420px; }

  .approach__grid { grid-template-columns: minmax(0, 1fr); }
  .approach__figure { position: static; max-width: 380px; }

  .credentials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred { padding: var(--sp-3) clamp(1.25rem, 3vw, 2rem); border-top: 1px solid var(--line); }
  .cred:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cred:nth-child(even) { padding-right: 0; }
  .cred:nth-child(-n+2) { border-top: 0; padding-top: 0; }

  .quotes { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .quote { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .quote:first-child { border-top: 1px solid var(--line); }
}

@media (max-width: 719px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__actions, .cta__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .hero__actions .link-arrow, .cta__actions .link-arrow { justify-content: center; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 439px) {
  .credentials__grid { grid-template-columns: minmax(0, 1fr); }
  .cred { border-left: 0; padding-inline: 0; border-top: 1px solid var(--line); }
  .cred:first-child { border-top: 0; padding-top: 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
