/* ==========================================================================
   [County] Youth Court — Styles
   Palette: Navy + Gold + Warm Teal on cream paper
   Type: Barlow Condensed (display) · Barlow (body/UI) · Caveat Brush (kicker)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0a1b33;
  --navy: #0f2a4a;
  --cream: #fff8ec;
  --paper: #f3ead8;
  --paper-2: #e9dcc3;
  --gold: #f6b92b;
  --gold-deep: #c98a06;
  --teal: #3cc4b2;
  --teal-deep: #0e7a70;
  --text: #0a1b33;
  --text-muted: #3c4b63;
  --on-dark: #fff8ec;
  --on-dark-muted: #c9d3e3;
  --error: #b42318;
  --line: rgba(10, 27, 51, 0.14);
  --line-dark: rgba(255, 248, 236, 0.16);

  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat Brush", "Comic Sans MS", cursive;

  --fs-hero: clamp(2.9rem, 1.1rem + 4.5vw, 6.2rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 2.8vw, 4rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-kicker: clamp(1.3rem, 1.05rem + 0.9vw, 1.8rem);
  --fs-lede: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 120px);
  --maxw: 1240px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-med: 320ms;

  --z-header: 50;
  --z-menu: 100;
  --z-skip: 1000;

  --header-h: 76px;

  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  --noise-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  --rough: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M4 5 L30 2 L62 4 L98 1 L134 4 L168 2 L196 3 L199 9 L196 15 L200 21 L197 28 L200 34 L196 41 L199 47 L197 53 L199 58 L168 57 L134 59 L99 56 L64 59 L30 57 L2 58 L4 52 L1 46 L4 40 L0 33 L3 27 L1 20 L4 14 L1 8 Z'/%3E%3C/svg%3E");
}
@media (min-width: 960px) { :root { --header-h: 92px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.section--cream :focus-visible, .section--paper :focus-visible, .section--gold :focus-visible, .form-card :focus-visible { outline-color: var(--teal-deep); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: var(--z-skip);
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Cross-document page fade (progressive enhancement) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }

/* ---------- 3. Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { position: relative; padding-block: var(--section); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper) var(--noise-dark); }
.section--navy { background: var(--navy) var(--noise-light); color: var(--on-dark); }
.section--gold { background: var(--gold) var(--noise-dark); color: var(--ink); }

.grid-2 { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; } }
@media (min-width: 960px) { .sticky-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.stack > * + * { margin-top: var(--s-5); }

/* ---------- 4. Typography ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; }
.display { font-size: var(--fs-hero); line-height: 0.9; }
.h1 { font-size: var(--fs-h1); line-height: 0.92; }
.h2 { font-size: var(--fs-h2); line-height: 0.95; }
.h3 { font-size: var(--fs-h3); line-height: 1; }
.kicker {
  display: inline-block;
  font-family: var(--f-hand);
  font-size: var(--fs-kicker);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.section--navy .kicker, .menu .kicker { color: var(--gold); }
.section--gold .kicker { color: var(--ink); }
.lede { font-size: var(--fs-lede); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--text-muted); }
.section--navy .muted, .menu .muted { color: var(--on-dark-muted); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > * + * { margin-top: var(--s-4); }

.mark {
  background: linear-gradient(var(--gold), var(--gold)) 0 86% / 100% 0.3em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.04em;
}
.ph { text-decoration: underline dashed var(--gold-deep) 2px; text-underline-offset: 0.2em; }
.section--navy .ph, .site-footer .ph, .menu .ph { text-decoration-color: var(--gold); }

/* ---------- 5. Icons ---------- */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 6. Buttons & links ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px;
  padding: 0.95em 1.7em;
  font-weight: 800; font-size: 0.9375rem; line-height: 1.1;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; text-align: center;
  color: var(--btn-fg);
  transition: transform var(--t-fast) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg);
  -webkit-mask: var(--rough) center / 100% 100% no-repeat;
  mask: var(--rough) center / 100% 100% no-repeat;
  transition: transform var(--t-med) var(--ease-spring);
}
.btn .icon { transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) {
  .btn:hover::before { transform: scale(1.04, 1.12) rotate(-0.8deg); }
  .btn:hover .icon { transform: translateX(4px); }
}
.btn:active { transform: scale(0.97); }
.btn--teal { --btn-bg: var(--teal); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.btn--sm { min-height: 44px; padding: 0.75em 1.2em; font-size: 0.8125rem; letter-spacing: 0.14em; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0.6; }
.btn .spinner {
  display: none; width: 1em; height: 1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 44px;
  font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; color: inherit;
}
.link-arrow .icon { transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(6px); } .link-arrow:hover span { text-decoration: underline 2px; text-underline-offset: 0.3em; } }

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--ink); color: var(--on-dark);
  transition: transform 380ms var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--on-dark); }
/* PeerPath logo: the full-color mark sits on a light plate so the navy figure reads on dark backgrounds */
.logo-plate {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 44px;
  border-radius: 10px;
  background: #fffdf8;
}
.logo-mark { width: 40px; height: auto; }
.logo-word {
  font-family: var(--f-body); font-weight: 800;
  font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em;
  color: var(--cream); white-space: nowrap;
}
.logo-word span { color: #6cc596; }
@media (min-width: 960px) {
  .logo-plate { width: 62px; height: 52px; border-radius: 12px; }
  .logo-mark { width: 48px; }
  .logo-word { font-size: 2.1rem; }
}
@media (max-width: 420px) {
  .logo-word { font-size: 1.5rem; }
  .logo-plate { width: 46px; height: 40px; }
  .logo-mark { width: 36px; }
  .header-actions .btn--volunteer { padding-inline: 0.9em; letter-spacing: 0.1em; }
}
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
@media (min-width: 960px) { .header-actions { gap: var(--s-5); } }

.lang-toggle { display: none; align-items: center; border: 2px solid var(--line-dark); border-radius: 999px; padding: 2px; }
@media (min-width: 640px) { .lang-toggle { display: inline-flex; } }
.lang-toggle--menu, .lang-toggle--footer { display: inline-flex; }
.lang-toggle button {
  min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 999px;
  font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--on-dark-muted);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lang-toggle button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; min-width: 44px;
  color: var(--gold); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.menu-btn .menu-label { display: none; }
@media (min-width: 960px) { .menu-btn .menu-label { display: inline; } }
.burger { width: 34px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 3px; background: currentColor; border-radius: 2px; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8.5px; }
.burger span:nth-child(3) { bottom: 0; }
.menu-btn[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- 8. Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ink) var(--noise-light); color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 250ms var(--ease-out), visibility 0s; }
.menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu-body { display: grid; gap: var(--s-7); padding-block: var(--s-6) var(--s-8); }
@media (min-width: 960px) { .menu-body { grid-template-columns: 1.4fr 1fr; align-items: end; padding-top: var(--s-8); } }
.menu-nav ol { list-style: none; padding: 0; counter-reset: nav; }
.menu-nav li { counter-increment: nav; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 0.5em; padding-block: 4px;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1;
  text-transform: uppercase; text-decoration: none; color: var(--cream);
  transition: color var(--t-fast);
}
.menu-nav a::before { content: "0" counter(nav); font-family: var(--f-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; color: var(--teal); transform: translateY(-1.2em); }
@media (hover: hover) { .menu-nav a:hover { color: var(--gold); } }
.menu-nav a[aria-current="page"] { color: var(--gold); }
.menu-aside > * + * { margin-top: var(--s-5); }
.menu-aside .btn-row { flex-direction: column; align-items: stretch; }
@media (min-width: 480px) { .menu-aside .btn-row { flex-direction: row; } }
html.menu-open { overflow: hidden; }

/* ---------- 9. Home hero ---------- */
.hero { position: relative; display: grid; background: var(--cream); }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: min(calc(100svh - var(--header-h)), 720px); }
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-5);
  max-width: 820px;
  padding: clamp(36px, 4.5vw, 72px) var(--gutter) clamp(48px, 5vw, 80px);
}
@media (min-width: 960px) {
  .hero-copy { padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); padding-right: var(--s-8); }
}
.hero-copy .lede { color: var(--text-muted); }
/* Three photos that stretch to fill the panel, with even gaps between them */
.hero-art {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(16px, 3vw, 40px);
  min-height: 340px;
  background: var(--paper) var(--noise-dark);
}
@media (min-width: 640px) { .hero-art { min-height: 440px; } }
.hero-photo { min-height: 0; }
.hero-photo--1 { grid-row: 1 / span 2; }

.starburst {
  position: absolute; z-index: 3;
  display: none; place-items: center;
  width: clamp(150px, 15vw, 210px); aspect-ratio: 1;
  pointer-events: none;
}
.starburst svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.starburst svg path { fill: var(--gold); }
.starburst span {
  position: relative;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.3rem, 0.9rem + 1vw, 1.9rem); line-height: 0.88;
  text-transform: uppercase; text-align: center; color: var(--ink);
  transform: rotate(-8deg);
}
@media (min-width: 960px) { .hero .starburst { display: grid; left: calc(50% - clamp(75px, 7.5vw, 105px)); top: 8%; } }

/* Hayward PD badge */
.partner-badge {
  display: inline-flex; align-items: center; gap: 14px; align-self: flex-start;
  min-height: 56px; padding: 8px 22px 8px 14px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: #fffdf8; color: var(--ink); text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
@media (hover: hover) { .partner-badge:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); } }
.partner-badge-patch { width: auto; height: 46px; flex: none; }
.partner-badge-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.partner-badge strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1; text-transform: uppercase; }

/* ---------- 10. Photos (halftone treatment) ---------- */
.photo { position: relative; overflow: hidden; background: #cfc8bb; box-shadow: 0 18px 40px -18px rgba(10, 27, 51, 0.45); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.04); }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(10, 27, 51, 0.38) 0.9px, transparent 1.4px);
  background-size: 4px 4px; mix-blend-mode: multiply;
}
.photo--gold::before, .photo--teal::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: multiply; opacity: 0.55;
}
.photo--gold::before { background: var(--gold); }
.photo--teal::before { background: var(--teal); opacity: 0.5; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-4-5 { aspect-ratio: 4 / 5; }

/* ---------- 11. Steps ---------- */
/* Steps are joined by a gold-to-teal line: vertical on small screens, horizontal once they sit in a row */
.steps {
  --steps-gap: var(--s-6);
  display: grid;
  gap: var(--steps-gap);
}
.step { position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: var(--s-5); align-items: start; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; grid-row: span 2;
  width: 72px; height: 72px;
  border-radius: 50%; border: 3px solid var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1;
}
.step:nth-child(odd) .step-num { background: var(--gold); }
.step:nth-child(even) .step-num { background: var(--teal); }
.step h3 { margin: 18px 0 var(--s-2); }
.step p { color: var(--text-muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute;
  left: 34px; top: 36px;
  width: 4px; height: calc(100% + var(--steps-gap));
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}
.step:nth-child(even):not(:last-child)::after { background: linear-gradient(180deg, var(--teal), var(--gold)); }
/* Horizontal row */
@media (min-width: 1100px) {
  .steps { --steps-gap: var(--s-5); grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .steps:not(.steps--3) .step { display: block; }
  .steps:not(.steps--3) .step h3 { margin-top: var(--s-4); }
  .steps:not(.steps--3) .step:not(:last-child)::after { left: 36px; top: 34px; width: calc(100% + var(--steps-gap)); height: 4px; background: linear-gradient(90deg, var(--gold), var(--teal)); }
  .steps:not(.steps--3) .step:nth-child(even):not(:last-child)::after { background: linear-gradient(90deg, var(--teal), var(--gold)); }
}
@media (min-width: 960px) {
  .steps--3 .step { display: block; }
  .steps--3 .step h3 { margin-top: var(--s-4); }
  .steps--3 .step:not(:last-child)::after { left: 36px; top: 34px; width: calc(100% + var(--steps-gap)); height: 4px; background: linear-gradient(90deg, var(--gold), var(--teal)); }
}

/* "What is youth court?" tag groups (How It Works) */
.basics { display: grid; gap: var(--s-7); }
@media (min-width: 860px) { .basics { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.basics-group h3 { margin-bottom: var(--s-4); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 8px 16px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--gold);
  font-weight: 700; font-size: 0.9375rem; line-height: 1.2; color: var(--ink);
}
.tags--teal li { background: var(--teal); }

/* "Fresh start" promise tiles (How It Works) */
.promise { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .promise { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-8); } }
.promise-tiles { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .promise-tiles { grid-template-columns: 1fr 1fr; } }
.promise-tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-2);
  min-height: 160px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 4px;
  color: var(--ink);
}
.promise-tile:nth-child(1) { background: var(--gold); }
.promise-tile:nth-child(2) { background: var(--teal); }
.promise-tile:nth-child(3) { background: var(--paper-2); }
.promise-tile:nth-child(4) { background: var(--ink); color: var(--cream); }
.promise-tile h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); line-height: 0.95; text-transform: uppercase; }
.promise-tile:nth-child(4) h3 { color: var(--gold); }
.promise-tile p { font-size: 1rem; line-height: 1.45; }

/* Partner page hero: copy + Hayward PD patch */
.partner-hero { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 860px) { .partner-hero { grid-template-columns: 1fr auto; gap: var(--s-8); } }
.partner-patch { width: clamp(150px, 18vw, 230px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
@media (max-width: 859px) { .partner-patch { order: -1; width: 120px; } }

/* ---------- 11b. Stats band ---------- */
.section--stats { padding-bottom: clamp(48px, 6vw, 80px); }
.stats { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); text-align: center; color: var(--ink); }
.stat:nth-child(1) { background: var(--gold); }
.stat:nth-child(2) { background: var(--paper-2); }
.stat:nth-child(3) { background: var(--teal); }
.stat:nth-child(4) { background: var(--ink); color: var(--cream); }
.stat-icon { width: 56px; height: 56px; margin: 0 auto var(--s-4); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; }
.stat:nth-child(4) .stat-num { color: var(--gold); }
.stat-word { margin-top: 6px; font-weight: 800; font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase; }
.stat-text { margin: var(--s-3) auto 0; max-width: 30ch; font-size: 1rem; line-height: 1.5; }

/* ---------- 12. Hayward PD card ---------- */
.hpd-card {
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink) var(--noise-light); color: var(--on-dark);
  border-radius: 4px; box-shadow: 10px 10px 0 var(--gold);
}
.hpd-lockup { display: grid; gap: var(--s-2); font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: 0.95; }
.hpd-org { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.hpd-org--gold { color: var(--gold); font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); }
.hpd-plus { font-size: 2.4rem; color: var(--teal); }
.hpd-partner { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.hpd-patch { width: clamp(64px, 6vw, 88px); height: auto; flex: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); }

/* ---------- 13. Founders ---------- */
.founders { display: grid; gap: var(--s-7); }
@media (min-width: 760px) { .founders { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.founder { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 1100px) { .founder { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }
/* Real founder photos: full color, round, with a navy outline */
.founder-photo {
  width: clamp(160px, 16vw, 220px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--ink);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-body > * + * { margin-top: var(--s-3); }
.founder-body p { color: var(--text-muted); }

/* ---------- 14. Cards ---------- */
.cards { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: clamp(22px, 2.4vw, 32px);
  background: #fffdf8; border: 2px solid var(--line); border-radius: 4px;
}
.card p { color: var(--text-muted); }
.role-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px;
  border-radius: 999px; background: var(--paper);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink);
}

/* ---------- 15. CTA band ---------- */
.cta-band .container > * + * { margin-top: var(--s-4); }
.cta-band .h2 { max-width: 18ch; }
.cta-band .btn-row { margin-top: var(--s-6); }

/* ---------- 16. Inner page hero ---------- */
.page-hero { padding-block: clamp(48px, 6vw, 96px); }
.page-hero-copy > * { max-width: 820px; }
.page-hero-copy > * + * { margin-top: var(--s-5); }
.page-hero-copy .lede { color: var(--on-dark-muted); }
.page-hero-copy .btn-row { margin-top: var(--s-6); }

/* ---------- 17. Timeline ---------- */
.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: var(--s-6); }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 3px; background: var(--gold); }
.timeline li { position: relative; padding-left: 72px; }
.timeline .t-dot {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--gold);
  font-family: var(--f-display); font-weight: 800; font-size: 1.4rem;
}
.timeline h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin-bottom: var(--s-2); padding-top: 10px; }

/* ---------- 18. Checklist & callout ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .icon { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--teal); color: var(--ink); stroke-width: 3; }
.section--navy .checklist .icon { background: var(--gold); }
.contact-list .icon { stroke-width: 2; }

.callout {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5);
  border-left: 6px solid var(--teal-deep); border-radius: 0 4px 4px 0;
  background: #fffdf8; color: var(--ink);
}
.callout .icon { color: var(--teal-deep); width: 26px; height: 26px; margin-top: 2px; }
.callout--gold { border-left-color: var(--gold-deep); }
.callout--gold .icon { color: var(--gold-deep); }

/* ---------- 19. FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); interpolate-size: allow-keywords; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 64px; padding-block: var(--s-4);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.1; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--gold); transition: transform var(--t-med) var(--ease-out), background-color var(--t-med); }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--teal); }
.faq .faq-body { padding-bottom: var(--s-5); max-width: 70ch; color: var(--text-muted); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- 20. Forms ---------- */
.form-card {
  padding: clamp(24px, 4vw, 48px);
  background: #fffdf8; border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: 8px 8px 0 var(--gold); color: var(--ink);
}
.form-card .muted { color: var(--text-muted); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .fieldset legend { font-weight: 700; font-size: 0.9375rem; }
.req { color: var(--error); margin-left: 2px; }
.hint { font-size: 0.875rem; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1rem;
  background: #fff; border: 2px solid rgba(10, 27, 51, 0.55); border-radius: 4px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1b33' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(60, 196, 178, 0.35); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field-error { display: none; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.field.has-error .field-error { display: flex; }
.fieldset { border: 0; padding: 0; min-width: 0; }
.fieldset legend { margin-bottom: 10px; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 2px solid rgba(10, 27, 51, 0.4); border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; pointer-events: none;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.option span::before { content: ""; width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-radius: 4px; }
.option input:checked + span { background: var(--teal); border-color: var(--ink); }
.option input:checked + span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.option input:focus-visible + span { outline: 3px solid var(--teal-deep); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; font-weight: 500 !important; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal-deep); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-success { display: none; text-align: center; padding: var(--s-6) 0; }
.form-success .check { width: 80px; height: 80px; margin: 0 auto var(--s-5); border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.form-success .check svg { width: 40px; height: 40px; stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-card.is-sent .form-success { display: block; }
.form-card.is-sent form, .form-card.is-sent > .callout { display: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--ink) var(--noise-light); color: var(--on-dark); padding-block: var(--s-8) var(--s-6); }
.footer-top { padding-bottom: var(--s-6); border-bottom: 1px solid var(--line-dark); }
.footer-cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, 1fr); padding-block: var(--s-7); }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 759px) { .footer-cols > div:last-child { grid-column: 1 / -1; } }
.footer-cols h3 { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-4); }
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.footer-cols a, .footer-cols li > span { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--on-dark-muted); text-decoration: none; }
@media (hover: hover) { .footer-cols a:hover { color: var(--cream); } }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; padding-top: var(--s-5); border-top: 1px solid var(--line-dark); font-size: 0.875rem; color: var(--on-dark-muted); }
.footer-note { display: flex; gap: 10px; align-items: flex-start; }
.footer-note .icon { color: var(--teal); margin-top: 2px; }

/* ---------- 22. Motion ----------
   Content is visible by default. The inline head script adds `html.motion`
   only when the visitor hasn't asked for reduced motion. */
html.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

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

/* ---------- 23. Misc ---------- */
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .kicker { transform-origin: center; }
.notfound .lede { margin-inline: auto; }

@media print {
  .site-header, .menu, .site-footer, .hero-art { display: none !important; }
  body { background: #fff; }
}
