/* Ryse The Run Club. Race-day look: condensed signage type, lane lines, start-list rows, bib confirmation. */
:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --ink: #12161c;
  --muted: #55606e;
  --line: #cfd6df;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #dfe7fb;
  --ok: #17794a;
  --err: #b42318;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1218; --surface: #161c25; --ink: #eef2f7; --muted: #9aa6b6; --line: #29323f;
    --accent: #7b9cff; --accent-ink: #0b1020; --accent-soft: #1d2a4d; --ok: #4cc38a; --err: #ff8a7a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
}
a { color: inherit; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header */
.bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; line-height: 1; }
.brand span { font-weight: 700; font-size: 15px; letter-spacing: 0.1em; color: var(--accent); margin-left: 8px; }
.logo-link { display: block; line-height: 0; }
.logo-link img { display: block; height: 62px; width: auto; max-width: 100%; }
@media (max-width: 760px) { .logo-link img { height: 52px; } }
.nav { display: flex; gap: 20px; font-size: 14px; font-weight: 500; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { border-bottom: 1px solid var(--line); background:
  repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
.hero .wrap { padding-block: 56px 48px; display: grid; gap: 28px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow.gap { margin-bottom: 12px; }
h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 0.88; letter-spacing: 0.005em;
  font-size: clamp(64px, 17vw, 168px); margin: 0; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 56ch; font-size: 18px; margin: 0; }
.hero-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 4px; font: 600 16px var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled], .btn.off { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--err); border: 1.5px solid var(--err); }
.next { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; border-left: 4px solid var(--accent); min-width: 0; }
.next b { font-family: var(--font-display); font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.next small { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* sections */
section { padding-block: 64px; border-bottom: 1px solid var(--line); }
h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 7vw, 72px); line-height: 0.95; margin: 0 0 28px; text-wrap: balance; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.about-grid > * { min-width: 0; }
.about-grid p { margin: 0 0 16px; max-width: 60ch; }
.about-photo { margin: 0; align-self: start; justify-self: end; width: 100%; max-width: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f6f4e7; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1122 / 1402; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.about-photo:hover img { transform: scale(1.05); }
.groups { border-top: 1px solid var(--ink); }
.group { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.group b { font-family: var(--font-display); font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.group .pace { font-family: var(--font-mono); font-size: 15px; font-weight: 500; text-align: right; align-self: center; }
.group .d { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

/* events: start list */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ev { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ev > * { min-width: 0; }
.date { font-family: var(--font-display); font-weight: 900; line-height: 0.9; text-transform: uppercase; }
.date .n { font-size: 56px; display: block; }
.date .m { font-size: 20px; letter-spacing: 0.06em; color: var(--accent); }
.ev h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1.05; }
.meta { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ev .points { margin-top: 8px; display: grid; gap: 3px; font-size: 15px; color: var(--muted); max-width: 58ch; }
.ev .points .blank { height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-family: var(--font-mono); font-size: 13px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.chip.race { background: var(--accent-soft); border-color: transparent; }
.chip.warn { border-color: var(--err); color: var(--err); }
.empty { padding: 28px 0; color: var(--muted); }

/* registration */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.reg-grid > * { min-width: 0; }
form, .panel { display: grid; gap: 18px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 6px; padding: 24px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2 > * { min-width: 0; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 0 12px; background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 4px; font: 400 16px var(--font-body);
}
textarea { padding: 10px 12px; min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 4px; cursor: pointer; background: var(--bg); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check b { font-weight: 600; }
.check small { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.check.disabled { opacity: 0.55; cursor: not-allowed; }
.stack { display: grid; gap: 8px; }

/* terms and conditions */
.terms { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; padding: 16px 18px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 4px; font-size: 14.5px; line-height: 1.55; }
.terms h3 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.terms p { margin: 0; }
.terms ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.terms li > b { display: block; margin-bottom: 4px; }
.terms li p + p { margin-top: 8px; }
.terms + .check { margin-top: -8px; }
.msg { min-height: 24px; font-size: 14px; font-weight: 500; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* bib confirmation */
.bib { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 6px; padding: 22px; position: relative; overflow: hidden; }
.bib::before, .bib::after { content: ""; position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); }
.bib::before { left: 12px; } .bib::after { right: 12px; }
.bib .tag { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: 14px; }
.bib .who { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 9vw, 64px); line-height: 0.95; text-align: center; margin: 8px 0 12px; overflow-wrap: anywhere; }
.bib .reg-id { text-align: center; margin: 0 0 12px; }
.bib .reg-id small { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bib .reg-id b { display: inline-block; margin-top: 4px; padding: 4px 14px; border: 1.5px dashed var(--ink); border-radius: 4px; font-family: var(--font-mono); font-size: clamp(20px, 5vw, 26px); letter-spacing: 0.12em; user-select: all; }
.bib .pace-chip { display: block; text-align: center; font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-bottom: 12px; }
.bib ul { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 15px; }
.bib li { display: flex; justify-content: space-between; gap: 12px; }
.bib li span:last-child { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.how { display: grid; gap: 14px; }
.how p { margin: 0; max-width: 52ch; }
.how ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

section[id] { scroll-margin-top: 76px; } /* keeps linked sections clear of the sticky header */
/* phones: logo on top, the four menu items spread across one row below it */
@media (max-width: 480px) {
  .bar .wrap { gap: 6px 12px; padding-block: 8px; }
  .logo-link img { height: 44px; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 14px; }
  section[id] { scroll-margin-top: 84px; }
}
.stub { border-bottom: 0; }
.stub .wrap { display: grid; gap: 20px; justify-items: start; }
.stub h2 { margin: 0; }
footer { padding-block: 48px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-col { display: grid; gap: 14px; align-content: start; justify-items: center; min-width: 0; }
.foot-title { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.05; letter-spacing: 0.02em; color: var(--ink); }
.foot-mailline { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.foot-mail { color: var(--ink); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.social svg { flex: none; }
.foot-bottom { display: grid; justify-items: center; gap: 14px; padding-top: 32px; text-align: center; }
.foot-logo img { height: 76px; }
.copyright { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
@media (max-width: 760px) { .foot-logo img { height: 68px; } }

/* admin */
.admin-wrap { max-width: 1080px; margin-inline: auto; padding: 32px 20px 64px; display: grid; gap: 28px; }
.admin-wrap h2 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 0; }
.login { max-width: 420px; margin: 64px auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.row3 > * { min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pill.live { color: var(--ok); border-color: var(--ok); }
.pill.off { color: var(--muted); }

@media (max-width: 760px) {
  .about-grid, .reg-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { justify-self: start; max-width: 100%; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 72px 1fr; }
  .ev .btn { grid-column: 2; justify-self: start; }
  .date .n { font-size: 44px; }
  section { padding-block: 48px; }
  .hero .wrap { padding-block: 40px 36px; }
  form, .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .about-photo img { transition: none; } .about-photo:hover img { transform: none; } }

/* admin: summary cards, filters, aligned controls, capacity bars, print list */
.admin-wrap input[type=search] { width: 100%; min-height: 44px; padding: 0 12px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); border-radius: 4px; font: 400 16px var(--font-body); }
.admin-wrap input[type=search]:focus { border-color: var(--accent); }
.admin-wrap select { min-height: 44px; }
.admin-wrap .toolbar { min-height: 48px; }
.admin-wrap .toolbar .actions { align-items: center; gap: 12px; }
.admin-wrap .btn.small { min-height: 44px; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; }
.inline-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr) 2fr; gap: 12px; }
.stat { display: grid; gap: 2px; align-content: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 6px; min-width: 0; }
.stat .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat b { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.stat.wide { border-top-color: var(--accent); }
.stat.wide b { font-size: 30px; line-height: 1.15; }
.stat .sub { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.filters .field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); min-width: 200px; }
.filters .field.grow { flex: 1 1 260px; }
.filters .actions { align-items: flex-end; gap: 8px; }
.capcell { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.capcell progress, .bar-row progress { width: 90px; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); accent-color: var(--accent); }
.capcell progress::-webkit-progress-bar, .bar-row progress::-webkit-progress-bar { background: var(--line); }
.capcell progress::-webkit-progress-value, .bar-row progress::-webkit-progress-value { background: var(--accent); }
.capcell progress::-moz-progress-bar, .bar-row progress::-moz-progress-bar { background: var(--accent); }
.capcell.full progress::-webkit-progress-value { background: var(--err); }
.capcell.full progress::-moz-progress-bar { background: var(--err); }
.capcell.full span { color: var(--err); }
td.nowrap { white-space: nowrap; }
tr.past td { color: var(--muted); }
.admin-wrap td .actions { gap: 6px; }
.print-only { display: none; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat.wide { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .admin-wrap { padding-inline: 16px; }
  .filters .field, .filters .actions { width: 100%; min-width: 0; }
  .filters .actions .btn { flex: 1 1 auto; }
  .stat { padding: 12px; }
  .stat .k { font-size: 11px; letter-spacing: 0.04em; }
  .stat b { font-size: 34px; }
  .stat.wide b { font-size: 26px; }
  /* events table becomes one card per event on phones */
  .ev-table thead { display: none; }
  .ev-table, .ev-table tbody { display: block; }
  .ev-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .ev-table td { padding: 0; border: 0; text-align: left; }
  .ev-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
  .ev-table td:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  .ev-table td:nth-child(2), .ev-table td:nth-child(4), .ev-table td:nth-child(5), .ev-table td[colspan] { grid-column: 1 / -1; }
  .ev-table .capcell { justify-content: flex-start; }
}
@media print {
  .noprint { display: none !important; }
  .admin-wrap { padding: 0; max-width: none; }
  .print-only { display: table-cell; }
  p.print-only { display: block; margin: 0 0 10px; font-weight: 600; }
  .table-scroll { border: 0; overflow: visible; }
  table { font-size: 11px; }
  th, td { padding: 6px 8px; border-bottom: 1px solid #999; color: #000 !important; }
  td .note { color: #000; }
  .box { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #000; border-radius: 3px; }
  tr { break-inside: avoid; }
}
.admin-wrap .msg:empty { display: none; }
.inline-field { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.inline-field select { min-width: 220px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kpi { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.kpi span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.stat-grid .stat-card:nth-child(3) { grid-column: 1 / -1; }
.stat-card { align-content: start; gap: 14px; padding: 18px; border-width: 1px; border-color: var(--line); }
.stat-card h3 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.bar-list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr 72px; align-items: center; gap: 12px; font-size: 14px; }
.bar-row .bl { overflow-wrap: anywhere; }
.bar-row progress { width: 100%; height: 12px; }
.bar-row .bn { font-family: var(--font-mono); font-size: 13px; text-align: right; white-space: nowrap; }
.bar-row .bn small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(3, 1fr); } .stat-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .inline-field { width: 100%; } .inline-field select { flex: 1; min-width: 0; } .kpis { grid-template-columns: repeat(2, 1fr); } .bar-row { grid-template-columns: 1fr 64px; } .bar-row progress { grid-column: 1 / -1; grid-row: 2; } }
.pager { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: -12px; }
@media (max-width: 760px) { .pager { justify-content: center; } }

/* About us page */
.about-page section { border-bottom: 1px solid var(--line); }
.about-hero .wrap { display: grid; gap: 24px; padding-block: 64px 56px; }
.about-hero h1 { font-size: clamp(56px, 13vw, 132px); }
.kicker { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1; font-size: clamp(30px, 5.5vw, 56px); }
.kicker em { font-style: normal; color: var(--accent); }
.prose { display: grid; gap: 16px; max-width: 62ch; font-size: 18px; }
.prose p { margin: 0; }
.prose .pull { padding-left: 16px; border-left: 4px solid var(--accent); font-weight: 600; }
.story { padding-block: 56px; }
.story-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px 48px; align-items: start; }
.story-grid > * { min-width: 0; }
.story h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); }
.about-cta { background: var(--surface); }
.about-cta .wrap { display: grid; gap: 24px; justify-items: start; padding-block: 64px; }
.tagline { margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 0.9; font-size: clamp(44px, 9vw, 104px); }
.nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 760px) {
  .about-hero .wrap { padding-block: 40px 40px; }
  .story { padding-block: 40px; }
  .story-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .about-cta .wrap { padding-block: 48px; }
}

/* Contact page: sized by viewport height so the title and the whole form fit in one window */
.contact-page { --gap: clamp(8px, 2vh, 18px); }
.contact-page section { padding-block: 0; border-bottom: 0; }
.contact-hero .wrap { display: grid; gap: clamp(4px, 1vh, 10px); justify-items: center; text-align: center; padding-block: clamp(10px, 3vh, 36px) clamp(8px, 2vh, 20px); }
.contact-hero .eyebrow { display: none; }
.contact-hero h1 { font-size: clamp(34px, 9vh, 84px); line-height: 0.95; }
.contact-hero .lede { max-width: 64ch; margin: 0; font-size: clamp(14px, 2.2vh, 17px); line-height: 1.4; color: var(--muted); }
.contact-form-wrap .wrap { max-width: 760px; padding-block: 0 clamp(16px, 4vh, 48px); }
#contact-form { gap: var(--gap); padding: clamp(12px, 2.4vh, 22px) 22px; }
#contact-form label { gap: 4px; }
#contact-form input[type=text], #contact-form input[type=email] { min-height: clamp(36px, 6vh, 44px); }
#contact-form textarea { min-height: clamp(70px, 14vh, 150px); height: clamp(70px, 14vh, 150px); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.contact-actions .btn { min-height: clamp(38px, 6vh, 46px); }
.contact-actions .msg { flex: 1 1 240px; min-height: 0; }
@media (max-width: 760px) { .contact-form-wrap .wrap { padding-block: 0 32px; } #contact-form { padding: 16px; } #contact-form textarea { height: 100px; min-height: 100px; } }

/* Privacy policy page */
.policy-page section { padding-block: 0; border-bottom: 0; }
.policy-hero { border-bottom: 1px solid var(--line); }
.policy-hero .wrap { max-width: 820px; display: grid; gap: 14px; padding-block: 56px 36px; }
.policy-hero h1 { font-size: clamp(48px, 10vw, 104px); }
.policy-updated { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.policy-body { max-width: 820px; padding-block: 40px 72px; display: grid; gap: 28px; }
.policy-intro { margin: 0; font-size: 18px; }
.policy-sec { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy-sec h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1; }
.policy-sec h2 span { color: var(--accent); }
.policy-sec p { margin: 0; max-width: 68ch; }
.policy-contact { font-style: normal; display: block; margin-top: 4px; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--line); border-left: 4px solid var(--accent); border-radius: 4px; line-height: 1.7; }
.policy-contact b { display: block; }
.policy-contact a { color: var(--accent); }
.policy-note { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.tagline-small { margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 28px; letter-spacing: 0.04em; }
@media (max-width: 760px) { .policy-hero .wrap { padding-block: 36px 24px; } .policy-body { padding-block: 28px 48px; } }

/* Partner with us page */
.partner-page section { padding-block: 0; }
.partner-hero { border-bottom: 1px solid var(--line); }
.partner-hero .wrap { display: grid; gap: 22px; padding-block: 56px 48px; }
.partner-hero h1 { font-size: clamp(48px, 11vw, 120px); }
.partner-who .wrap, .partner-collab .wrap { padding-block: 56px; }
.partner-who, .partner-collab { border-bottom: 1px solid var(--line); }
.partner-who h2 { margin: 0 0 24px; font-size: clamp(34px, 5vw, 56px); }
.who-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.who-card { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--surface); border: 1.5px solid var(--line); border-top: 4px solid var(--accent); border-radius: 4px; }
.who-card b { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.05; }
.who-card span { color: var(--muted); font-size: 15px; }
.partner-collab h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); }
.partner-form-wrap .wrap { max-width: 820px; padding-block: 56px 72px; display: grid; gap: 24px; }
.partner-form-head { display: grid; gap: 10px; }
.partner-form-head h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); }
.partner-form-head p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
#partner-form textarea { min-height: 150px; }
.opt { font-weight: 400; color: var(--muted); }
@media (max-width: 760px) { .partner-hero .wrap { padding-block: 36px 32px; } .partner-who .wrap, .partner-collab .wrap { padding-block: 36px; } .partner-form-wrap .wrap { padding-block: 36px 48px; } }
