/* =========================================================
   Capoeira Social Project — homepage concept (v3, light)
   ---------------------------------------------------------
   PALETTE: placeholder until the logo is final.
   Swap the six core tokens below; everything else derives.
   ========================================================= */
:root {
  /* ---- Core palette (edit these) ---- */
  --sand:  #F3EADB;   /* page background */
  --paper: #FBF7F0;   /* raised / alternate light surface */
  --ink:   #16213A;   /* deep navy: text + dark bands */
  --gold:  #F2B630;   /* accent fill (bullseye nod). Never as text on light bg */
  --clay:  #A9432A;   /* earthy secondary: labels, small accents on light bg */
  --white: #FFFFFF;

  /* ---- Derived (no need to edit) ---- */
  --text:        var(--ink);
  --text-2:      color-mix(in srgb, var(--ink) 76%, var(--sand));
  --line:        color-mix(in srgb, var(--ink) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 32%, transparent);
  --on-dark:     var(--sand);
  --on-dark-2:   color-mix(in srgb, var(--sand) 74%, var(--ink));
  --line-dark:   color-mix(in srgb, var(--sand) 18%, transparent);

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.32rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4:  clamp(2.9rem, 1.6rem + 6vw, 6.6rem);

  /* ---- Layout ---- */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1220px;
  --radius: 6px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0;
  font-variation-settings: "wdth" 85; letter-spacing: -0.02em;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.15; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: 1em; }
address { font-style: normal; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--sand); padding: .6rem 1rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.paper { background: var(--paper); }
.dark { background: var(--ink); color: var(--on-dark); }

.label {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem;
}
.dark .label { color: var(--gold); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--text-2); max-width: 44ch; }
.dark .lede { color: var(--on-dark-2); }

/* Highlighter swipe: gold behind ink text (keeps AA contrast on light bg) */
.hl {
  background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 90%, transparent 90%);
  padding-inline: .04em; margin-inline: -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.dark .hl { background: none; color: var(--gold); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 16ch; }
@media (min-width: 860px) {
  .section-head { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 4rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.5rem; border-radius: var(--radius);
  background: var(--ink); color: var(--sand); border: 2px solid var(--ink);
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--sand); }
.dark .btn--line, .on-clay .btn--line { color: var(--sand); border-color: var(--sand); }
.dark .btn--line:hover, .on-clay .btn--line:hover { background: var(--sand); color: var(--ink); }
.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: .3em; text-decoration-color: var(--gold);
}
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Photo treatment ----------
   Mixed-quality source photos get one consistent grade:
   fixed ratio, small radius, a light warm wash. */
.photo {
  position: relative; overflow: hidden; margin: 0;
  border-radius: var(--radius); background: color-mix(in srgb, var(--ink) 10%, var(--sand));
  aspect-ratio: var(--ratio, 4 / 3);
}
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: color-mix(in srgb, var(--gold) 8%, transparent); mix-blend-mode: multiply;
}

/* ---------- Logo slot ---------- */
/* Replace .logo__mark + .logo__text with <img src="assets/logo.svg" alt="Capoeira Social Project" width height> */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.logo__mark {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 24%, var(--ink) 25% 46%, var(--gold) 47% 68%, var(--ink) 69%);
}
.logo__text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1;
  font-variation-settings: "wdth" 80; letter-spacing: -0.01em; white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .85rem; border-radius: var(--radius);
  background: transparent; color: var(--ink); border: 2px solid var(--ink);
  font: 700 .92rem var(--font-body); cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--sand); border-bottom: 1px solid var(--line);
  padding: .25rem var(--gutter) 1.5rem;
}
.site-nav[hidden] { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a:not(.btn) {
  display: block; padding: .8rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; text-decoration: none;
  font-variation-settings: "wdth" 85;
}
.site-nav .btn { margin-top: 1.25rem; width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[hidden] { display: block; position: static; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: .25rem; }
  .site-nav li a:not(.btn) {
    border: 0; padding: .5rem .75rem; font: 600 .95rem var(--font-body);
    text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .45em;
    transition: text-decoration-color .18s ease;
  }
  .site-nav li a:not(.btn):hover { text-decoration-color: var(--gold); }
  .site-nav .btn { margin: 0 0 0 .75rem; width: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.5rem, 5vw, 5rem) clamp(3.5rem, 7vw, 6.5rem); overflow: hidden; }
.hero__grid { display: grid; gap: 1.75rem; align-items: center; }
.hero__media { order: -1; justify-self: center; width: min(68vw, 270px); position: relative; }
@media (min-width: 600px) { .hero__media { width: min(56vw, 360px); } }
.hero h1 { font-size: var(--step-4); line-height: .92; letter-spacing: -0.025em; font-variation-settings: "wdth" 78; }
.hero h1 span { display: block; }
.hero h1 .hl { display: inline; }
.hero__tagline { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; color: var(--text-2); max-width: 36ch; }
.hero__tagline strong { color: var(--ink); font-weight: 700; }
.hero .btn-row { margin-top: 2rem; }
.hero__note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--text-2); }
.hero__note strong { color: var(--clay); }

/* The roda: photo in a circle, ringed like the parent group's bullseye */
.roda { position: relative; aspect-ratio: 1; }
.roda__photo {
  position: absolute; inset: 13%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 6px var(--sand), 0 0 0 12px var(--gold);
}
.roda__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; }
.roda__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.roda__ring text {
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .28em;
  text-transform: uppercase; fill: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .hero__media { order: 0; width: min(100%, 520px); justify-self: end; }
}

/* ---------- Rhythm band (ticker) ---------- */
.ticker { background: var(--ink); color: var(--sand); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker ul { display: flex; margin: 0; padding: 1.1rem 0; list-style: none; white-space: nowrap; }
.ticker li {
  display: inline-flex; align-items: center; gap: 2rem; padding-right: 2rem;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  font-variation-settings: "wdth" 80; letter-spacing: -0.01em;
}
.ticker li::after {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 30%, transparent 31% 55%, var(--gold) 56%);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- What is capoeira ---------- */
.intro__grid { display: grid; gap: 2.5rem; align-items: center; }
.intro__media { margin: 0; width: 100%; max-width: 460px; justify-self: center; }
.intro__media .photo { --ratio: 4 / 5; }
.intro__media figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--text-2); }
.intro h2 { max-width: 13ch; }
.intro__body { margin-top: 1.5rem; max-width: 52ch; font-size: var(--step-1); line-height: 1.6; color: var(--text-2); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; max-width: 34rem; }
.pillars li {
  border-top: 3px solid var(--ink); padding-top: .75rem;
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1;
  font-variation-settings: "wdth" 80;
}
.pillars small { display: block; margin-top: .45rem; font-family: var(--font-body); font-weight: 400; font-size: .88rem; line-height: 1.4; color: var(--text-2); letter-spacing: 0; }
.intro .text-link { margin-top: 2.25rem; }
@media (min-width: 860px) {
  .intro__grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
  .intro__media { justify-self: start; }
}

/* ---------- Mission / impact ---------- */
.mission { overflow: hidden; }
.mission::before {
  /* bullseye rings, low contrast */
  content: ""; position: absolute; width: 900px; aspect-ratio: 1; right: -380px; top: -260px; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 58px, color-mix(in srgb, var(--gold) 16%, transparent) 59px 62px);
  -webkit-mask: radial-gradient(circle, #000 0 70%, transparent 71%); mask: radial-gradient(circle, #000 0 70%, transparent 71%);
}
.mission .wrap { position: relative; }
@media (max-width: 759px) { .mission::before { display: none; } }
.mission__statement { font-size: var(--step-3); max-width: 20ch; }
.mission__body { margin-top: 1.75rem; max-width: 58ch; color: var(--on-dark-2); font-size: var(--step-1); line-height: 1.6; }
.stats { display: grid; margin: 3.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.stat { padding: 1.5rem 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: .35rem; align-content: start; }
.stat p + p { margin-top: 0; }
.stat__num {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: .9;
  color: var(--gold); font-variation-settings: "wdth" 78; letter-spacing: -0.03em;
}
.stat__label { color: var(--on-dark-2); }
.stat--tbc .stat__num { color: color-mix(in srgb, var(--gold) 45%, var(--ink)); }
.tbc {
  justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px dashed currentColor; padding: .2rem .55rem; border-radius: 3px;
}
.on-light-tbc { color: var(--clay); }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-dark); }
  .stat { border-bottom: 0; padding: 1.75rem 2rem 1.75rem 0; }
  .stat + .stat { border-left: 1px solid var(--line-dark); padding-left: 2rem; }
}

/* ---------- Programs ---------- */
.programs__grid { display: grid; gap: 2.75rem 1.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .programs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .programs__grid { grid-template-columns: repeat(3, 1fr); gap: 3.25rem 2rem; } }
.program h3 { margin-top: 1.1rem; font-size: var(--step-2); font-variation-settings: "wdth" 82; }
.program p { margin-top: .5rem; color: var(--text-2); }
.program .tags { margin-top: .75rem; font-size: .88rem; font-weight: 700; color: var(--clay); }

/* ---------- Full-bleed photo band ---------- */
.band { position: relative; margin: 0; background: var(--ink); color: var(--sand); }
.band img { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; object-position: 50% 35%; filter: saturate(.92) contrast(1.05); }
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--ink) 88%, transparent) 0%, transparent 55%);
}
.band figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 3.5rem); }
.band blockquote {
  margin: 0; max-width: 18ch; font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "wdth" 80;
}

/* ---------- Locations + schedule ---------- */
.loc__grid { display: grid; gap: 3rem 2.5rem; }
@media (min-width: 820px) { .loc__grid { grid-template-columns: repeat(2, 1fr); } }
.loc { display: flex; flex-direction: column; gap: 1.75rem; }
.loc__city { font-size: var(--step-3); border-bottom: 3px solid var(--ink); padding-bottom: .75rem; }
.loc__city small {
  display: block; margin-bottom: .5rem; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--clay); font-variation-settings: normal;
}
.venue h4 { font-size: 1.25rem; font-variation-settings: "wdth" 90; }
.venue address { margin-top: .15rem; color: var(--text-2); font-size: .94rem; }
.times { list-style: none; margin: .85rem 0 0; padding: 0; }
.times li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline;
  padding: .6rem 0; border-top: 1px solid var(--line);
}
.times li:last-child { border-bottom: 1px solid var(--line); }
.times b { font-weight: 700; font-variant-numeric: tabular-nums; }
.times span { color: var(--text-2); }
.loc .btn { align-self: flex-start; margin-top: auto; }
.calendar-slot {
  margin-top: 3.5rem; border: 2px dashed var(--line-strong); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; align-items: center;
}
.calendar-slot h3 { font-size: var(--step-2); }
.calendar-slot p { color: var(--text-2); margin-top: .35rem; }
@media (min-width: 760px) { .calendar-slot { grid-template-columns: 1fr auto; } }

/* ---------- Join / pricing ---------- */
.price__grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .price__grid { grid-template-columns: repeat(3, 1fr); } }
.price {
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.price--feature { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.price__tag { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.price--feature .price__tag { color: var(--gold); }
.price h3 { margin-top: .5rem; font-size: var(--step-2); }
.price__amt {
  margin-top: 1.25rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3);
  line-height: 1; font-variation-settings: "wdth" 80; letter-spacing: -0.02em;
}
.price__amt small { font-family: var(--font-body); font-size: .92rem; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.price--feature .price__amt small { color: var(--on-dark-2); }
.price__desc { margin-top: .9rem; margin-bottom: 1.75rem; color: var(--text-2); }
.price--feature .price__desc { color: var(--on-dark-2); }
.price .btn { margin-top: auto; }
.price .tbc { margin-top: .6rem; }

.scale {
  margin-top: 1.25rem; display: grid; gap: 1rem; align-items: center;
  border-top: 3px solid var(--ink); padding-top: 1.25rem;
}
.scale strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; font-variation-settings: "wdth" 85; }
.scale ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: var(--text-2); }
.scale li b { color: var(--ink); }
@media (min-width: 960px) { .scale { grid-template-columns: auto 1fr auto; gap: 2.5rem; } }

/* ---------- New studio (clay band) ---------- */
.on-clay { background: var(--clay); color: var(--sand); overflow: hidden; }
.on-clay .label, .on-clay .tbc { color: var(--sand); }  /* gold on clay is only 3.3:1 */
.studio__grid { display: grid; gap: 3rem; align-items: center; }
.studio h2 { max-width: 14ch; }
.studio__body { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.6; max-width: 50ch; color: color-mix(in srgb, var(--sand) 90%, var(--clay)); }
.progress { margin-top: 2.25rem; max-width: 30rem; }
.progress__bar { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 30%, var(--clay)); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: var(--pct, 40%); background: var(--gold); border-radius: inherit; }
.progress__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: .65rem; font-size: .92rem; }
.progress__meta b { font-weight: 700; }
.progress .tbc { display: inline-block; margin-top: .75rem; }
.studio .btn-row { margin-top: 2rem; }
.plan { color: var(--sand); width: 100%; max-width: 520px; justify-self: center; }
.plan text { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; fill: currentColor; }
.plan .big { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.01em; text-transform: none; }
@media (min-width: 900px) { .studio__grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }

/* ---------- History ---------- */
.history__grid { display: grid; gap: 3rem; align-items: start; }
.history .photo { --ratio: 4 / 5; max-width: 420px; }
.history figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--text-2); }
.history figure { margin: 0; }
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.timeline li { display: grid; gap: .25rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line-strong); }
.timeline li:last-child { border-bottom: 1px solid var(--line-strong); }
.timeline .when {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1;
  font-variation-settings: "wdth" 78; color: var(--clay);
}
.timeline h3 { font-size: 1.3rem; }
.timeline p { margin-top: .3rem; color: var(--text-2); max-width: 56ch; }
.history .text-link { margin-top: 2rem; }
@media (min-width: 600px) { .timeline li { grid-template-columns: 6.5rem 1fr; } }
@media (min-width: 860px) {
  .history__grid { grid-template-columns: .75fr 1.25fr; gap: 5rem; }
  .history figure { position: sticky; top: 7rem; }
}

/* ---------- Book us ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2rem; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .services { grid-template-columns: repeat(4, 1fr); } }
.services li { border-top: 3px solid var(--gold); padding-top: 1.1rem; }
.services h3 { font-size: var(--step-2); font-variation-settings: "wdth" 82; }
.services p { margin-top: .5rem; color: var(--on-dark-2); }
.book__cta { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.book__cta p { color: var(--on-dark-2); }

/* ---------- Donate band ---------- */
.donate { background: var(--gold); color: var(--ink); overflow: hidden; }
.donate::before {
  content: ""; position: absolute; width: 760px; aspect-ratio: 1; right: -260px; top: 50%; transform: translateY(-50%);
  background: repeating-radial-gradient(circle, transparent 0 44px, color-mix(in srgb, var(--ink) 14%, transparent) 45px 49px);
  -webkit-mask: radial-gradient(circle, #000 0 70%, transparent 71%); mask: radial-gradient(circle, #000 0 70%, transparent 71%);
  pointer-events: none;
}
.donate .wrap { position: relative; display: grid; gap: 2rem; }
.donate h2 { font-size: var(--step-4); line-height: .92; max-width: 12ch; font-variation-settings: "wdth" 78; letter-spacing: -0.02em; }
.donate p { font-size: var(--step-1); max-width: 46ch; margin-top: 1.25rem; }
.donate .btn--line:hover { background: var(--ink); color: var(--gold); }
@media (min-width: 860px) { .donate .wrap { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: var(--section-y) 2rem; }
.footer__grid { display: grid; gap: 3.5rem; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; } }
.site-footer h2 { font-size: var(--step-3); }
.site-footer .lede { margin-top: 1rem; color: var(--on-dark-2); }
.form { display: grid; gap: 1.1rem; margin-top: 2rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--on-dark-2); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--sand);
  background: color-mix(in srgb, var(--sand) 6%, var(--ink));
  border: 1px solid var(--line-dark); border-bottom: 2px solid color-mix(in srgb, var(--sand) 45%, transparent);
  border-radius: var(--radius) var(--radius) 0 0; padding: .8rem .95rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 2px 0 var(--gold); }
.form .btn { justify-self: start; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer__cols h3 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-variation-settings: normal;
}
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__cols a { text-decoration: none; color: var(--on-dark-2); display: inline-flex; align-items: center; gap: .6rem; }
.footer__cols a:hover { color: var(--sand); text-decoration: underline; text-decoration-color: var(--gold); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__brand { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.footer__brand .logo__mark { background: radial-gradient(circle, var(--gold) 0 24%, var(--ink) 25% 46%, var(--gold) 47% 68%, transparent 69%); }
.footer__brand p { margin-top: 1rem; color: var(--on-dark-2); font-size: .95rem; max-width: 40ch; }
.footer__base {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  font-size: .88rem; color: var(--on-dark-2);
}
.footer__base p + p { margin-top: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker__track { width: auto; }
  .ticker ul[aria-hidden="true"] { display: none; }
  .ticker ul { flex-wrap: wrap; white-space: normal; padding-inline: var(--gutter); row-gap: .5rem; }
}
