/* ==========================================================================
   AquaCubs Swim Academy — style.css
   All custom styles: variables, base, layout patterns, components,
   dashboard, animations and reduced-motion rules.
   Dark mode lives in dark-mode.css, RTL overrides live in rtl.css.
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES (colors, fonts, easing)
   ========================================================================== */
:root {
  /* Brand water palette */
  --deep: #0B2545;          /* deep pool navy */
  --deep-2: #13315C;
  --aqua: #00B4C6;          /* main brand aqua (decorative / large) */
  --aqua-ink: #00798B;      /* aqua that passes AA on white for text */
  --aqua-soft: #BDEFF4;
  --aqua-mist: #E6F8FA;
  --foam: #F7FDFE;
  --sun: #FFC93C;           /* single sunny accent */
  --sun-ink: #6B4A00;
  --coral: #FF7A59;         /* used only inside illustrations */

  /* Status colors (always paired with text + icon) */
  --ok: #136F3C;
  --ok-soft: #DDF4E7;
  --warn: #8A5000;
  --warn-soft: #FFF0D1;
  --muted: #526073;
  --muted-soft: #EEF2F6;
  --danger: #C2352B;

  /* Semantic tokens (dark-mode.css redefines these) */
  --bg: var(--foam);
  --bg-alt: var(--aqua-mist);
  --surface: #FFFFFF;
  --surface-2: #F1FAFB;
  --ink: var(--deep);
  --ink-soft: #3B5874;
  --line: rgba(11, 37, 69, .12);
  --line-strong: rgba(11, 37, 69, .24);
  --brand-text: var(--aqua-ink);
  --tile: rgba(0, 180, 198, .10);
  --water-top: #5ED8E4;
  --water-bottom: #0F6E8C;
  --shadow: 0 18px 50px -24px rgba(11, 37, 69, .35);
  --shadow-sm: 0 6px 20px -10px rgba(11, 37, 69, .30);
  --focus: #FFB000;

  /* Typography */
  --font-display: "Fredoka", "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-mega: clamp(3.4rem, 10.5vw, 11rem);
  --fs-hero: clamp(3rem, 8.2vw, 8.6rem);
  --fs-xl: clamp(2.4rem, 5.6vw, 5.4rem);
  --fs-lg: clamp(2rem, 4vw, 3.6rem);
  --fs-md: clamp(1.4rem, 2.3vw, 2rem);
  --fs-statement: clamp(1.8rem, 4.4vw, 4.2rem);

  /* Easing */
  --ease-out: cubic-bezier(.22, 1, .36, 1);       /* power3.out feel */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1); /* playful overshoot */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Layout */
  --radius: 22px;
  --radius-lg: 36px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 76px;
}

/* ==========================================================================
   2. BASE AND TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
/* Clip any decorative overflow so the page never scrolls sideways */
main, .site-footer { overflow-x: clip; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--sun); color: var(--deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 9999;
  padding: .7rem 1.1rem; border-radius: 999px; background: var(--sun); color: var(--deep);
  font-weight: 700; transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.display-mega { font-size: var(--fs-mega); line-height: .9; font-weight: 700; }
.display-hero { font-size: var(--fs-hero); line-height: .92; font-weight: 700; }
.display-xl { font-size: var(--fs-xl); line-height: .95; font-weight: 700; }
.display-lg { font-size: var(--fs-lg); line-height: 1; }
.display-md { font-size: var(--fs-md); line-height: 1.1; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-soft); max-width: 38ch; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-text);
}
.eyebrow::before { content: ""; width: 28px; height: 10px; background: var(--wave-mini) center / contain no-repeat; }
:root { --wave-mini: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M1 5q3.25-4 6.5 0t6.5 0 6.5 0 6.5 0' fill='none' stroke='%2300798B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.text-brand { color: var(--brand-text); }
.text-sun { color: var(--sun); }
.outline-text { color: transparent; -webkit-text-stroke: 2px currentColor; }

/* ==========================================================================
   3. LAYOUT, LANE AND TILE PATTERNS
   ========================================================================== */
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), 1600px); margin-inline: auto; }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 9rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }

.bg-alt { background: var(--bg-alt); }
.bg-deep { background: var(--deep); color: #fff; --ink: #fff; --ink-soft: #B9D4E6; --brand-text: #7EE6F0; --line: rgba(255,255,255,.14); }
.bg-deep .eyebrow::before { filter: brightness(2.2); }

/* Pool tile grid used as section texture */
.tile-grid {
  background-image:
    linear-gradient(var(--tile) 2px, transparent 2px),
    linear-gradient(90deg, var(--tile) 2px, transparent 2px);
  background-size: 44px 44px;
}
/* Lane rope divider (pure CSS floats) */
.lane-rope {
  height: 14px; width: 100%;
  background:
    radial-gradient(circle at 7px 7px, var(--sun) 6px, transparent 6.5px) 0 0 / 52px 14px,
    radial-gradient(circle at 7px 7px, #fff 6px, transparent 6.5px) 13px 0 / 52px 14px,
    radial-gradient(circle at 7px 7px, var(--aqua) 6px, transparent 6.5px) 26px 0 / 52px 14px,
    radial-gradient(circle at 7px 7px, #fff 6px, transparent 6.5px) 39px 0 / 52px 14px,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 6px / 100% 2px no-repeat;
}
.lane-number {
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; border: 2px solid currentColor;
}

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* ---------- 4.1 Buttons ---------- */
.btn {
  --btn-bg: var(--deep); --btn-fg: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.1; white-space: nowrap;
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
}
.btn:hover { box-shadow: 0 14px 30px -14px rgba(11,37,69,.55); }
.btn:active { transform: scale(.97); }
.btn-sun { --btn-bg: var(--sun); --btn-fg: var(--deep); }
.btn-aqua { --btn-bg: var(--aqua-ink); --btn-fg: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--deep); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn-lg { min-height: 64px; padding: 1.1rem 2.2rem; font-size: 1.1rem; }
.btn .arrow { display: inline-flex; transition: transform .3s var(--ease-bounce); }
.arrow-back { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .85; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
/* Magnetic inner label moves slightly further than the button */
.magnetic { will-change: transform; }
.magnetic .btn-label { display: inline-flex; align-items: center; gap: .6rem; }
/* Click ripple splash */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: radial-gradient(circle, rgba(255,255,255,.65) 0 35%, rgba(255,255,255,.0) 36%),
              radial-gradient(circle, transparent 55%, rgba(255,255,255,.55) 56% 62%, transparent 63%);
  animation: ripple .7s var(--ease-out) forwards;
}

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .3s var(--ease-bounce), border-color .3s;
  position: relative;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-6deg); border-color: var(--aqua); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .icon-moon { display: none; }
.rtl-label { font-weight: 800; font-size: .72rem; letter-spacing: .04em; }

/* Text roll-up link hover */
.roll { display: inline-flex; overflow: hidden; position: relative; vertical-align: top; line-height: 1.25; height: 1.25em; }
.roll > span { display: block; transition: transform .38s var(--ease-out); }
.roll > span::after { content: attr(data-text); display: block; position: absolute; top: 100%; left: 0; right: 0; color: var(--brand-text); }
a:hover .roll > span, a:focus-visible .roll > span, button:hover .roll > span { transform: translateY(-100%); }

/* Wavy underline on key words */
.wavy { position: relative; display: inline-block; white-space: nowrap; }
.wavy-line { position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em; width: 100%; overflow: visible; color: var(--sun); }
.wavy-line path { stroke: currentColor; stroke-width: 7; fill: none; stroke-linecap: round; }

/* ---------- 4.2 Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 900;
  height: var(--header-h);
  transition: transform .45s var(--ease-out), background-color .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
body { padding-top: 0; }
.has-header main:not(.instructor-profile-page):not(.program-detail-page) > :first-child { padding-top: calc(var(--header-h) + 1.5rem); }

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.logo-mark { width: 40px; height: 40px; flex: none; transition: transform .5s var(--ease-bounce); }
.logo:hover .logo-mark { transform: rotate(-12deg) translateY(-3px); }
.logo-word span { color: var(--brand-text); }
.logo-drop { fill: var(--aqua); }
.logo-wave { stroke: #fff; }
.logo-eye { fill: var(--deep); }

.main-nav { display: none; position: relative; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: .15rem; }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; padding: .55rem .8rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--deep); }
/* Home dropdown (Home 1 / Home 2) */
.nav-drop { position: relative; }
button.nav-link { border: 0; background: transparent; align-items: center; gap: .3rem; }
.nav-drop-toggle .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform .35s var(--ease-out); }
.nav-drop.is-open .nav-drop-toggle .chev { transform: rotate(-90deg); }
.main-nav .nav-drop-menu {
  position: absolute; z-index: 5; top: calc(100% + .6rem); inset-inline-start: 0; min-width: 190px;
  display: grid; gap: .2rem; padding: .45rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .35s var(--ease-out), visibility 0s .35s;
}
/* Invisible bridge so the menu stays open while the pointer moves down to it */
.main-nav .nav-drop-menu::before { content: ""; position: absolute; inset: -.7rem 0 100%; }
.nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease-out); }
.nav-drop-menu a { display: block; padding: .6rem .85rem; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); transition: background .25s, color .25s; }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: var(--bg-alt); color: var(--brand-text); }
.nav-drop-menu a[aria-current="page"] { background: var(--aqua-soft); color: var(--deep); }
/* Floating active indicator that glides between links */
.nav-float {
  position: absolute; z-index: 0; top: 50%; height: 40px; left: 0; width: 0;
  border-radius: 999px; background: var(--aqua-soft);
  transform: translateY(-50%); transition: left .55s var(--ease-bounce), width .55s var(--ease-bounce), opacity .3s;
  pointer-events: none;
}
.nav-float::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 4px; margin-left: -5px; border-radius: 4px; background: var(--aqua); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-cta { display: none; }
.menu-toggle { display: inline-grid; }
.menu-toggle .bars { display: grid; gap: 5px; }
.menu-toggle .bars i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
@media (min-width: 1180px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 640px) and (max-width: 1179px) { .header-cta { display: inline-flex; } }
@media (max-width: 1179px) {
  #mobile-menu .menu-links a[href="login.html"] { display: none !important; }
}
@media (max-width: 420px) {
  .header-inner { gap: .4rem; }
  .header-actions { gap: .25rem; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .logo { gap: .4rem; font-size: 1.15rem; }
  .logo-mark { width: 32px; height: 32px; }
}
@media (max-width: 340px) {
  :root { --gutter: 10px; }
  .header-inner { gap: .25rem; }
  .header-actions { gap: .15rem; }
  .header-actions .icon-btn { width: 32px; height: 32px; }
  .logo { gap: .3rem; font-size: 1.05rem; }
  .logo-mark { width: 28px; height: 28px; }
}

/* Scroll progress: swimmer swims along a lane line */
.scroll-lane { position: fixed; z-index: 950; left: 0; right: 0; top: 0; height: 6px; pointer-events: none; }
.scroll-lane::before { content: ""; position: absolute; inset: 2px 0 auto; height: 2px; background: repeating-linear-gradient(90deg, var(--sun) 0 10px, transparent 10px 18px); opacity: .55; }
.scroll-lane-fill { position: absolute; left: 0; top: 1px; height: 4px; width: 100%; background: var(--aqua); transform-origin: left center; transform: scaleX(0); border-radius: 4px; }
.scroll-swimmer { position: absolute; top: -2px; left: 0; width: 26px; height: 14px; margin-left: -13px; color: var(--deep); transform: translateX(0); }

/* ---------- 4.3 Mobile menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 1000; display: grid; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: #fff; background: var(--deep);
  clip-path: inset(100% 0 0 0); visibility: hidden;
  transition: clip-path .75s var(--ease-in-out), visibility 0s linear .75s;
}
.menu-overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .75s var(--ease-in-out), visibility 0s; }
.menu-overlay .menu-water { position: absolute; left: 0; right: 0; top: -38px; height: 40px; color: var(--deep); }
.menu-inner { position: relative; padding: calc(var(--header-h) + 1rem) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom)); display: grid; gap: 2.5rem; align-content: space-between; min-height: 100%; min-height: 100vh; min-height: 100dvh; }
.menu-top { display: flex; justify-content: space-between; align-items: center; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: var(--header-h); }
.menu-top .logo { color: #fff; }
.menu-links { list-style: none; display: grid; gap: .1rem; }
.menu-links a {
  display: inline-flex; align-items: baseline; gap: .8rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 9vw, 4.4rem); line-height: 1.1;
}
.menu-links a small { font-family: var(--font-body); font-size: .8rem; color: var(--aqua-soft); }
.menu-links a[aria-current="page"] { color: var(--sun); }
/* Mobile / tablet Home accordion (Home 1 / Home 2) */
.menu-drop-toggle {
  display: inline-flex; align-items: baseline; gap: .8rem; padding: 0; border: 0; background: transparent; color: inherit; text-align: start;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 9vw, 4.4rem); line-height: 1.1;
}
.menu-drop-toggle.is-current { color: var(--sun); }
.menu-drop-toggle small { font-family: var(--font-body); font-size: .8rem; color: var(--aqua-soft); }
.menu-drop-toggle .chev { align-self: center; width: .5em; height: .5em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.menu-drop.is-open .menu-drop-toggle .chev { transform: rotate(-90deg); }
.menu-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.menu-sub > ul { list-style: none; overflow: hidden; display: grid; gap: .2rem; padding-inline-start: 1.2rem; border-inline-start: 2px solid rgba(255,255,255,.18); margin-inline-start: .3rem; }
.menu-drop.is-open .menu-sub { grid-template-rows: 1fr; }
.menu-drop.is-open .menu-sub > ul { padding-block: .5rem .7rem; }
.menu-links .menu-sub a { font-size: clamp(1.4rem, 5vw, 2.2rem); }
.menu-link-in { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease-bounce), opacity .4s; }
.menu-overlay.is-open .menu-link-in { transform: none; opacity: 1; }
.menu-meta { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); color: #CFE6F2; font-size: .95rem; }
.menu-meta a { color: #fff; }
.menu-meta .social { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- 4.4 Social icons ---------- */
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid currentColor; opacity: .9; transition: transform .35s var(--ease-bounce); }
.social a:hover { transform: translateY(-6px) rotate(-8deg); }
.social svg { width: 18px; height: 18px; }

/* ---------- 4.5 Hero (Home) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding-bottom: calc(clamp(150px, 22vw, 260px) + 1rem); }
.hero-grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; min-width: 0; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 1rem; } }
.hero-title { position: relative; z-index: 3; width: 100%; min-width: 0; }
.hero-title .line { display: block; }
.hero-title .indent { padding-inline-start: clamp(0rem, 6vw, 6rem); }
@media (max-width: 639px) { .hero-title .indent { padding-inline-start: 0; } }
.hero-copy { display: grid; gap: 1.6rem; margin-top: 1.8rem; min-width: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.safety-strip { display: flex; flex-wrap: wrap; gap: .4rem .9rem; list-style: none; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.safety-strip li { display: inline-flex; align-items: center; gap: .45rem; }
.safety-strip svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* Porthole / water-blob image mask */
.porthole { position: relative; aspect-ratio: 9 / 10; width: min(100%, 560px); margin-inline: auto; }
.porthole-picture { position: absolute; inset: 0; }
.porthole-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  animation: blob 12s var(--ease-in-out) infinite alternate;
  box-shadow: var(--shadow);
}
.porthole-ring { position: absolute; inset: -14px; border: 3px dashed var(--aqua); border-radius: 50%; opacity: .45; animation: spin 40s linear infinite; pointer-events: none; }
.porthole-tag {
  position: absolute; inset-inline-start: -4%; bottom: 14%; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.porthole-tag .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(30,142,82,.5); animation: pulse 2s infinite; }

/* Hero water surface across the lower part */
.water-surface { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: clamp(150px, 22vw, 260px); pointer-events: none; }
.water-surface svg { width: 100%; height: 100%; overflow: visible; }
.water-surface .w-back { fill: var(--aqua); opacity: .28; }
.water-surface .w-mid { fill: var(--aqua); opacity: .45; }
.water-surface .w-front { fill: url(#waterGrad); }
.water-surface .w-shine { fill: none; stroke: #fff; stroke-width: 3; opacity: .65; }

.scroll-cue { position: absolute; z-index: 4; bottom: 1.4rem; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: .3rem; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.scroll-cue svg { width: 44px; height: 44px; animation: bob 2.4s var(--ease-in-out) infinite; }

/* Bubbles */
.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--aqua) 55%, transparent);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9) 0 12%, rgba(255,255,255,.08) 13%);
  animation: rise var(--dur, 12s) linear var(--delay, 0s) infinite;
}

/* ---------- 4.6 Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding-block: 1.4rem; background: var(--deep); color: #fff; border-block: 1px solid var(--line); }
.marquee.is-light { background: var(--sun); color: var(--deep); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: 2.2rem; padding-inline-end: 2.2rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; white-space: nowrap; }
.marquee-group .sep { width: .55em; height: .55em; color: var(--aqua); flex: none; }
.marquee.is-light .sep { color: var(--deep); }
.marquee-group .o { color: transparent; -webkit-text-stroke: 2px currentColor; }
/* CSS fallback marquee when JS is unavailable */
.no-js .marquee-track, .io-mode .marquee-track { animation: marquee 30s linear infinite; }

/* ---------- 4.7 Statement (words fill with water color on scroll) ---------- */
.statement { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-statement); line-height: 1.12; max-width: 22ch; }
.statement .w { color: color-mix(in srgb, var(--ink) 18%, transparent); transition: color .3s; }
.statement .w.is-lit { color: var(--ink); }
.statement .w.hl.is-lit { color: var(--brand-text); }
.no-js .statement .w, .reduced .statement .w { color: var(--ink); }

/* Outlined text that fills with water from the bottom */
.fill-text {
  --fill: 0%;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-mega); line-height: .9;
  color: transparent; -webkit-text-stroke: 2px var(--aqua-ink);
  background: linear-gradient(to top, var(--aqua) 0 var(--fill), transparent var(--fill));
  -webkit-background-clip: text; background-clip: text;
}
.no-js .fill-text, .reduced .fill-text { --fill: 100%; }

/* ---------- 4.8 Confidence journey (pinned story) ---------- */
.journey { position: relative; background: var(--bg-alt); }
.journey-pin { position: relative; display: grid; gap: 2rem; padding-block: clamp(4rem, 8vw, 6rem); }
.journey-intro { grid-area: intro; }
.journey-stage { grid-area: stage; }
.journey-steps { grid-area: steps; }
@media (min-width: 1000px) {
  .journey-pin { grid-template-columns: 1.1fr 1fr; grid-template-areas: "intro steps" "stage steps"; align-items: center; min-height: 100vh; padding-block: 5rem 3rem; }
}
.journey-stage { position: relative; aspect-ratio: 1 / .82; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(#DFF7FA, #DFF7FA 46%, transparent 46%); }
.journey-stage .tile-grid { position: absolute; inset: 0 0 54% 0; }
.journey-deck { position: absolute; left: 0; top: 38%; width: 34%; height: 9%; background: #fff; border-radius: 0 12px 0 0; box-shadow: inset 0 -6px 0 rgba(11,37,69,.08); }
.journey-water { position: absolute; left: 0; right: 0; bottom: 0; height: 54%; }
.journey-water svg { width: 100%; height: 100%; }
.journey-kid { position: absolute; width: 22%; left: 10%; top: 18%; z-index: 2; transform-origin: 50% 80%; }
.journey-ring { position: absolute; width: 18%; right: 12%; top: 46%; animation: bob 3s var(--ease-in-out) infinite; }
.journey-meter { position: absolute; inset-inline-end: 1.2rem; top: 1.2rem; z-index: 3; background: var(--surface); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-sm); }
.journey-steps { list-style: none; display: grid; gap: .9rem; counter-reset: step; }
.journey-step {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1.1rem 1.2rem; border-radius: 20px; border: 2px solid var(--line);
  background: var(--surface); transition: border-color .4s, transform .5s var(--ease-bounce), box-shadow .4s;
}
.journey-step h3 { font-size: 1.35rem; }
.journey-step p { font-size: .95rem; color: var(--ink-soft); margin-top: .2rem; }
.journey-step .lane-number { color: var(--brand-text); }
.journey-step .step-badge { width: 52px; height: 52px; transition: transform .6s var(--ease-bounce), filter .4s; }
.js-pin .journey-step:not(.is-active):not(.is-done) .step-badge { filter: grayscale(1) opacity(.45); transform: scale(.8); }
/* Pinned (desktop): compact cards so every step and its description fits on screen */
.journey.js-pin .journey-pin { padding-block: calc(var(--header-h) + 1rem) 1.5rem; }
.js-pin .journey-steps {
  gap: .55rem; max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto;
  padding: 18px 14px 18px 4px; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.js-pin .journey-steps::-webkit-scrollbar { display: none; }
/* Scale the illustration with screen height so it never runs off the bottom */
.js-pin .journey-stage { width: min(100%, calc((100vh - var(--header-h) - 15rem) / .82)); }
.js-pin .journey-step { padding: .7rem 1rem; gap: .8rem; border-radius: 16px; }
.js-pin .journey-step h3 { font-size: 1.1rem; }
.js-pin .journey-step p { font-size: .86rem; line-height: 1.45; }
.js-pin .journey-step .step-badge { width: 40px; height: 40px; }
.js-pin .journey-step:not(.is-active) { opacity: .82; }
.journey-step.is-active { border-color: var(--aqua); transform: translateX(10px); box-shadow: var(--shadow-sm); }
.journey-step.is-done .lane-number { background: var(--aqua-ink); border-color: var(--aqua-ink); color: #fff; }
@media (max-width: 999px) {
  .journey-pin { height: 100svh; min-height: 620px; grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "intro" "stage" "steps"; gap: 1rem; padding-block: calc(var(--header-h) + .75rem) 1rem; overflow: hidden; }
  .journey-stage { width: 100%; height: clamp(150px, 26svh, 220px); aspect-ratio: auto; }
  .journey-steps { min-height: 0; overflow-y: auto; padding: 0 .25rem .5rem 0; overscroll-behavior: contain; scroll-padding-block: .5rem; }
  .journey-step.is-active { transform: none; }
}

/* ---------- 4.9 Pool safety map with hotspots ---------- */
.pool-map { position: relative; border-radius: var(--radius-lg); overflow: visible; }
.pool-map > svg { width: 100%; height: auto; border-radius: var(--radius-lg); }
.hotspot {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0;
  background: var(--sun); color: var(--deep); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(255, 201, 60, .7); animation: hotspot 2.4s infinite;
  transition: transform .35s var(--ease-bounce);
}
.hotspot:hover, .hotspot[aria-expanded="true"] { transform: translate(-50%, -50%) scale(1.15); animation: none; }
.hotspot svg { width: 22px; height: 22px; }
.hotspot-card {
  position: absolute; z-index: 5; width: min(280px, 78vw); padding: 1.1rem 1.2rem; border-radius: 18px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px) scale(.94); transform-origin: 50% 0;
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-bounce), visibility 0s .3s;
}
.hotspot-card.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .3s var(--ease-out), transform .45s var(--ease-bounce); }
.hotspot-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.hotspot-card p { font-size: .94rem; color: var(--ink-soft); }
/* Give the pool map the wider column and keep it level with the heading */
@media (min-width: 1000px) {
  .split-cols.safety-split { grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
  .safety-split .pool-map { position: sticky; top: calc(var(--header-h) + 1.5rem); margin-top: 2.2rem; }
}
.safety-list { list-style: none; display: grid; gap: .5rem; margin-top: 1.6rem; }
.safety-list button { width: 100%; text-align: start; display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; border: 2px solid var(--line); background: transparent; font-weight: 600; transition: border-color .3s, background .3s; }
.safety-list button:hover, .safety-list button[aria-pressed="true"] { border-color: var(--aqua); background: var(--surface); }
.safety-list .n { font-family: var(--font-display); color: var(--brand-text); }

/* ---------- 4.10 Program list with hover-reveal image ---------- */
.prog-list { list-style: none; border-top: 2px solid var(--ink); }
.prog-row { position: relative; border-bottom: 2px solid var(--line-strong); }
.prog-row a {
  display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.4rem; align-items: center;
  padding: 1.6rem .4rem; text-decoration: none; transition: padding .45s var(--ease-out), color .3s;
}
@media (min-width: 800px) { .prog-row a { grid-template-columns: 4rem 1.2fr 1fr auto; } }
.prog-row .num { font-family: var(--font-display); color: var(--brand-text); font-weight: 600; }
.prog-row .name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1; }
.prog-row .meta { color: var(--ink-soft); grid-column: 2; }
.prog-row .go { display: none; width: 56px; height: 56px; border-radius: 50%; border: 2px solid currentColor; place-items: center; transition: transform .45s var(--ease-bounce), background .3s, color .3s; }
@media (min-width: 800px) { .prog-row .meta { grid-column: auto; } .prog-row .go { display: grid; } }
.prog-row a:hover { padding-inline: 1.4rem; }
.prog-row a:hover .go { transform: rotate(-45deg); background: var(--sun); color: var(--deep); border-color: var(--sun); }
.prog-row .thumb { display: none; }
@media (max-width: 799px) { .prog-row .thumb { display: block; width: 100%; max-width: 280px; border-radius: 18px; margin-top: .6rem; grid-column: 1 / -1; } }
.hover-img {
  position: fixed; z-index: 60; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 3; pointer-events: none;
  border-radius: 24px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-bounce); box-shadow: var(--shadow);
}
.hover-img.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 4.11 Horizontal scroll + flip badges ---------- */
.hscroll { position: relative; overflow: hidden; }
.hscroll-track { display: flex; gap: clamp(1rem, 2.4vw, 2rem); padding-inline: var(--gutter); width: max-content; }
/* Without pinning (mobile / no JS / reduced motion) the track becomes a swipeable row */
.hscroll.is-native { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 1rem; }
.hscroll.is-native .hscroll-track > * { scroll-snap-align: start; }
@media (max-width: 767px) {
  .hscroll.stack-mobile { overflow: visible; }
  .hscroll.stack-mobile .hscroll-track { width: auto; display: grid; grid-template-columns: 1fr; padding-inline: 0; }
}

.badge-card { width: clamp(230px, 24vw, 300px); aspect-ratio: 3 / 4; perspective: 1100px; flex: none; }
.badge-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease-bounce); border-radius: 28px; }
.badge-card:hover .badge-inner, .badge-card:focus-within .badge-inner, .badge-card.is-flipped .badge-inner { transform: rotateY(180deg); }
.badge-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 28px; padding: 1.4rem; display: grid; align-content: space-between; gap: 1rem;
  background: var(--surface); border: 2px solid var(--line);
}
.badge-face.back { transform: rotateY(180deg); background: var(--deep); color: #fff; }
.badge-face.back ul { list-style: none; display: grid; gap: .45rem; font-size: .95rem; }
.badge-face.back li { display: flex; gap: .5rem; }
.badge-face.back li::before { content: "✓"; color: var(--sun); font-weight: 800; }
.badge-face h3 { font-size: 1.6rem; }
.badge-face .lvl { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
.badge-face.back .lvl { color: var(--sun); }
.badge-medal { width: 62%; margin-inline: auto; }
.badge-flip-btn { justify-self: start; border: 0; background: transparent; font-weight: 700; color: var(--brand-text); padding: .3rem 0; }

/* Medal SVG pieces */
.medal-ribbon-a { fill: var(--deep); }
.medal-ribbon-b { fill: var(--aqua); }
.medal-rim { fill: var(--sun); }
.medal-face { fill: #fff; }
.medal-icon { stroke: var(--deep); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 4.12 Instructor tiles ---------- */
.coach-row { display: grid; gap: 2rem; }
@media (min-width: 760px) { .coach-row { grid-template-columns: repeat(3, 1fr); } .coach-row > :nth-child(2) { margin-top: 5rem; } }
.coach { display: grid; gap: .9rem; }
.coach-photo { position: relative; overflow: hidden; border-radius: 160px 160px 26px 26px; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.coach:hover .coach-photo img { transform: scale(1.06); }
.coach h3 { font-size: 1.7rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }
.tag svg { width: 14px; height: 14px; color: var(--ok); }

/* ---------- 4.13 Counters ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--line-strong); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2rem 1rem 2rem 0; border-bottom: 2px solid var(--line-strong); display: grid; gap: .4rem; }
@media (min-width: 900px) { .stat + .stat { border-inline-start: 2px solid var(--line-strong); padding-inline-start: 1.5rem; } }
.stat .count { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1; color: var(--ink); }
.stat .count sup { font-size: .45em; color: var(--brand-text); top: -.9em; }
.stat .label { color: var(--ink-soft); font-weight: 600; }

/* ---------- 4.14 Testimonials (one big quote, bubble transition) ---------- */
.quote-stage { position: relative; display: grid; min-height: 22rem; }
.quote { grid-area: 1 / 1; display: grid; gap: 1.6rem; align-content: start; opacity: 0; visibility: hidden; }
.quote.is-active { opacity: 1; visibility: visible; }
.no-js .quote { position: static; opacity: 1; visibility: visible; grid-area: auto; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.15; }
.quote blockquote::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--sun); }
.quote figcaption { display: flex; align-items: center; gap: .8rem; font-weight: 700; }
.quote figcaption span { font-weight: 500; color: var(--ink-soft); }
.quote-bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.quote-bubbles i { position: absolute; border-radius: 50%; background: var(--aqua); opacity: .9; }
.quote-nav { display: flex; gap: .6rem; align-items: center; margin-top: 2rem; }
.quote-dots { display: flex; gap: .4rem; margin-inline-start: .6rem; }
.quote-dots button { width: 34px; height: 34px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.quote-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: transform .4s var(--ease-bounce), background .3s; }
.quote-dots button[aria-current="true"]::before { background: var(--aqua-ink); transform: scale(1.5); }

/* ---------- 4.15 Dashboard preview mockup ---------- */
html:not([data-theme="dark"]) .bg-deep .mock-dash { --ink: #0B2545; --ink-soft: #3B5874; --line: rgba(11,37,69,.12); --bg-alt: #E6F8FA; }
.mock-dash { position: relative; border-radius: 30px; background: var(--surface); color: var(--ink); border: 2px solid var(--line); box-shadow: var(--shadow); padding: 1.2rem; display: grid; gap: 1rem; }
.mock-top { display: flex; align-items: center; gap: .6rem; }
.mock-top i { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mock-card { border-radius: 20px; padding: 1rem; background: var(--bg-alt); display: grid; gap: .5rem; }
.mock-card.wide { grid-column: 1 / -1; }
.mock-card .t { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.mock-card .big { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.mock-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mock-bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: var(--aqua); transform-origin: left; }
.mock-badges { display: flex; gap: .5rem; }
.mock-badges span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--deep); font-weight: 800; }

/* ---------- 4.16 Big CTA with rising water ---------- */
.big-cta { position: relative; overflow: hidden; background: var(--deep); background-image: linear-gradient(rgba(5, 25, 48, .78), rgba(5, 25, 48, .84)), url("../images/CTA%20banner.png"); background-size: cover; background-position: center; color: #fff; text-align: center; border-radius: var(--radius-lg); padding: clamp(4rem, 9vw, 8rem) var(--gutter); isolation: isolate; }
.big-cta h2 { font-size: var(--fs-mega); line-height: .9; font-weight: 700; }
.big-cta p { color: #CFE6F2; margin: 1.4rem auto 2.2rem; max-width: 42ch; }
.rise-water { position: absolute; left: -5%; right: -5%; bottom: 0; height: 100%; z-index: -1; transform: translateY(78%); transition: transform 1.1s var(--ease-out); }
.rise-water svg { width: 100%; height: 60px; display: block; margin-bottom: -2px; }
.rise-water svg path { fill: var(--aqua-ink); }
.rise-water div { height: 100%; background: linear-gradient(var(--aqua-ink), #075C73); }
.big-cta:hover .rise-water, .big-cta:focus-within .rise-water { transform: translateY(35%); }
@media (max-width: 360px) {
  .big-cta > .btn { width: 100%; max-width: 100%; min-width: 0; padding-inline: .8rem; font-size: .9rem; white-space: normal; }
  .big-cta > .btn .btn-label { flex-wrap: wrap; justify-content: center; }
}

/* ---------- 4.17 FAQ accordion (native details) ---------- */
.faq { display: grid; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; transition: transform .5s var(--ease-bounce), background .3s, color .3s; }
.faq .plus::before, .faq .plus::after { content: ""; grid-area: 1 / 1; width: 16px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(180deg); background: var(--sun); color: var(--deep); border-color: var(--sun); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 0 1.5rem; max-width: 70ch; color: var(--ink-soft); }

/* ---------- 4.18 Footer ---------- */
.site-footer { position: relative; background: var(--deep); color: #DCEBF5; padding-top: 6rem; margin-top: 70px; }
.footer-water { position: absolute; left: 0; right: 0; top: -68px; height: 70px; pointer-events: none; }
.footer-water svg { width: 100%; height: 100%; }
.footer-water .fw-a { fill: var(--deep); }
.footer-water .fw-b { fill: var(--aqua); opacity: .35; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.4rem; color: #fff; margin-bottom: 1rem; }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer ul.social { display: flex; gap: .6rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-wordmark { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: clamp(3.2rem, 16vw, 19rem); line-height: .8; letter-spacing: -.03em; color: #fff; text-align: center; margin-top: 3rem; overflow: hidden; user-select: none; }
.footer-wordmark span { display: inline-block; }
.footer-wordmark .acc { color: var(--aqua); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }
.newsletter { display: grid; gap: .8rem; margin-top: 1.2rem; }
.newsletter .field input { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.newsletter .field input::placeholder { color: #9FBBD0; }
.newsletter .field label { color: #DCEBF5; }

/* Back to top float ring */
.to-top {
  position: fixed; z-index: 800; inset-inline-end: 1.2rem; bottom: 1.2rem; width: 58px; height: 58px; padding: 0; border: 0;
  border-radius: 50%; background: transparent; opacity: 0; visibility: hidden; transform: translateY(30px);
  transition: opacity .35s, transform .5s var(--ease-bounce), visibility 0s .35s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .5s var(--ease-bounce); }
.to-top svg { width: 100%; height: 100%; animation: bob 2.6s var(--ease-in-out) infinite; filter: drop-shadow(0 6px 10px rgba(11,37,69,.25)); }
.to-top.is-launching svg { animation: launch .8s var(--ease-in-out) forwards; }

/* ---------- 4.19 Forms ---------- */
.field { position: relative; display: grid; gap: .35rem; }
.field label, .field .label { font-weight: 700; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: .85rem 1rem; border-radius: 14px;
  border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2300798B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-inline-end: 2.6rem; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqua) 22%, transparent); }
/* Water-line underline that runs across on focus */
.field-line { position: relative; height: 6px; margin-top: -10px; margin-inline: 12px; overflow: hidden; pointer-events: none; }
.field-line::after { content: ""; position: absolute; inset: 0; background: var(--wave-mini) 0 50% / 28px 6px repeat-x; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.field:focus-within .field-line::after { transform: scaleX(1); animation: waveSlide 1.6s linear infinite; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: flex; align-items: center; gap: .4rem; color: var(--danger); font-size: .86rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.field-error.shake { animation: shake .45s var(--ease-out); }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; flex: none; }
.input-wrap { position: relative; }
.input-wrap .pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); min-height: 42px; border: 0; background: transparent; padding: 0 .8rem; font-weight: 700; color: var(--brand-text); border-radius: 10px; }
.input-wrap input { padding-inline-end: 4.6rem; }

/* Custom checkbox that fills with water */
.check { display: inline-flex; align-items: flex-start; gap: .7rem; cursor: pointer; font-weight: 600; line-height: 1.4; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { position: relative; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface); overflow: hidden; transition: border-color .3s; }
.check .box::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 130%; background: var(--aqua-ink); border-radius: 40% 45% 0 0; transform: translateY(100%); transition: transform .5s var(--ease-out); }
.check .box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease-bounce) .15s; }
.check input:checked + .box { border-color: var(--aqua-ink); }
.check input:checked + .box::before { transform: translateY(0); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: .8rem; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 62px; height: 34px; border-radius: 999px; background: var(--line-strong); transition: background .35s; }
.switch .track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .45s var(--ease-bounce); }
.switch input:checked + .track { background: var(--aqua-ink); }
.switch input:checked + .track::after { transform: translateX(28px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Chips (radio/checkbox styled) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span, button.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .95rem; transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease-bounce); }
.chip input:checked + span, button.chip[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip:hover span, button.chip:hover { transform: translateY(-2px); }

/* Password strength */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .3rem; }
.strength i { height: 6px; border-radius: 4px; background: var(--line); transition: background .3s, transform .4s var(--ease-bounce); transform-origin: left; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--aqua-ink); }
.strength[data-level="4"] i { background: var(--ok); }
.strength-label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- 4.20 Panels, modals ---------- */
.overlay-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(6, 22, 40, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.overlay-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.side-panel {
  position: fixed; z-index: 1110; top: 0; bottom: 0; inset-inline-end: 0; width: min(560px, 100%);
  background: var(--surface); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(105%); visibility: hidden; transition: transform .6s var(--ease-out), visibility 0s .6s;
  box-shadow: -30px 0 60px -30px rgba(11,37,69,.45);
}
.side-panel.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-out); }
.panel-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.panel-body { padding: 1.4rem; display: grid; gap: 1.4rem; }
.panel-body h3 { font-size: 1.3rem; }
.panel-hero { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.panel-hero img { width: 100%; height: 100%; object-fit: cover; }
.panel-close { flex: none; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
.kv div { padding: .8rem; border-radius: 14px; background: var(--bg-alt); }
.kv dt { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 700; }

.modal { position: fixed; z-index: 1120; inset: 0; display: grid; place-items: center; padding: 1rem; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-card {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--surface); color: var(--ink); border-radius: 30px; padding: 2rem; box-shadow: var(--shadow);
  text-align: center; display: grid; gap: 1rem; justify-items: center;
  transform: translateY(40px) scale(.94); opacity: 0; transition: transform .55s var(--ease-bounce), opacity .3s;
}
.modal.is-open .modal-card { transform: none; opacity: 1; }
.modal-card .mascot { width: 130px; animation: bob 2.6s var(--ease-in-out) infinite; }
.modal-close { position: absolute; top: .8rem; inset-inline-end: .8rem; }
.modal-video { width: min(960px, 100%); padding: 0; overflow: hidden; background: #000; }
.modal-video .video-frame { width: 100%; aspect-ratio: 16 / 9; position: relative; }
.modal-video .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.modal-video .video-frame p { position: absolute; inset: auto 0 0; padding: 1rem 1.4rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; text-align: start; }

/* ---------- 4.21 Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: 22px; border: 2px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.data-table th, .data-table td { padding: 1rem 1.1rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table thead th { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface-2); position: sticky; top: 0; }
.data-table tbody tr { transition: background .25s, transform .3s var(--ease-out); }
.data-table tbody tr:hover { background: var(--bg-alt); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .yes { color: var(--ok); font-weight: 700; }
.data-table .no { color: var(--muted); }

/* ---------- 4.22 Status pills (text + icon, never color alone) ---------- */
.status { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: 999px; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.status svg { width: 14px; height: 14px; }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-warn { background: var(--warn-soft); color: var(--warn); }
.status-muted { background: var(--muted-soft); color: var(--muted); }
.status-info { background: var(--aqua-mist); color: var(--aqua-ink); }

/* ---------- 4.23 Tabs ---------- */
.tabs { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-alt); border: 2px solid var(--line); }
.tab { position: relative; z-index: 1; min-height: 44px; padding: .5rem 1.2rem; border: 0; border-radius: 999px; background: transparent; font-weight: 700; transition: color .3s; }
.tab[aria-selected="true"] { color: #fff; }
.tab-indicator { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--deep); transition: transform .5s var(--ease-bounce), width .5s var(--ease-bounce); }
.no-js .tab[aria-selected="true"] { background: var(--deep); }

/* ---------- 4.24 Toasts ---------- */
.toast-stack { position: fixed; z-index: 1300; inset-inline-end: 1rem; bottom: 1rem; display: grid; gap: .6rem; width: min(380px, calc(100% - 2rem)); }
.toast { display: grid; grid-template-columns: 46px 1fr auto; gap: .8rem; align-items: center; padding: .8rem .9rem; border-radius: 20px; background: var(--deep); color: #fff; box-shadow: var(--shadow); animation: toastIn .6s var(--ease-bounce); }
.toast.is-leaving { animation: toastOut .4s var(--ease-in-out) forwards; }
.toast img { width: 46px; height: 46px; }
.toast strong { display: block; font-size: .98rem; }
.toast p { font-size: .88rem; color: #CFE6F2; }
.toast button { border: 0; background: transparent; color: #fff; width: 36px; height: 36px; border-radius: 50%; }
.toast.is-error { background: #5B1A14; }

/* ---------- 4.25 Generic content blocks ---------- */
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.pill-note { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: var(--bg-alt); font-weight: 700; font-size: .88rem; }
.page-hero { position: relative; overflow: hidden; padding-bottom: clamp(3rem, 7vw, 6rem); }
.page-hero .display-mega { margin-top: 1rem; }
.program-page-hero { display: grid; gap: 2rem; align-items: center; }
.program-page-copy { min-width: 0; }
.program-hero-visual { position: relative; width: min(100%, 460px); aspect-ratio: 1.08; margin: 0 auto; }
.program-hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 46% 46% 28px 28px / 38% 38% 28px 28px; box-shadow: var(--shadow); }
.program-hero-visual figcaption { position: absolute; inset-inline-start: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; align-items: center; gap: .55rem; width: max-content; max-width: calc(100% - 2rem); padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 700; font-size: .9rem; }
.program-hero-visual figcaption svg { color: var(--aqua-ink); }
@media (min-width: 900px) {
  .program-page-hero { grid-template-columns: minmax(0, 2fr) minmax(320px, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
  .program-hero-visual { width: 100%; }
}
.page-hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1000px) { .page-hero-grid { grid-template-columns: 1.3fr 1fr; } }
.instructors-page-hero .page-hero-grid { gap: clamp(3rem, 6vw, 5.5rem); align-items: center; }
.instructors-page-hero .mask-img { width: 100%; }
.mask-img { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.program-image-link { display: block; }
.mask-img img { width: 100%; height: 100%; object-fit: cover; }
.blob-img { border-radius: 58% 42% 50% 50% / 46% 50% 50% 54%; overflow: hidden; }
.split-cols { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .split-cols { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

/* Icon helper */
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico-lg { width: 64px; height: 64px; }
.line-icon { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 4.26 Home 2 (underwater) ---------- */
.uw-page { --depth: 0; background: var(--bg); }
.uw-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #F7FDFE 0%, #BDEFF4 30%, #1D7FA0 62%, #0B2545 100%); background-size: 100% 400%; background-position: 0 calc(var(--depth) * 100%); }
.uw-page .site-header.is-scrolled { background: color-mix(in srgb, var(--surface) 72%, transparent); }
.split-hero { display: grid; gap: 2.5rem; min-height: 100svh; align-items: center; }
@media (min-width: 1000px) { .split-hero { grid-template-columns: 1.15fr .85fr; } }
.vslider { position: relative; height: min(78vh, 720px); min-height: 440px; border-radius: 200px 200px 30px 30px; overflow: hidden; background: var(--deep); }
.vslide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-in-out); }
.vslide.is-active { opacity: 1; }
.vslide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 6s linear; }
.vslide.is-active img { transform: scale(1); }
.vslide figcaption { transition: opacity .4s; }
.vslide:not(.is-active) figcaption { opacity: 0; }
.vslide figcaption { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; padding: .8rem 1rem; border-radius: 16px; background: rgba(11,37,69,.72); color: #fff; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.no-js .vslide:first-child { opacity: 1; }
.vslider-progress { position: absolute; inset-inline: 1.2rem; top: 1.2rem; display: flex; gap: .4rem; z-index: 2; }
.vslider-progress i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); overflow: hidden; }
.vslider-progress i b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.vslider-progress i.done b { transform: scaleX(1); }
.vslider-progress i.run b { animation: fillBar var(--slide-time, 4.5s) linear forwards; }

.dive { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; color: #fff; }
.dive-surface { position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: 1; }
.dive-surface svg { width: 100%; height: 100%; }
.dive-inner { position: relative; z-index: 2; text-align: center; display: grid; gap: 1.4rem; justify-items: center; padding-block: 10rem 6rem; }
.dive-inner .display-xl { color: #fff; }
.dive-rays { position: absolute; inset: 0; background: repeating-linear-gradient(100deg, rgba(255,255,255,.07) 0 40px, transparent 40px 120px); mask-image: linear-gradient(transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 40%, transparent); }
.dive-bubbles { position: absolute; inset: 0; pointer-events: none; }
.dive-bubbles i { position: absolute; bottom: -20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.uw-dark { color: #fff; --ink: #fff; --ink-soft: #CFE6F2; --brand-text: #8BEAF2; --line: rgba(255,255,255,.18); --line-strong: rgba(255,255,255,.3); --surface: rgba(255,255,255,.08); }

.stack-cards { display: grid; gap: 1.4rem; }
.kick-card {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  display: grid; gap: 1.4rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 40px;
  background: var(--card-bg, #fff); color: var(--deep); min-height: 60vh; box-shadow: 0 -10px 40px -20px rgba(0,0,0,.4);
  transform-origin: 50% 0;
}
@media (min-width: 900px) { .kick-card { grid-template-columns: 1fr 1fr; align-items: center; } }
.kick-card:nth-child(1) { --card-bg: #FFFFFF; }
.kick-card:nth-child(2) { --card-bg: #DDF7FA; }
.kick-card:nth-child(3) { --card-bg: #FFF1C8; }
.kick-card:nth-child(4) { --card-bg: #CFEAFF; }
.kick-card h3 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.kick-card img { border-radius: 26px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kick-card .facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.kick-card .facts li { padding: .35rem .8rem; border-radius: 999px; background: rgba(11,37,69,.08); font-weight: 700; font-size: .88rem; }
.kick-card .btn-ghost { --btn-fg: var(--deep); border-color: rgba(11,37,69,.3); }

.coach-split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .coach-split { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.coach-names { list-style: none; }
.coach-names button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border: 0; border-bottom: 2px solid var(--line-strong); background: transparent; text-align: start; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.05; color: var(--ink); opacity: .5; transition: opacity .3s, padding .45s var(--ease-out); }
.coach-names button small { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.coach-names button[aria-selected="true"], .coach-names button:hover { opacity: 1; padding-inline-start: 1rem; }
.coach-photo-stage { position: relative; aspect-ratio: 4 / 5; border-radius: 40px; overflow: hidden; background: var(--deep-2); }
.coach-photo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease-in-out); }
.coach-photo-stage img.is-active { clip-path: inset(0 0 0 0); }
.no-js .coach-photo-stage img:first-child { clip-path: none; }

.video-grow { position: relative; display: grid; place-items: center; }
.video-box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 40px; overflow: hidden; background: var(--deep); transform-origin: 50% 50%; }
.video-box img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; left: 50%; top: 50%; width: clamp(90px, 12vw, 150px); height: clamp(90px, 12vw, 150px); margin: calc(clamp(90px, 12vw, 150px) / -2) 0 0 calc(clamp(90px, 12vw, 150px) / -2); border-radius: 50%; border: 0; background: var(--sun); color: var(--deep); display: grid; place-items: center; font-weight: 800; transition: transform .45s var(--ease-bounce); }
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 36%; height: 36%; }
.play-btn::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--sun); animation: ping 2s var(--ease-out) infinite; }

.pricing-grid { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { display: grid; gap: 1.2rem; align-content: start; padding: 2rem; border-radius: 32px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.plan.is-featured { background: var(--sun); color: var(--deep); border-color: var(--sun); --ink-soft: #4A3A10; }
.plan h3 { font-size: 1.8rem; }
.plan .price { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; display: flex; align-items: baseline; gap: .3rem; overflow: hidden; }
.plan .price small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.plan .price .amt { display: inline-block; }
.plan ul { list-style: none; display: grid; gap: .5rem; }
.plan li { display: flex; gap: .55rem; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: .15rem; }
.plan.is-featured li svg { color: var(--deep); }
.plan .btn-ghost { --btn-fg: currentColor; }

.timetable .day-col { width: clamp(240px, 26vw, 320px); flex: none; border-radius: 28px; padding: 1.4rem; background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink); display: grid; gap: .8rem; align-content: start; }
.day-col h3 { font-size: 2rem; display: flex; justify-content: space-between; align-items: baseline; }
.day-col h3 small { font-family: var(--font-body); font-size: .8rem; color: var(--ink-soft); }
.slot { display: grid; gap: .1rem; padding: .7rem .9rem; border-radius: 16px; background: var(--bg-alt); border-inline-start: 5px solid var(--aqua); }
.slot b { font-size: .95rem; }
.slot span { font-size: .85rem; color: var(--ink-soft); }
.uw-dark .slot { background: rgba(255,255,255,.08); }

.tslider { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tslider-track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 50s linear infinite; }
.tslider:hover .tslider-track { animation-play-state: paused; }
.tcard { width: min(420px, 80vw); flex: none; padding: 1.6rem; border-radius: 28px; background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink); display: grid; gap: 1rem; }
.tcard p { font-size: 1.08rem; }
.tcard .stars { color: var(--sun); letter-spacing: .1em; }
.tcard footer { font-weight: 700; }
.tcard footer span { display: block; font-weight: 500; color: var(--ink-soft); font-size: .9rem; }

/* ---------- 4.27 About ---------- */
.lane-timeline { position: relative; display: grid; gap: clamp(3rem, 7vw, 6rem); padding-block: 2rem; }
.lane-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 28px; width: 10px; background: var(--line); border-radius: 10px; }
.lane-timeline .lane-progress { position: absolute; top: 0; left: 28px; width: 10px; height: 100%; border-radius: 10px; background: linear-gradient(var(--aqua), var(--aqua-ink)); transform-origin: top; transform: scaleY(0); }
.no-js .lane-timeline .lane-progress, .reduced .lane-timeline .lane-progress { transform: scaleY(1); }
.lane-swimmer { position: absolute; left: 33px; top: 0; width: 56px; height: 56px; margin-left: -28px; z-index: 2; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--deep); box-shadow: var(--shadow-sm); }
.lane-swimmer svg { width: 32px; height: 32px; transform: rotate(90deg); }
.milestone { position: relative; padding-inline-start: 90px; display: grid; gap: .6rem; }
.milestone::before { content: ""; position: absolute; left: 21px; top: .4rem; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 5px solid var(--aqua-ink); }
.milestone .year { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .9; color: var(--brand-text); }
.milestone h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.milestone p { max-width: 56ch; color: var(--ink-soft); }
@media (min-width: 1000px) {
  .lane-timeline::before, .lane-timeline .lane-progress { left: 50%; margin-left: -5px; }
  .lane-swimmer { left: 50%; }
  .milestone { width: 50%; padding-inline-start: 4rem; margin-inline-start: 50%; }
  .milestone::before { left: -12px; }
  .milestone:nth-child(odd of .milestone) { margin-inline-start: 0; padding-inline-start: 0; padding-inline-end: 4rem; text-align: end; justify-items: end; }
  .milestone:nth-child(odd of .milestone)::before { left: auto; right: -12px; }
}

.promise-grid { display: grid; gap: 0; border-top: 2px solid var(--line-strong); }
@media (min-width: 700px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .promise-grid { grid-template-columns: repeat(3, 1fr); } }
.promise { padding: 2rem 1.6rem 2rem 0; border-bottom: 2px solid var(--line-strong); display: grid; gap: .8rem; align-content: start; }
.promise h3 { font-size: 1.5rem; }
.promise p { color: var(--ink-soft); }
.promise .p-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--aqua-mist); color: var(--aqua-ink); display: grid; place-items: center; }
.promise .p-ico svg { width: 34px; height: 34px; }
.instructors-trust .section-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.instructors-trust .section-head > div { display: grid; justify-items: center; }
.instructors-trust .section-head .lead { max-width: 48ch; }
.instructors-trust .promise { justify-items: center; padding-inline: 1.6rem; text-align: center; }
.instructors-trust .stats .stat { justify-items: center; padding-inline: 1rem; text-align: center; }
.safety-promise-section .section-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.safety-promise-section .section-head > div { display: grid; justify-items: center; }
.safety-promise-section .section-head .lead { max-width: 48ch; }
.safety-promise-section .promise { justify-items: center; padding-inline: 1.6rem; text-align: center; }
.promise:hover .p-ico svg { animation: wiggle .6s var(--ease-bounce); }

.method { display: grid; gap: 1rem; counter-reset: m; }
@media (min-width: 900px) { .method { grid-template-columns: repeat(4, 1fr); } }
.method-step { position: relative; padding: 1.6rem; border-radius: 30px; background: var(--surface); border: 2px solid var(--line); display: grid; gap: .8rem; align-content: start; min-height: 320px; overflow: hidden; }
.method-step .ill { width: 100%; height: 130px; }
.method-step h3 { font-size: 2rem; }
.method-step .arrow-next { position: absolute; top: 1.4rem; inset-inline-end: 1.4rem; color: var(--brand-text); }
.method-step:nth-child(2) { background: var(--aqua-mist); }
.method-step:nth-child(3) { background: #FFF6DC; }
.method-step:nth-child(4) { background: var(--deep); color: #fff; }

.gallery-card { flex: none; width: clamp(280px, 42vw, 620px); display: grid; gap: .8rem; }
.gallery-card .mask-img { aspect-ratio: 10 / 7; }
.gallery-card h3 { font-size: 1.6rem; }

.cert-strip { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; justify-content: center; }
.cert { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.3rem .9rem .9rem; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); font-weight: 700; }
.cert .seal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--sun); font-family: var(--font-display); font-size: .9rem; }

/* ---------- 4.28 Programs page ---------- */
.selector { display: grid; gap: 1.6rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 32px; background: var(--surface); border: 2px solid var(--line); }
.selector fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; }
.selector legend { font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem; }
.program-view { position: relative; overflow: hidden; border-radius: 32px; background: var(--deep); color: #fff; --ink: #fff; --ink-soft: #CFE6F2; --line: rgba(255,255,255,.18); --brand-text: #8BEAF2; }
.program-view-inner { display: grid; gap: 2rem; padding: clamp(1.4rem, 4vw, 3rem); }
@media (min-width: 1000px) { .program-view-inner { grid-template-columns: 1.2fr 1fr; } }
.program-view h3 { font-size: clamp(2.2rem, 5vw, 4rem); }
.program-view .kv div { background: rgba(255,255,255,.08); }
.program-view .kv dt { color: #9FC3D8; }
.program-view .pill-note { justify-self: start; background: rgba(255, 201, 60, .14); color: var(--sun); border: 1px solid rgba(255, 201, 60, .35); }
.program-view .skill-list { list-style: none; display: grid; gap: .45rem; }
.program-view .skill-list li { display: flex; gap: .55rem; }
.program-view .skill-list svg { width: 20px; height: 20px; color: var(--sun); flex: none; margin-top: .15rem; }
.ripple-wipe { position: absolute; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: var(--aqua); pointer-events: none; transform: translate(-50%, -50%) scale(0); }

.quiz { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(1.4rem, 4vw, 3rem); background: var(--sun); color: var(--deep); --ink: var(--deep); --ink-soft: #4A3A10; --line-strong: rgba(11,37,69,.3); --surface: #FFF7DF; }
.quiz-steps { position: relative; min-height: 150px; }
.quiz-q { display: grid; gap: 1.2rem; }
.quiz-q[hidden] { display: none; }
/* A legend ignores the fieldset's grid gap, so space it explicitly */
.quiz-q legend { margin-bottom: 1.4rem; padding: 0; }
.quiz-q h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.15; }
.quiz-progress { display: flex; gap: .4rem; margin-bottom: 2rem; }
.quiz-progress i { flex: 1; height: 8px; border-radius: 8px; background: rgba(11,37,69,.15); overflow: hidden; }
.quiz-progress i b { display: block; height: 100%; background: var(--deep); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.quiz-progress i.on b { transform: scaleX(1); }
.quiz-result { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 760px) { .quiz-result { grid-template-columns: 180px 1fr; } }
.quiz-result .mascot { width: 180px; }
.quiz-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; }

.roadmap .level-stop { flex: none; width: clamp(240px, 22vw, 290px); display: grid; gap: .8rem; position: relative; padding-top: 3.2rem; }
.roadmap .level-stop::before { content: ""; position: absolute; top: 1.1rem; left: 0; right: -2rem; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--sun) 0 14px, var(--aqua) 14px 28px); }
.roadmap .level-stop:last-child::before { right: 0; }
.roadmap .level-stop .dot { position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.roadmap .level-stop h3 { font-size: 1.6rem; }
.roadmap .level-stop .badge-medal { width: 110px; margin: 0; }
@media (max-width: 767px) { .roadmap .level-stop::before { display: none; } .roadmap .level-stop { width: auto; } }

.bring-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 900px) { .bring-grid { grid-template-columns: repeat(4, 1fr); } }
.bring { display: grid; gap: .6rem; justify-items: center; text-align: center; padding: 1.6rem 1rem; border-radius: 28px; background: var(--surface); border: 2px solid var(--line); }
.bring svg { width: 72px; height: 72px; color: var(--aqua-ink); transition: transform .5s var(--ease-bounce); }
.bring:hover svg { transform: translateY(-8px) rotate(-8deg); }
.bring h3 { font-size: 1.3rem; }
.bring p { font-size: .9rem; color: var(--ink-soft); }

.weekly-plan { list-style: none; display: grid; gap: .5rem; }
.weekly-plan li { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; padding: .7rem .9rem; border-radius: 14px; background: var(--bg-alt); }
.weekly-plan b { font-family: var(--font-display); color: var(--brand-text); }
.checklist { list-style: none; display: grid; gap: .5rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: .2rem; }

/* ---------- 4.29 Instructors page ---------- */
.coach-grid { display: grid; gap: 1.6rem; }
@media (min-width: 640px) { .coach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .coach-grid { grid-template-columns: repeat(3, 1fr); } }
.coach-card { position: relative; display: grid; gap: 1rem; padding: 0; border: 0; background: transparent; text-align: start; color: inherit; transition: transform .45s var(--ease-bounce); }
.coach-card:hover { transform: translateY(-8px); }
.coach-card .coach-photo { border-radius: 30px; aspect-ratio: 5 / 6; }
.coach-card .coach-photo::after { content: "View profile →"; position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .9rem; border-radius: 999px; background: var(--sun); color: var(--deep); font-weight: 800; font-size: .85rem; transform: translateY(160%); transition: transform .45s var(--ease-bounce); }
.coach-card:hover .coach-photo::after, .coach-card:focus-visible .coach-photo::after { transform: none; }
.coach-card h3 { font-size: 1.8rem; }
.coach-card .role { color: var(--ink-soft); font-weight: 600; }
.coach-card[hidden] { display: none; }
.coach-open { all: unset; cursor: pointer; }
.coach-open::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 30px; }
.coach-card:focus-within { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 30px; }
.coach-open:focus-visible { outline: none; }
.statement em { font-style: normal; }
.coach-card .meta-line { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; color: var(--ink-soft); }
.coach-card .meta-line b { color: var(--ink); }

.profile-header-actions { display: flex; align-items: center; gap: .55rem; }
.profile-back-link { margin-bottom: 1.5rem; font-weight: 700; text-decoration: none; }
.profile-login-link { text-decoration: none; }
.instructor-profile-page { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 6rem; }
.instructor-profile-hero { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 850px) { .instructor-profile-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); } }
.instructor-profile-photo { position: relative; overflow: hidden; margin: 0; border-radius: 34px; aspect-ratio: 5 / 6; background: var(--aqua-soft); box-shadow: var(--shadow); }
.instructor-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.instructor-profile-photo-note { position: absolute; inset-inline: 1rem; bottom: 1rem; display: grid; gap: .2rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; background: rgba(6, 21, 40, .78); color: #fff; backdrop-filter: blur(12px); }
.instructor-profile-photo-note span { color: #6FE3EE; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.instructor-profile-photo-note strong { font-size: .95rem; }
.instructor-profile-intro { display: grid; justify-items: start; gap: 1.2rem; }
.instructor-profile-intro h1 { max-width: 12ch; }
.instructor-profile-role { color: var(--brand-text); font-weight: 700; font-size: 1.2rem; }
.instructor-profile-bio { max-width: 58ch; color: var(--ink-soft); font-size: 1.1rem; }
.instructor-profile-facts { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-block: .5rem; }
.instructor-profile-facts > div { display: grid; align-content: start; gap: .25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.instructor-profile-facts strong { font-family: var(--font-display); font-size: clamp(1rem, 2.3vw, 1.45rem); line-height: 1.1; }
.instructor-profile-facts span { color: var(--ink-soft); font-size: .82rem; }
.instructor-profile-details { display: grid; gap: 1rem; margin-top: clamp(3rem, 8vw, 6rem); }
@media (min-width: 700px) { .instructor-profile-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.instructor-detail-card { display: grid; align-content: start; gap: .8rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.instructor-detail-card h2 { font-size: 1.55rem; }
.instructor-detail-card .tags { margin-top: .25rem; }
.instructor-detail-card .checklist { display: grid; gap: .65rem; }
.instructor-days { display: flex; flex-wrap: wrap; gap: .5rem; }
.instructor-profile-error { min-height: 50vh; align-content: center; justify-items: start; gap: 1.2rem; }
.instructor-experience { display: grid; gap: 2rem; margin-top: clamp(4rem, 9vw, 8rem); padding: clamp(1.5rem, 5vw, 4rem); border-radius: 34px; background: var(--deep); color: #fff; }
@media (min-width: 1000px) { .instructor-experience { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 4rem; } }
.instructor-experience-copy { display: grid; justify-items: start; gap: 1rem; }
.instructor-experience-copy h2 { max-width: 13ch; color: #fff; }
.instructor-experience-copy > p:not(.eyebrow) { max-width: 55ch; color: #CFE6F2; }
.instructor-promise-grid { display: grid; gap: .8rem; }
@media (min-width: 600px) { .instructor-promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.instructor-promise-grid article { display: grid; align-content: start; gap: .7rem; padding: 1.2rem; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.06); }
.instructor-promise-grid h3 { font-size: 1.2rem; color: #fff; }
.instructor-promise-grid p { color: #CFE6F2; font-size: .94rem; }
.promise-number { color: var(--sun); font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.instructor-profile-footer { margin-top: 0; padding-top: 6rem; }
.instructor-profile-footer .footer-bottom { border-top: 0; }
@media (max-width: 639px) {
  .instructor-profile-page { padding-top: calc(var(--header-h) + 1.25rem); }
  .profile-back-link { margin-bottom: 1.25rem; }
  .instructor-profile-photo { border-radius: 26px; }
  .instructor-profile-facts > div { padding: .7rem; }
  .instructor-profile-facts span { font-size: .72rem; }
}

.program-detail-page { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 6rem; }
.program-detail-back { margin-bottom: 1.5rem; }
.program-detail-hero { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 850px) { .program-detail-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.program-detail-image { position: relative; overflow: hidden; margin: 0; aspect-ratio: 5 / 4; border-radius: 34px; background: var(--aqua-soft); box-shadow: var(--shadow); }
.program-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.program-detail-image-note { position: absolute; inset-inline: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .55rem; width: fit-content; max-width: calc(100% - 2rem); padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(6, 21, 40, .8); color: #fff; backdrop-filter: blur(12px); font-size: .88rem; font-weight: 700; }
.program-detail-image-note svg { width: 1.1rem; height: 1.1rem; color: #6FE3EE; }
.program-detail-intro { display: grid; justify-items: start; gap: 1.2rem; }
.program-detail-heading { display: flex; align-items: center; gap: 1rem; }
.program-detail-heading > svg { width: 64px; height: 70px; flex: none; }
.program-detail-heading h1 { max-width: 16ch; }
.program-detail-level { margin-top: .35rem; color: var(--brand-text); font-weight: 700; }
.program-detail-summary { max-width: 58ch; color: var(--ink-soft); font-size: 1.08rem; }
.program-detail-facts { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.program-detail-facts > div { display: grid; align-content: start; gap: .3rem; min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.program-detail-facts dt { color: var(--ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.program-detail-facts dd { margin: 0; font-weight: 700; }
.program-detail-sections { display: grid; gap: 1rem; margin-top: clamp(3rem, 8vw, 6rem); }
@media (min-width: 800px) { .program-detail-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.program-detail-card { display: grid; align-content: start; gap: .85rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.program-detail-card h2, .program-detail-badge h2 { font-size: 1.55rem; }
.program-detail-card .checklist { display: grid; gap: .7rem; }
.program-weekly-plan { display: grid; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.program-weekly-plan li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .7rem; align-items: start; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.program-week-number { color: var(--brand-text); font-weight: 800; }
.program-detail-badge { display: flex; align-items: center; gap: 1.2rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 26px; background: var(--bg-alt); }
.program-detail-badge > svg { width: 64px; height: 70px; flex: none; }
.program-detail-badge > div { display: grid; gap: .4rem; }
.program-detail-badge p:last-child { color: var(--ink-soft); }
.program-detail-promise { display: grid; gap: .8rem; margin-top: clamp(3rem, 8vw, 6rem); }
@media (min-width: 700px) { .program-detail-promise { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.program-detail-promise article { display: grid; align-content: start; gap: .65rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.program-detail-promise article > span { color: var(--aqua-ink); font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; }
.program-detail-promise h2 { font-size: 1.2rem; }
.program-detail-promise p { color: var(--ink-soft); font-size: .94rem; }
.program-detail-error { min-height: 50vh; align-content: center; justify-items: start; gap: 1.2rem; }
.program-detail-footer { margin-top: 0; padding-top: 6rem; }
.program-detail-footer .footer-bottom { border-top: 0; }
@media (max-width: 639px) {
  .program-detail-page { padding-top: calc(var(--header-h) + 1.25rem); }
  .program-detail-back { margin-bottom: 1.25rem; }
  .program-detail-image { border-radius: 26px; }
  .program-detail-heading { align-items: flex-start; gap: .65rem; }
  .program-detail-heading > svg, .program-detail-badge > svg { width: 48px; height: 54px; }
  .program-detail-facts > div { padding: .7rem; }
  .program-detail-badge { align-items: flex-start; }
}

.ratio { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .ratio { grid-template-columns: repeat(4, 1fr); } }
.ratio-item { padding: 1.6rem; border-radius: 28px; background: var(--surface); border: 2px solid var(--line); display: grid; gap: .8rem; }
.ratio-item h3 { font-size: 1.3rem; }
.ratio-kids { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-height: 44px; }
.ratio-kids i { width: 30px; height: 30px; border-radius: 50%; background: var(--aqua); position: relative; }
.ratio-kids i.coach { background: var(--deep); width: 38px; height: 38px; }
.ratio-kids i::after { content: ""; position: absolute; left: 25%; top: 30%; width: 50%; height: 22%; border-radius: 0 0 8px 8px; border-bottom: 3px solid #fff; }
.ratio-item .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }

/* ---------- 4.30 Auth (login / register) ---------- */
.auth { min-height: 100svh; display: grid; }
@media (min-width: 1000px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-scene { position: relative; overflow: hidden; background: linear-gradient(#E6F8FA 0 48%, transparent 48%), var(--deep); color: #fff; display: grid; align-content: space-between; padding: 1.4rem var(--gutter) 2rem; min-height: 360px; }
.auth-scene .tile-grid { position: absolute; inset: 0 0 52% 0; }
.auth-scene .logo { position: relative; z-index: 3; color: var(--deep); }
.auth-water { position: absolute; left: 0; right: 0; top: 40%; height: 18%; z-index: 1; }
.auth-water svg { width: 100%; height: 100%; }
.auth-mascot { position: absolute; z-index: 2; width: clamp(140px, 22vw, 240px); left: 50%; top: 22%; margin-left: calc(clamp(140px, 22vw, 240px) / -2); animation: floaty 4s var(--ease-in-out) infinite; }
.auth-copy { position: relative; z-index: 3; display: grid; gap: 1rem; max-width: 34rem; }
.auth-copy ul { list-style: none; display: grid; gap: .5rem; color: #CFE6F2; }
.auth-copy li { display: flex; gap: .55rem; }
.auth-copy li svg { width: 20px; height: 20px; color: var(--sun); flex: none; margin-top: .2rem; }
@media (max-width: 999px) {
  .auth-scene { min-height: 0; padding-bottom: 1.8rem; background: linear-gradient(#E6F8FA 0 132px, transparent 132px), var(--deep); }
  .auth-scene .tile-grid { inset: 0 0 auto 0; height: 132px; }
  .auth-water { top: 104px; height: 56px; }
  .auth-mascot { width: 92px; left: auto; right: var(--gutter); top: 58px; margin: 0; }
  .auth-copy { margin-top: 118px; }
  .auth-copy ul { display: none; }
}
.auth-form-wrap { display: grid; align-items: center; padding: clamp(2rem, 5vw, 4rem) var(--gutter); }
.auth-form { width: min(100%, 480px); margin-inline: auto; display: grid; gap: 1.2rem; }
.auth-form h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: center; color: var(--ink-soft); font-size: .85rem; font-weight: 700; }
.auth-divider::before, .auth-divider::after { content: ""; height: 2px; background: var(--line); }
.auth-tools { display: flex; gap: .5rem; justify-content: flex-end; }
.splash-success { position: fixed; inset: 0; z-index: 1400; pointer-events: none; display: grid; place-items: center; }
.splash-success i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--aqua); }

.steps-lane { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; position: relative; }
.steps-lane li { display: grid; gap: .4rem; justify-items: center; text-align: center; font-weight: 700; font-size: .82rem; color: var(--ink-soft); position: relative; }
.steps-lane li::before { content: ""; position: absolute; top: 21px; left: 50%; right: -50%; height: 4px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); z-index: 0; }
.steps-lane li:last-child::before { display: none; }
.steps-lane li.is-done::before { background: repeating-linear-gradient(90deg, var(--sun) 0 8px, var(--aqua) 8px 16px); }
.steps-lane .marker { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--line-strong); background: var(--surface); font-family: var(--font-display); font-size: 1.1rem; transition: background .4s, border-color .4s, transform .5s var(--ease-bounce); }
.steps-lane li.is-current { color: var(--ink); }
.steps-lane li.is-current .marker { border-color: var(--aqua-ink); transform: scale(1.12); }
.steps-lane li.is-done .marker { background: var(--aqua-ink); border-color: var(--aqua-ink); color: #fff; }
.form-step[hidden] { display: none; }
.form-step { display: grid; gap: 1rem; }
.child-block { display: grid; gap: 1rem; padding: 1.2rem; border-radius: 22px; border: 2px dashed var(--line-strong); }
.child-block h3 { font-size: 1.3rem; display: flex; justify-content: space-between; align-items: center; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- 4.31 404 and Coming soon ---------- */
.lost { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 7rem var(--gutter) 12rem; }
.lost-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 30vw, 22rem); line-height: .85; color: var(--deep); display: flex; justify-content: center; }
.lost-num span { display: inline-block; animation: bobTilt 3.2s var(--ease-in-out) infinite; }
.lost-num span:nth-child(2) { animation-delay: -.8s; color: var(--aqua-ink); }
.lost-num span:nth-child(3) { animation-delay: -1.6s; }
.lost .mascot { width: clamp(120px, 18vw, 190px); margin: 0 auto; animation: floaty 4s var(--ease-in-out) infinite; }
.lost .water-surface { height: 34vh; }
.lost-inner { position: relative; z-index: 2; display: grid; gap: 1.2rem; justify-items: center; }

.soon { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 2rem var(--gutter); }
.soon-water { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: 0; transform: translateY(70%); animation: riseUp 3s var(--ease-out) forwards; }
.soon-water svg { width: 100%; height: 70px; margin-bottom: -2px; }
.soon-water svg path { fill: var(--aqua); opacity: .35; }
.soon-water div { height: 100%; background: linear-gradient(color-mix(in srgb, var(--aqua) 35%, transparent), color-mix(in srgb, var(--aqua-ink) 50%, transparent)); }
.soon-inner { position: relative; z-index: 2; width: min(760px, 100%); display: grid; gap: 1.4rem; justify-items: center; text-align: center; padding-top: calc(46px + 1.4rem); }
.soon-header { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1320px, calc(100vw - 2 * var(--gutter))); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.soon-actions { display: flex; align-items: center; gap: .6rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; width: 100%; max-width: 560px; }
.countdown div { padding: 1rem .4rem; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); display: grid; }
.countdown b { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; }
.countdown span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.notify { display: flex; gap: .6rem; width: 100%; max-width: 520px; flex-wrap: wrap; }
.notify .field { flex: 1 1 240px; text-align: start; }

/* ==========================================================================
   5. DASHBOARD
   ========================================================================== */
.dash { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
@media (min-width: 1100px) { .dash { grid-template-columns: 280px 1fr; } }
.dash-sidebar {
  position: fixed; z-index: 1010; top: 0; bottom: 0; inset-inline-start: 0; width: min(300px, 86vw);
  background: var(--deep); color: #DCEBF5; padding: 1.2rem; display: flex; flex-direction: column; gap: 1.4rem;
  transform: translateX(-105%); visibility: hidden; transition: transform .55s var(--ease-out), visibility 0s .55s; overflow-y: auto;
}
.dash-sidebar.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-out); }
@media (min-width: 1100px) { .dash-sidebar { position: sticky; height: 100vh; transform: none; visibility: visible; width: auto; } .dash-sidebar .drawer-close { display: none; } }
.dash-sidebar .logo { color: #fff; }
.dash-sidebar .logo-word span { color: var(--aqua); }
.dash-nav { list-style: none; display: grid; gap: .3rem; position: relative; }
.dash-nav a, .dash-nav button { position: relative; z-index: 1; display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 50px; padding: .6rem .9rem; border-radius: 16px; border: 0; background: transparent; color: #DCEBF5; text-decoration: none; font-weight: 600; text-align: start; transition: color .3s, background .3s; }
.dash-nav a:hover, .dash-nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.dash-nav a[aria-current="page"] { color: var(--deep); background: var(--aqua); }
.dash-nav svg { width: 22px; height: 22px; flex: none; }
.dash-nav .count { margin-inline-start: auto; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--deep); font-size: .78rem; font-weight: 800; display: grid; place-items: center; }
.dash-help { margin-top: auto; padding: 1.2rem; border-radius: 22px; background: rgba(255,255,255,.07); display: grid; gap: .6rem; }
.dash-help img { width: 70px; }
.dash-help p { font-size: .9rem; }
.dash-scrim { position: fixed; inset: 0; z-index: 1005; background: rgba(6,22,40,.5); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.dash-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
@media (min-width: 1100px) { .dash-scrim { display: none; } }

.dash-main { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.dash-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .8rem clamp(1rem, 3vw, 2rem); background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dash-top .drawer-btn { display: inline-grid; }
@media (min-width: 1100px) { .dash-top .drawer-btn { display: none; } }
.dash-hello { display: grid; line-height: 1.2; margin-inline-end: auto; }
.dash-hello b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.dash-hello span { font-size: .82rem; color: var(--ink-soft); }
.dash-date { display: none; font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
@media (min-width: 760px) { .dash-date { display: block; } }

.child-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-alt); border: 2px solid var(--line); position: relative; }
.child-switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .3rem .9rem .3rem .35rem; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: .9rem; transition: color .3s; }
.child-switch button[aria-pressed="true"] { color: #fff; }
.child-switch .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--c, var(--aqua)); color: var(--deep); }
.child-switch .pill-bg { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--deep); transition: transform .55s var(--ease-bounce), width .55s var(--ease-bounce); }
.no-js .child-switch button[aria-pressed="true"] { background: var(--deep); }
@media (max-width: 520px) { .child-switch button .nm { display: none; } .child-switch button { padding: .3rem; } }

.notif { position: relative; }
.notif .dot-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sun); color: var(--deep); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.notif-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; width: min(360px, 88vw); padding: .6rem; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.96); transform-origin: top right; transition: opacity .25s, transform .4s var(--ease-bounce), visibility 0s .25s; }
.notif-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .4s var(--ease-bounce); }
.notif-menu h2 { font-size: 1.1rem; padding: .5rem .6rem; }
.notif-list { list-style: none; display: grid; gap: .2rem; }
.notif-list li { display: grid; grid-template-columns: 36px 1fr; gap: .7rem; padding: .7rem .6rem; border-radius: 14px; font-size: .9rem; }
.notif-list li:hover { background: var(--bg-alt); }
.notif-list .n-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--aqua-mist); color: var(--aqua-ink); }
.notif-list .n-ico svg { width: 18px; height: 18px; }
.notif-list time { display: block; font-size: .78rem; color: var(--ink-soft); }
.notif-list .unread b::after { content: " •"; color: var(--aqua-ink); }

.dash-content { padding: clamp(1rem, 3vw, 2rem); display: grid; gap: 1.4rem; align-content: start; min-width: 0; }
.dash-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.dash-title h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.dash-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.span-2 { grid-column: span 1; }
.span-full { grid-column: 1 / -1; }
@media (min-width: 760px) { .span-2 { grid-column: span 2; } }
.dash-card { position: relative; overflow: hidden; border-radius: 28px; padding: 1.4rem; background: var(--surface); border: 2px solid var(--line); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.dash-card > h2, .dash-card .card-h { font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.dash-card .card-h a { font-family: var(--font-body); font-size: .88rem; font-weight: 700; color: var(--brand-text); }
.dash-card.is-deep { background: var(--deep); color: #fff; border-color: var(--deep); --ink-soft: #CFE6F2; --brand-text: #8BEAF2; --line: rgba(255,255,255,.18); }
.dash-card.is-sun { background: var(--sun); color: var(--deep); border-color: var(--sun); --ink-soft: #4A3A10; }

.welcome { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 640px) { .welcome { grid-template-columns: auto 1fr auto; } }
.child-avatar { width: 88px; height: 88px; border-radius: 30px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; background: var(--c, var(--aqua)); color: var(--deep); }
.welcome h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.level-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 700; font-size: .88rem; }

/* Water-fill progress ring */
.pring { position: relative; width: 150px; aspect-ratio: 1; flex: none; }
.pring svg { width: 100%; height: 100%; }
.pring .ring-bg { fill: var(--bg-alt); stroke: var(--line); stroke-width: 3; }
.pring .ring-water { fill: var(--aqua); }
.pring .ring-arc { fill: none; stroke: var(--aqua-ink); stroke-width: 7; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.2s var(--ease-out); }
.pring .ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.pring .ring-label b { font-family: var(--font-display); font-size: 2rem; }
.pring .ring-label span { font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.is-deep .pring .ring-bg { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.2); }

.countdown-mini { display: flex; gap: .5rem; }
.countdown-mini div { flex: 1; padding: .6rem .3rem; border-radius: 14px; background: rgba(255,255,255,.1); text-align: center; display: grid; }
.countdown-mini b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.countdown-mini span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.info-list { list-style: none; display: grid; gap: .5rem; }
.info-list li { display: flex; gap: .6rem; align-items: center; font-size: .95rem; }
.info-list svg { width: 18px; height: 18px; color: var(--brand-text); flex: none; }

.mini-badges { display: flex; gap: .8rem; flex-wrap: wrap; }
.mini-badge { display: grid; justify-items: center; gap: .3rem; width: 84px; text-align: center; font-size: .78rem; font-weight: 700; }
.mini-badge svg { width: 64px; height: 64px; }
.next-badge { display: flex; gap: .8rem; align-items: center; padding: .8rem; border-radius: 18px; border: 2px dashed var(--line-strong); }
.next-badge svg { width: 50px; height: 50px; filter: grayscale(1); opacity: .6; flex: none; }

.bar { height: 14px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--aqua-ink), var(--aqua)); transition: width 1.1s var(--ease-out); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; background: var(--wave-mini) 0 50% / 24px 8px repeat-x; opacity: .5; animation: waveSlide 2s linear infinite; filter: brightness(3); }
.bar-row { display: grid; gap: .35rem; }
.bar-row .top { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; }

.note-card blockquote { margin: 0; font-size: 1.05rem; }
.note-by { display: flex; gap: .7rem; align-items: center; font-weight: 700; font-size: .9rem; }
.note-by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quick-actions { display: grid; gap: .6rem; }
.quick-actions a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-radius: 18px; background: rgba(11,37,69,.08); text-decoration: none; font-weight: 700; transition: transform .35s var(--ease-bounce), background .3s; }
.quick-actions a:hover { transform: translateX(6px); background: rgba(11,37,69,.14); }

/* Enrollment */
.enroll-steps { list-style: none; display: flex; gap: .4rem; flex-wrap: wrap; }
.enroll-steps li { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: var(--bg-alt); font-weight: 700; font-size: .88rem; color: var(--ink-soft); transition: background .3s, color .3s; }
.enroll-steps li i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-style: normal; border: 2px solid var(--line-strong); }
.enroll-steps li.is-current { background: var(--deep); color: #fff; }
.enroll-steps li.is-current i { background: var(--sun); border-color: var(--sun); color: var(--deep); }
.enroll-steps li.is-done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.enroll-panel[hidden] { display: none; }
.prog-pick { display: grid; gap: .8rem; }
@media (min-width: 760px) { .prog-pick { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1300px) { .prog-pick { grid-template-columns: repeat(3, 1fr); } }
.pick-card { position: relative; display: grid; gap: .5rem; padding: 1.2rem; border-radius: 22px; border: 2px solid var(--line); background: var(--surface); text-align: start; transition: border-color .3s, transform .4s var(--ease-bounce), box-shadow .3s; }
.pick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.pick-card[aria-pressed="true"] { border-color: var(--aqua-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqua) 25%, transparent); }
.pick-card.is-reco { border-color: var(--sun); }
.pick-card .reco { position: absolute; top: -12px; inset-inline-end: 14px; padding: .2rem .7rem; border-radius: 999px; background: var(--sun); color: var(--deep); font-size: .74rem; font-weight: 800; }
.pick-card h3 { font-size: 1.35rem; }
.pick-card .sub { font-size: .88rem; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.filters .field { min-width: 160px; flex: 1 1 160px; }
.seats { display: grid; gap: .25rem; min-width: 120px; }
.seats .bar { height: 10px; }
.seats span { font-size: .8rem; font-weight: 700; }
.review { display: grid; gap: .6rem; }
.review div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--bg-alt); }
.review dt { color: var(--ink-soft); font-weight: 600; }
.review dd { margin: 0; font-weight: 700; text-align: end; }
.empty { display: grid; justify-items: center; gap: .8rem; text-align: center; padding: 2rem 1rem; }
.empty img { width: 110px; animation: floaty 4s var(--ease-in-out) infinite; }

/* Skills & badges */
.lane-journey { position: relative; padding: 3.4rem 0 1rem; }
.lane-journey .lane-line { position: absolute; left: 22px; right: 22px; top: 1.6rem; height: 8px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--sun) 0 12px, #fff 12px 24px, var(--aqua) 24px 36px, #fff 36px 48px); box-shadow: inset 0 0 0 1px var(--line); }
.lane-levels { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; position: relative; }
.lane-levels li { display: grid; justify-items: center; text-align: center; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.lane-levels .lv { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--line-strong); font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-top: -2.4rem; position: relative; z-index: 1; }
.lane-levels li.is-done .lv { background: var(--aqua-ink); border-color: var(--aqua-ink); color: #fff; }
.lane-levels li.is-current .lv { background: var(--sun); border-color: var(--sun); color: var(--deep); }
.lane-levels li.is-current { color: var(--ink); }
.lane-marker { position: absolute; top: -.2rem; left: 0; width: 44px; height: 30px; margin-left: -22px; color: var(--deep); z-index: 2; }
@media (max-width: 560px) { .lane-levels .nm { display: none; } }

.skill-list { list-style: none; display: grid; gap: .5rem; }
.skill-item { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; background: var(--bg-alt); }
.skill-item .area { display: block; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.badge-tile { aspect-ratio: 4 / 5; perspective: 900px; border: 0; padding: 0; background: transparent; }
.badge-tile .badge-inner { border-radius: 22px; }
.badge-tile .badge-face { padding: 1rem; text-align: center; justify-items: center; align-content: center; gap: .5rem; }
.badge-tile .badge-face svg { width: 74%; }
.badge-tile .badge-face b { font-size: .95rem; }
.badge-tile .badge-face small { font-size: .8rem; }
.badge-tile.is-locked .badge-face.front svg { filter: grayscale(1); opacity: .45; }
.badge-tile.is-locked .badge-face.front { background: var(--muted-soft); }
.badge-tile:hover .badge-inner, .badge-tile:focus-visible .badge-inner, .badge-tile.is-flipped .badge-inner { transform: rotateY(180deg); }
.feedback-tl { list-style: none; display: grid; gap: 1rem; position: relative; padding-inline-start: 1.6rem; }
.feedback-tl::before { content: ""; position: absolute; left: 6px; top: .5rem; bottom: .5rem; width: 3px; background: repeating-linear-gradient(var(--aqua) 0 8px, transparent 8px 14px); }
.feedback-tl li { position: relative; display: grid; gap: .25rem; }
.feedback-tl li::before { content: ""; position: absolute; left: calc(-1.6rem + 1px); top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--aqua-ink); }
.feedback-tl time { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 4 6; }
.chart .axis text { fill: var(--ink-soft); font-size: 12px; font-family: var(--font-body); }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: var(--aqua-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { fill: var(--surface); stroke: var(--aqua-ink); stroke-width: 3; }
.chart .pt-label { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--font-body); }
.confetti-layer { position: fixed; inset: 0; z-index: 1350; pointer-events: none; overflow: hidden; }
.confetti-layer i { position: absolute; display: block; }

/* Schedule */
.sched-toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.sched-legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .88rem; font-weight: 700; }
.sched-legend span { display: inline-flex; gap: .4rem; align-items: center; }
.sched-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.cal-wrap { position: relative; overflow: hidden; }
.cal-view[hidden] { display: none; }
.week-grid { display: grid; grid-template-columns: 60px repeat(7, minmax(120px, 1fr)); min-width: 920px; position: relative; }
.week-grid .wh { position: sticky; top: 0; z-index: 3; padding: .7rem .4rem; text-align: center; font-weight: 700; font-size: .85rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.week-grid .wh.is-today { color: var(--aqua-ink); }
.week-grid .wh.is-today b { background: var(--aqua-ink); color: #fff; border-radius: 999px; padding: .1rem .5rem; }
.week-grid .hour { height: 64px; font-size: .75rem; color: var(--ink-soft); padding: .2rem .3rem; border-bottom: 1px dashed var(--line); text-align: end; }
.week-col { position: relative; border-inline-start: 1px solid var(--line); }
.week-col.is-today { background: color-mix(in srgb, var(--aqua) 7%, transparent); }
.week-col .cell { height: 64px; border-bottom: 1px dashed var(--line); }
.cls { position: absolute; left: 4px; right: 4px; z-index: 2; padding: .4rem .55rem; border-radius: 12px; border: 0; text-align: start; font-size: .78rem; line-height: 1.25; background: var(--c); color: var(--deep); box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); overflow: hidden; transition: transform .3s var(--ease-bounce), box-shadow .3s; }
.cls:hover { transform: scale(1.03); box-shadow: var(--shadow-sm); z-index: 4; }
.cls b { display: block; font-size: .82rem; }
.now-line { position: absolute; left: 0; right: 0; z-index: 3; height: 0; border-top: 2px solid var(--danger); pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -6px; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month-grid .mh { text-align: center; font-weight: 700; font-size: .8rem; color: var(--ink-soft); padding: .4rem 0; }
.mday { min-height: 96px; padding: .4rem; border-radius: 14px; background: var(--bg-alt); display: grid; align-content: start; gap: .25rem; font-size: .8rem; min-width: 0; }
.mday.is-out { opacity: .4; }
.mday.is-today { outline: 3px solid var(--aqua-ink); outline-offset: -3px; background: var(--surface); }
.mday .dnum { font-weight: 800; }
.mday .mcls { display: block; width: 100%; border: 0; text-align: start; padding: .2rem .35rem; border-radius: 8px; background: var(--c); color: var(--deep); font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .mday { min-height: 64px; padding: .25rem; } .mday .mcls { font-size: 0; height: 8px; padding: 0; } }
.upcoming { list-style: none; display: grid; gap: .6rem; }
.upcoming li { display: grid; grid-template-columns: 60px 1fr auto; gap: .8rem; align-items: center; padding: .7rem; border-radius: 16px; background: var(--bg-alt); }
.upcoming .when { text-align: center; padding: .4rem; border-radius: 12px; background: var(--c); color: var(--deep); line-height: 1.1; font-weight: 800; }
.upcoming .when small { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; }

/* ==========================================================================
   6. ANIMATIONS (keyframes, reveal states, water, bubbles, cursor,
      preloader, page transition, marquee)
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bobTilt { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes blob {
  0% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  50% { border-radius: 56% 44% 58% 42% / 44% 56% 44% 56%; }
  100% { border-radius: 42% 58% 48% 52% / 58% 46% 54% 42%; }
}
@keyframes rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate3d(14px, -55vh, 0); } 100% { transform: translate3d(-10px, -115vh, 0); opacity: 0; } }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(26); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,142,82,.5); } 100% { box-shadow: 0 0 0 12px rgba(30,142,82,0); } }
@keyframes hotspot { 0% { box-shadow: 0 0 0 0 rgba(255,201,60,.7); } 100% { box-shadow: 0 0 0 18px rgba(255,201,60,0); } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes waveSlide { to { background-position-x: 28px; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes toastIn { from { transform: translateY(30px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(40px); opacity: 0; } }
@keyframes launch { 0% { transform: translateY(0); } 30% { transform: translateY(8px) scale(.95); } 100% { transform: translateY(-120vh) rotate(20deg); } }
@keyframes fillBar { to { transform: scaleX(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(10deg); } }
@keyframes riseUp { to { transform: translateY(42%); } }
@keyframes wavePan { to { transform: translateX(-50%); } }
@keyframes revealIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Fallback reveal (IntersectionObserver mode, used when GSAP is unavailable) */
.io-mode [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), clip-path 1s var(--ease-out); }
.io-mode [data-reveal="mask"] { transform: none; clip-path: inset(100% 0 0 0); opacity: 1; }
.io-mode [data-reveal="pop"] { transform: scale(.85); transition-timing-function: var(--ease-bounce); }
.io-mode [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* Split text pieces */
.split-word { display: inline-block; white-space: nowrap; }
.split-char, .split-w { display: inline-block; will-change: transform; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

/* Looping CSS water (decorative) */
.wave-loop { animation: wavePan 9s linear infinite; }
.wave-loop.slow { animation-duration: 16s; }

/* Preloader (built by script.js) */
.preloader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--bg); overflow: hidden; }
.preloader-water { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform: translateY(100%); }
.preloader-water svg { position: absolute; left: 0; top: -59px; width: 200%; height: 60px; }
.preloader-water svg path { fill: var(--aqua); }
.preloader-water div { position: absolute; inset: 0; background: linear-gradient(var(--aqua), var(--aqua-ink)); }
.preloader-count { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 18vw, 14rem); line-height: 1; color: var(--deep); mix-blend-mode: normal; }
.preloader-mascot { position: absolute; z-index: 3; width: clamp(120px, 18vw, 180px); left: 50%; top: 50%; margin: calc(clamp(120px, 18vw, 180px) / -2) 0 0 calc(clamp(120px, 18vw, 180px) / -2); opacity: 0; }
.preloader-brand { position: absolute; z-index: 3; bottom: 2rem; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--deep); letter-spacing: .02em; }

/* Page transition wave (built by script.js) */
.page-wave { position: fixed; inset: 0; z-index: 1900; pointer-events: none; visibility: hidden; display: grid; place-items: center; }
.page-wave .pw-body { position: absolute; top: 0; bottom: 0; left: -10%; width: 120%; background: var(--aqua-ink); transform: translateX(-110%); }
.page-wave .pw-body::before, .page-wave .pw-body::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; background: inherit; }
.page-wave .pw-body::before { right: -79px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 200' preserveAspectRatio='none'%3E%3Cpath d='M0 0h20q40 25 0 50t0 50 0 50 0 50H0z'/%3E%3C/svg%3E") 0 0 / 100% 240px repeat-y; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 200' preserveAspectRatio='none'%3E%3Cpath d='M0 0h20q40 25 0 50t0 50 0 50 0 50H0z'/%3E%3C/svg%3E") 0 0 / 100% 240px repeat-y; }
.page-wave .pw-body::after { display: none; }
.page-wave .pw-title { position: relative; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 6rem); opacity: 0; text-align: center; padding: 0 1rem; }
.page-wave.is-active { visibility: visible; pointer-events: auto; }

/* Custom cursor (desktop only, built by script.js) */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--deep); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid var(--aqua); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7) 0 10%, transparent 11%); display: grid; place-items: center; transition: width .35s var(--ease-bounce), height .35s var(--ease-bounce), margin .35s var(--ease-bounce), background-color .3s, opacity .3s; }
.cursor-ring.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; background-color: var(--sun); border-color: var(--sun); }
.cursor-ring.is-hidden-ring { opacity: 0; }
.cursor-label { font-size: .78rem; font-weight: 800; color: var(--deep); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease-bounce); white-space: nowrap; }
.cursor-ring.is-big .cursor-label { opacity: 1; transform: none; }
.trail-bubble { position: fixed; z-index: 2999; pointer-events: none; border-radius: 50%; border: 1.5px solid var(--aqua); left: 0; top: 0; }

/* ==========================================================================
   7. REDUCED-MOTION RULES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .bubbles, .dive-bubbles, .trail-bubble, .cursor-dot, .cursor-ring { display: none !important; }
  .marquee-track, .tslider-track { animation: none !important; transform: none !important; }
  .tslider { overflow-x: auto; }
}
.reduced .bubbles, .reduced .dive-bubbles { display: none; }
.reduced [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.reduced .porthole-img, .reduced .porthole-ring, .reduced .wave-loop { animation: none; }

/* ==========================================================================
   6b. ANIMATION STATES ADDED BY SCRIPT.JS
   ========================================================================== */
/* Split text fallback (no GSAP): chars/words rise via transitions */
.io-mode [data-split] .split-char, .io-mode [data-split] .split-w { transform: translateY(.7em); opacity: 0; transition: transform .8s var(--ease-bounce), opacity .5s var(--ease-out); }
.io-mode [data-split].is-in .split-char, .io-mode [data-split].is-in .split-w { transform: none; opacity: 1; }
.reduced [data-split] .split-char, .reduced [data-split] .split-w { transform: none !important; opacity: 1 !important; }
/* Wavy underline keeps gently moving once drawn */
.wavy-line.wavy-live { animation: wavyBob 2.6s var(--ease-in-out) infinite; transform-origin: center; }
@keyframes wavyBob { 0%, 100% { transform: scaleY(1) translateY(0); } 50% { transform: scaleY(1.5) translateY(-1px); } }
[dir="rtl"] .wavy-line.wavy-live { animation-name: wavyBobRtl; }
@keyframes wavyBobRtl { 0%, 100% { transform: scaleX(-1) scaleY(1); } 50% { transform: scaleX(-1) scaleY(1.5); } }
/* Custom cursor states */
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor summary { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
.cursor-ring.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background-color: color-mix(in srgb, var(--aqua) 18%, transparent); }
/* Journey kid moves with CSS transitions (works with or without GSAP) */
.journey-kid { transition: transform 1s var(--ease-bounce); }
.journey-kid .kid-arm-l, .journey-kid .kid-arm-r { transform-box: fill-box; transform-origin: top center; }
.journey-kid .is-paddling { animation: paddle .9s var(--ease-in-out) infinite alternate; }
.journey-kid .kid-arm-r.is-paddling { animation-delay: -.45s; }
@keyframes paddle { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
/* Hotspot cards become a static info block on small screens */
@media (max-width: 699px) {
  .hotspot { width: 38px; height: 38px; }
  .hotspot-card { position: static; transform: none !important; width: auto; margin-top: 1rem; display: none; opacity: 1; visibility: visible; }
  .hotspot-card.is-open { display: block; }
}
/* Underwater (Home 2): solid fallback colours until the live depth effect takes over */
.uw-dark { background: linear-gradient(#0E3556, #0B2545); }
.dive { background: linear-gradient(#1D7FA0, #0E3556); }
.uw-live .dive { background: linear-gradient(transparent 0 12%, rgba(14,53,86,.88) 42%, #0E3556); }
/* Marquee CSS fallback only when JS is unavailable */
.marquee:not(.is-js) .marquee-track { animation: marquee 30s linear infinite; }
.reduced .marquee .marquee-track { animation: none; }
/* Horizontal sections stack vertically on phones */
@media (max-width: 767px) {
  .hscroll, .hscroll.is-native { overflow: visible; padding-bottom: 0; }
  .hscroll .hscroll-track { width: auto; display: grid; grid-template-columns: 1fr; padding-inline: var(--gutter); transform: none !important; }
  .hscroll .badge-card { width: 100%; max-width: 420px; aspect-ratio: auto; min-height: 300px; margin-inline: auto; }
  .timetable .day-col, .gallery-card { width: 100%; }
}
/* Compact dashboard top bar on phones so everything fits on one row */
@media (max-width: 520px) {
  .dash-top { gap: .4rem; padding-inline: .7rem; }
  .dash-top .icon-btn { width: 40px; height: 40px; }
  .dash-hello { display: none; }
  .child-switch { margin-inline-end: auto; }
}
