/* ============================================================
   Roots & Ripples — swim program site
   ============================================================ */

:root {
  --abyss:   #041e30;
  --deep:    #06334f;
  --ocean:   #0a5c82;
  --ripple:  #2fa8c9;
  --foam:    #7fd6dd;
  --sand:    #f6f2ea;
  --shell:   #fffdf9;
  --ink:     #0d2231;
  --ink-mid: #4a6273;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --r: 18px;
  --shadow: 0 18px 50px -22px rgba(4, 30, 48, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--shell);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1.1em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--abyss); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--ripple); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 0.85rem 1.7rem; border-radius: 100px; text-decoration: none;
  background: var(--ripple); color: #04222f; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  box-shadow: 0 10px 28px -12px rgba(47, 168, 201, 0.9);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--foam); }
.btn--ghost {
  background: transparent; color: currentColor; border-color: currentColor;
  box-shadow: none; opacity: 0.9;
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); opacity: 1; }
.btn--light { background: var(--shell); color: var(--abyss); box-shadow: var(--shadow); }
.btn--light:hover { background: #fff; }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

.rule {
  display: block; width: 46px; height: 2px; margin-bottom: 1.1rem;
  background: linear-gradient(90deg, var(--ripple), transparent);
}

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.75; margin-bottom: 1.4rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav__inner {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem 0;
}
.nav.is-stuck {
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 1px 0 rgba(13, 34, 49, 0.08);
}
.nav.is-stuck .nav__inner { padding: 0.7rem 0; }

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; min-width: 0; }
/* The mark is green + brown, so it needs a light disc behind it to stay
   legible on the dark blue hero as well as on the pale sticky nav. */
.brand__mark, .footer__mark {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #fbf8f1 62%, #f0eade 100%);
  box-shadow: 0 4px 16px -6px rgba(4, 30, 48, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.brand__mark {
  width: 44px; height: 44px; flex: none; padding: 3px;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.nav.is-stuck .brand__mark { width: 36px; height: 36px; }
.brand__text {
  font-family: var(--serif); font-size: 1.12rem; letter-spacing: -0.01em;
  line-height: 1.1; white-space: nowrap;
}

.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  text-decoration: none; font-size: 0.93rem; font-weight: 500; position: relative; padding: 0.2rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--ripple); transition: width 0.35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

/* light-on-dark while over the hero */
.nav:not(.is-stuck) { color: var(--shell); }
.nav:not(.is-stuck) .btn--sm { background: rgba(255,255,255,0.14); color: #fff; backdrop-filter: blur(8px); box-shadow: none; border-color: rgba(255,255,255,0.35); }
.nav:not(.is-stuck) .btn--sm:hover { background: rgba(255,255,255,0.26); }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 0;
  color: inherit; /* buttons don't inherit colour on their own */
}
.nav__toggle span { display: block; height: 2px; width: 22px; background: currentColor; margin-inline: auto; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; color: var(--shell); overflow: hidden;
  padding: 8rem 1.25rem 9rem;
  background: linear-gradient(168deg, var(--abyss) 0%, var(--deep) 42%, var(--ocean) 100%);
}

/* ---- photo backdrop ---- */
.hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%;
  /* softened so headline type stays the focus */
  filter: blur(5px) saturate(1.08);
  transform: scale(1.06);
}

/* ---- readability veil: the photo is bright, the type is white ---- */
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 78% 52% at 50% 46%, rgba(4, 30, 48, 0.5), transparent 72%),
    linear-gradient(180deg,
      rgba(4, 30, 48, 0.88) 0%,
      rgba(5, 40, 63, 0.66) 26%,
      rgba(6, 51, 79, 0.6) 52%,
      rgba(4, 30, 48, 0.84) 88%,
      rgba(4, 30, 48, 0.94) 100%);
}

.hero__water { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0.38; }
.caustic {
  position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen;
  will-change: transform;
}
.caustic--1 {
  width: 60vw; height: 60vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(127, 214, 221, 0.55), transparent 68%);
}
.caustic--2 {
  width: 52vw; height: 52vw; right: -10vw; top: 18vh;
  background: radial-gradient(circle, rgba(47, 168, 201, 0.55), transparent 68%);
}
.caustic--3 {
  width: 44vw; height: 44vw; left: 28vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(10, 92, 130, 0.75), transparent 70%);
}

.hero__content {
  position: relative; z-index: 4; max-width: 780px;
  text-shadow: 0 2px 22px rgba(4, 30, 48, 0.55);
}
.hero__title {
  font-size: clamp(3.2rem, 11vw, 7rem);
  margin-bottom: 1.1rem;
}
.hero__title em { font-style: italic; color: var(--foam); }
.hero__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.12rem, 2.6vw, 1.55rem); opacity: 0.92; margin-bottom: 0.5rem;
}
.hero__lede { font-size: 1.02rem; opacity: 0.75; margin-bottom: 2.4rem; }
.hero__actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 5; line-height: 0; overflow: hidden; }
/* svg is two periods wide; shifting it by half its own width == one period */
.hero__wave svg {
  /* overrides the global `svg { max-width: 100% }`, which would otherwise
     clamp this to one container width and break the loop */
  width: 200%; max-width: none;
  height: clamp(70px, 9vw, 130px); display: block;
  animation: waveSlide 16s linear infinite;
  will-change: transform;
}
.hero__wave path { fill: var(--shell); }
@keyframes waveSlide {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section--tint { background: var(--sand); }
.section--deep {
  background: linear-gradient(160deg, var(--deep), var(--abyss));
  color: var(--sand);
}
.section--deep .section__head p { color: rgba(246, 242, 234, 0.72); }

.section__head { max-width: 620px; margin-bottom: 3.2rem; }
.section__head h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 0.8rem; }
.section__head p { color: var(--ink-mid); margin: 0; font-size: 1.05rem; }

.prose p { font-size: 1.05rem; }
.note { font-size: 0.9rem; color: var(--ink-mid); margin-top: 2rem; }

/* ---------- mission ---------- */
.mission {
  display: grid; grid-template-columns: minmax(200px, 260px) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin-bottom: 4.5rem;
}
.mission__label h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.mission__body { font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.62; margin: 0; }
.mission__body strong { font-weight: 500; color: var(--ocean); }

.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.stage {
  padding: 1.9rem 1.6rem; border-radius: var(--r);
  background: var(--sand); border: 1px solid rgba(13, 34, 49, 0.07);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.stage:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stage__num {
  font-family: var(--serif); font-size: 0.85rem; color: var(--ripple);
  letter-spacing: 0.1em; display: block; margin-bottom: 0.9rem;
}
.stage h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.stage p { color: var(--ink-mid); font-size: 0.95rem; margin: 0; }

/* ---------- highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--shell); border-radius: var(--r); padding: 1.9rem 1.7rem;
  border: 1px solid rgba(13, 34, 49, 0.07);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card--feature {
  grid-column: span 2;
  background: linear-gradient(150deg, var(--ocean), var(--deep)); color: var(--sand);
  border-color: transparent;
}
.card--feature .tag { background: rgba(255,255,255,0.16); color: var(--foam); }
.card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.card p { margin: 0; color: var(--ink-mid); font-size: 0.97rem; }
.card--feature p { color: rgba(246, 242, 234, 0.82); }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.32rem 0.75rem; border-radius: 100px;
  background: rgba(47, 168, 201, 0.14); color: var(--ocean); margin-bottom: 1.1rem;
}

/* ---------- about split ---------- */
.wrap--split { display: grid; grid-template-columns: minmax(240px, 1fr) 1.5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split__sticky { position: sticky; top: 120px; }
.split__sticky h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.split__kicker { color: var(--ink-mid); font-size: 1rem; margin: 0; }
.pull {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.45;
  color: var(--ocean); border-left: 2px solid var(--ripple); padding-left: 1.4rem; margin-top: 2rem;
}

/* ---------- services ---------- */
.service { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.service__text p { color: rgba(246, 242, 234, 0.85); }
.service__text .btn { margin-top: 0.9rem; }
.service__list {
  list-style: none; margin: 0; padding: 1.9rem;
  border-radius: var(--r); background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.service__list li {
  display: flex; gap: 0.75rem; align-items: baseline;
  padding: 0.75rem 0; font-size: 0.97rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.service__list li:last-child { border-bottom: 0; }
.service__list span { color: var(--foam); font-size: 0.7rem; }

/* ---------- team ---------- */
.team { display: grid; gap: 1.5rem; }
.coach {
  display: grid; grid-template-columns: 150px 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r);
  background: var(--sand); border: 1px solid rgba(13, 34, 49, 0.07);
  align-items: start;
}
.coach__portrait {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--ripple), var(--ocean));
  color: rgba(255,255,255,0.85); font-family: var(--serif); font-size: 3rem;
  box-shadow: 0 0 0 8px rgba(47, 168, 201, 0.1);
}
.coach h3 { font-size: 1.6rem; }
.coach__role {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ripple); margin: 0.35rem 0 1.1rem;
}
.coach p { color: var(--ink-mid); font-size: 0.99rem; }
.placeholder { font-style: italic; opacity: 0.7; }

/* ---------- collapsible bio ---------- */
/* grid-rows 0fr -> 1fr animates to the content's natural height */
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.more__inner { overflow: hidden; }
.more__inner > p:first-child { padding-top: 0.2rem; }
.more.is-open { grid-template-rows: 1fr; }

.readmore {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.5rem; padding: 0.5rem 0; border: 0; background: none;
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ocean);
  cursor: pointer;
}
.readmore:hover { color: var(--ripple); }
.readmore__chev { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.readmore[aria-expanded="true"] .readmore__chev { transform: rotate(180deg); }

/* ---------- testimonials: one moving strip ---------- */
.marquee {
  overflow: hidden;
  /* fade the strip out at both ends so cards don't get cut off hard */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
/* margin rather than `gap`, so half the track is exactly one full set
   and translating by -50% lands perfectly on the repeat */
.marquee__track .quote { margin-right: 1.25rem; }
/* travels left to right; the duplicated half makes the wrap invisible */
@keyframes marquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.quote {
  flex: 0 0 clamp(260px, 30vw, 360px);
  margin: 0; padding: 2.2rem 1.8rem 1.8rem; border-radius: var(--r);
  background: var(--shell); border: 1px solid rgba(13, 34, 49, 0.07); position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 0.1rem; left: 1.4rem;
  font-family: var(--serif); font-size: 4rem; color: rgba(47, 168, 201, 0.28); line-height: 1;
}
.quote blockquote { margin: 0 0 1.1rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; }
.quote figcaption { font-size: 0.87rem; color: var(--ink-mid); }
.quote figcaption span { opacity: 0.7; }

/* ---------- CTA ---------- */
.section--cta {
  background: linear-gradient(150deg, var(--ocean), var(--abyss));
  color: var(--shell); overflow: hidden; text-align: center;
}
.hero__water--soft { opacity: 0.4; }
.cta { position: relative; z-index: 2; max-width: 680px; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.cta > p { color: rgba(246, 242, 234, 0.8); margin-bottom: 2.2rem; }
.cta__links { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.btn--lg { padding: 1.05rem 2.6rem; font-size: 1.02rem; }
.cta__alt { margin: 1.5rem 0 0; font-size: 0.95rem; color: rgba(246, 242, 234, 0.78); }
.cta__alt a { color: var(--foam); text-decoration: none; border-bottom: 1px solid rgba(127, 214, 221, 0.4); }
.cta__alt a:hover { border-bottom-color: var(--foam); }
/* Instagram chip — icon, handle, and an arrow marking it as an outbound link */
.ig {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.1rem; padding: 0.6rem 1.1rem 0.6rem 0.75rem;
  border-radius: 100px; text-decoration: none;
  color: var(--shell);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ig:hover { background: rgba(255, 255, 255, 0.17); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }

.ig__glyph {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%);
}
.ig__glyph svg { width: 18px; height: 18px; }

.ig__handle { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; }
.ig__arrow { width: 14px; height: 14px; flex: none; opacity: 0.75; transition: transform 0.3s var(--ease); }
.ig:hover .ig__arrow { transform: translate(2px, -2px); opacity: 1; }

/* ============================================================
   INTEREST MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0; background: rgba(4, 30, 48, 0.62);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s var(--ease);
}
.modal__panel {
  position: relative; width: min(100%, 520px); max-height: min(88svh, 760px); overflow-y: auto;
  background: var(--shell); border-radius: 22px; padding: 2.4rem 2rem 2rem;
  box-shadow: 0 40px 90px -30px rgba(4, 30, 48, 0.6);
  animation: popIn 0.42s var(--ease); -webkit-overflow-scrolling: touch;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

.modal__grip { display: none; }

.modal__x {
  position: absolute; top: 0.7rem; right: 0.9rem; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-mid);
  font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background 0.25s;
}
.modal__x:hover { background: rgba(13, 34, 49, 0.07); }

.modal__logo { width: 58px; height: 58px; margin-bottom: 0.9rem; }
.modal__panel h2 { font-size: 1.75rem; margin-bottom: 0.4rem; }
.modal__lede { color: var(--ink-mid); font-size: 0.95rem; margin-bottom: 1.6rem; }

.field { margin-bottom: 1.05rem; }
.field label {
  display: block; font-size: 0.83rem; font-weight: 600;
  letter-spacing: 0.03em; margin-bottom: 0.4rem;
}
.field .opt { font-weight: 400; color: var(--ink-mid); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border-radius: 12px;
  border: 1px solid rgba(13, 34, 49, 0.18); background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a6273' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px;
  padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ripple);
  box-shadow: 0 0 0 3px rgba(47, 168, 201, 0.18);
}
.field.is-bad input, .field.is-bad select { border-color: #c8553d; }

.btn--full { width: 100%; margin-top: 0.5rem; }
.form__actions { position: sticky; bottom: 0; background: var(--shell); padding-top: 0.4rem; }
/* soft fade so fields scrolling under the bar don't cut off hard */
.form__actions::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px;
  background: linear-gradient(to top, var(--shell), transparent); pointer-events: none;
}
.form__error { color: #c8553d; font-size: 0.88rem; margin: 0 0 0.8rem; }
.form__note { font-size: 0.79rem; color: var(--ink-mid); text-align: center; margin: 0.9rem 0 0; }

.modal__done { text-align: center; padding: 1.5rem 0 0.5rem; }
.modal__done h2 { margin-bottom: 0.5rem; }
.modal__done p { color: var(--ink-mid); margin-bottom: 1.6rem; }
.tick { width: 76px; margin: 0 auto 1.2rem; }
.tick svg { width: 100%; fill: none; stroke: var(--ripple); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.6s var(--ease) forwards; }
.tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.35s var(--ease) 0.45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

body.is-locked { overflow: hidden; }

/* ---------- footer ---------- */
.footer { background: var(--abyss); color: rgba(246, 242, 234, 0.7); padding: 3.5rem 0 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: start; }
.footer__id { display: flex; align-items: center; gap: 1rem; }
.footer__mark { width: 62px; height: 62px; flex: none; padding: 4px; }
.footer__brand { font-family: var(--serif); font-size: 1.3rem; color: var(--sand); margin: 0 0 0.3rem; }
.footer__tag { font-size: 0.9rem; margin: 0; font-style: italic; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a { text-decoration: none; font-size: 0.92rem; transition: color 0.25s; }
.footer__links a:hover { color: var(--foam); }
.footer__legal {
  width: min(100% - 2.5rem, var(--wrap)); margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 242, 234, 0.12); font-size: 0.82rem; opacity: 0.6;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; }
  .wrap--split { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
  .service { grid-template-columns: 1fr; }
  .card--feature { grid-column: span 1; }
  .coach { grid-template-columns: 1fr; }
  .coach__portrait { width: 110px; }
}

/* ---------- phone: the primary experience ---------- */
@media (max-width: 560px) {
  :root { --r: 15px; }

  body { line-height: 1.6; }
  .wrap { width: calc(100% - 2.2rem); }

  /* the big blurred blobs are expensive on phone GPUs — shrink them */
  .caustic { filter: blur(45px); }
  .caustic--1 { width: 90vw; height: 90vw; }
  .caustic--2 { width: 80vw; height: 80vw; }
  .caustic--3 { width: 75vw; height: 75vw; }

  .hero { min-height: 88svh; padding: 7rem 1.1rem 7rem; }

  /* blur is the most expensive thing here — keep it light on phones */
  .hero__photo img {
    filter: blur(3px) saturate(1.05);
    object-position: 50% 30%;
  }
  /* the veil has to work harder on a small, bright screen */
  .hero__veil {
    background:
      radial-gradient(ellipse 96% 46% at 50% 48%, rgba(4, 30, 48, 0.56), transparent 74%),
      linear-gradient(180deg,
        rgba(4, 30, 48, 0.86) 0%,
        rgba(5, 40, 63, 0.62) 24%,
        rgba(6, 51, 79, 0.56) 50%,
        rgba(4, 30, 48, 0.84) 86%,
        rgba(4, 30, 48, 0.93) 100%);
  }
  /* sized off the viewport so "Roots & Ripples" stays on one line */
  .hero__title { font-size: 11.4vw; white-space: nowrap; }
  .hero__tagline { font-size: 1.02rem; line-height: 1.4; }
  .hero__lede { font-size: 0.95rem; margin-bottom: 2rem; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.13em; margin-bottom: 1.1rem; }

  /* full-width, thumb-friendly buttons */
  .hero__actions, .cta__links { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .hero__actions .btn, .cta__links .btn { width: 100%; padding: 0.95rem 1.5rem; }
  .btn--lg { padding: 1rem 1.5rem; font-size: 1rem; }

  .section { padding: 3.6rem 0; }
  .section__head { margin-bottom: 2.2rem; }
  .section__head h2 { font-size: 1.7rem; }
  .section__head p, .split__kicker { font-size: 0.97rem; }
  .mission { margin-bottom: 2.6rem; gap: 1.1rem; }
  .mission__body { font-size: 1.05rem; }
  .prose p { font-size: 1rem; }

  .stages, .highlights, .quotes, .team { gap: 0.9rem; }
  .stage, .card, .quote { padding: 1.5rem 1.3rem; }
  .coach { padding: 1.5rem 1.3rem; gap: 1.1rem; }
  .coach__portrait { width: 84px; font-size: 2.2rem; box-shadow: 0 0 0 5px rgba(47, 168, 201, 0.1); }
  .coach h3 { font-size: 1.35rem; }
  .coach p { font-size: 0.95rem; }
  .service__list { padding: 1.4rem 1.3rem; }
  .pull { font-size: 1.15rem; padding-left: 1.1rem; margin-top: 1.5rem; }

  .cta h2 { font-size: 1.95rem; }
  .cta__alt { font-size: 0.9rem; line-height: 2; }
  .cta__alt .dot { display: none; }
  .cta__alt a { display: inline-block; }

  /* modal becomes a bottom sheet */
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel {
    width: 100%; max-height: 88svh; border-radius: 22px 22px 0 0;
    padding: 1.5rem 1.15rem 0;
    animation: sheetIn 0.4s var(--ease);
    overscroll-behavior: contain;
  }
  @keyframes sheetIn { from { transform: translateY(100%); } }

  .modal__grip {
    display: block; position: sticky; top: -0.2rem; z-index: 3;
    width: 40px; height: 4px; margin: -0.5rem auto 0.9rem;
    border-radius: 100px; background: rgba(13, 34, 49, 0.22);
  }
  .modal__x { top: 0.25rem; right: 0.4rem; }

  .modal__panel h2 { font-size: 1.35rem; }
  .modal__lede { font-size: 0.9rem; margin-bottom: 1.15rem; }
  .modal__logo { width: 38px; height: 38px; margin-bottom: 0.6rem; }
  .field { margin-bottom: 0.8rem; }
  .field textarea { min-height: 76px; }

  .form__actions {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    margin-inline: -1.15rem; padding-inline: 1.15rem;
  }
  .form__note { margin-top: 0.6rem; }

  .modal__done { padding-top: 0.5rem; }
  /* 16px keeps iOS Safari from zooming on focus */
  .field input, .field select, .field textarea { font-size: 16px; padding: 0.85rem 0.9rem; }

  .brand__text { font-size: 1rem; }
  .brand__mark, .nav.is-stuck .brand__mark { width: 36px; height: 36px; }
  .footer { padding: 2.6rem 0 1.5rem; }
  .footer__links { gap: 1rem 1.2rem; }
}

@media (max-width: 380px) {
  .brand__text { font-size: 0.92rem; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__inner > .btn--sm { display: none; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0 1.25rem;
    background: rgba(255, 253, 249, 0.97);
    backdrop-filter: blur(14px);
    max-height: 0; overflow: hidden; color: var(--ink);
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
    box-shadow: 0 20px 40px -24px rgba(4,30,48,0.5);
  }
  .nav.is-open .nav__links { max-height: 60vh; padding: 0.75rem 1.25rem 1.5rem; }
  .nav__links a { padding: 0.85rem 0; border-bottom: 1px solid rgba(13,34,49,0.07); }
  .nav.is-open:not(.is-stuck) { background: rgba(255, 253, 249, 0.97); color: var(--ink); }
  .hero { min-height: 92svh; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
