/* ripepi.capital — Ripepi Capital
 *
 * Matches the acquisition-criteria PDF: the same navy, the same Helvetica-family
 * sans, uppercase tracked labels, navy rules over tinted tiles.
 *
 * CSP: only 'self'. No web fonts, no inline styles (style="" is blocked too —
 * position things with classes, or with CSSOM from app.js, which CSP allows).
 *
 * MOTION: the default (unprefixed) rules below are every visual's END STATE.
 * Start states live only inside `@media (prefers-reduced-motion: no-preference)`
 * AND under `.reveal-ready` (set by boot.js). So reduced motion renders the end
 * state, and if app.js never runs, boot.js drops .reveal-ready at load and the
 * page still shows everything. Every reveal runs once (app.js unobserves).
 */

:root {
  --navy:   #0f2a4a;
  --ink:    #0f2a4a;
  --muted:  #4a5d74;              /* 6.4:1 on --bg */
  --bg:     #f8f7f3;              /* off-white */
  --tint:   #edf1f6;              /* the PDF's tile tint */
  --hair:   rgba(15, 42, 74, 0.16);
  --soft:   rgba(15, 42, 74, 0.34);
  --line:   1.5px;                /* the one stroke weight, in CSS px */

  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", "Nimbus Sans", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(4.5rem, 11vh, 8.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

/* No `scroll-behavior: smooth` here on purpose: app.js glides to in-page
   targets itself (and dissolves under Reduce Motion). A CSS smooth-scroll would
   fight its per-frame scrollTo calls. Without JS, anchors simply jump. */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

[id] { scroll-margin-top: 1.5rem; }

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

/* --- shared type ------------------------------------------------------ */

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

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  padding-top: 1.1rem;
  border-top: 2px solid var(--navy);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 18ch;
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.body-lg {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 2px;
  background: var(--navy);
  color: var(--bg);
  font: 600 1rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #163a63; }
.button::after { content: "→"; }

/* Cursor-following highlight (app.js, desktop mouse only). app.js feeds
   --mx/--my, the highlight's centre. The button itself never moves. */
.magnetic-on .button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.magnetic-on .button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.magnetic-on .button.is-near::before { opacity: 1; }

/* Reduce Motion stand-in for the glide to an in-page target (app.js). */
.veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.veil.is-on { opacity: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border: var(--line) solid var(--navy);
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* --- staging --------------------------------------------------------- */

/* The STAGING badge is generated here, not written in the HTML: crawlers and
   AI agents read a page's text without its CSS, so a hidden "STAGING" in the
   markup would reach them as the live page's first word. */
.is-staging body::after {
  content: "STAGING";
  content: "STAGING" / "";   /* hidden from screen readers, like the old aria-hidden div */
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 50;
  padding: 0.35rem 0.6rem;
  font: 700 0.7rem/1 var(--sans);
  letter-spacing: 0.12em;
  color: #fff;
  background: #b42318;
  border-radius: 3px;
}

/* Anything marked data-placeholder is outlined on staging, with its note.
   scripts/deploy.sh refuses to ship while any marker remains. */
.is-staging [data-placeholder] {
  position: relative;
  outline: 1.5px dashed #b42318;
  outline-offset: 5px;
}
.is-staging [data-placeholder]::after {
  content: "PLACEHOLDER · " attr(data-placeholder);
  position: absolute;
  left: -5px;
  bottom: calc(100% + 7px);
  max-width: 34ch;
  padding: 0.15rem 0.4rem;
  font: 600 0.62rem/1.3 var(--sans);
  letter-spacing: 0.04em;
  color: #fff;
  background: #b42318;
  border-radius: 2px;
  pointer-events: none;
}

/* ============================== Hero ============================== */

.hero {
  padding-block: clamp(3rem, 9vh, 6rem) clamp(3rem, 8vh, 5rem);
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
}

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

.hero-title {
  font-size: clamp(3.25rem, 8.6vw, 7.25rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--navy);
  max-width: 34rem;
  font-size: clamp(0.78rem, 1.15vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lede {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  max-width: 30ch;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  line-height: 1.4;
}

.hero-cta { margin-top: clamp(1.75rem, 4vh, 2.5rem); }

.hero-map {
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74svh;
}

.map-coast,
.map-borders,
.map-route {
  fill: none;
  stroke: var(--navy);
  stroke-linejoin: round;
  stroke-linecap: round;
}
.map-coast   { stroke-width: 1.2; }
.map-borders { stroke-width: 1.2; stroke-opacity: 0.22; }
.map-region  { fill: var(--navy); }
.map-route   { stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map-dot     { fill: var(--bg); stroke: var(--navy); stroke-width: 2.2; }
.map-label {
  font: 700 15px var(--sans);
  letter-spacing: 0.02em;
  fill: var(--navy);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.hero-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  /* The hero runs on load, with no JS dependency. */
  .map-route      { animation: draw 1.1s var(--ease) 0.35s both; }
  .map-dot--end,
  .map-label--end { animation: appear 0.35s ease 1.3s both; }
}

@keyframes draw   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* =========================== What we buy ========================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split-copy p + p { margin-top: 1rem; }
.split-copy p:not(.body-lg) { max-width: 36rem; color: var(--muted); font-size: 1.125rem; }
.split-copy .body-lg { max-width: 30rem; margin-bottom: 1.5rem; }

.split-visual { width: 100%; max-width: 500px; justify-self: center; }

/* The owner's handshake drawing (2026-09-24), traced to navy vector outlines
   by tools/illustration (which also generates the inline markup). The table
   and the right-hand figure run off the drawing's edges; the CSS mask fades
   them out there instead of cutting them off.

   On scroll-in it draws itself: the art (<image>) shows through an SVG
   <mask> of white pen strokes along its centre-lines, which draw outward
   from the handshake. Each stroke's group sets --t (start) and --d
   (duration). Then .trace-fill, a full white rect in the mask, fades in, so
   anything the strokes missed appears and the end state is the whole art.
   The unprefixed rules below are that end state. */
.buy-art {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 5%, #000 93%, transparent),
    linear-gradient(to bottom, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 5%, #000 93%, transparent),
    linear-gradient(to bottom, #000 86%, transparent);
  mask-composite: intersect;
}

.buy-art .trace-fill { fill: #fff; }
.buy-art .trace-pen path {
  fill: none;
  stroke: #fff;
  stroke-width: 18;          /* source px; the ink is ~6, so this covers it */
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1.02;  /* the gap overshoots, so no end-cap dot at rest */
  stroke-dashoffset: 0;
}

.buy-art .t0 { --t: 0s; }    .buy-art .t1 { --t: 0.09s; } .buy-art .t2 { --t: 0.18s; }
.buy-art .t3 { --t: 0.27s; } .buy-art .t4 { --t: 0.36s; } .buy-art .t5 { --t: 0.45s; }
.buy-art .t6 { --t: 0.54s; } .buy-art .t7 { --t: 0.63s; } .buy-art .t8 { --t: 0.72s; }
.buy-art .t9 { --t: 0.81s; }
.buy-art .d1 { --d: 0.25s; } .buy-art .d2 { --d: 0.4s; }  .buy-art .d3 { --d: 0.55s; }
.buy-art .d4 { --d: 0.7s; }  .buy-art .d5 { --d: 0.85s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .buy-art .trace-pen path {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset var(--d, 0.5s) cubic-bezier(0.45, 0, 0.35, 1) var(--t, 0s);
  }
  .reveal-ready .buy-art .trace-fill {
    opacity: 0;
    transition: opacity 0.4s ease 1.5s;
  }
  .reveal-ready .buy-art.is-in .trace-pen path { stroke-dashoffset: 0; }
  .reveal-ready .buy-art.is-in .trace-fill { opacity: 1; }
}

/* ========================= What we look for ======================= */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.tile {
  padding: 1.35rem 1.35rem 1.6rem;
  background: var(--tint);
  border-top: 3px solid var(--navy);
}
.tile .label { margin-bottom: 0.9rem; }
.tile p { font-size: 1.125rem; line-height: 1.45; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.icon-list { display: grid; gap: 0.7rem; }
.icon-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 1.125rem; }
.icon {
  flex: none;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.strike-list { display: grid; gap: 0.35rem; }
.strike-list span {
  position: relative;
  font-size: 1.125rem;
  color: var(--muted);
}
.strike-list span::after {
  content: "";
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  top: 55%;
  height: var(--line);
  background: var(--navy);
  transform-origin: left center;
}

.criteria-foot {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.criteria-foot p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 34ch; }

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .tiles .tile {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.55s var(--ease);
  }
  .reveal-ready .tiles .tile:nth-child(2) { transition-delay: 0.08s; }
  .reveal-ready .tiles .tile:nth-child(3) { transition-delay: 0.16s; }
  .reveal-ready .tiles .tile:nth-child(4) { transition-delay: 0.24s; }
  .reveal-ready .tiles .tile:nth-child(5) { transition-delay: 0.32s; }
  .reveal-ready .tiles .tile:nth-child(6) { transition-delay: 0.40s; }
  .reveal-ready .tiles.is-in .tile { opacity: 1; transform: none; }

  .reveal-ready .tiles .strike-list span::after {
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  .reveal-ready .tiles .strike-list li:nth-child(1) span::after { transition-delay: 0.75s; }
  .reveal-ready .tiles .strike-list li:nth-child(2) span::after { transition-delay: 0.87s; }
  .reveal-ready .tiles .strike-list li:nth-child(3) span::after { transition-delay: 0.99s; }
  .reveal-ready .tiles .strike-list li:nth-child(4) span::after { transition-delay: 1.11s; }
  .reveal-ready .tiles.is-in .strike-list span::after { transform: scaleX(1); }
}

/* =========================== How we work ========================== */

.panels { display: grid; }

.panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  border-top: 1px solid var(--hair);
}
.panel:last-child { border-bottom: 1px solid var(--hair); }
.panel .label { margin-bottom: 0.8rem; }
.panel .body-lg { max-width: 30ch; }

.write-anyway {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}
.write-anyway a { font-weight: 700; }

/* --- Capital: two paths, same speed ---------------------------------- */

.race { display: grid; gap: 1.6rem; }

.race-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.race-name {
  padding-top: 0.05rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.race-track {
  --dot: 13px;
  position: relative;
  height: 3.4rem;
  margin-inline: calc(var(--dot) / 2);
}
/* Us: one segment of the fund's four, so the same speed finishes first. */
.race-row--us .race-track { width: calc(25% - var(--dot) / 4); }

.race-track::before {                /* the line */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--dot) / 2 - var(--line) / 2);
  height: var(--line);
  background: var(--navy);
  transform-origin: left center;
}

.race-track li {
  position: absolute;
  top: 0;
  left: 0;
}
.race-track li::before {             /* the node */
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--dot) / -2);
  width: var(--dot);
  height: var(--dot);
  border: var(--line) solid var(--navy);
  border-radius: 50%;
  background: var(--bg);
}
.race-track li:last-child::before { background: var(--navy); }   /* close */

.race-track span {
  position: absolute;
  top: calc(var(--dot) + 0.4rem);
  left: 0;
  width: max-content;
  max-width: 6.5em;
  transform: translateX(-50%);
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
}
.race-track li:first-child span { transform: translateX(calc(var(--dot) / -2)); text-align: left; }
.race-track li:last-child span  { transform: translateX(calc(-100% + var(--dot) / 2)); text-align: right; }

.race-row--fund li:nth-child(2) { left: 25%; }
.race-row--fund li:nth-child(3) { left: 50%; }
.race-row--fund li:nth-child(4) { left: 75%; }
.race-row--fund li:nth-child(5) { left: 100%; }
.race-row--us   li:nth-child(2) { left: 100%; }

@media (prefers-reduced-motion: no-preference) {
  /* Linear and proportional: 0.3s per segment on both rows. */
  .reveal-ready .race-row--fund { --d: 1.2s; }
  .reveal-ready .race-row--us   { --d: 0.3s; }
  .reveal-ready .race .race-track::before { transform: scaleX(0); transition: transform var(--d) linear; }
  .reveal-ready .race .race-track li { opacity: 0; transition: opacity 0.18s ease; }
  .reveal-ready .race .race-row--fund li:nth-child(2) { transition-delay: 0.3s; }
  .reveal-ready .race .race-row--fund li:nth-child(3) { transition-delay: 0.6s; }
  .reveal-ready .race .race-row--fund li:nth-child(4) { transition-delay: 0.9s; }
  .reveal-ready .race .race-row--fund li:nth-child(5) { transition-delay: 1.2s; }
  .reveal-ready .race .race-row--us   li:nth-child(2) { transition-delay: 0.3s; }
  .reveal-ready .race.is-in .race-track::before { transform: scaleX(1); }
  .reveal-ready .race.is-in .race-track li { opacity: 1; }
}

/* --- One week: seven days, then three answers ------------------------ */

.week { display: grid; gap: 1.1rem; max-width: 30rem; }

.week-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  height: 10px;
}
.week-bar li {
  position: relative;
  border: var(--line) solid var(--navy);
  overflow: hidden;
}
.week-bar li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform-origin: left center;
}

.week-answers { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.week-answers .chip { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  /* ~1.35s end to end: days fill 0–0.7s, bar settles, answers land by 1.35s. */
  .reveal-ready .week .week-bar { height: 30px; transition: height 0.25s var(--ease) 0.72s; }
  .reveal-ready .week .week-bar li::after { transform: scaleX(0); transition: transform 0.09s linear; }
  .reveal-ready .week .week-bar li:nth-child(2)::after { transition-delay: 0.1s; }
  .reveal-ready .week .week-bar li:nth-child(3)::after { transition-delay: 0.2s; }
  .reveal-ready .week .week-bar li:nth-child(4)::after { transition-delay: 0.3s; }
  .reveal-ready .week .week-bar li:nth-child(5)::after { transition-delay: 0.4s; }
  .reveal-ready .week .week-bar li:nth-child(6)::after { transition-delay: 0.5s; }
  .reveal-ready .week .week-bar li:nth-child(7)::after { transition-delay: 0.6s; }
  .reveal-ready .week .week-answers .chip { opacity: 0; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.35s var(--ease); }
  .reveal-ready .week .week-answers .chip:nth-child(1) { transition-delay: 0.85s; }
  .reveal-ready .week .week-answers .chip:nth-child(2) { transition-delay: 0.93s; }
  .reveal-ready .week .week-answers .chip:nth-child(3) { transition-delay: 1.01s; }

  .reveal-ready .week.is-in .week-bar { height: 10px; }
  .reveal-ready .week.is-in .week-bar li::after { transform: scaleX(1); }
  .reveal-ready .week.is-in .week-answers .chip { opacity: 1; transform: none; }
}

/* --- Transition: the taper ------------------------------------------- */

.taper-hatch,
.taper-shape,
.taper-base,
.taper-grip {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.taper-hatch { stroke-opacity: 0.35; }
.taper-shape { stroke-dasharray: 1; stroke-dashoffset: 0; }
.taper-knob  { fill: var(--bg); stroke: var(--navy); stroke-width: 2; }

.taper-live { display: none; }

.taper-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  cursor: ew-resize;
  touch-action: none;
}
.taper-svg:focus-visible { outline-offset: 8px; }
.taper-svg:focus-visible .taper-knob,
.taper-svg:hover .taper-knob { fill: var(--navy); }

.taper-hint {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.taper-static { display: grid; gap: 0.9rem; }
.taper-static li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.75rem;
  align-items: end;
  gap: 1rem;
}
.taper-static svg { display: block; width: 100%; height: auto; }
.taper-static span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .taper-live-ok .taper-live   { display: block; }
  .taper-live-ok .taper-static { display: none; }

  .reveal-ready .taper .taper-shape  { stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s var(--ease); }
  .reveal-ready .taper .taper-hatch,
  .reveal-ready .taper .taper-handle { opacity: 0; transition: opacity 0.3s ease 0.7s; }
  .reveal-ready .taper.is-in .taper-shape  { stroke-dashoffset: 0; }
  .reveal-ready .taper.is-in .taper-hatch,
  .reveal-ready .taper.is-in .taper-handle { opacity: 1; }
}

/* =========================== Who we are =========================== */
/* PARKED: the section is off the page and saved in drafts/who-we-are.html.
   These rules (and .people/.portrait in the 760px breakpoint) are kept so it
   can be pasted straight back. */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 920px;
}

.portrait {
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  background: var(--tint);
  border: 1px solid var(--hair);
}
.portrait span {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--soft);
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.person-name { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.2; }
.person-role { margin-top: 0.15rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.person-bio  { margin-top: 0.9rem; max-width: 34ch; font-size: 1.125rem; line-height: 1.5; }
.nowrap      { white-space: nowrap; }   /* keep hyphenated words whole */

/* ============================= Contact ============================ */

.section--contact { padding-bottom: calc(var(--section) * 0.8); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-copy .body-lg { max-width: 26ch; }


.request {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--tint);
  border-top: 3px solid var(--navy);
  scroll-margin-top: clamp(2rem, 8vh, 5rem);   /* where the glide lands */
}
.request:focus { outline: none; }

.request-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--soft);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: 400 1.0625rem/1.3 var(--sans);
}
.field textarea { min-height: 7.5rem; line-height: 1.45; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: #b42318; }
.field .optional { font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--muted); }

/* --- attachments --- */
.field-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.attach { position: relative; margin-bottom: 1.1rem; }
.attach-input {                       /* visually hidden, still focusable */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.field .attach-button {              /* a <label>: undo the field-label caps */
  justify-self: start;
  text-transform: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: var(--line) solid var(--navy);
  border-radius: 2px;
  background: #fff;
  color: var(--navy);
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
}
.field .attach-button:hover { background: var(--bg); }
.attach-input:focus-visible + .attach-button { outline: 2px solid var(--navy); outline-offset: 3px; }
.attach-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.attach-help { font-size: 0.85rem; line-height: 1.4; color: var(--muted); }

.attach-list { display: grid; gap: 0.4rem; }
.attach-list:empty { display: none; }
.attach-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.4rem 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 2px;
  font-size: 0.95rem;
}
.attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-size { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.attach-remove {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font: 400 1.35rem/1 var(--sans);
  cursor: pointer;
}
.attach-remove:hover { background: var(--tint); color: var(--navy); }

.attach.is-dragover::before {          /* drop target, desktop */
  content: "Drop files to attach";
  position: absolute;
  inset: -0.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px dashed var(--navy);
  border-radius: 3px;
  background: rgba(237, 241, 246, 0.94);
  font-weight: 700;
  color: var(--navy);
  pointer-events: none;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sr-only {                             /* read by screen readers, not shown */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.request-form.is-sending .field,
.request-form.is-sending .attach-button { opacity: 0.6; pointer-events: none; }
.request-form .button[disabled] { cursor: progress; }
.request-form.is-sending .button::after { content: none; }

.form-error { min-height: 1.4em; margin-bottom: 0.6rem; font-size: 0.95rem; font-weight: 600; color: #b42318; }

.request-form .button { width: 100%; justify-content: center; }

.request-done:focus { outline: none; }
.request-done .week-bar--small { height: 6px; max-width: 12rem; margin-bottom: 1.25rem; gap: 3px; }
.request-done .request-title { margin-bottom: 0.6rem; }

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .request-done .week-bar li::after { transform: scaleX(0); transition: transform 0.09s linear; }
  .reveal-ready .request-done .week-bar li:nth-child(2)::after { transition-delay: 0.1s; }
  .reveal-ready .request-done .week-bar li:nth-child(3)::after { transition-delay: 0.2s; }
  .reveal-ready .request-done .week-bar li:nth-child(4)::after { transition-delay: 0.3s; }
  .reveal-ready .request-done .week-bar li:nth-child(5)::after { transition-delay: 0.4s; }
  .reveal-ready .request-done .week-bar li:nth-child(6)::after { transition-delay: 0.5s; }
  .reveal-ready .request-done .week-bar li:nth-child(7)::after { transition-delay: 0.6s; }
  .reveal-ready .request-done.is-in .week-bar li::after { transform: scaleX(1); }
}

/* ============================== Footer ============================ */

.foot {
  padding-block: 2.5rem 3rem;
  border-top: 2px solid var(--navy);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============================ Responsive ========================== */

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-map { max-width: 440px; }
  .map { max-height: 62svh; }

  .split,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split-visual { max-width: 460px; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .panel { grid-template-columns: minmax(0, 1fr); }
}

/* (Parked "Who we are" section.) The two bios are written to end on the same line side by side. Below ~760px
   the cards get too narrow for that to hold (and for the portraits to read),
   so they stack. Re-check alignment if either bio changes. */
@media (max-width: 760px) {
  .people { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .portrait { max-width: 260px; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); }

  .race-row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .race-track span { font-size: 0.78rem; max-width: 5.6em; }

  .criteria-foot .button { width: 100%; justify-content: center; }
}

/* ============================== 404 =============================== */

.lost {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem var(--gutter);
  text-align: center;
}
.lost .section-title { margin-inline: auto; margin-bottom: 1rem; }
.lost a { font-weight: 700; }
