/* ============================================================
   Zihuatanejo Run Club — Coastal Mexican run-club identity
   ZIHRC black + sunset coral over warm sand. Light & dark.
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — warm sand */
  --color-bg: #faf5ec;
  --color-surface: #fffdf8;
  --color-surface-2: #fff8ee;
  --color-surface-offset: #f3ead9;
  --color-divider: #e9dcc6;
  --color-border: #e2d2b8;

  /* Text — near-black */
  --color-text: #141618;
  --color-text-muted: #5f6163;
  --color-text-faint: #a0a09e;
  --color-text-inverse: #fffdf8;

  /* Primary — ZIHRC black */
  --color-primary: #000000;
  --color-primary-hover: #2e2e2e;
  --color-primary-active: #1a1a1a;
  --color-primary-highlight: #e6e0d3;

  /* Accent — sunset coral */
  --color-accent: #ef6a3c;
  --color-accent-hover: #d8542a;
  --color-accent-active: #b8421b;
  --color-accent-highlight: #fbe3d6;

  /* Supporting — neutral + sun gold */
  --color-sky: #3d3d3d;
  --color-gold: #e3a93a;

  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px oklch(0.25 0.02 60 / 0.07);
  --shadow-md: 0 6px 20px oklch(0.25 0.03 60 / 0.10);
  --shadow-lg: 0 18px 50px oklch(0.25 0.04 50 / 0.16);

  --font-display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --font-body: 'General Sans', 'Inter', system-ui, sans-serif;

  /* Image filter for warmth/unity */
  --img-tint: saturate(1.05) contrast(1.02);
}

[data-theme='dark'] {
  --color-bg: #0d0d0e;
  --color-surface: #161617;
  --color-surface-2: #1c1c1e;
  --color-surface-offset: #1c1c1e;
  --color-divider: #262628;
  --color-border: #333336;

  --color-text: #f1efec;
  --color-text-muted: #b1afac;
  --color-text-faint: #6f6d6b;
  --color-text-inverse: #161617;

  --color-primary: #ffffff;
  --color-primary-hover: #e0e0e0;
  --color-primary-active: #eaeaea;
  --color-primary-highlight: #2a2a2c;

  --color-accent: #ff8a5c;
  --color-accent-hover: #ffa07a;
  --color-accent-active: #ffb59a;
  --color-accent-highlight: #3a2418;

  --color-sky: #c9c7c4;
  --color-gold: #f0c35a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 50px oklch(0 0 0 / 0.5);

  --img-tint: saturate(0.92) contrast(1.04) brightness(0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d0d0e;
    --color-surface: #161617;
    --color-surface-2: #1c1c1e;
    --color-surface-offset: #1c1c1e;
    --color-divider: #262628;
    --color-border: #333336;
    --color-text: #f1efec;
    --color-text-muted: #b1afac;
    --color-text-faint: #6f6d6b;
    --color-text-inverse: #161617;
    --color-primary: #ffffff;
    --color-primary-hover: #e0e0e0;
    --color-primary-active: #eaeaea;
    --color-primary-highlight: #2a2a2c;
    --color-accent: #ff8a5c;
    --color-accent-hover: #ffa07a;
    --color-accent-active: #ffb59a;
    --color-accent-highlight: #3a2418;
    --color-sky: #c9c7c4;
    --color-gold: #f0c35a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 18px 50px oklch(0 0 0 / 0.5);
  }
}

/* ---------------- base ---------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16, 4rem);
}

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --text-hero: clamp(2.8rem, 0.8rem + 6.5vw, 6.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --space-32: 8rem;

  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1240px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; }
p, li { text-wrap: pretty; max-width: 72ch; }

::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); color: var(--color-text); }

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

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

button { cursor: pointer; background: none; border: none; }
a, button, [role='button'] { transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------- layout helpers ---------------- */
.container { width: 100%; max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(var(--space-4), 5vw, var(--space-10)); }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before { content: ''; width: 1.5rem; height: 2px; background: var(--color-accent); display: inline-block; }

.section-title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; font-style: italic; letter-spacing: -0.01em; }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.5; }

/* ---------------- header ---------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header--scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: clamp(3.75rem, 8vw, 4.75rem); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); }
.brand__logo { width: clamp(7rem, 15vw, 8.75rem); height: auto; aspect-ratio: 1115 / 374.4; color: currentColor; overflow: visible; }



.nav { display: none; gap: var(--space-8); align-items: center; }
.nav a { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); text-decoration: none; }
.nav a:hover { color: var(--color-text); }
.header__actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
  width: 2.5rem; height: 2.5rem;
  display: inline-grid; place-items: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.icon-btn:hover { color: var(--color-text); background: var(--color-surface-offset); }
.lang-toggle { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; padding: 0 var(--space-1); }

@media (min-width: 760px) {
  .nav { display: flex; }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-full);
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.btn--ghost:hover { border-color: var(--color-text-muted); transform: translateY(-2px); }
.btn--on-photo { background: rgba(255,253,248,0.92); color: #141618; backdrop-filter: blur(4px); }
.btn--on-photo:hover { background: #fff; transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.6rem; font-size: var(--text-base); max-width: 100%; }
@media (max-width: 359px) {
  /* the Spanish WhatsApp label is long — keep it inside the smallest screens */
  .btn--lg { padding: 0.9rem 1rem; font-size: 0.95rem; }
}

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: clamp(560px, 92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tint); }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, color-mix(in oklab, var(--color-bg) 92%, transparent) 2%, transparent 55%),
    linear-gradient(to right, color-mix(in oklab, #101214 60%, transparent), transparent 60%);
}
.hero__accent { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 80% at 80% 10%, color-mix(in oklab, var(--color-accent) 22%, transparent), transparent 55%); pointer-events: none; }
.hero__inner { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: color-mix(in oklab, var(--color-accent) 88%, transparent);
  padding: 0.5rem 0.9rem; border-radius: var(--radius-full); margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.hero__badge .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.5; transform: scale(0.8);} }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: var(--text-hero); line-height: 0.98; letter-spacing: -0.02em;
  color: #fff; max-width: 14ch; text-shadow: 0 2px 30px oklch(0.2 0.03 250 / 0.4);
}
.hero h1 em { font-style: italic; color: var(--color-accent); }
.hero__tagline { margin-top: var(--space-5); font-size: var(--text-lg); color: #fdf6ec; max-width: 46ch; line-height: 1.4; text-shadow: 0 1px 12px oklch(0.1 0.03 250 / 0.5); }
.hero__cta { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------------- info strip ---------------- */
.strip { background: var(--color-primary-active); color: var(--color-text-inverse); }
.strip__inner { display: grid; grid-template-columns: 1fr; gap: var(--space-4); padding-block: var(--space-6); }
.strip__item { display: flex; align-items: center; gap: var(--space-3); justify-content: center; text-align: center; }
.strip__item svg { width: 1.4rem; height: 1.4rem; color: var(--color-accent); flex-shrink: 0; }
.strip__item strong { display: block; font-size: var(--text-base); font-weight: 700; }
.strip__item span { font-size: var(--text-xs); opacity: 0.8; letter-spacing: 0.04em; }
@media (min-width: 760px) {
  .strip__inner { grid-template-columns: repeat(4, 1fr); }
  .strip__item { justify-content: flex-start; text-align: left; }
}

/* ---------------- about ---------------- */
.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-8), 6vw, var(--space-16)); align-items: center; }
@media (min-width: 880px) {
  .about__grid { grid-template-columns: 1fr 1fr; column-gap: clamp(var(--space-6), 3vw, var(--space-10)); }
}
.about__media { position: relative; }
/* No fixed aspect-ratio / cover here: the photo shows in full at its own
   shape rather than being cropped to 4:3. */
.about__media img { width: 100%; height: auto; border-radius: var(--radius-lg); filter: var(--img-tint); box-shadow: var(--shadow-lg); }
/* 30% keeps the accent square at the same proportion of the photo's height
   as before (~53%), now that the photo is 16:9 rather than 4:3. */
.about__media::after { content: ''; position: absolute; inset: auto -0.75rem -0.75rem auto; width: 30%; aspect-ratio: 1; border: 2px solid var(--color-accent); border-radius: var(--radius-lg); z-index: -1; }
.about__col { display: flex; flex-direction: column; }
.about__pillars { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pillar { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; padding: 0.5rem 1rem; border-radius: var(--radius-full); background: var(--color-surface-offset); color: var(--color-primary); }
.pillar svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
@media (max-width: 460px) {
  /* keep Friends / Community / Health on a single line */
  .about__pillars { gap: 0.375rem; flex-wrap: nowrap; }
  .pillar { padding: 0.45rem 0.6rem; font-size: 0.82rem; gap: 0.3rem; white-space: nowrap; }
}
@media (max-width: 359px) {
  /* smallest phones: shrink further rather than overflow the page */
  .about__pillars { gap: 0.25rem; }
  .pillar { padding: 0.4rem 0.45rem; font-size: 0.72rem; gap: 0.25rem; }
  .pillar svg { width: 1em; height: 1em; }
}

/* ---------------- run with us ---------------- */
.runwith { background: var(--color-surface-offset); }
.runwith__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-10); }
@media (min-width: 720px) { .runwith__grid { grid-template-columns: repeat(3, 1fr); } }
.runcard { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.runcard__icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: var(--radius-md); background: color-mix(in oklab, var(--color-accent) 14%, transparent); color: var(--color-accent); margin-bottom: var(--space-2); }
.runcard__icon svg { width: 1.6rem; height: 1.6rem; }
.runcard h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; font-style: italic; }
.runcard p { font-size: var(--text-sm); color: var(--color-text-muted); }
.runcard a { margin-top: auto; font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-2); }
.runcard a:hover { color: var(--color-accent); gap: var(--space-3); }

/* ---------------- feature story ---------------- */
.feature { background: var(--color-bg); padding-block: clamp(var(--space-8), 3.5vw, var(--space-12)); }
.feature__card { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
@media (min-width: 820px) { .feature__card { grid-template-columns: 1.1fr 1fr; } }
.feature__media { position: relative; min-height: 260px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tint); position: absolute; inset: 0; }
.feature__body { padding: clamp(var(--space-8), 4vw, var(--space-12)); display: flex; flex-direction: column; gap: var(--space-4); justify-content: center; }
.feature__body h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; font-style: italic; }
.feature__body p { color: var(--color-text-muted); }

/* ---------------- connect cards ---------------- */
.connect__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-10); }
@media (min-width: 620px) { .connect__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 940px) { .connect__grid { grid-template-columns: repeat(3, 1fr); } }
.connect__grid .connect-card:nth-child(1) { grid-column: span 2; }
@media (min-width: 620px) { .connect__grid .connect-card:nth-child(1) { grid-column: span 1; } }
/* With 6 cards the 2-column mobile grid would leave the last one orphaned,
   so let it span the full width like the first. */
@media (max-width: 619px) { .connect__grid .connect-card:last-child { grid-column: span 2; } }
.connect-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-border);
  text-decoration: none; color: var(--color-text); overflow: hidden;
  min-height: 9.5rem; justify-content: flex-end;
}
.connect-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.connect-card__icon { position: absolute; top: var(--space-5); left: var(--space-5); width: 1.8rem; height: 1.8rem; color: var(--color-primary); }
.connect-card:hover .connect-card__icon { color: var(--color-accent); }
.connect-card h3 { font-size: var(--text-base); font-weight: 700; }
.connect-card span { font-size: var(--text-xs); color: var(--color-text-muted); }
.connect-card__arrow { position: absolute; top: var(--space-5); right: var(--space-5); width: 1.1rem; height: 1.1rem; color: var(--color-text-faint); }
.connect-card:hover .connect-card__arrow { color: var(--color-accent); transform: translate(2px,-2px); }

/* ---------------- FAQ ---------------- */
.faq { background: var(--color-surface-offset); }
.faq__list { margin-top: var(--space-10); display: flex; flex-direction: column; gap: var(--space-3); max-width: 100%; }
details.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
details.faq-item summary { list-style: none; cursor: pointer; padding: var(--space-5) var(--space-6); font-weight: 600; font-size: var(--text-base); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .chev { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: var(--color-accent); transition: transform var(--transition); }
details.faq-item[open] summary .chev { transform: rotate(45deg); }
details.faq-item .faq-item__body { padding: 0 var(--space-6) var(--space-6); color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------------- CTA band ---------------- */
.cta-band { position: relative; overflow: hidden; color: #fdf6ec; text-align: center; isolation: isolate; }
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tint); }
/* Scrim lightened 72/88% → 55/74% so the real beach photo behind it is
   actually visible. Measured white-text contrast: 5.23:1 (WCAG AA needs 4.5). */
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, color-mix(in oklab, #101214 55%, transparent), color-mix(in oklab, #101214 74%, transparent)); }
.cta-band__inner { position: relative; z-index: 3; padding-block: clamp(var(--space-16), 8vw, var(--space-24)); max-width: var(--content-narrow); margin-inline: auto; }
.cta-band h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; font-style: italic; color: #fff; }
.cta-band p { margin-top: var(--space-4); color: #fde9d8; font-size: var(--text-lg); }
.cta-band .hero__cta { justify-content: center; margin-top: var(--space-8); }

/* ---------------- footer ---------------- */
.footer { background: var(--color-primary-active); color: var(--color-text-inverse); }
.footer__inner { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); display: grid;
  grid-template-columns: 1fr 1fr; column-gap: var(--space-6); row-gap: var(--space-10); }
/* brand block spans the full width; the two link lists sit side by side */
.footer__inner > :first-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; column-gap: var(--space-10); }
  .footer__inner > :first-child { grid-column: auto; }
}
.footer .brand { color: var(--color-text-inverse); }
.footer .brand__logo { width: clamp(9rem, 22vw, 10.5rem); margin-block: 0.35rem 0.15rem; }
.footer .brand__logo { color: var(--color-text-inverse); }

.footer__about { margin-top: var(--space-4); font-size: var(--text-sm); color: color-mix(in oklab, var(--color-text-inverse) 72%, transparent); max-width: 38ch; }
.footer h4 { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, var(--color-text-inverse) 60%, transparent); margin-bottom: var(--space-4); }
.footer ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer ul a { font-size: var(--text-sm); color: color-mix(in oklab, var(--color-text-inverse) 82%, transparent); text-decoration: none; }
.footer ul a:hover { color: var(--color-accent); }
.footer__bottom { border-top: 1px solid color-mix(in oklab, var(--color-text-inverse) 16%, transparent); padding-block: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; font-size: var(--text-xs); color: color-mix(in oklab, var(--color-text-inverse) 60%, transparent); }
.footer__socials { display: flex; gap: var(--space-2); }
.footer__socials a { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--color-text-inverse) 20%, transparent); color: color-mix(in oklab, var(--color-text-inverse) 85%, transparent); }
.footer__socials a:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.footer__socials svg { width: 1.1rem; height: 1.1rem; }

/* ---------------- mission band ---------------- */
.mission { background: var(--color-primary); color: var(--color-text-inverse); padding-block: var(--space-16); text-align: center; }
/* Wider measure so the mission statement sits on ~3 lines instead of six,
   and the teal band reads as an even, balanced block. */
.mission__inner { max-width: var(--content-wide); }
.mission .eyebrow { color: var(--color-accent); }
.mission__text { font-family: var(--font-display); font-size: clamp(1.3rem, 0.25rem + 4.3vw, 4.1rem); font-weight: 700; font-style: italic; line-height: 1.28; margin-top: var(--space-4); text-wrap: balance; }

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RELAUNCH ADDITIONS — sticky mobile CTA, focus rings, and the
   three utility pages (404 / thank-you / privacy).
   Nothing here changes the existing homepage layout.
   ============================================================ */

/* --- accessibility: visible focus ring for keyboard users --- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--color-accent); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space-4); }

/* --- ITEM 16: sticky mobile CTA (mobile only) --- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in oklab, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta[hidden] { display: none; }
.sticky-cta__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--color-accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: var(--text-sm);
  padding: 0.9rem 1rem; border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}
.sticky-cta__btn svg { width: 1.2rem; height: 1.2rem; }
.sticky-cta__alt {
  flex: none; width: 3.1rem; display: grid; place-items: center;
  border-radius: var(--radius-full); border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-primary);
}
.sticky-cta__alt svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 860px) { .sticky-cta { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
/* keep the footer clear of the bar on mobile */
@media (max-width: 859px) { .footer__bottom { padding-bottom: calc(var(--space-6) + 4.5rem); } }

/* --- footer bottom links need the inverse palette, not default link blue --- */
.footer__bottom a { color: color-mix(in oklab, var(--color-text-inverse) 82%, transparent); text-decoration: none; }
.footer__bottom a:hover { color: var(--color-accent); text-decoration: underline; }

/* --- ITEM 7: breadcrumbs (utility pages only) --- */
.breadcrumbs { padding-block: var(--space-5); border-bottom: 1px solid var(--color-divider); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); list-style: none; font-size: var(--text-xs); color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-primary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent); text-decoration: underline; }
.breadcrumbs li + li::before { content: '/'; margin-right: var(--space-2); color: var(--color-text-faint); }
.breadcrumbs [aria-current='page'] { color: var(--color-text); font-weight: 600; }

/* --- utility pages: 404 / thank-you / privacy --- */
.page-hero { padding-block: clamp(var(--space-12), 8vw, var(--space-20)); background: var(--color-surface-2); border-bottom: 1px solid var(--color-divider); }
.page-hero h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; font-style: italic; line-height: 1.1; letter-spacing: -0.015em; }
.page-hero .lead { margin-top: var(--space-5); max-width: 58ch; }
.page-hero__actions { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); }

.bignum { font-family: var(--font-display); font-size: clamp(5rem, 20vw, 11rem); font-weight: 800; font-style: italic; line-height: 0.85; color: var(--color-accent); letter-spacing: -0.04em; }
.success-mark { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: #fff; margin-bottom: var(--space-6); }
.success-mark svg { width: 2.2rem; height: 2.2rem; }

.next-steps { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-10); }
@media (min-width: 760px) { .next-steps { grid-template-columns: repeat(3, 1fr); } }
.next-step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.next-step__n { font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; font-weight: 800; color: var(--color-accent); }
.next-step h3 { margin-top: var(--space-2); font-size: var(--text-base); font-weight: 700; }
.next-step p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.next-step a { margin-top: var(--space-3); display: inline-block; font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); text-decoration: none; }
.next-step a:hover { color: var(--color-accent); }

.prose { max-width: 72ch; padding-block: clamp(var(--space-10), 6vw, var(--space-16)); }
.prose h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; font-style: italic; margin-top: var(--space-10); margin-bottom: var(--space-4); }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.75; }
.prose p + p { margin-top: var(--space-4); }
.prose ul { margin-top: var(--space-4); padding-left: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.prose a { color: var(--color-primary); }
.prose a:hover { color: var(--color-accent); }
.prose__meta { font-size: var(--text-xs); color: var(--color-text-faint); padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-divider); margin-bottom: var(--space-8); }
.prose__note { margin-top: var(--space-10); padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: var(--color-accent-highlight); border: 1px dashed color-mix(in oklab, var(--color-accent) 45%, transparent); font-size: var(--text-sm); color: var(--color-text); }


/* ---------------- ambient motion ----------------
   Card reveals only. No animation touches the photos. */


/* Photo animations removed — they misbehaved on mobile.
   The two images are now completely static. */

/* Cards arrive one after another instead of all at once */
.run__grid .reveal:nth-child(2), .connect__grid .reveal:nth-child(2) { transition-delay: 90ms; }
.run__grid .reveal:nth-child(3), .connect__grid .reveal:nth-child(3) { transition-delay: 180ms; }
.run__grid .reveal:nth-child(4), .connect__grid .reveal:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
    .run__grid .reveal, .connect__grid .reveal { transition-delay: 0ms !important; }
}
