/* BLAST Swim Team — elpasoblast.com
   Flat poster style: brand red, navy, white. One display face, one text face. */

:root {
  --red: #ED002E;
  --red-deep: #A30020;
  --navy: #0D1836;
  --white: #FFFFFF;
  --mist: #EDF1F5;
  --blush: #FFD3DB;

  --m: clamp(16px, 3.2vw, 44px);          /* the one pair of page margins */
  --r: clamp(18px, 2.2vw, 32px);          /* the one corner radius */
  --hdr: 76px;
  --gap-section: clamp(72px, 9vw, 144px);

  --display: "Big Shoulders", "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-title: clamp(1.75rem, 1.1rem + 2.4vw, 3rem);
  --step-head: clamp(2.6rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(4.2rem, 10.9vw, 12.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, table, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: var(--m); top: 12px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
.display, .head, .title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.88;
  text-wrap: balance;
}
.display { font-size: var(--step-display); }
.head { font-size: var(--step-head); }
.title { font-size: var(--step-title); line-height: 0.95; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); }
strong, b { font-weight: 600; }

/* ---------- fields (each chapter is one flat colour) ---------- */
.f-red   { background: var(--red);  color: var(--white); }
.f-navy  { background: var(--navy); color: var(--white); }
.f-white { background: var(--white); color: var(--navy); }
.f-mist  { background: var(--mist); color: var(--navy); }
.f-blush { background: var(--blush); color: var(--navy); }
.f-deep  { background: var(--red-deep); color: var(--white); }

.section { padding: var(--gap-section) var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border-radius: 999px;
  background: var(--btn-bg, var(--navy)); color: var(--btn-fg, var(--white));
  font-weight: 600; font-size: var(--step-body); text-decoration: none; white-space: nowrap;
  transition: transform 180ms var(--ease-out), background-color 180ms, color 180ms;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(0.96); transition-duration: 80ms; }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn--red { --btn-bg: var(--red); --btn-fg: var(--white); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--sm { min-height: 44px; padding: 0 22px; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 220ms var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-underline-offset 180ms var(--ease-out);
}
.link:hover { text-underline-offset: 9px; }

/* ---------- header: a floating bar that takes the colours of the chapter under it ---------- */
.hdr {
  position: fixed; inset: 12px var(--m) auto var(--m); z-index: 100; height: 60px;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  padding: 0 8px 0 clamp(18px, 2vw, 28px); border-radius: 999px;
  background: var(--hdr-bg, var(--red)); color: var(--hdr-ink, var(--white));
  transition: background-color 300ms, color 300ms, transform 420ms var(--ease-out);
}
.hdr.is-away { transform: translateY(calc(-100% - 16px)); }
.hdr__logo { display: block; height: 36px; aspect-ratio: 600 / 215; position: relative; margin-right: auto; flex: none; }
.hdr__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 300ms; }
.hdr[data-logo="white"] .logo--red, .hdr[data-logo="red"] .logo--white { opacity: 0; }
.hdr__nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.hdr__nav a { font-weight: 600; text-decoration: none; padding: 10px 0; position: relative; }
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out);
}
.hdr__nav a:hover::after, .hdr__nav a[aria-current]::after { transform: scaleX(1); }
.hdr__cta { --btn-bg: var(--hdr-ink, var(--white)); --btn-fg: var(--hdr-bg, var(--red)); }
.hdr__menu { display: none; font-weight: 600; min-height: 44px; padding: 0 16px; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--white);
  padding: calc(var(--hdr) + 24px) var(--m) var(--m);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 480ms var(--ease-out), visibility 0s 480ms;
}
.menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.menu a:not(.btn) { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 13vw, 4.5rem); line-height: 1; text-decoration: none; padding: 6px 0; }
.menu .btn { margin-top: 24px; align-self: flex-start; }

@media (max-width: 900px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__menu { display: block; }
  :root { --hdr: 68px; }
  .hdr { inset: 8px 10px auto 10px; height: 52px; padding-right: 4px; }
  .hdr__logo { height: 30px; }
}

/* ---------- hero: the film fills the first screen, the words lie on it ---------- */
.hero { position: relative; min-height: max(620px, min(56.25vw, 100svh)); overflow: hidden; background: var(--navy); color: var(--white); display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1 + var(--p, 0) * 0.07)); transform-origin: 50% 35%; will-change: transform;
}
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(13, 24, 54, 0.44); }
.hero__copy { position: relative; z-index: 1; width: 100%; padding: calc(var(--hdr) + 16px) var(--m) clamp(64px, 8vw, 124px); display: grid; gap: clamp(16px, 2vw, 28px); justify-items: start; }
.hero h1 { font-size: clamp(3.4rem, min(9.4vw, 17svh), 11.5rem); line-height: 0.84; }
.hero h1 > span { display: block; white-space: nowrap; }
/* one word flips to another, like a scoreboard: BEST becomes BLAST */
.flip__b { display: none; }
.flip.is-ready { display: inline-grid; justify-items: start; vertical-align: baseline; width: var(--wa, auto); transition: width 460ms var(--ease-in-out) 90ms; }
.flip.is-ready > * { grid-area: 1 / 1; display: block; white-space: nowrap; transform-origin: 50% 58%; transition: transform 230ms cubic-bezier(0.55, 0, 1, 0.45); }
.flip.is-ready .flip__b { transform: scaleY(0); }
.flip.is-ready.is-b { width: var(--wb, auto); }
.flip.is-ready.is-b .flip__a { transform: scaleY(0); }
.flip.is-ready.is-b .flip__b, .flip.is-ready:not(.is-b) .flip__a { transform: none; transition: transform 420ms var(--ease-out) 250ms; }
.hero .lead { max-width: 38ch; }
.hero > .wave { bottom: -1px; z-index: 2; --wave: var(--navy); --wave-back: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__live { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; max-width: 100%; }
.hero__live span { min-width: 0; }
.hero__live i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; margin-top: 0.42em; }
.hero__live.is-on i { animation: pulse 1.6s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { transform: scale(0.55); opacity: 0.55; } }

@media (max-width: 900px) {
  .hero { min-height: max(600px, 100svh); }
  .hero h1 { font-size: 18.4vw; }
  .hero h1:lang(es) { font-size: 15.2vw; }
}

/* ---------- intro: stepped statement ---------- */
.intro { padding: var(--gap-section) var(--m); row-gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro h2 { grid-column: 1 / -1; }
.intro h2 span { display: block; }
.intro h2 span + span { color: var(--red); padding-left: 9vw; }
.intro__text { grid-column: 1 / span 6; display: grid; gap: 20px; }
.intro__pics { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.intro__pics img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.intro__pics img:first-child { transform: rotate(-3deg); }
.intro__pics img:last-child { transform: rotate(2.5deg) translateY(8%); }
@media (max-width: 900px) {
  .intro__text, .intro__pics { grid-column: 1 / -1; }
  .intro h2 span + span { padding-left: 0; }
}

/* ---------- welcome / vision / mission: three words, one stage ---------- */
.creed { padding: var(--gap-section) var(--m); display: grid; gap: clamp(36px, 6vw, 56px); }
.creed__item { display: grid; gap: 18px; }
.creed__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.6rem, 9.4vw, 11.5rem); line-height: 0.84; letter-spacing: -0.005em; }
.creed__word { display: grid; gap: clamp(8px, 1vw, 14px); width: 100%; text-align: left; text-transform: inherit; color: var(--red); cursor: default; transition: color 320ms, transform 420ms var(--ease-out); }
.creed__word i { display: none; }
.creed__panel { position: relative; display: grid; gap: clamp(18px, 2vw, 28px); align-content: start; }
.creed__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.creed__media img, .creed__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creed__panel p { max-width: 40ch; }

@media (min-width: 901px) {
  .creed { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; gap: 0 clamp(12px, 2vw, 28px); align-items: start; }
  .creed__item { display: contents; }
  .creed__h { grid-column: 1 / span 6; }
  .creed__item:nth-child(1) .creed__h { grid-row: 1; }
  .creed__item:nth-child(2) .creed__h { grid-row: 2; }
  .creed__item:nth-child(3) .creed__h { grid-row: 3; }
  .creed__word { padding: 0.05em 0 clamp(16px, 2vw, 30px); }
  .creed__panel { grid-column: 7 / -1; grid-row: 1 / span 4; }
  .creed.is-live .creed__word { color: #7C869B; cursor: pointer; }
  .creed.is-live .creed__word:hover { color: var(--navy); transform: translateX(10px); }
  .creed.is-live .is-on .creed__word { color: var(--red); transform: none; }
  .creed.is-live .creed__word i { display: block; height: 10px; width: min(100%, 300px); border-radius: 999px; background: var(--white); position: relative; overflow: hidden; }
  .creed.is-live .creed__word i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--red); transform: scaleX(var(--f, 0)); transform-origin: left; }
  .creed.is-live .creed__panel { visibility: hidden; transition: visibility 0s 780ms; }
  .creed.is-live .is-on .creed__panel { visibility: visible; transition-delay: 0s; z-index: 1; }
  .creed.is-live .creed__panel p { opacity: 0; transform: translateY(16px); transition: opacity 140ms, transform 0s 140ms; }
  .creed.is-live .is-on .creed__panel p { opacity: 1; transform: none; transition: opacity 420ms 240ms, transform 620ms var(--ease-out) 240ms; }
  .creed.is-live .is-on .creed__media { animation: wipe 820ms var(--ease-out); }
}
@keyframes wipe { from { clip-path: inset(0 100% 0 0 round var(--r)); } to { clip-path: inset(0 0 0 0 round var(--r)); } }

/* ---------- levels: finder + lane accordion ---------- */
.levels__intro { align-items: end; row-gap: 24px; }
.levels__intro h2 { grid-column: 1 / span 6; }
.levels__intro p { grid-column: 8 / span 5; }

.finder {
  margin-top: clamp(40px, 5vw, 72px);
  border-radius: var(--r); padding: clamp(24px, 3.4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: center;
}
.finder__q { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-title); line-height: 0.95; min-height: 2.9em; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.finder__q small { font-family: var(--text); font-weight: 400; text-transform: none; font-size: var(--step-body); line-height: 1.45; letter-spacing: 0; max-width: 44ch; }
.finder__a { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.finder__a .btn { min-width: 132px; }
.finder__dots { display: flex; gap: 8px; grid-column: 1 / -1; }
.finder__dots i { height: 10px; flex: 1; border-radius: 999px; background: var(--white); position: relative; overflow: hidden; }
.finder__dots i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.finder__dots i.is-done::after { transform: none; }
.finder.is-swap .finder__q, .finder.is-swap .finder__a { opacity: 0; transform: translateY(10px); }
.finder__q, .finder__a { transition: opacity 200ms, transform 260ms var(--ease-out); }
@media (max-width: 900px) {
  .levels__intro h2, .levels__intro p { grid-column: 1 / -1; }
  .finder { grid-template-columns: 1fr; }
  .finder__a { justify-content: flex-start; }
  .finder__a .btn { flex: 1; }
}

.lanes { margin-top: clamp(20px, 2.4vw, 32px); display: flex; height: clamp(460px, 42vw, 600px); border-radius: var(--r); overflow: hidden; container-type: inline-size; }
.lane { position: relative; flex: 1 1 0; min-width: 0; background: var(--lane-bg); color: var(--lane-ink); overflow: hidden; transition: flex-grow 520ms var(--ease-out); }
.lane.is-open { flex-grow: 7; }
.lane__tab { position: absolute; inset: 0; width: 100%; display: flex; align-items: flex-end; justify-content: flex-start; padding: 22px; text-align: left; transition: opacity 200ms; }
.lane__tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-title); line-height: 1; white-space: nowrap; transition: transform 260ms var(--ease-out); }
.lane__tab:hover span { transform: rotate(180deg) translateY(-10px); }
.lane.is-open .lane__tab { opacity: 0; pointer-events: none; visibility: hidden; }
.lane__body {
  position: absolute; inset: 0 auto 0 0; width: calc(100cqw * 7 / 12);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  opacity: 0; visibility: hidden; transition: opacity 240ms, visibility 0s 240ms;
}
.lane.is-open .lane__body { opacity: 1; visibility: visible; transition: opacity 420ms 200ms, visibility 0s; }
.lane__text { padding: clamp(22px, 2.6vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.lane__text h3 { font-size: var(--step-head); }
.lane__text h3 + p { font-weight: 600; margin-top: 10px; }
.lane__text > p { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; }
.lane__media { position: relative; }
.lane__media video, .lane__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .lanes { flex-direction: column; height: auto; }
  .lane { flex: none; display: grid; grid-template-rows: 64px 0fr; transition: grid-template-rows 480ms var(--ease-out); }
  .lane.is-open { grid-template-rows: 64px 1fr; }
  .lane__tab { position: static; align-items: center; padding: 0 20px; }
  .lane__tab span { writing-mode: horizontal-tb; transform: none; }
  .lane__tab:hover span { transform: none; }
  .lane.is-open .lane__tab { opacity: 1; visibility: visible; pointer-events: auto; }
  .lane__body { position: static; width: auto; grid-template-columns: 1fr; min-height: 0; overflow: hidden; opacity: 1; visibility: visible; }
  .lane__text { padding: 4px 20px 20px; }
  .lane__text h3, .lane__text h3 + p { display: none; }
  .lane__media { aspect-ratio: 4 / 3; }
}

/* ---------- coaches ---------- */
.coaches__top { align-items: end; row-gap: 24px; }
.coaches__top h2 { grid-column: 1 / span 6; }
.coaches__top p { grid-column: 8 / span 5; }
.coach-row { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.32fr) repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); align-items: start; }
.coach { display: flex; flex-direction: column; }
.coach__pic { height: clamp(260px, 28vw, 420px); border-radius: var(--r); overflow: hidden; position: relative; background: var(--mist); }
.coach__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 700ms var(--ease-out); }
.coach:hover .coach__pic img { transform: scale(1.05); }
.coach__pic--mark img { inset: 24% 20%; width: 60%; height: 52%; object-fit: contain; }
.coach:hover .coach__pic--mark img { transform: rotate(-4deg) scale(1.06); }
.coach h3 { margin-top: 14px; font-family: var(--text); font-weight: 600; font-size: var(--step-lead); line-height: 1.2; text-transform: none; letter-spacing: 0; }
.coach p { margin-top: 2px; }
@media (max-width: 900px) {
  .coaches__top h2, .coaches__top p { grid-column: 1 / -1; }
  .coach-row { grid-template-columns: 1fr 1fr; gap: 24px 10px; align-items: start; }
  .coach--head { grid-column: 1 / -1; }
  .coach__pic { height: auto; aspect-ratio: 4 / 5; }
  .coach--head .coach__pic { height: auto; aspect-ratio: 1; }
}

/* ---------- why: mosaic of unlike tiles ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(88px, 7.6vw, 116px); gap: 10px; }
.tile { grid-column: var(--c); grid-row: var(--rw); border-radius: var(--r); overflow: hidden; position: relative; padding: clamp(18px, 2vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.tile--pic { padding: 0; }
.tile--pic img, .tile--pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile--pic:hover img, .tile--pic:hover video { transform: scale(1.04); }
.tile--head { justify-content: flex-end; }
.tile--figure { justify-content: space-between; }
.tile--figure b { font-family: var(--display); font-weight: 800; font-size: var(--step-head); line-height: 0.85; }
.tile--list ul { display: grid; gap: 6px; font-weight: 600; }
.tile--big p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 8px; }
  .tile { grid-column: 1 / -1; grid-row: auto; }
  .tile--pic { aspect-ratio: 4 / 3; }
  .tile--figure { flex-direction: row; align-items: center; gap: 18px; }
}

/* ---------- schedule ---------- */
.schedule__top { align-items: end; row-gap: 20px; margin-bottom: clamp(32px, 4vw, 64px); }
.schedule__top h2 { grid-column: 1 / span 7; }
.schedule__top p { grid-column: 8 / span 5; }
.sched { width: 100%; border-collapse: collapse; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-title); line-height: 1; }
.sched th, .sched td { text-align: left; font-weight: 800; padding: 0.3em 0; vertical-align: baseline; }
.sched td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched tr { transition: color 300ms; }
.sched tr.is-today { color: var(--red); }
.sched tr.is-today th::before { content: ""; display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%; background: currentColor; margin-right: 0.3em; vertical-align: 0.12em; }
.sched thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sched__live { margin-top: clamp(28px, 3vw, 48px); display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; }
@media (max-width: 900px) {
  .schedule__top h2, .schedule__top p { grid-column: 1 / -1; }
  .sched tr { display: grid; grid-template-columns: 1fr auto; padding: 9px 0; }
  .sched th { grid-column: 1; grid-row: 1; }
  .sched td:last-child { grid-column: 2; grid-row: 1; }
  .sched td:not(:last-child) { grid-column: 1 / -1; grid-row: 2; font-family: var(--text); font-weight: 400; text-transform: none; font-size: var(--step-body); line-height: 1.4; padding: 2px 0 0; }
  .sched td.sched__kind { display: none; }
}

/* ---------- families: big link rows ---------- */
.families { padding: var(--gap-section) 0; }
.families h2 { padding: 0 var(--m); margin-bottom: clamp(28px, 4vw, 56px); }
.rowlink { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) auto; gap: 16px 32px; align-items: center; padding: clamp(18px, 2.4vw, 34px) var(--m); text-decoration: none; transition: background-color 240ms, color 240ms; }
.rowlink:nth-child(even) { background: var(--mist); }
.rowlink .title { transition: transform 320ms var(--ease-out); }
.rowlink:hover { background: var(--red); color: var(--white); }
.rowlink:hover .title { transform: translateX(14px); }
.arrow { width: clamp(44px, 4.6vw, 64px); aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; flex: none; transition: transform 320ms var(--ease-out), background-color 240ms, color 240ms; }
.arrow svg { width: 42%; height: 42%; }
.rowlink:hover .arrow { background: var(--white); color: var(--red); transform: rotate(-45deg); }
@media (max-width: 900px) { .rowlink { grid-template-columns: 1fr auto; } .rowlink p { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- faq: the heading holds still, the questions open beside it ---------- */
.faq__grid { align-items: start; row-gap: 40px; }
.faq__side { grid-column: 1 / span 5; position: sticky; top: 104px; display: grid; gap: clamp(18px, 2vw, 28px); justify-items: start; }
.faq__side .lead { max-width: 30ch; }
.faq__list { grid-column: 7 / -1; display: grid; gap: 10px; }
.qa { background: var(--white); color: var(--navy); border-radius: var(--r); transition: background-color 320ms, color 320ms; }
.qa.is-open { background: var(--navy); color: var(--white); }
.qa h3 { font-size: inherit; font-weight: inherit; }
.qa__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(16px, 1.8vw, 24px) clamp(16px, 1.8vw, 24px) clamp(16px, 1.8vw, 24px) clamp(22px, 2.6vw, 36px); font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
.qa__q span:first-child { transition: transform 320ms var(--ease-out); }
.qa:not(.is-open) .qa__q:hover span:first-child { transform: translateX(8px); }
.plus { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--red); color: var(--white); transition: transform 420ms var(--ease-out), background-color 320ms, color 320ms; }
.plus::before, .plus::after { content: ""; position: absolute; left: 14px; right: 14px; top: 22px; height: 4px; border-radius: 2px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.qa.is-open .plus { transform: rotate(135deg); background: var(--white); color: var(--navy); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 460ms var(--ease-out); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 clamp(22px, 2.6vw, 36px) clamp(24px, 2.8vw, 36px); max-width: 52ch; }
@media (max-width: 900px) {
  .faq__side, .faq__list { grid-column: 1 / -1; }
  .faq__side { position: static; }
  .plus { width: 40px; height: 40px; }
  .plus::before, .plus::after { left: 11px; right: 11px; top: 18px; }
}

/* ---------- footer: links, then one line half under water ---------- */
.ftr { position: relative; padding-top: clamp(56px, 7vw, 104px); }
.ftr > .wave { --wave: var(--navy); --wave-back: var(--red); }
.ftr__top { padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(12px, 2vw, 28px); align-items: start; }
.ftr__mark { grid-column: 1 / span 2; width: clamp(110px, 11vw, 160px); }
.ftr__menu { grid-column: 4 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 18px) clamp(12px, 2vw, 28px); }
.ftr__menu a { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-title); line-height: 1; text-decoration: none; width: fit-content; transition: transform 300ms var(--ease-out), color 240ms; }
.ftr__menu:hover a { color: #7C869B; }
.ftr__menu a:hover { color: var(--white); transform: translateX(12px); }
.ftr__cols { grid-column: 10 / span 3; display: grid; gap: 22px; }
.ftr__cols h3 { font-family: var(--text); font-size: var(--step-body); font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.5; }
.ftr__cols a { text-decoration: none; }
.ftr__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr__big { position: relative; margin-top: clamp(40px, 6vw, 88px); overflow: hidden; text-align: center; white-space: nowrap; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 10.9vw; line-height: 0.8; padding: 0.1em 0 0.13em; }
.ftr__big span { display: block; }
.ftr__big .wave { bottom: 0; height: 0.25em; --wave: var(--red); --wave-back: var(--red-deep); }
.ftr__legal { background: var(--red); padding: 14px var(--m) 36px; }
@media (max-width: 900px) {
  .ftr__mark, .ftr__menu, .ftr__cols { grid-column: 1 / -1; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .ftr__big { font-size: 10.9vw; }
}
@media (max-width: 560px) { .ftr__menu, .ftr__cols { grid-template-columns: 1fr; } }

/* ---------- join: the last call, with the contact details ---------- */
.join { position: relative; padding: var(--gap-section) var(--m) 0; }
.join__main { position: relative; align-items: center; row-gap: 40px; }
.join__text { grid-column: 1 / span 7; display: grid; gap: clamp(20px, 2.6vw, 36px); justify-items: start; }
.join h2 span { display: block; }
.join h2 span + span { color: var(--navy); }
.join__text .lead { max-width: 34ch; }
.join__pic { grid-column: 9 / span 4; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; position: relative; rotate: 3deg; }
.join__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.join__info { position: relative; margin: clamp(56px, 7vw, 104px) calc(var(--m) * -1) 0; background: var(--red-deep); padding: clamp(36px, 4.4vw, 64px) var(--m) clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px clamp(12px, 2vw, 28px); scroll-margin-top: 24px; }
.join__info > div { grid-column: span 3; }
.join__info h3 { font-family: var(--text); font-size: var(--step-body); font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.5; }
.join__info p + p { margin-top: 10px; }
.join__info a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .join__text, .join__pic { grid-column: 1 / -1; }
  .join__pic { aspect-ratio: 4 / 3; rotate: 1.5deg; }
  .join__info > div { grid-column: span 6; }
}
@media (max-width: 560px) { .join__info > div { grid-column: 1 / -1; } }

/* ---------- water: waves, bubbles, swimmers, lane ropes, the pace clock ---------- */
:root { --rope: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12'%3E%3Crect x='1' width='20' height='12' rx='6' fill='%23ED002E'/%3E%3Crect x='23' width='20' height='12' rx='6' fill='%23fff'/%3E%3C/svg%3E"); --rope-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='44'%3E%3Crect y='1' width='12' height='20' rx='6' fill='%23ED002E'/%3E%3Crect y='23' width='12' height='20' rx='6' fill='%23fff'/%3E%3C/svg%3E"); }

/* a moving water line that sits on top of a section */
.wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(26px, 4.4vw, 68px); overflow: hidden; pointer-events: none; }
.wave svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; display: block; }
.wave__back { fill: var(--wave-back, var(--red-deep)); }
.wave svg.wave__front { fill: var(--wave, var(--red)); height: 70%; }

/* bubbles that rise behind a section */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; }
.bubbles i { position: absolute; left: var(--x); bottom: -90px; width: var(--s); aspect-ratio: 1; border-radius: 50%; background: var(--red-deep); }

/* the little swimmer, seen from above */
.swimmer { display: block; height: auto; overflow: visible; fill: currentColor; }
.swimmer .cap { fill: var(--cap, currentColor); }
.swimmer .arm { transform-box: fill-box; transform-origin: 50% 100%; }
.swimmer .leg { transform-box: fill-box; transform-origin: 50% 0; }

/* one swimmer per level lane: the higher the level, the faster the lap */
.levels__lead { display: grid; gap: 14px; }
.levels__intro h2 span { display: block; color: var(--red); }
@media (min-width: 901px) { .levels__intro h2 { grid-column: 1 / span 7; } .levels__intro h2 span { white-space: nowrap; } }
.lane__tab .swimmer, .lane__place { display: none; }
@media (min-width: 901px) {
  .levels__lead { grid-column: 8 / span 5; }
  .lane__tab { container-type: size; }
  .lane__tab .swimmer { display: block; position: absolute; --sw: clamp(20px, 2vw, 28px); width: var(--sw); left: calc(50% - var(--sw) / 2); top: 5cqh; }
  .lane__tab { --sw: clamp(20px, 2vw, 28px); }
  .lane__place { display: block; position: absolute; left: 0; right: 0; top: calc(5cqh + var(--sw) * 2.1 + 12px); text-align: center; font-family: var(--display); font-weight: 800; font-size: var(--step-title); line-height: 1; opacity: 0; transform: scale(0.4); transition: opacity 200ms, transform 420ms var(--ease-out); }
  .lane__tab.has-place .lane__place { opacity: 1; transform: none; }
}
@media (max-width: 900px) { .levels__lead { grid-column: 1 / -1; } }

/* age 5 to college age, with a swimmer crossing between them */
.ages { margin-top: clamp(20px, 2.4vw, 32px); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-title); line-height: 1; }
.ages b { font-weight: 800; white-space: nowrap; }
.ages__lane { flex: 1; min-width: 0; height: 46px; position: relative; overflow: hidden; container-type: inline-size; background: var(--rope) repeat-x left bottom / 44px 12px; }
.ages__lane .swimmer { position: absolute; left: 12px; top: -7px; width: 20px; rotate: 90deg; translate: 30cqw 0; }

/* the lane rope down the right edge of the window: the swimmer swims the page as it scrolls */
.lap { position: fixed; top: 0; bottom: 0; right: 0; width: 10px; z-index: 80; pointer-events: none; background: var(--navy) var(--rope-v) repeat-y 50% 0 / 6px 22px; transform: translateX(48px); transition: transform 520ms var(--ease-out); }
.lap.is-on { transform: none; }
.lap__thumb { position: absolute; right: 0; top: 0; width: 32px; height: 72px; border-radius: 16px 0 0 16px; background: var(--navy); color: var(--white); display: grid; place-items: center; transform: translateY(var(--y, 0px)); }
.lap__thumb .swimmer { width: 18px; rotate: 180deg; --cap: var(--red); transition: rotate 320ms var(--ease-out); }
.lap.is-back .lap__thumb .swimmer { rotate: 0deg; }
@media (max-width: 900px) { .lap { width: 6px; background-size: 4px 16px; } .lap__thumb { width: 16px; height: 44px; border-radius: 8px 0 0 8px; } .lap__thumb .swimmer { width: 10px; } }
@media print { .lap { display: none; } }

/* the pace clock on the schedule */
.clock { width: clamp(104px, 12vw, 176px); }
.clock svg { display: block; width: 100%; height: auto; overflow: visible; }
.clock__hands { transform-origin: 100px 100px; }
@media (min-width: 901px) {
  .schedule__top h2 { grid-column: 1 / span 6; }
  .schedule__top p { grid-column: 8 / span 3; }
  .clock { grid-column: 11 / span 2; justify-self: end; align-self: center; }
}
@media (max-width: 900px) { .clock { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: no-preference) {
  .wave__back { animation: wave-x 19s linear infinite reverse; }
  .wave__front { animation: wave-x 12s linear infinite; }
  .bubbles i { animation: bubble var(--d, 12s) linear var(--dl, 0s) infinite; }
  .swimmer .arm { animation: stroke var(--stroke, 0.9s) var(--ease-in-out) infinite alternate; }
  .swimmer .arm + .arm { animation-delay: calc(var(--stroke, 0.9s) * -1); }
  .swimmer .leg { animation: kick calc(var(--stroke, 0.9s) / 3) ease-in-out infinite alternate; }
  .swimmer .leg + .leg { animation-delay: calc(var(--stroke, 0.9s) / -3); }
  .lane__tab.is-done .arm, .lane__tab.is-done .leg { animation-play-state: paused; }
  .ages__lane .swimmer { animation: cross 15s linear infinite; }
  .lap .arm, .lap .leg { animation-play-state: paused; }
  .lap.is-swimming .arm, .lap.is-swimming .leg { animation-play-state: running; }
  .clock__hands { animation: sweep 60s linear infinite; }
  .ftr__big span { animation: bob 4.6s var(--ease-in-out) infinite alternate; }
  .join__pic img { animation: drift 22s var(--ease-in-out) infinite alternate; }
}
@keyframes wave-x { to { transform: translateX(-50%); } }
@keyframes bubble { to { transform: translate(var(--sway, 0px), -125cqh); } }
@keyframes stroke { from { transform: scaleY(1); } to { transform: scaleY(-0.72); } }
@keyframes kick { from { transform: scaleY(1); } to { transform: scaleY(0.68); } }
@keyframes lap {
  0% { transform: translateY(0) rotate(180deg); }
  45% { transform: translateY(40cqh) rotate(180deg); }
  50% { transform: translateY(40cqh) rotate(360deg); }
  95% { transform: translateY(0) rotate(360deg); }
  100% { transform: translateY(0) rotate(540deg); }
}
@keyframes cross { from { translate: -70px 0; } to { translate: 100cqw 0; } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes bob { from { transform: translateY(-0.03em); } to { transform: translateY(0.05em); } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.18) translate(-2%, 1.5%); } }

/* ---------- extras: language switch, instagram, wider-language fits ---------- */
.hdr { gap: 6px; }
.hdr__nav { margin-right: clamp(6px, 1.2vw, 18px); }
.hdr__nav a { font-size: var(--step-small); }
.hdr__lang, .hdr__ig { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color 200ms, color 200ms; }
.hdr__lang:hover, .hdr__ig:hover { background: var(--hdr-ink, var(--white)); color: var(--hdr-bg, var(--red)); }
.hdr__cta { margin-left: 6px; }
.ig { display: block; width: 24px; height: 24px; }
.iglink { display: inline-flex; align-items: center; gap: 8px; }
.iglink .ig { width: 20px; height: 20px; }
.menu__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.menu .menu__row .btn { margin-top: 0; }
.menu__ig { padding: 0; width: 56px; }
@media (max-width: 1180px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__menu { display: block; }
}
@media (min-width: 901px) {
  .levels__intro h2 { grid-column: 1 / -1; }
  .levels__intro .levels__lead { grid-column: 1 / span 6; }
  .levels__intro .levels__note { grid-column: 8 / span 5; align-self: end; }
}
.ftr__big:lang(es) { font-size: 9.4vw; }
@media (max-width: 900px) {
  .levels__intro h2:lang(es) { font-size: min(var(--step-head), 9.2vw); }
  .levels__intro h2:lang(es) span { display: inline; }
}

/* ---------- inner pages ---------- */
.page-head { padding: calc(var(--hdr) + clamp(40px, 6vw, 96px)) var(--m) clamp(40px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 4vw; align-items: end; overflow: clip; }
.page-head__text { display: grid; gap: 24px; }
.page-head p { max-width: 46ch; }
.page-head__pic { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; rotate: 2.5deg; }
.page-head__pic img { width: 100%; height: 100%; object-fit: cover; }
.doc-end { display: grid; grid-template-columns: 1fr 1fr; }
.doc-end__pic { position: relative; min-height: clamp(280px, 38vw, 520px); overflow: hidden; }
.doc-end__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-end__text { padding: clamp(40px, 6vw, 96px) var(--m); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.doc-end__text p { max-width: 34ch; }
@media (max-width: 900px) { .page-head, .doc-end { grid-template-columns: minmax(0, 1fr); } .page-head__pic { rotate: 1.5deg; } }
.doc { padding: clamp(48px, 7vw, 112px) var(--m) var(--gap-section); align-items: start; row-gap: 40px; }
.doc__toc { grid-column: 1 / span 3; position: sticky; top: 24px; display: grid; gap: 10px; }
.doc__toc a { text-decoration: none; font-weight: 600; width: fit-content; transition: transform 240ms var(--ease-out); }
.doc__toc a:hover { transform: translateX(8px); color: var(--red); }
.doc__pic { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); margin-top: 18px; }
.doc__body { grid-column: 5 / -1; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3 { max-width: 68ch; }
.prose .btn { white-space: normal; text-align: center; padding-block: 14px; text-decoration: none; }
.prose .btn:hover { color: var(--btn-fg); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-title); line-height: 0.95; margin-top: 2em; scroll-margin-top: 24px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--text); font-size: var(--step-lead); font-weight: 600; line-height: 1.25; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--red); font-weight: 600; }
.prose a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--red); }
.callout { border-radius: var(--r); padding: clamp(22px, 3vw, 40px); display: grid; gap: 10px; }
.callout .title { margin: 0; }
.files { display: grid; margin-top: 1.4em; border-radius: var(--r); overflow: hidden; }
.files > * { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px clamp(18px, 2.4vw, 30px); font-weight: 600; text-decoration: none; background: var(--mist); transition: background-color 220ms, color 220ms; }
.files > *:nth-child(even) { background: var(--blush); }
.files a:hover { background: var(--red); color: var(--white); }
.files small { font-weight: 400; font-size: var(--step-small); }
@media (max-width: 900px) { .doc__toc { grid-column: 1 / -1; position: static; display: flex; flex-wrap: wrap; gap: 10px; } .doc__toc a { background: var(--mist); padding: 10px 16px; border-radius: 999px; } .doc__pic { flex-basis: 100%; aspect-ratio: 16 / 9; margin-top: 8px; } .doc__body { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transform: translateY(44px); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal="left"] { transform: translateX(calc(var(--m) * -0.8)); }
  .js [data-reveal="zoom"] { transform: scale(0.9); }
  .js [data-reveal].is-in { transform: none; }
  @media (max-width: 900px) { .js [data-reveal="left"] { transform: translateY(36px); } }
}

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