/* =====================================================================
   One scale for every size and gap (fluid: phone 360px to desktop 1440px)
   Type: base 16px rising to 18px, ratio 1.2 rising to 1.25 (Utopia method)
   Space: multiples of the base step, so gaps and type stay related
   ===================================================================== */
:root {
  --step--1: clamp(0.833rem, 0.811rem + 0.099vw, 0.900rem);
  --step-0: clamp(1.000rem, 0.958rem + 0.185vw, 1.125rem);
  --step-1: clamp(1.200rem, 1.131rem + 0.306vw, 1.406rem);
  --step-2: clamp(1.440rem, 1.334rem + 0.471vw, 1.758rem);
  --step-3: clamp(1.728rem, 1.572rem + 0.695vw, 2.197rem);
  --step-4: clamp(2.074rem, 1.849rem + 0.997vw, 2.747rem);
  --step-5: clamp(2.488rem, 2.173rem + 1.400vw, 3.433rem);
  --step-6: clamp(2.986rem, 2.551rem + 1.934vw, 4.292rem);
  --step-7: clamp(3.583rem, 2.989rem + 2.639vw, 5.364rem);
  --space-3xs: clamp(0.250rem, 0.240rem + 0.046vw, 0.281rem);
  --space-2xs: clamp(0.500rem, 0.479rem + 0.093vw, 0.562rem);
  --space-xs: clamp(0.750rem, 0.719rem + 0.139vw, 0.844rem);
  --space-s: clamp(1.000rem, 0.958rem + 0.185vw, 1.125rem);
  --space-m: clamp(1.500rem, 1.438rem + 0.278vw, 1.688rem);
  --space-l: clamp(2.000rem, 1.917rem + 0.370vw, 2.250rem);
  --space-xl: clamp(3.000rem, 2.875rem + 0.556vw, 3.375rem);
  --space-2xl: clamp(4.000rem, 3.833rem + 0.741vw, 4.500rem);
  --space-3xl: clamp(6.000rem, 5.750rem + 1.111vw, 6.750rem);
  --section: clamp(5rem, 3.7rem + 5.6vw, 8.75rem);
}

/* A stand-in font sized to match Lexend, so text doesn't jump when Lexend arrives */
@font-face { font-family: "Lexend Fallback"; src: local("Arial"), local("ArialMT");
  size-adjust: 133.2%; ascent-override: 75.07%; descent-override: 18.77%; line-gap-override: 0%; }
@font-face { font-family: "Lexend Fallback Android"; src: local("Roboto");
  size-adjust: 133.2%; ascent-override: 75.07%; descent-override: 18.77%; line-gap-override: 0%; }

/* Lexend, served from this site (no flash of a different font while Google loads) */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300 700; font-display: optional;
  src: url("fonts/lexend-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300 700; font-display: optional;
  src: url("fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Rally colours, from the brand book */
:root {
  --green: #1E3326;  /* Deep Racing Green */
  --cream: #F6F3EC;  /* Studio Cream */
  --gold:  #C6923C;  /* Burnished Gold */
  --gold-ink: #8C6424; /* deeper gold, for small gold text on cream so it stays readable */
  --cream-deep: #ECE6D9;               /* a shade darker, for alternate sections */
  --line: color-mix(in srgb, var(--green) 14%, transparent);
  --bar-height: 88px;
  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(80px, 11vw, 140px);  /* space above and below each section */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);  /* one easing curve for every movement */
  --ink-shadow: 30 51 38;                      /* shadows are tinted green, never grey */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-height); text-rendering: optimizeLegibility; }
html, body { overscroll-behavior: none; }
body {
  font-family: "Lexend", "Lexend Fallback", "Lexend Fallback Android", sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--green);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

/* headlines never leave a lonely word on the last line; paragraphs avoid orphans */
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--green); color: var(--cream); }
.split ::selection, .banner ::selection, footer ::selection, .hero ::selection { background: var(--cream); color: var(--green); }

/* keyboard focus: a clear ring that follows the shape of whatever it's on */
a:focus-visible { outline: none; border-radius: 4px; box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--green); }
.btn:focus-visible { border-radius: 40px; }
.hero a:focus-visible, .split a:focus-visible, .banner a:focus-visible, footer a:focus-visible {
  box-shadow: 0 0 0 2px var(--green), 0 0 0 4px var(--gold);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }

/* ---------- Shared type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.label.center::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.label:empty { display: none; }
.label:empty + h2 { margin-top: 0; }
h2 {
  margin-top: 20px;
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.lead {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 34em;
  opacity: 0.85;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out),
              border-color 400ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn.solid  { background: var(--green); color: var(--cream); border: 1.5px solid var(--green); }
/* hovers only on devices with a real pointer; quick in, slower out */
@media (hover: hover) {
  .btn:hover { transition-duration: 150ms, 150ms, 150ms, 160ms; }
  .btn.solid:hover { background: transparent; color: var(--green); }
  .btn.ghost:hover { background: var(--cream); color: var(--green); border-color: var(--cream); }
  .btn.light:hover { background: transparent; color: var(--cream); }
  .textlink:hover { color: var(--gold-ink); border-color: var(--gold-ink); }
  .split .textlink:hover { color: var(--gold); }
  .topbar .links a:hover { color: var(--gold-ink); }
  footer ul a:hover { opacity: 1; color: var(--gold); }
  .tile:hover .ph { transform: scale(0.985); }
}
.btn.ghost  { border: 1.5px solid currentColor; }
.btn.light  { background: var(--cream); color: var(--green); border: 1.5px solid var(--cream); }
.textlink {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}

/* ---------- Placeholder boxes (swap for real photos) ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--green) 5%, transparent) 14px 15px),
    var(--cream-deep);
  overflow: hidden;
}
.ph::after {
  content: "PHOTO · " attr(data-note);
  position: absolute;
  left: 16px; bottom: 14px; right: 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--green) 55%, transparent);
}
.ph.has-photo { background-size: cover; background-position: center; }
.ph.has-photo::after { content: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--bar-height);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.topbar .links { display: flex; gap: clamp(22px, 3vw, 44px); }
.topbar .links a, .topbar .side a:not(.btn) {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.topbar .links a { transition: color 400ms var(--ease-out); }
.topbar .brand { color: var(--green); }
.rallyLogo { display: block; fill: currentColor; height: auto; }
.topbar .rallyLogo { width: 112px; }
.topbar .side { display: flex; justify-content: flex-end; }
.topbar .side .btn { padding: 11px 24px; }
@media (max-width: 760px) {
  .topbar .inner { grid-template-columns: auto 1fr; }
  .topbar .links { display: none; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  padding: calc(var(--bar-height) + 40px) var(--gutter) 60px;
  background: var(--green);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--green) 30%, transparent) 0%,
    color-mix(in srgb, var(--green) 15%, transparent) 50%,
    color-mix(in srgb, var(--green) 45%, transparent) 100%);
}
.hero h1 {
  font-weight: 300;
  font-size: min(72px, 6vw);
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgb(var(--ink-shadow) / 0.45);
}
.hero h1 .typed { font-weight: 700; }
.hero h1 .cursor {
  display: inline-block; width: 0.06em; height: 0.95em; margin-left: 0.06em;
  vertical-align: -0.1em; background: var(--gold); animation: blink 0.7s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (max-width: 600px) {
  /* phones: "Join" on its own line, the typed ending underneath, nice and big */
  .hero h1 { font-size: 40px; white-space: normal; min-height: 2.3em; }
  .hero h1 .typed { display: block; }
  .hero h1 .cursor { display: none; }
  .hero h1 .typed::after { content: ""; display: inline-block; width: 3px; height: 0.9em; margin-left: 3px; vertical-align: -0.1em; background: var(--gold); animation: blink 0.7s infinite; }
  .hero h1.done .typed::after { display: none; }
  .hero .bg { background-position: 30% 60%; }
}
.hero p { margin-top: 18px; font-size: clamp(15px, 1.6vw, 19px); opacity: 0.9; text-shadow: 0 2px 24px rgb(var(--ink-shadow) / 0.45); }
.hero .btn { margin-top: 32px; }

/* ---------- 2. Who we are ---------- */
.about { text-align: center; }
.about h2 { max-width: 15em; margin-left: auto; margin-right: auto; }
.about .lead { margin-left: auto; margin-right: auto; }

/* ---------- 3. Tiles ---------- */
.tiles { padding-top: 0; }
.tiles .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { text-decoration: none; display: block; }
.tile .ph { aspect-ratio: 3 / 4; border-radius: 6px; transition: transform 500ms var(--ease-out); }
.tile .label { margin-top: 26px; }
.tile h3 { margin-top: 12px; font-size: 24px; font-weight: 400; letter-spacing: -0.01em; }
.tile .textlink { margin-top: 18px; }
/* Call 3: one big tile, two smaller ones stacked beside it */
.tiles .grid { grid-template-columns: 1.3fr 1fr; column-gap: 40px; row-gap: 56px; }
.tile:first-child { grid-row: span 2; }
.tile:first-child .ph { aspect-ratio: 4 / 5; }
.tile:first-child h3 { font-size: 32px; font-weight: 300; letter-spacing: -0.02em; }
.tile:not(:first-child) .ph { aspect-ratio: 16 / 10; }
@media (max-width: 860px) {
  .tiles .grid { grid-template-columns: 1fr; gap: 48px; }
  .tile:first-child { grid-row: auto; }
  .tile .ph, .tile:first-child .ph, .tile:not(:first-child) .ph { aspect-ratio: 4 / 3; }
}

/* ---------- 4. Split section ---------- */
.split { background: var(--green); color: var(--cream); }
.split .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split .ph { aspect-ratio: 4 / 5; border-radius: 6px; background-color: color-mix(in srgb, var(--cream) 10%, var(--green)); }
.split .ph:not(.has-photo) { background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--cream) 6%, transparent) 14px 15px),
    color-mix(in srgb, var(--cream) 8%, var(--green)); }
.split .ph::after { color: color-mix(in srgb, var(--cream) 55%, transparent); }
.split .btn { margin-top: 36px; }
/* Call 3: the challenge photo runs off the left edge of the screen */
.split .grid { grid-template-columns: 1.15fr 1fr; }
.split .ph {
  aspect-ratio: 5 / 6;
  margin-left: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter)));
  border-radius: 0 6px 6px 0;
}
@media (max-width: 860px) {
  .split .grid { grid-template-columns: 1fr; }
  .split .ph { margin-right: calc(-1 * var(--gutter)); border-radius: 0; aspect-ratio: 4 / 3; }
}

/* ---------- 5. First timers ---------- */
.steps .head { text-align: center; }
.steps ol {
  list-style: none;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.steps li { padding: 36px 32px 0 0; counter-increment: step; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-ink);
}
.steps h3 { margin-top: 18px; font-size: 22px; font-weight: 400; }
.steps p { margin-top: 12px; font-size: 15px; line-height: 1.65; opacity: 0.8; }
@media (max-width: 860px) {
  .steps ol { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- 6. Coaches ---------- */
.coaches { background: var(--cream-deep); }
.coaches .grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.coach .ph { aspect-ratio: 4 / 5; border-radius: 6px; background-color: var(--cream); }
.coach .ph:not(.has-photo) { background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--green) 5%, transparent) 14px 15px),
    var(--cream); }
.coach h3 { margin-top: 24px; font-size: 22px; font-weight: 400; }
.coach .role { margin-top: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.coach p { margin-top: 14px; font-size: 15px; line-height: 1.65; opacity: 0.8; }
/* Call 3: the head coach gets a big feature, the others sit smaller below */
.coaches .grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; row-gap: 72px; }
.coach:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.coach:first-child .ph { aspect-ratio: 4 / 5; }
.coach:first-child h3 { margin-top: 0; font-size: clamp(32px, 3.6vw, 48px); font-weight: 300; letter-spacing: -0.025em; }
.coach:first-child .role { margin-top: 10px; }
.coach:first-child p { font-size: 17px; font-weight: 300; max-width: 30em; }
.coach:not(:first-child) { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.coach:not(:first-child) .ph { aspect-ratio: 1 / 1; }
.coach:not(:first-child) h3 { margin-top: 0; }
@media (max-width: 860px) {
  .coaches .grid { grid-template-columns: 1fr; gap: 56px; }
  .coach:first-child { grid-template-columns: 1fr; gap: 24px; }
  .coach:not(:first-child) { grid-template-columns: 110px 1fr; }
}

/* ---------- 7. The space ---------- */
.space .head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.space .head .lead { margin-top: 0; }
.space .grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 18px;
}
.space .ph { border-radius: 6px; }
.space .ph:nth-child(1) { grid-row: span 2; }
.space .ph:nth-child(2) { grid-column: span 2; }
@media (max-width: 860px) {
  .space .head { grid-template-columns: 1fr; gap: 0; }
  .space .head .lead { margin-top: 22px; }
  .space .grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 200px; }
  .space .ph:nth-child(1) { grid-row: auto; grid-column: span 2; }
  .space .ph:nth-child(2) { grid-column: auto; }
  .space .ph:nth-child(4) { grid-column: span 2; }
}

/* ---------- 8. Find us ---------- */
.visit { border-top: 1px solid var(--line); }
.visit .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.visit .ph { aspect-ratio: 1 / 1; border-radius: 6px; }
.visit .info { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.visit .info h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); }
.visit .info p, .visit .info dl { margin-top: 12px; font-size: 15px; line-height: 1.75; }
.visit dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.visit dd { opacity: 0.8; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .visit .grid, .visit .info { grid-template-columns: 1fr; } }

/* ---------- 9. Join banner ---------- */
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  background: var(--green);
}
.banner .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 55%; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--green) 55%, transparent); }
.banner h2 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.035em; line-height: 1; }
.banner .btn { margin-top: 36px; }

/* ---------- 10. Footer ---------- */
footer { background: var(--green); color: var(--cream); padding: 90px 0 36px; }
footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer .rallyLogo { width: 150px; color: var(--cream); }
footer .tag { margin-top: 18px; font-size: 15px; opacity: 0.75; max-width: 18em; line-height: 1.6; }
footer h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
footer ul { list-style: none; margin-top: 16px; font-size: 15px; line-height: 2; }
footer ul a { text-decoration: none; opacity: 0.85; }
footer ul a { transition: color 400ms var(--ease-out), opacity 400ms var(--ease-out); }
footer .bottom {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.6;
}
@media (max-width: 860px) {
  footer .top { grid-template-columns: 1fr 1fr; }
  footer .top > :first-child { grid-column: span 2; }
  footer .bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Gentle fade-up as sections scroll into view ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .textlink, .tile .ph { transition: none; }
  .btn:active { transform: none; }
  .hero h1 .cursor { animation: none; }
}

/* =====================================================================
   Pages beyond the homepage
   ===================================================================== */

/* the page you're on is underlined in gold in the top bar */
.topbar .links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); padding-bottom: 4px; }

/* ---------- Page header (top of each inner page) ---------- */
.page-head { padding: calc(var(--bar-height) + clamp(72px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); }
.page-head h1 {
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 12em;
}
.page-head .lead { margin-top: 28px; font-size: 19px; }
.page-head.with-photo { padding-bottom: 0; }
.page-head .hero-ph { margin-top: clamp(48px, 6vw, 80px); aspect-ratio: 21 / 9; border-radius: 6px; }
@media (max-width: 860px) { .page-head .hero-ph { aspect-ratio: 4 / 3; } }

/* ---------- Ticked list ---------- */
.ticks { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 1px; background: var(--gold); }
.split .ticks li { opacity: 0.9; }

/* ---------- Two columns of text ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); }
.two-col h3 { font-size: 26px; font-weight: 300; letter-spacing: -0.015em; }
.two-col p { margin-top: 14px; font-size: 16px; font-weight: 300; line-height: 1.65; opacity: 0.85; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Quotes from members ---------- */
.quotes { background: var(--cream-deep); }
.quotes .grid { margin-top: 56px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.quote { padding-top: 28px; border-top: 1px solid var(--line); }
.quote blockquote { font-size: 20px; font-weight: 300; line-height: 1.45; letter-spacing: -0.01em; }
.quote:first-child blockquote { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 860px) { .quotes .grid { grid-template-columns: 1fr; } }

/* ---------- Membership options ---------- */
.plans .grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 36px 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); }
.plan.featured { background: var(--green); color: var(--cream); border-color: var(--green); }
.plan .name { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.plan.featured .name { color: var(--gold); }
.plan .price { margin-top: 18px; font-size: 44px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .per { font-size: 14px; opacity: 0.7; }
.plan .blurb { margin-top: 12px; font-size: 15px; font-weight: 300; line-height: 1.6; opacity: 0.85; }
.plan .ticks { margin-top: 24px; margin-bottom: 32px; gap: 10px; }
.plan .ticks li { font-size: 15px; }
.plan .btn { margin-top: auto; text-align: center; }
.plan.featured .btn { background: var(--cream); color: var(--green); border-color: var(--cream); }
@media (max-width: 860px) { .plans .grid { grid-template-columns: 1fr; } }

/* ---------- Questions (FAQ) ---------- */
.faq .list { margin-top: 48px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 19px; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--gold-ink), var(--gold-ink)) center / 12px 1.5px no-repeat,
              linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1.5px 12px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 40em; font-size: 16px; font-weight: 300; line-height: 1.65; opacity: 0.85; }
.faq summary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--green); border-radius: 4px; }

/* ---------- Phone menu ---------- */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .topbar .side { gap: 10px; align-items: center; }
  .menu-btn {
    display: inline-block; background: none; border: 0; cursor: pointer; color: var(--green);
    font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 6px;
  }
  .phone-menu {
    position: fixed; inset: var(--bar-height) 0 0 0; z-index: 99; background: var(--cream);
    display: flex; flex-direction: column; padding: 32px var(--gutter);
  }
  .phone-menu[hidden] { display: none; }
  .phone-menu a {
    padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
    font-size: 34px; font-weight: 300; letter-spacing: -0.02em;
  }
  .phone-menu a[aria-current="page"] { color: var(--gold-ink); }
}

/* Call 5: square-cut buttons (Join stays a pill) */
/* 5. square-cut buttons, like racing livery and club signage */
.btn { border-radius: 2px; }
.btn:focus-visible { border-radius: 2px; }
.topbar .side .btn, .topbar .side .btn:focus-visible { border-radius: 2px; }   /* square like every other button */


/* =====================================================================
   Finish pass
   ===================================================================== */

/* One motion moment per page: no fade-ups on scroll anywhere */
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Inner pages: the page header arrives as one short cascade, like the homepage */
@media (prefers-reduced-motion: no-preference) {
  .page-head .wrap > * { animation: headRise 600ms var(--ease-out) both; }
  .page-head .wrap > :nth-child(1) { animation-delay: 80ms; }
  .page-head .wrap > :nth-child(2) { animation-delay: 200ms; }
  .page-head .wrap > :nth-child(3) { animation-delay: 320ms; }
  .page-head .wrap > :nth-child(4) { animation-delay: 440ms; }
  @keyframes headRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Smooth page changes: a quick soft crossfade between pages, top bar stays put */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
::view-transition-old(root) { animation: vtOut 180ms ease-in both; }
::view-transition-new(root) { animation: vtIn 320ms var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Photos zoom gently inside their frame on hover */
.ph { isolation: isolate; }
.ph > .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 900ms var(--ease-out); }
@media (hover: hover) {
  .tile:hover .ph { transform: none; }
  .tile:hover .ph > .img, .coach:hover .ph > .img, .space .ph:hover > .img { transform: scale(1.04); }
}

/* Links underline as you hover: a thin line draws in from the left */
.topbar .links a, footer ul a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 350ms var(--ease-out), color 400ms var(--ease-out); padding-bottom: 3px; }
@media (hover: hover) {
  .topbar .links a:hover, footer ul a:hover { background-size: 100% 1px; }
}
.topbar .links a[aria-current="page"] { box-shadow: none; background-size: 100% 1px; color: var(--green); background-image: linear-gradient(var(--gold), var(--gold)); }

/* Page not found */
.notfound { min-height: 100vh; display: flex; align-items: center; padding-top: var(--bar-height); }
.notfound h1 { margin-top: 22px; font-weight: 300; font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.035em; }
.notfound .lead { margin-top: 24px; }
.notfound .btn { margin-top: 36px; }

/* ---------- Join page ---------- */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.join-card { background: var(--cream-deep); border-radius: 6px; padding: clamp(28px, 4vw, 44px); }
.join-card form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.field input {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--green);
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--cream);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.field input::placeholder { color: color-mix(in srgb, var(--green) 40%, transparent); }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; font-weight: 300; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.join-card .btn { margin-top: 6px; width: 100%; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.join-card .btn:disabled { opacity: 0.6; cursor: default; }
.msg { min-height: 1.4em; font-size: 15px; }
.msg.bad { color: #8A2E1F; }
.msg a { color: inherit; }
.slots { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.slots .bktitle { font-size: 20px; font-weight: 400; }
.slots .bksub { margin-top: 8px; font-size: 14px; font-weight: 300; line-height: 1.55; opacity: 0.85; }
.slots .bkday { margin-top: 20px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.slots .bkrow { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.slots .bkslot { font: inherit; font-size: 14px; padding: 10px 14px; border: 1px solid var(--green); border-radius: 2px; background: transparent; color: var(--green); cursor: pointer; }
.slots .bkslot:hover { background: var(--green); color: var(--cream); }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }

/* Headline: centred by transform, so letters arriving never shift the page (no layout shift) */
.hero h1 { text-align: left; }
.hero h1 .line { display: inline-block; margin-left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 600px) {
  .hero h1 { min-height: 2.4em; }
  .hero h1 .line { display: block; margin-left: 0; transform: none; white-space: normal; text-align: center; }
  .hero h1 .typed { display: block; width: max-content; max-width: none; margin-left: 50%; transform: translateX(-50%); white-space: nowrap; }
}

/* Eyebrow labels, refined: bigger, calmer tracking, longer gold rules, green text (gold fails contrast on cream) */
.label { font-size: 14px; font-weight: 500; letter-spacing: 0.12em; gap: 16px; line-height: 1; }
.label::before, .label.center::after { width: 40px; transform: translateY(-0.5px); }
.label.center { padding-left: 0.12em; }   /* evens out the space tracking leaves after the last letter */
.label + h2, .label + h1 { margin-top: 22px; }
@media (max-width: 640px) {
  .label { font-size: 13px; gap: 12px; }
  .label::before, .label.center::after { width: 24px; }
}

/* The cursor is drawn after the typed text rather than being its own element, so it never counts as layout shift */
.hero h1 .cursor { display: none !important; }
.hero h1 .typed::after {
  content: ""; display: inline-block; width: 0.06em; height: 0.95em; margin-left: 0.06em; vertical-align: -0.1em;
  background: var(--gold); animation: caret 1s steps(1) infinite;
}
.hero h1.is-typing .typed::after { animation: none; opacity: 1; }
.hero h1.done .typed::after { display: none; }
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .typed::after { display: none; } }

.hero h1 .line { transform: none; }   /* JS centres it with a pixel transform */

/* Quieter tiles: a small faded tag, the headline, nothing else. The whole tile is the link. */
.tile .label { gap: 0; font-size: 12px; letter-spacing: 0.12em; opacity: 0.6; margin-top: 22px; }
.tile .label::before { display: none; }
.tile h3 { margin-top: 8px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color 300ms var(--ease-out); }
.tile .textlink { display: none; }
@media (hover: hover) { .tile:hover h3 { text-decoration-color: var(--gold); } }


/* ---------- Technical pass ---------- */
.hero .bg { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
@media (max-width: 600px) { .hero .bg { object-position: 30% 60%; } }
.hero { min-height: 100vh; min-height: 100svh; }            /* svh: fits even with the phone's toolbars showing */
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 12px 18px; border-radius: 2px;
  background: var(--green); color: var(--cream); text-decoration: none; font-size: 14px;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; outline: none; box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--gold); }
:target, main { scroll-margin-top: var(--bar-height); }

/* =====================================================================
   v3: story sections
   ===================================================================== */

/* The problem, in their words */
.problem h2 { max-width: 16em; }
.problem .lead { max-width: 36em; }
.said { list-style: none; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.said li { padding: 32px 32px 0 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; }
.said li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.problem .answer { margin-top: 56px; max-width: 36em; font-size: 19px; line-height: 1.55; }
@media (max-width: 860px) {
  .said { grid-template-columns: 1fr; }
  .said li, .said li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Text link on green */
.textlink.on-dark { margin-top: 32px; color: var(--cream); border-color: var(--gold); }

/* Founder's note */
.founder { background: var(--cream-deep); }
.founder .grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.founder .ph { aspect-ratio: 4 / 5; border-radius: 6px; background-color: var(--cream); }
.founder .ph:not(.has-photo) { background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--green) 5%, transparent) 14px 15px), var(--cream); }
.founder .note-open { font-size: clamp(32px, 4vw, 48px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; }
.founder .note-body { margin-top: 28px; max-width: 32em; }
.founder .note-body p { font-size: 18px; font-weight: 300; line-height: 1.65; }
.founder .note-body p + p { margin-top: 16px; }
.founder .sign { margin-top: 32px; display: grid; gap: 4px; font-size: 17px; font-weight: 500; }
.founder .sign .role { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 860px) { .founder .grid { grid-template-columns: 1fr; } }

/* Six weeks, numbered: the one place numbering is earned (a real sequence) */
.weeklist { list-style: none; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.weeklist li { position: relative; padding: 28px 28px 40px 0; border-bottom: 1px solid var(--line); }
.weeklist li:nth-child(3n+2), .weeklist li:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
.weeklist .n { display: block; font-size: clamp(56px, 6vw, 88px); font-weight: 200; line-height: 1; letter-spacing: -0.04em; color: var(--green); font-variant-numeric: tabular-nums; }
.weeklist h3 { margin-top: 18px; font-size: 20px; font-weight: 400; }
.weeklist p { margin-top: 10px; font-size: 15px; font-weight: 300; line-height: 1.6; opacity: 0.85; max-width: 26em; }
@media (max-width: 860px) {
  .weeklist { grid-template-columns: 1fr 1fr; }
  .weeklist li, .weeklist li:nth-child(3n+2), .weeklist li:nth-child(3n+3) { padding: 24px 16px 28px 0; border-left: 0; }
  .weeklist li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* The guarantee sits right under the button */
.guarantee { margin: 22px auto 0; max-width: 30em; display: grid; gap: 6px; font-size: 15px; line-height: 1.55; }
.guarantee strong { font-weight: 500; font-size: 17px; }
.guarantee span { opacity: 0.75; font-weight: 300; }

/* the scale, applied */
.hero h1 { font-size: min(var(--step-6), 6vw); }
h2 { font-size: var(--step-5); }
.page-head h1, .notfound h1 { font-size: var(--step-6); }
.banner h2 { font-size: var(--step-7); }
.lead, .problem .answer, .founder .note-body p { font-size: var(--step-0); }
.page-head .lead { font-size: var(--step-1); }
.tile h3, .two-col h3, .said li { font-size: var(--step-2); }
.tile:first-child h3, .founder .note-open { font-size: var(--step-3); }
.steps h3, .coach h3, .weeklist h3, .faq summary, .slots .bktitle { font-size: var(--step-1); }
.steps p, .coach p, .weeklist p, .two-col p, .faq details p, .visit .info p, .visit .info dl, .ticks li, footer ul, .plan .blurb { font-size: calc(var(--step-0) * 0.92); }
.coach:first-child h3 { font-size: var(--step-4); }
.plan .price { font-size: var(--step-4); }
.weeklist .n { font-size: var(--step-7); }
.quote blockquote { font-size: var(--step-1); }
.quote:first-child blockquote { font-size: var(--step-2); }
/* gaps from the same scale */
.label + h2, .label + h1 { margin-top: var(--space-m); }
.lead { margin-top: var(--space-m); }
.steps ol, .coaches .grid, .said, .weeklist, .plans .grid, .quotes .grid, .space .grid { margin-top: var(--space-2xl); }
.faq .list { margin-top: var(--space-xl); }
.split .btn, .banner .btn, .hero .hero-cta { margin-top: var(--space-l); }
.tiles .grid { column-gap: var(--space-l); row-gap: var(--space-xl); }
@media (max-width: 600px) { .hero h1 { font-size: 40px; } }

/* top bar: switch to the Menu button before the links run into the logo */
@media (max-width: 1080px) {
  .topbar .inner { grid-template-columns: auto 1fr; }
  .topbar .links { display: none; }
  .menu-btn { display: inline-block; background: none; border: 0; cursor: pointer; color: var(--green); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 6px; }
  .topbar .side { gap: 10px; align-items: center; }
  .phone-menu { position: fixed; inset: var(--bar-height) 0 0 0; z-index: 99; background: var(--cream); display: flex; flex-direction: column; padding: 32px var(--gutter); }
  .phone-menu[hidden] { display: none; }
  .phone-menu a { padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 34px; font-weight: 300; letter-spacing: -0.02em; }
}

/* Join page: more air, less text */
.join-page .lead { margin-top: var(--space-l); max-width: 26em; }
.join-page .ticks { margin-top: var(--space-xl); gap: var(--space-s); }
.join-page h1 { margin-top: 0; }

/* Buttons: never wrap onto two lines, and a clear change on hover */
.btn { white-space: nowrap; }
@media (hover: hover) {
  /* every button turns into an outline on hover; gold stays for thin lines only */
  .btn.light:hover, .hero .btn:hover, .split .btn.light:hover, .banner .btn:hover, .plan.featured .btn:hover { background: transparent; border-color: var(--cream); color: var(--cream); }
  .btn.solid:hover { background: transparent; color: var(--green); border-color: var(--green); }
}

.ticks:empty { display: none; }

/* top bar button: shorter words on phones */
.topbar .side .btn .short { display: none; }
@media (max-width: 480px) { .topbar .side .btn .long { display: none; } .topbar .side .btn .short { display: inline; } }

/* founder note: space above the story link */
.founder .note .textlink { display: inline-block; margin-top: var(--space-m, 24px); }

/* inside a class: three photo panels, one word each */
.inside h2 { max-width: 16em; }
.panels { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.panel { margin: 0; }
.panel .ph { aspect-ratio: 4 / 5; border-radius: 6px; }
.panel figcaption { margin-top: var(--space-s); font-size: var(--step-2); font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; }
@media (max-width: 720px) {
  .panels { grid-template-columns: 1fr; gap: var(--space-l); }
  .panel .ph { aspect-ratio: 3 / 2; }
}

/* one coach: portrait beside the bio, not a lone card in a grid of three */
.coaches .grid:has(> .coach:only-child) { grid-template-columns: 1fr; }
.coach:only-child { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.coach:only-child h3 { margin-top: 0; font-size: var(--step-3); font-weight: 300; }
.coach:only-child p { max-width: 34em; }
@media (max-width: 720px) { .coach:only-child { grid-template-columns: 1fr; gap: 24px; } .coach:only-child .ph { aspect-ratio: 4 / 5; } }

/* ---------- phones and tablets: comfortable thumb targets (44px, Apple's guideline) ---------- */
@media (pointer: coarse) {
  /* invisible hit area around small links, so the look doesn't change */
  .textlink, footer ul a, .visit .info a, .consent a { position: relative; }
  .textlink::before, footer ul a::before, .visit .info a::before, .consent a::before { content: ""; position: absolute; inset: -12px -6px; }
  footer ul { line-height: 2.6; }
  .topbar .side .btn, .menu-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .menu-btn { font-size: 13px; padding: 0 10px; }
  .topbar .side .btn { font-size: 13px; }
  .consent input { width: 22px; height: 22px; margin-top: 0; }
  .btn { min-height: 48px; }
}

/* ---------- footer newsletter ---------- */
.footsub { margin-top: var(--space-xl); padding-top: var(--space-l); border-top: 1px solid color-mix(in srgb, var(--cream) 15%, transparent); display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 16px 40px; align-items: end; }
.footsub .copy p { margin-top: 10px; font-size: 15px; opacity: 0.75; max-width: 30em; line-height: 1.6; }
.footsub .row { display: flex; gap: 8px; }
.footsub input[type=email] { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--cream) 35%, transparent); border-radius: 2px; background: transparent; color: var(--cream); }
.footsub input::placeholder { color: color-mix(in srgb, var(--cream) 55%, transparent); }
.footsub .formerr { grid-column: 1 / -1; font-size: 14px; color: var(--cream); }
.footsub .formerr a, footer .bottom a { color: inherit; }
.footsub .formerr:empty { display: none; }
@media (max-width: 720px) { .footsub { grid-template-columns: 1fr; } }

/* ---------- newsletter pop-up ---------- */
.npop { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--green) 55%, transparent); opacity: 0; transition: opacity 250ms var(--ease-out); }
.npop.open { opacity: 1; }
.npop[hidden] { display: none; }
.npop .card { position: relative; width: min(460px, 100%); background: var(--cream); color: var(--green); border-radius: 6px; padding: clamp(28px, 5vw, 44px); transform: translateY(8px); transition: transform 300ms var(--ease-out); }
.npop.open .card { transform: none; }
.npop h2 { font-size: var(--step-3); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; padding-right: 32px; }
.npop .blurb { margin-top: 14px; font-size: 16px; line-height: 1.6; opacity: 0.85; }
.npop form { margin-top: 24px; display: grid; gap: 10px; }
.npop input[type=email] { font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff8; color: var(--green); }
.npop .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--green); cursor: pointer; }
.npop .fine { margin-top: 16px; font-size: 13px; opacity: 0.7; }
.npop .fine a { color: inherit; }
.npop .formerr { margin-top: 10px; font-size: 14px; }
.npop .formerr:empty { display: none; }
.npop .done { display: none; margin-top: 20px; font-size: 18px; }
.npop.sent form, .npop.sent .blurb { display: none; }
.npop.sent .done { display: block; }
@media (prefers-reduced-motion: reduce) { .npop, .npop .card { transition: none; } }

/* ---------- privacy page ---------- */
.legal { max-width: 40em; }
.legal h2 { margin-top: var(--space-l); font-size: var(--step-1); font-weight: 400; }
.legal p, .legal li { margin-top: 12px; font-size: calc(var(--step-0) * 0.95); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal a { color: inherit; }

/* first visit lists fill in a moment after the page draws: hold their space so nothing jumps */
#fvBefore:empty, #fvArrive:empty { display: block; min-height: 9em; }
@media (max-width: 720px) { #fvBefore:empty, #fvArrive:empty { min-height: 11.5em; } }

/* the words are filled in by rally.js: hold the page back until that is done (a fraction of a second),
   so nothing jumps. If the script ever fails, the page shows anyway after 1.5 seconds. */
html:not(.ready) body { visibility: hidden; animation: rally-reveal 0s 1.5s forwards; }
@keyframes rally-reveal { to { visibility: visible; } }

/* ---------- cookie message: small, quiet, bottom of the screen ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 800; max-width: 560px; margin-left: auto; display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap;
  padding: 14px 16px 14px 20px; background: var(--cream); color: var(--green); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 24px rgb(30 51 38 / 0.12); }
.cookies p { flex: 1 1 220px; font-size: 14px; line-height: 1.5; }
.cookies a { color: inherit; }
.cookies .row { display: flex; gap: 8px; }
.cookies .btn { padding: 10px 16px; font-size: 12px; }
.cookies .btn:not(.solid) { background: transparent; color: var(--green); border-color: var(--line); }
@media (max-width: 480px) { .cookies { bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px; } .cookies .row { width: 100%; } .cookies .btn { flex: 1; } }

/* ---------- privacy page: headings down the left, text on the right, full page width ---------- */
.policy .clause { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px clamp(32px, 6vw, 96px); padding: var(--space-l) 0; border-top: 1px solid var(--line); }
.policy .clause h2 { font-size: var(--step-1); font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.policy .clause p { font-size: var(--step-0); line-height: 1.65; max-width: 38em; }
.policy .clause p + p { margin-top: 1em; }
.policy a { color: inherit; }
.policy .updated { margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid var(--line); font-size: 14px; opacity: 0.6; }
@media (max-width: 720px) { .policy .clause { grid-template-columns: 1fr; gap: 12px; } }
.policy .clause { align-items: start; }
.policy .clause h2 { margin: 0; padding-top: 0.15em; }
.policy .clause > div > p:first-child { margin-top: 0; }

/* ---------- landing page: one screen, photo behind, form on the right ---------- */
.topbar.solo .inner { justify-content: center; }
.landing { position: relative; isolation: isolate; color: var(--cream); padding: clamp(56px, 8vw, 120px) 0; min-height: calc(100svh - 88px); display: flex; align-items: center; }
.landing picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 60%; z-index: -2; }
.landing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(18 30 22 / 0.8) 0%, rgb(18 30 22 / 0.55) 60%, rgb(18 30 22 / 0.4) 100%); }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; width: 100%; }
.landing h1 { font-size: var(--step-6); font-weight: 300; letter-spacing: -0.03em; line-height: 1.02; }
.landing h1 b { font-weight: 700; }
.landing .lead { margin-top: 20px; font-size: var(--step-1); line-height: 1.5; max-width: 24em; opacity: 0.92; }
.landing .note { margin-top: 28px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.landing .join-card { background: var(--cream); color: var(--green); }
.landing .join-card h2 { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; }
.landing .join-card .sub { margin: 10px 0 22px; font-size: 15px; line-height: 1.55; opacity: 0.8; }
footer.solo { padding: 28px 0; }
footer.solo .bottom { margin-top: 0; border-top: 0; padding-top: 0; }
footer.solo a { color: inherit; }
@media (max-width: 860px) {
  .landing { min-height: 0; padding: 48px 0 24px; }
  .landing-grid { grid-template-columns: 1fr; gap: 32px; }
  .landing .lead { font-size: var(--step-0); }
}
/* landing: the top bar is fixed, so the photo runs up behind it and the content starts below it */
.topbar.solo .inner { grid-template-columns: 1fr; justify-items: center; }
.landing { min-height: 100svh; padding-top: calc(var(--bar-height) + clamp(40px, 6vw, 96px)); }
@media (max-width: 860px) { .landing { min-height: 0; padding-top: calc(var(--bar-height) + 40px); } }

/* ---------- inner pages: calmer type. The homepage and landing page keep the big moments ---------- */
.inner .page-head h1 { font-size: var(--step-5); }
.inner .page-head .lead { font-size: var(--step-1); max-width: 32em; }
.inner main h2 { font-size: var(--step-3); letter-spacing: -0.015em; }
.inner .coach:only-child h3 { font-size: var(--step-2); }
.inner .steps h3, .inner .weeklist h3, .inner .two-col h3 { font-size: calc(var(--step-0) * 1.1); }
/* one quiet label style: small, sentence case, muted green */
.inner .visit .info h4 { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--green); opacity: 0.6; }
.inner .visit .info h4 + p, .inner .visit .info h4 + dl { margin-top: 6px; }
.inner .visit .info .directions { margin-top: 8px; }
.inner .visit .info a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* opening hours: one line per day */
.inner .visit .info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.inner .visit dl div { padding: 8px 0; }
.inner .visit dt, .inner .visit dd { white-space: nowrap; }
.inner .visit dd { opacity: 0.75; }
.inner .visit .grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.inner .visit .info { grid-template-columns: auto auto; justify-content: start; column-gap: clamp(32px, 5vw, 72px); }
.inner .visit dl { min-width: 260px; }
.inner .visit dl div { gap: 32px; }
@media (max-width: 860px) { .inner .visit .grid { grid-template-columns: 1fr; } .inner .visit .info { grid-template-columns: 1fr; } }
.inner .visit .info .textlink { white-space: nowrap; }

/* ---------- landing page on computers and tablets: exactly one screen, no scrolling ---------- */
@media (min-width: 861px) {
  body.landing-page { min-height: 100svh; display: flex; flex-direction: column; }
  body.landing-page main { flex: 1; display: flex; }
  body.landing-page .landing { flex: 1; min-height: 0; padding-top: calc(var(--bar-height) + 32px); padding-bottom: 32px; }
  body.landing-page footer.solo { padding: 16px 0; }
}
/* shorter laptop screens: a more compact form so it still fits */
@media (min-width: 861px) and (max-height: 860px) {
  body.landing-page .landing { padding-top: calc(var(--bar-height) + 20px); padding-bottom: 20px; }
  .landing .join-card { padding: 26px 32px; }
  .landing .join-card .sub { margin: 6px 0 14px; }
  .landing .join-card form { gap: 10px; }
  .landing .join-card .field input { padding-top: 10px; padding-bottom: 10px; }
  .landing .join-card .btn { margin-top: 2px; }
  .landing .join-card .msg { min-height: 0; }
}

/* never let anything widen the page sideways (stops in-app browsers like Instagram zooming out) */
html, body { overflow-x: clip; }
/* landing page: when you bounce past the bottom on a phone, show footer green, not a pale strip */
html:has(body.landing-page) { background: var(--green); }
