/* ==========================================================================
   Exodius 31579 — css/site.css
   Design system for the rebuilt site. Written in WEB-003.

   Reproduces design/homepage-approved.html as reusable classes.
   Mobile-first, no framework, no build step. One typeface: Inter Tight,
   self-hosted from assets/fonts/ (§0) — no third-party origin on any page.

   CONTENTS
     0.  Font                  — @font-face for the self-hosted Inter Tight
     1.  Tokens                — colours, type scale, spacing, motion
     2.  Base                  — reset, document, media defaults
     3.  Layout                — container, section, panel, split, flow
     4.  Typography            — display sizes, eyebrow, prose, caption
     5.  Links and text nav    — underline links, header, mobile menu
     6.  Buttons               — charcoal and tan, 2px radius
     7.  Media                 — photo grade, overlays, full-bleed, figure, video
     8.  Rule lists            — results and outreach key/value rows
     9.  Footer
     10. Utilities             — skip link, visually-hidden, focus, centre-screen
     11. Reveal on scroll      — paired with js/site.js
     12. Reduced motion        — kills every transition, animation and autoplay
     13. Home                  — index.html only (sits before §12, see its note)
     14. Robot page            — robot.html only (sits before §12, same reason)
     15. Team page             — team.html only (sits before §12, same reason)
     16. Outreach page         — outreach.html only (sits before §12, same reason)
     17. PitFund page          — pitfund.html only (sits before §12, same reason)
     18. Prose page            — long-form text pages (privacy.html), same placement
     19. Partner page          — partner.html only, same placement

   CONTRAST NOTE (PLAN §7 asks for axe 0 serious/critical). Two colours from the
   approved mockup do not clear WCAG AA at small sizes, so the system splits
   them in two: the approved value stays for display type (where the AA Large
   3:1 threshold applies) and a darkened/lightened sibling carries small text.
     · #A8703F (dark tan)  3.73:1 on cream  -> --accent      display type only
       #8F5B2A             5.11:1 on cream  -> --accent-ink  labels, body, rows
     · #8A847D (grey)      3.33:1 on cream  -> --ink-ghost   display type only
       #8A847D             4.39:1 on charcoal — fails as footer fine print
       #9A948C             5.40:1 on charcoal -> --cream-ghost
   ========================================================================== */


/* ==========================================================================
   0. FONT
   Inter Tight, self-hosted. Google distributes this family as a single
   variable file — asking css2 for wght@500;600;700 returns the same woff2
   three times — so one @font-face covers all three weights the system uses
   and the browser only ever fetches one file (45 KB).

   Self-hosted because the Google chain cost measured 894 ms of render
   blocking in WEB-004: a stylesheet on fonts.googleapis.com that cannot be
   parsed until a second DNS+TLS handshake completes, which then points at a
   third origin for the file itself. Same bytes, same rendering, one origin.

   unicode-range is Google's own latin range, copied exactly. The file IS
   their latin subset, so widening the range would claim glyphs it does not
   contain. U+2192 (the arrow in the buttons) sits outside it and falls back
   to system-ui — as it already did on Google Fonts.

   Licence: SIL Open Font License 1.1, see assets/fonts/OFL.txt.
   Pages preload this file themselves (it is needed for the first paint, and
   a preload in site.css would only be found after the CSS had parsed).
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-latin-var.woff2") format("woff2");
  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;
}


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

:root {
  /* --- Colour: brand (PLAN §1) ------------------------------------------ */
  --charcoal:      #1E1F22;  /* dark ground                                */
  --cream:         #F7F2EA;  /* light ground                               */
  --tan:           #E8BF9D;  /* accent — on charcoal only (9.58:1)         */
  --accent:        #A8703F;  /* dark tan — accent on cream, display type    */

  /* --- Colour: text ------------------------------------------------------ */
  --ink:           var(--charcoal);  /* body text on cream (14.6:1)        */
  --ink-muted:     #6E6862;          /* secondary on cream (4.95:1)        */
  --ink-ghost:     #8A847D;          /* recessed display type on cream     */
  --accent-ink:    #8F5B2A;          /* small accent text on cream         */
  --cream-muted:   #B8B1A8;          /* secondary on charcoal (7.65:1)     */
  --cream-ghost:   #9A948C;          /* fine print on charcoal (5.40:1)    */
  --sand:          #D9CBBE;          /* secondary over graded photo (10:1) */

  /* --- Colour: lines and grounds ----------------------------------------- */
  --rule:          #DCD2C5;  /* hairline on cream                          */
  --rule-dark:     #34383F;  /* hairline on charcoal                       */
  --rule-strong:   var(--charcoal);

  /* --- Type ------------------------------------------------------------- */
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-mid:  500;
  --w-semi: 600;
  --w-bold: 700;

  /* Small sizes in rem so they honour the reader's font size.
     Display sizes stay in px + vw to reproduce the approved mockup exactly. */
  --fs-xs:    0.8125rem;                                    /* 13px        */
  --fs-sm:    0.9375rem;                                    /* 15px        */
  --fs-base:  1.0625rem;                                    /* 17px        */
  --fs-body:  clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);    /* 17 -> 19    */
  --fs-lede:  clamp(18px, 2vw, 26px);
  --fs-rule:  clamp(19px, 1.8vw, 23px);                     /* outreach row */
  --fs-row:   clamp(30px, 3.6vw, 48px);                     /* results row  */
  --fs-big:   clamp(40px, 6.4vw, 92px);
  --fs-giant: clamp(64px, 11vw, 164px);

  --ls-giant: -0.055em;
  --ls-big:   -0.045em;
  --ls-row:   -0.04em;

  --measure: 29em;  /* comfortable paragraph width (~540px at 19px)        */

  /* --- Space ------------------------------------------------------------ */
  --container:        1360px;
  --container-narrow: 1100px;
  --gutter:    clamp(20px, 4.5vw, 32px);   /* 32px desktop, 20px on phones */
  --section-y: clamp(72px, 9vw, 150px);    /* vertical rhythm per section  */
  --gap:       clamp(32px, 4vw, 56px);     /* gap between split columns    */
  --flow:      24px;                       /* default stack gap            */

  /* --- Shape ------------------------------------------------------------ */
  --radius-btn: 2px;   /* square-ish buttons (PLAN §1)                     */
  --radius-img: 4px;   /* corner radius never exceeds 4px                  */

  /* --- Photo grade (PLAN §1) -------------------------------------------- */
  --photo-grade: sepia(0.28) saturate(0.85) brightness(0.82) contrast(1.05);
  --photo-tint:  rgba(232, 191, 157, 0.22);

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


/* ==========================================================================
   2. BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--w-mid);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings carry no size of their own: pair them with a display class
   (.giant / .big / .display-row) so level and size stay independent. */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--w-semi);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p, dd, dl, ul, ol, figure { margin: 0; }

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

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

/* Only the styleguide and the robot page use inline code. */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

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


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

/* Max 1360px with 32px side padding, tightening to 20px on phones. */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

/* Section rhythm. Modifiers trim one edge where sections butt together. */
.section       { padding-block: var(--section-y); }
.section--tight{ padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Full-width colour grounds. */
.panel--dark {
  background: var(--charcoal);
  color: var(--cream);
}

.panel--tan {
  background: var(--tan);
  color: var(--charcoal);
}

.panel--dark .prose   { color: var(--cream-muted); }
.panel--dark .caption { color: var(--cream-muted); }
.panel--dark .eyebrow { color: var(--tan); }
.panel--dark .ghost   { color: var(--cream-ghost); }

/* On tan, every grey drops below 4.5:1 — all text goes charcoal (9.6:1). */
.panel--tan .prose,
.panel--tan .caption,
.panel--tan .eyebrow,
.panel--tan .meta,
.panel--tan .rule-list__val { color: var(--charcoal); }

/* Two-column media/body split that reflows to one column on narrow screens. */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: flex-start;
}

.split--center { align-items: center; }
.split--end    { align-items: flex-end; }

.split__media {
  flex: 1 1 420px;
  min-width: 0;
  width: 100%;
  max-width: 560px;
}

.split__body {
  flex: 1 1 440px;
  min-width: 0;
}

/* Vertical stack: one gap value, set per block. */
.flow > * + *   { margin-top: var(--flow); }
.flow--tight    { --flow: 14px; }
.flow--loose    { --flow: 36px; }


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

/* Display sizes, straight from the approved mockup. */
.giant {
  font-size: var(--fs-giant);
  line-height: 0.9;
  letter-spacing: var(--ls-giant);
  font-weight: var(--w-semi);
}

.big {
  font-size: var(--fs-big);
  line-height: 0.98;
  letter-spacing: var(--ls-big);
  font-weight: var(--w-semi);
}

/* Row-sized display type: results rows, standalone figures. */
.display-row {
  font-size: var(--fs-row);
  line-height: 1.02;
  letter-spacing: var(--ls-row);
  font-weight: var(--w-semi);
}

/* Recessed half of a two-tone heading. Display sizes only — 3.33:1 on cream
   clears AA Large but not AA, so never put it on text under 24px. */
.ghost { color: var(--ink-ghost); }

/* Accent half of a heading. Display sizes only (3.73:1 on cream). */
.accent { color: var(--accent); }

/* Small label above a heading. Uses the darkened accent so it clears AA. */
.eyebrow {
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  letter-spacing: 0;
  color: var(--accent-ink);
}

/* Short intro line, set at headline weight. */
.lede {
  font-size: var(--fs-lede);
  font-weight: var(--w-semi);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Body copy. */
.prose {
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: var(--w-mid);
  color: var(--ink-muted);
  max-width: var(--measure);
}

.prose--ink { color: var(--ink); }

/* Meta line: dates, venues, match references. */
.meta {
  font-size: var(--fs-sm);
  font-weight: var(--w-mid);
  color: var(--ink-muted);
}

.panel--dark .meta { color: var(--cream-muted); }

.caption {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 48ch;
}

.measure { max-width: var(--measure); }
.measure--wide { max-width: 980px; }

/* Two-tone headings: paint the second half with one of these. Each is only
   safe on the ground named in the token comments in §1. */
.t-ink      { color: var(--ink); }
.t-cream    { color: var(--cream); }
.t-tan      { color: var(--tan); }
.t-charcoal { color: var(--charcoal); }


/* ==========================================================================
   5. LINKS, TEXT NAV, HEADER
   ========================================================================== */

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }

/* The site's one link treatment: a 1px underline in the current colour.
   No pills, no buttons-as-nav (PLAN §1). */
.link-ul {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-weight: var(--w-semi);
}

/* Header bar: brand left, nav right, baseline aligned. */
.site-header {
  position: relative;
  z-index: 2;
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 40px;
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  padding-block: 26px 0;
}

.brand {
  font-size: 1.0625rem;
  font-weight: var(--w-semi);
  letter-spacing: -0.01em;
}

.brand__num {
  font-weight: var(--w-mid);
  color: var(--ink-muted);
}

.site-header--over-media .brand__num { color: var(--sand); }

/* Header on a charcoal panel (robot.html, WEB-005). --ink-muted is a grey picked
   for cream and measures 1.9:1 on charcoal — it has to be lightened here. */
.panel--dark .brand__num { color: var(--cream-muted); }

/* --- Mobile menu -------------------------------------------------------- */

/* Closed by default on phones: display:none keeps the links out of the tab
   order, so there is nothing to trap focus in. The button is the only
   control; js/site.js keeps aria-expanded in step with .is-open. */
.site-menu { display: none; }

.site-menu.is-open {
  display: flex;
  flex-direction: column;
  /* flex-start, not the default stretch: a stretched link makes .link-ul's
     underline run the full width of the panel instead of under its text. */
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin-top: 16px;
  padding: 10px 16px 14px;
  border-radius: var(--radius-btn);
  background: var(--charcoal);
  color: var(--tan);
}

.site-menu a { display: inline-block; padding-block: 10px; }

.menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  line-height: 1.2;
  cursor: pointer;
}

.menu-toggle__close { display: none; }
.menu-toggle.is-active .menu-toggle__open  { display: none; }
.menu-toggle.is-active .menu-toggle__close { display: inline; }

/* Phones only: the nav sits under the bar, so let the bar breathe. */
@media (max-width: 759px) {
  .site-header__bar { align-items: center; }
}

/* Tablet and up: one row, no toggle. */
@media (min-width: 760px) {
  .menu-toggle { display: none; }

  .site-menu,
  .site-menu.is-open {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 30px;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    color: inherit;
  }

  .site-menu a { padding-block: 0; }
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 18px 28px;
  border: 0;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--w-semi);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.btn:hover { opacity: 1; }

.btn--charcoal {
  background: var(--charcoal);
  color: var(--cream);
}

.btn--charcoal:hover { background: #000; }

.btn--tan {
  background: var(--tan);
  color: var(--charcoal);
}

.btn--tan:hover { background: #F2D3B9; }

.btn--sm { padding: 12px 18px; font-size: var(--fs-sm); }


/* ==========================================================================
   7. MEDIA
   ========================================================================== */

/* The warm grade. Full-bleed photography only (PLAN §1) — never on a
   headshot, a logo or a CAD render. */
.grade { filter: var(--photo-grade); }

/* Box that a photo or video fills edge to edge. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

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

/* width:100% is load-bearing: with aspect-ratio and min-height but an auto
   inline size, Chrome resolves the width from the clamped height instead
   (560px * 16/9 = 996px) and the page scrolls sideways on a phone. */
.media--hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 560px;
  max-height: 1100px;
}

.media--band { height: clamp(380px, 52vw, 640px); }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

/* Overlays. Order in the markup: image, .tint, .shade. */
.tint,
.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tint {
  background: var(--photo-tint);
  mix-blend-mode: soft-light;
}

/* Default shade: light touch at the top, heavy at the foot where a headline
   sits. The ramp starts earlier than the approved mockup's (0.10 at 55% ->
   0.08 at 36%, 0.82 by 62%) because the mockup's own gradient only darkens
   the last tenth of the box, while on a 560px-tall phone hero the whole
   headline block — eyebrow, wordmark and meta line — sits between 59% and
   93%. Measured per-glyph against the brightest part of hero-team.jpg the
   mockup ramp gave 1.6:1 on the wordmark and 1.0:1 on the label; this one
   clears AA on the 15px text and AA Large on the display type. */
.shade {
  background: linear-gradient(180deg,
    rgba(30, 31, 34, 0.55) 0%,
    rgba(30, 31, 34, 0)    13%,
    rgba(30, 31, 34, 0.08) 36%,
    rgba(30, 31, 34, 0.82) 62%,
    rgba(30, 31, 34, 0.96) 100%);
}

/* Headline hugging the bottom edge (the closing CTA). */
.shade--bottom {
  background: linear-gradient(180deg,
    rgba(30, 31, 34, 0)    38%,
    rgba(30, 31, 34, 0.45) 66%,
    rgba(30, 31, 34, 0.80) 80%,
    rgba(30, 31, 34, 0.96) 100%);
}

/* Headline against the left edge of a wide band. */
.shade--left {
  background: linear-gradient(90deg,
    rgba(30, 31, 34, 0.92) 0%,
    rgba(30, 31, 34, 0.72) 42%,
    rgba(30, 31, 34, 0.25) 78%,
    rgba(30, 31, 34, 0.12) 100%);
}

/* A horizontal gradient does nothing for legibility on a 390px screen —
   the text spans the whole width — so fall back to a vertical one. */
@media (max-width: 759px) {
  .shade--left {
    background: linear-gradient(180deg,
      rgba(30, 31, 34, 0.55) 0%,
      rgba(30, 31, 34, 0.88) 100%);
  }
}

/* Tight scrim behind a nav row that sits over a photo. Stops are in px, not
   percentages, so the strip tracks the nav rather than the hero height. The
   .shade gradient alone cannot carry 15px text over a photo: measured, it
   tops out near 1.7:1 where the photo is brightest. */
.shade--bar {
  background: linear-gradient(180deg,
    rgba(30, 31, 34, 0.86) 0px,
    rgba(30, 31, 34, 0.78) 58px,
    rgba(30, 31, 34, 0.42) 96px,
    rgba(30, 31, 34, 0) 152px);
}

/* Text laid over a graded photo. The eyebrow MUST be overridden here: its
   default --accent-ink is a dark brown that measures 1.02:1 against a shaded
   photo — invisible. Measured per-glyph against the hero photo, see §7 notes. */
.on-media { color: var(--tan); }
.on-media .eyebrow { color: var(--tan); }
.on-media .meta,
.on-media .prose,
.on-media .caption { color: var(--sand); }

/* Plain in-flow photo. */
.photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-img);
}

.photo--cover { object-fit: cover; }

/* Content laid over a .media band, vertically centred. */
.media__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
}

/* Hero wrapper: photo behind, content in front, nav at the top. */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;              /* see .media--hero above — not optional */
  aspect-ratio: 16 / 9;
  min-height: 560px;
  max-height: 1100px;
  background: var(--charcoal);
  color: var(--tan);
}

.hero__media { position: absolute; inset: 0; }

.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 0 40px;
}

/* --- Figure and caption ------------------------------------------------- */

.figure { margin: 0; }

.figure__caption,
.figure figcaption {
  margin-top: 12px;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 48ch;
}

.panel--dark .figure figcaption,
.panel--dark .figure__caption { color: var(--cream-muted); }

/* --- Video -------------------------------------------------------------- */

/* Autoplay loops are decorative motion. The still that §12 swaps in is the
   SAME file as the video's own poster, so the swap costs no extra download
   and the page never fetches two copies of one frame. Put data-motion-still
   on the <img> itself, not on a <picture> wrapper: a wrapper's <source>
   would pull down a second format nobody displays. */
.video { width: 100%; height: auto; border-radius: var(--radius-img); }

[data-motion-still] { display: none; }


/* ==========================================================================
   8. RULE LISTS
   Key/value rows under a 2px rule — the results block and the outreach
   numbers. Markup is a <dl> with each pair wrapped in a .rule-list__row.
   ========================================================================== */

.rule-list { border-top: 2px solid var(--rule-strong); }

.panel--dark .rule-list { border-top-color: var(--cream); }

.rule-list__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.panel--dark .rule-list__row { border-bottom-color: var(--rule-dark); }

.rule-list__key {
  font-size: var(--fs-row);
  font-weight: var(--w-semi);
  letter-spacing: var(--ls-row);
  line-height: 1.02;
}

.rule-list__val {
  font-weight: var(--w-mid);
  color: var(--ink-muted);
}

.panel--dark .rule-list__val { color: var(--cream-muted); }

/* Compact variant: more rows, smaller keys, accented values. */
.rule-list--compact .rule-list__row { padding: 18px 0; }

.rule-list--compact .rule-list__key {
  font-size: var(--fs-rule);
  letter-spacing: -0.015em;
}

.rule-list--compact .rule-list__val {
  font-size: var(--fs-rule);
  font-weight: var(--w-semi);
  color: var(--accent-ink);
}

.panel--dark .rule-list--compact .rule-list__val { color: var(--tan); }


/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--charcoal);
  color: var(--cream-ghost);
  border-top: 1px solid var(--rule-dark);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  padding-block: 36px;
  font-size: 0.875rem;
  font-weight: var(--w-mid);
}

.site-footer a { color: var(--cream-muted); }


/* ==========================================================================
   10. UTILITIES
   ========================================================================== */

/* Visible to screen readers, not on screen. */
.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;
  border: 0;
}

/* First focusable thing on every page. */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 50;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  background: var(--cream);
  color: var(--charcoal);
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  transform: translateY(-130%);
  transition: transform var(--dur-fast) var(--ease);
}

/* :focus, not :focus-visible — a skip link is only ever reached by keyboard. */
.skip-link:focus {
  transform: translateY(12px);
  opacity: 1;
}

/* One visible focus ring everywhere, recoloured on dark grounds. */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.panel--dark *:focus-visible,
.hero *:focus-visible,
.media *:focus-visible,
.site-menu.is-open *:focus-visible,
.on-media *:focus-visible {
  outline-color: var(--tan);
}

/* Full-height centred page — 404. */
.center-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: var(--section-y);
}


/* ==========================================================================
   11. REVEAL ON SCROLL
   [data-reveal] is visible by default: with no JavaScript, or with reduced
   motion, nothing is ever hidden. js/site.js adds .js-reveal to <html> only
   when it can see an IntersectionObserver AND motion is allowed; the hiding
   rule below is scoped to that class, so it is the one that opts content out.
   ========================================================================== */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  will-change: opacity, transform;
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}


/* ==========================================================================
   13. HOME
   Page-specific rules for index.html (WEB-004). Everything above this point
   is shared by every page; nothing in this block is used anywhere else.

   It sits before §12 on purpose: the reduced-motion block has to stay last
   in the file so it can switch off anything declared above it.
   ========================================================================== */

/* --- Hero wordmark: "Exodius", the inline loop, "31579" ----------------- */

.home-wordmark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

/* The clip is decorative, so it is cropped to a letterbox that sits with the
   wordmark rather than shown whole. The still that replaces it under reduced
   motion takes the same box, so the swap moves nothing. */
.home-clip {
  width: clamp(150px, 17vw, 250px);
  height: clamp(80px, 9vw, 130px);
  object-fit: cover;
  border-radius: var(--radius-img);
}

/* On a phone the hero box sits at its 560px floor while the block of text in
   it — two-line lede, wordmark wrapped onto two lines, meta line — is 245px
   of that, so the lede starts at 49% of the box where §7's ramp is still only
   0.45. Measured per-glyph that is 3.39:1 on tan, short of the 4.5:1 the
   18px lede needs. Bring the heavy part of the ramp up to meet it; the top
   half of the photo is untouched, and every width above this one already
   passes on §7's ramp (7.7:1 at 768, 7.2:1 at 1024, 7.7:1 at 1440). */
@media (max-width: 759px) {
  .hero .shade {
    background: linear-gradient(180deg,
      rgba(30, 31, 34, 0.55) 0%,
      rgba(30, 31, 34, 0)    13%,
      rgba(30, 31, 34, 0.10) 28%,
      rgba(30, 31, 34, 0.86) 46%,
      rgba(30, 31, 34, 0.94) 70%,
      rgba(30, 31, 34, 0.96) 100%);
  }
}

/* --- In-flow photo crops ------------------------------------------------ */

/* The approved mockup crops these two away from their native ratios. Both
   are a few percent off, so cover trims edges rather than subjects. */
.home-portrait { aspect-ratio: 4 / 5;  object-fit: cover; }
.home-square   { aspect-ratio: 1 / 1;  object-fit: cover; }

/* --- Robot block: three thumbnails, then the build-log link ------------- */

.home-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-thumbs img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-btn);
}

/* The strip reads oldest to newest: the earliest prototype sits furthest back. */
.home-thumbs picture:nth-of-type(1) img { opacity: 0.75; }
.home-thumbs picture:nth-of-type(2) img { opacity: 0.85; }

.home-thumbs__link {
  margin-left: 16px;
  color: var(--tan);
}

/* Stack whose gap matches the gap between the columns beside it. */
.home-stack { --flow: var(--gap); }

/* --- PitFund figure row ------------------------------------------------- */

.home-pitfund {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 64px;
}

.home-pitfund__note {
  flex: 1 1 320px;
  max-width: 440px;
}

/* --- Closing call to action, set over the team photo -------------------- */

/* The approved mockup's box is 720px tall with the text in its bottom fifth,
   which is what §7's .shade--bottom ramp was drawn for. Below ~1100px the box
   is shorter AND the text block is taller (the headline wraps, and the
   sentence and button stack), so the text climbs into the clear part of the
   photo: measured per-glyph against the brightest pixels it sits on, the
   headline came out at 1.78:1 at 768 and 2.43:1 at 390, against the 3:1 that
   AA Large needs. Two changes, both only below the mockup's own width:
   a taller floor, so the photo keeps room above the text, and the ramp
   below, which starts where the text does instead of at a fixed 38%. */
.home-cta { height: clamp(620px, 56vw, 720px); }

@media (max-width: 1023px) {
  .home-cta .shade--bottom {
    background: linear-gradient(180deg,
      rgba(30, 31, 34, 0)    0%,
      rgba(30, 31, 34, 0.18) 22%,
      rgba(30, 31, 34, 0.80) 40%,
      rgba(30, 31, 34, 0.94) 66%,
      rgba(30, 31, 34, 0.97) 100%);
  }
}

/* Overrides .media__inner (§7): this headline hugs the bottom edge. */
.home-cta__inner {
  justify-content: flex-end;
  padding-block: 0 48px;
}

.home-cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-cta__row .prose { max-width: 560px; }

/* --- Sponsor row -------------------------------------------------------- */

.home-sponsors { border-top: 1px solid var(--rule-dark); }

.home-sponsors__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 64px;
  padding-block: 72px;
}

.home-sponsors__label { min-width: 160px; }

.home-sponsors__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 56px;
}

/* The logo files ship pre-recoloured to one cream (#D9CBBE, 10:1 on charcoal),
   so the row needs no filter. Even optical weight comes from a shared height;
   max-width stops the widest wordmark running away with the row and
   object-fit keeps it from distorting when that cap bites. */
.home-sponsors__list img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}


/* ==========================================================================
   14. ROBOT PAGE
   Page-specific rules for robot.html. Written in WEB-005 (the figure grid),
   finished in WEB-006 (figure ratios, the shooter sequence, the full-bleed
   band and the quiet past-seasons block). Nothing here is used anywhere else.

   Sits before §12 for the same reason §13 does — the reduced-motion block
   has to stay last in the file.
   ========================================================================== */

/* A section's text block and its figures want more air between them than
   .flow--loose's 36px; this is the rhythm the home page's sections keep.
   Written as a margin on the direct children rather than as --flow, because
   --flow inherits: setting it here would also push the paragraphs inside
   each .split__body 64px apart. */
.robot-sec > * + * { margin-top: clamp(40px, 4.5vw, 64px); }

/* --- Figure rows -------------------------------------------------------- */

/* .split caps a column at 560px and wraps at a 420px basis, which is right
   for a photo-beside-text pair and wrong for a row of figures. Every image in
   a row takes one box shape (--fig-ratio per group), so the row lines up on
   both edges instead of ragging to each file's own aspect ratio — the thing
   WEB-005 left open. The ratio also fixes the box before the image loads,
   so these rows contribute no layout shift. */
.robot-figures {
  --fig-ratio: 3 / 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap);
}

/* min-width:0 so a long caption cannot push a column past its track. */
.robot-figures > * { min-width: 0; }

.robot-figures .photo {
  aspect-ratio: var(--fig-ratio);
  object-fit: cover;
}

/* Two other ratios, each picked so the row's own images need the least
   forcing: the intake pair are 2.1:1 and 2.2:1 renders, and the shooter,
   turret and auto-path frames are all within a tenth of square. */
.robot-figures--wide   { --fig-ratio: 16 / 10; }
.robot-figures--square { --fig-ratio: 1 / 1; }

/* A CAD render is a drawing, not a photograph: cover would cut mechanisms off
   at the frame edge — it takes the first intake render's mounting brackets
   clean out of the picture. Contain it instead, on a plate sampled from the
   render's own background, so nothing is cropped, the plate edge does not
   read as a letterbox, and the box still matches the photo beside it.
   The renders come in two grounds: #1E1F23 (both intakes and the chassis)
   and #2A2D34 (the shooter and the turret gearbox). */
.robot-figures .photo--cad {
  object-fit: contain;
  background: #1E1F23;
}

.robot-figures .photo--cad-lift { background: #2A2D34; }

/* --- Shooter evolution: the five iterations as one sequence ------------- */

.robot-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

/* Square frames: the five photos run 0.92 to 1.39, and a square crops the
   least from both ends of that range. */
.robot-steps .photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* A hairline over each step turns five photos into a numbered run. */
.robot-steps .figure {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.panel--dark .robot-steps .figure { border-top-color: var(--rule-dark); }

/* Phones: swipe the sequence instead of stacking five photos down the page.
   It bleeds to the screen edges so the next card is visibly cut off, which is
   what says "this scrolls". tabindex makes the row scrollable from the
   keyboard too (WCAG 2.1.1); it only overflows below 760px, but one extra
   tab stop above that is a smaller cost than a conditional one. */
@media (max-width: 759px) {
  .robot-steps {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    /* Without this the snapport starts at the padding edge, so snapping to
       card 1 scrolls the leading gutter out of sight and the first photo
       sits flush against the screen edge. */
    scroll-padding-inline: var(--gutter);
  }

  .robot-steps > * {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
}

/* --- Full-bleed band ---------------------------------------------------- */

/* One graded photograph, between the intake and the chassis. PLAN §1 allows
   the warm grade on full-bleed photography only, so this is the only image on
   the page that carries it. The line over it is .display-row (30-48px), which
   is AA Large type — the size the .shade--left ramp was drawn to carry. */
.robot-band__line { max-width: 620px; }

/* --- Past seasons: deliberately the quietest block on the page ---------- */

/* One hairline instead of a colour change, display type a step down from the
   .big the Exobot sections use, and body copy at base size rather than the
   fluid .prose scale. It is history, not the pitch. */
.robot-past {
  border-top: 1px solid var(--rule);
  padding-top: clamp(36px, 4vw, 56px);
}

.robot-past .prose { font-size: var(--fs-base); }


/* ==========================================================================
   15. TEAM PAGE
   Page-specific rules for team.html (WEB-007). Nothing here is used anywhere
   else. Sits before §12 for the same reason §13 and §14 do — the
   reduced-motion block has to stay last in the file.
   ========================================================================== */

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

/* 16:9 from 760px up. The source is 4:3, so this crop only ever trims ceiling
   and floor — never the sides — and the whole row of people stays in frame at
   every width. The ratio fixes the box before the image loads, so the hero
   contributes no layout shift. */
.team-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 820px;
}

/* .media__inner centres its content; the headline belongs on the floor of the
   band, where .shade--bottom's ramp is heavy enough to carry it. */
.team-hero__inner { justify-content: flex-end; }

/* Phones: stack instead of overlay. A 390px-wide 16:9 band is 219px tall, so
   the min-height that would make it usable has to crop the photo sideways —
   and sideways is the one direction that loses people. Instead the photo
   flows at its own 4:3 (nothing cropped at all, all nine in frame) and the
   headline sits on the charcoal below it. .shade--bottom runs to 0.96 at the
   photo's foot, so the photo fades into that charcoal rather than ending on
   a line.

   The overlays have to stop where the photo does, or the tint carries on over
   the text. inset:0 0 auto 0 takes their width from the band and aspect-ratio
   turns that into exactly the photo's height — no vw units, so a desktop
   scrollbar cannot throw the two out of step. */
@media (max-width: 759px) {
  .team-hero {
    aspect-ratio: auto;
    max-height: none;
  }

  .team-hero .media__fill {
    position: static;
    height: auto;
  }

  .team-hero .tint,
  .team-hero .shade {
    inset: 0 0 auto 0;
    aspect-ratio: 4 / 3;
  }
}

/* --- Section rhythm ----------------------------------------------------- */

/* Same spacing .robot-sec sets: a block of display type and the thing it
   introduces want more than .flow--loose's 36px between them. A margin on the
   direct children rather than --flow, because --flow inherits and would push
   the paragraphs inside each group apart too. */
.team-sec > * + * { margin-top: clamp(40px, 4.5vw, 64px); }

/* --- Roster ------------------------------------------------------------- */

.roster-group + .roster-group { margin-top: clamp(36px, 3.6vw, 52px); }

/* Branch label: small, set like an eyebrow, with the hairline that separates
   one branch from the next. */
.roster-group__label {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  letter-spacing: 0;
  color: var(--accent-ink);
}

/* Column counts are set explicitly rather than by auto-fill. The branches are
   1, 6, 2 and 2 cards, and auto-fill's track maths lands on five columns
   between 960 and 1100px — which breaks hardware into a row of five and one
   stray. These four steps keep every branch on whole rows: 2 up on phones,
   3, 4, then 6 at 1100px and above, where six is exactly the hardware
   branch and it fills the row. */
.roster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 2.6vw, 34px) clamp(16px, 2vw, 28px);
  margin-top: clamp(20px, 2vw, 28px);
}

@media (min-width: 600px)  { .roster { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px)  { .roster { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .roster { grid-template-columns: repeat(6, 1fr); } }

.roster__card { min-width: 0; }

/* Square crop by CSS, not by new files: the headshots are 800x574-576, so a
   centred square keeps the middle 72% of the frame — faces are centred in all
   ten, nothing is stretched because the box and the image share object-fit
   rather than a forced height. */
.roster__photo,
.roster__initial {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-img);
  object-fit: cover;
}

/* Sai's card. Same square, charcoal ground, one initial — not a silhouette:
   a generic outline of a person reads as a missing photo, a plate reads as a
   deliberate one. */
.roster__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--tan);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: var(--w-semi);
  line-height: 1;
  letter-spacing: var(--ls-big);
}

/* A hairline over the name turns a photo into a card without drawing a box
   round it — PLAN §1 rules out rounded white cards. */
.roster__name {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-base);
  font-weight: var(--w-semi);
  letter-spacing: -0.01em;
}

.roster__role {
  margin-top: 3px;
  font-size: var(--fs-xs);
  font-weight: var(--w-mid);
  color: var(--ink-muted);
}

/* --- Garage band -------------------------------------------------------- */

/* The only portrait source used full-bleed on the site. Centred, a 1440x640
   band lands between the two faces and their knees; pulling the crop to 40%
   keeps both heads and both laptops inside the slice. */
.team-band .media__fill { object-position: 50% 40%; }

.team-band__line { max-width: 620px; }


/* ==========================================================================
   16. OUTREACH PAGE
   Page-specific rules for outreach.html (WEB-008). Nothing here is used
   anywhere else. Sits before §12 for the same reason §13–§15 do — the
   reduced-motion block has to stay last in the file.
   ========================================================================== */

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

/* Same construction as .team-hero: 16:9 from 760px up, stacked on phones.
   The source is nearly square (2400x2256), so a 16:9 cover keeps only the
   middle 60% of its height — and centred, that slice starts at 20% and cuts
   through the row of faces along the top of the crowd. Pulling the crop up
   to 22% moves the window to roughly 9–69%: every face stays in frame and
   what falls away is game table, which the shade was about to darken anyway. */
.outreach-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 820px;
}

.outreach-hero .media__fill { object-position: 50% 22%; }

.outreach-hero__inner { justify-content: flex-end; }

/* Phones: stack instead of overlay, exactly as §15's note explains for the
   team hero — a 390px-wide 16:9 band is too short to hold the headline, and
   a min-height tall enough would crop the photo sideways. The photo flows at
   its own ratio (no crop at all, so the object-position above is moot here)
   and the overlays stop where it does. */
@media (max-width: 759px) {
  .outreach-hero {
    aspect-ratio: auto;
    max-height: none;
  }

  .outreach-hero .media__fill {
    position: static;
    height: auto;
  }

  .outreach-hero .tint,
  .outreach-hero .shade {
    inset: 0 0 auto 0;
    aspect-ratio: 2400 / 2256;
  }
}

/* --- Section rhythm ------------------------------------------------------ */

/* Same spacing .robot-sec and .team-sec set, for the same reason. */
.outreach-sec > * + * { margin-top: clamp(40px, 4.5vw, 64px); }

/* --- The strategy: three numbered steps ---------------------------------- */

/* An <ol>, because the order is the content: intrigue first, then teams,
   then keeping them. One column on phones, three across from 760px. The
   hairline over each step turns the three into one run — the same move the
   shooter sequence makes on robot.html. */
.outreach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3vw, 44px) var(--gap);
}

@media (min-width: 760px) {
  .outreach-steps { grid-template-columns: repeat(3, 1fr); }
}

.outreach-steps > li {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.outreach-steps > li > * + * { margin-top: 12px; }

/* The visible number. The <ol> already carries the order for assistive tech,
   so this is aria-hidden, like the roster initial on team.html. */
.outreach-steps__num {
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  color: var(--accent-ink);
}


/* ==========================================================================
   17. PITFUND PAGE
   Page-specific rules for pitfund.html (WEB-009). Nothing here is used
   anywhere else. Sits before §12 for the same reason §13–§16 do — the
   reduced-motion block has to stay last in the file.

   The page is typographic: ASSETS.md assigns no imagery to pitfund.html, so
   the hero is set type on charcoal rather than a photo band.
   ========================================================================== */

/* --- Hero: type on charcoal --------------------------------------------- */

.pitfund-hero {
  padding-block: clamp(56px, 9vw, 140px) clamp(72px, 10vw, 150px);
}

/* .lede inherits cream from .panel--dark; step it down the way the photo
   heroes step their ledes down to --sand. */
.pitfund-hero .lede { color: var(--cream-muted); max-width: 560px; }

/* --- Section rhythm ------------------------------------------------------ */

/* Same spacing .robot-sec, .team-sec and .outreach-sec set, same reason. */
.pitfund-sec > * + * { margin-top: clamp(40px, 4.5vw, 64px); }

/* --- How it works: four numbered steps ----------------------------------- */

/* An <ol>, because the order is the content — same construction as the
   outreach strategy steps, at four across from 1000px so the sequence reads
   as one row, 2x2 on tablets, a single column on phones. */
.pitfund-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3vw, 44px) var(--gap);
}

@media (min-width: 600px)  { .pitfund-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pitfund-steps { grid-template-columns: repeat(4, 1fr); } }

.pitfund-steps > li {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.pitfund-steps > li > * + * { margin-top: 12px; }

/* The visible number. The <ol> carries the order for assistive tech, so this
   is aria-hidden in the markup, like the outreach steps' numbers. */
.pitfund-steps__num {
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  color: var(--accent-ink);
}


/* ==========================================================================
   18. PROSE PAGE
   Long-form text pages — privacy.html (WEB-009). A single readable column
   with its own heading, list and table treatments; nothing here is used on
   the display-led pages. Sits before §12 like §13–§17.
   ========================================================================== */

/* ~65ch at 17px. Wider than --measure (29em) because legal text reads in
   long runs, not short display-led bursts. */
.prose-page {
  max-width: 740px;
}

/* A text page has no hero band, so the header is just the bar — give it the
   floor the bar's own padding-block (26px 0) doesn't. */
.site-header--bar-only { padding-bottom: 26px; }

.prose-page > * + *,
.prose-page article > * + * { margin-top: 20px; }

.prose-page p,
.prose-page li {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-muted);
}

.prose-page strong,
.prose-page em { color: var(--ink); }

/* Section headings: a step below .display-row, with generous air above so
   the sections separate without rules. */
.prose-page h2 {
  margin-top: clamp(44px, 5vw, 64px);
  font-size: var(--fs-rule);
  font-weight: var(--w-semi);
  letter-spacing: -0.015em;
}

.prose-page h3 {
  font-size: var(--fs-base);
  font-weight: var(--w-semi);
}

/* The old page numbered its sections; keep the numbers as quiet accents. */
.prose-page .prose-num {
  margin-right: 6px;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

/* Links inside the policy get the site's one link treatment. */
.prose-page a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: var(--w-semi);
  color: var(--ink);
}

.prose-page ul {
  padding-left: 0;
  list-style: none;
}

.prose-page ul > li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.prose-page ul > li:last-child { border-bottom: 1px solid var(--rule); }

/* Key terms at the head of a list item — NAME, EMAIL, the NO list. */
.prose-key {
  margin-right: 4px;
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  color: var(--accent-ink);
}

/* Meta line under the h1: last-updated, entity, scope. */
.prose-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.prose-meta b {
  font-weight: var(--w-semi);
  color: var(--accent-ink);
}

/* Summary card: the TL;DR, set off by a hairline box rather than a ground
   change — PLAN §1 rules out rounded white cards, not borders. */
.prose-summary {
  margin-top: clamp(36px, 4vw, 52px);
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-img);
}

.prose-summary > * + * { margin-top: 10px; }

/* The summary's own heading sits inside the box: body-sized, no section air. */
.prose-page .prose-summary h2 {
  margin-top: 10px;
  font-size: var(--fs-base);
}

/* Third-party table. */
.prose-table-wrap {
  overflow-x: auto;
}

.prose-page table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.prose-page th {
  text-align: left;
  font-weight: var(--w-semi);
  color: var(--ink);
  border-bottom: 2px solid var(--rule-strong);
}

.prose-page th,
.prose-page td {
  padding: 12px 18px 12px 0;
  vertical-align: top;
}

.prose-page td {
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule);
}

.prose-page td:first-child {
  font-weight: var(--w-semi);
  color: var(--ink);
  white-space: nowrap;
}

/* Fine print: the FIRST trademark disclaimer. */
.prose-fine {
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.prose-fine p {
  font-size: var(--fs-xs);
  line-height: 1.55;
}


/* ==========================================================================
   19. PARTNER PAGE
   Page-specific rules for partner.html (WEB-010). Nothing here is used
   anywhere else. Sits before §12 for the same reason §13–§18 do — the
   reduced-motion block has to stay last in the file.
   ========================================================================== */

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

/* Same construction as .team-hero: the source is 4:3, the 16:9 crop from
   760px up only ever trims ceiling and floor, so the whole row of people
   stays in frame at every width; on phones the photo flows at its own 4:3
   and the headline sits on the charcoal below it. */
.partner-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 820px;
}

.partner-hero__inner { justify-content: flex-end; }

@media (max-width: 759px) {
  .partner-hero {
    aspect-ratio: auto;
    max-height: none;
  }

  .partner-hero .media__fill {
    position: static;
    height: auto;
  }

  .partner-hero .tint,
  .partner-hero .shade {
    inset: 0 0 auto 0;
    aspect-ratio: 4 / 3;
  }
}

/* --- Section rhythm ----------------------------------------------------- */

.partner-sec > * + * { margin-top: clamp(40px, 4.5vw, 64px); }

/* --- Why sponsor -------------------------------------------------------- */

.partner-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
}

.partner-why li {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.partner-why h3 {
  font-size: var(--fs-rule);
  letter-spacing: -0.015em;
}

.partner-why p { margin-top: 10px; }

/* --- Money in / out ----------------------------------------------------- */

/* The two ledgers side by side where there is room, stacked where not. */
.partner-money {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 4vw, 64px);
}

.partner-money__label {
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  color: var(--tan);
}

/* The total row gets the cream key the subtotals don't. */
.rule-list__row--total .rule-list__key { color: var(--cream); }

/* --- Sponsor wall ------------------------------------------------------- */

/* Same optical treatment as the home "Backed by" row: the files ship
   pre-recoloured to one cream, so a shared height is all the evening-out
   the row needs. */
.partner-sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 56px;
}

.partner-sponsors img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

/* --- Form ---------------------------------------------------------------- */

.partner-form {
  max-width: 640px;
}

.partner-form > * + * { margin-top: 22px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
}

.field__optional {
  font-weight: var(--w-mid);
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--charcoal);
  border-radius: var(--radius-btn);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-base);
  line-height: 1.4;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

/* Error state. :user-invalid only matches after the visitor has interacted
   with the field, so nothing shouts on first load; the message element is
   referenced by aria-describedby, so when it appears it is announced with
   the field. Works with JavaScript off — this is CSS and the browser's own
   validation, nothing else. #A03A2E measures 5.9:1 on cream. */
.field__error {
  display: none;
  margin-top: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  color: #A03A2E;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #A03A2E;
  border-width: 2px;
}

.field input:user-invalid + .field__error,
.field textarea:user-invalid + .field__error { display: block; }

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

.partner-faq { border-top: 2px solid var(--rule-strong); }

.partner-faq details { border-bottom: 1px solid var(--rule); }

.partner-faq summary {
  padding: 20px 0;
  cursor: pointer;
  font-size: var(--fs-rule);
  font-weight: var(--w-semi);
  letter-spacing: -0.015em;
}

.partner-faq summary::marker { color: var(--accent); }

.partner-faq details p {
  padding: 0 0 22px 0;
  max-width: var(--measure);
  color: var(--ink-muted);
}


/* ==========================================================================
   12. REDUCED MOTION
   One block, last in the file. Transitions and animations are reduced to a
   near-zero duration rather than 0 so transitionend still fires; autoplay
   video is replaced by its own poster frame.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  html { scroll-behavior: auto !important; }

  /* Reveal content stays put and stays visible. */
  [data-reveal],
  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  /* Swap the looping video for its still. js/site.js also pauses it. */
  [data-motion-video] { display: none !important; }
  [data-motion-still] { display: block; }
}
