:root {
  --deep: #073f49;
  --deep-2: #052f38;
  --aqua: #17b8bd;
  --aqua-light: #aee8e5;
  --silver: #d8e1e3;
  --mist: #edf6f5;
  --cream: #fbf8ef;
  --coral: #f0644b;
  --ink: #123238;
  --muted: #5a7075;
  --white: #ffffff;
  --shell: min(1160px, calc(100% - 40px));
  --shadow: 0 24px 70px rgba(4, 45, 53, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding: clamp(80px, 9vw, 132px) 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; left: 12px; top: 12px; padding: 10px 16px;
  background: var(--white); color: var(--deep); transform: translateY(-150%);
  transition: transform .2s ease; border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6.1vw, 5.9rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.55rem, 2.3vw, 2.25rem); letter-spacing: -.025em; }
.eyebrow {
  margin-bottom: 18px; color: var(--aqua-light); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow.dark { color: #078b92; }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto; color: var(--white);
  background: rgba(7, 63, 73, .9); border-bottom: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(16px); transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { background: rgba(5, 47, 56, .96); box-shadow: 0 10px 35px rgba(0,0,0,.12); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 44px; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; box-shadow: 0 5px 16px rgba(0,0,0,.12);
}
.brand-mark img { width: 100%; height: 100%; }
.brand-name { display: grid; line-height: 1.15; }
.brand-name strong { font-size: .95rem; letter-spacing: .01em; }
.brand-name small { opacity: .72; font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav a { font-size: .88rem; font-weight: 600; text-decoration: none; }
.site-nav a:not(.nav-contact) { opacity: .82; }
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
.nav-contact { padding: 11px 18px; color: var(--deep); background: var(--aqua-light); border-radius: 999px; }
.menu-toggle { display: none; }

.hero {
  position: relative; min-height: 830px; padding: 170px 0 130px; overflow: hidden;
  color: var(--white); background: var(--deep);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.16fr) auto minmax(350px, .84fr); align-items: center; gap: clamp(28px, 4vw, 65px); }
.hero-primary-logo { width: clamp(150px, 13vw, 205px); height: auto; display: block; align-self: start; filter: drop-shadow(0 14px 28px rgba(0,0,0,.2)); }
.hero-copy h1 { max-width: 820px; margin-bottom: 32px; }
.hero-copy h1 em { color: var(--aqua-light); font-style: italic; }
.hero-lead { max-width: 650px; margin-bottom: 34px; color: rgba(255,255,255,.78); font-size: clamp(1.08rem, 1.6vw, 1.34rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .site-nav a:focus-visible, .text-link:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.button-primary { color: var(--deep); background: var(--aqua-light); }
.button-primary:hover { background: var(--white); }
.button-quiet { color: var(--white); border-color: rgba(255,255,255,.35); }
.button-quiet:hover { background: rgba(255,255,255,.1); }
.instagram-link { gap: 10px; }
.instagram-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.instagram-icon circle:last-child { fill: currentColor; stroke: none; }
.microcopy { margin: 18px 0 0; color: rgba(255,255,255,.55); font-size: .85rem; }

.hero-art { position: relative; min-height: 540px; display: grid; place-items: center; }
.hero-photo {
  position: relative; width: min(410px, 100%); height: 540px; overflow: hidden;
  border: 8px solid rgba(255,255,255,.1); border-radius: 48% 48% 24px 24px / 22% 22% 24px 24px;
  box-shadow: 0 35px 80px rgba(0,0,0,.28); transform: rotate(2deg);
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,39,46,.5), transparent 52%); }
.hero-photo > img, .hero-photo > video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-video { display: block; }
.hero-video-fallback { display: none; }
.hero-photo.video-failed .hero-video { display: none; }
.hero-photo.video-failed .hero-video-fallback { display: block; }
.hero-lines { position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(107deg, transparent 0 108px, rgba(174,232,229,.18) 109px 111px, transparent 112px 220px); mask-image: linear-gradient(to right, transparent 0, black 20%, transparent 82%); }
.hero-ripple { position: absolute; inset: auto -2% -40px; height: 100px; background: var(--cream); border-radius: 50% 45% 0 0 / 42% 38% 0 0; transform: rotate(-1deg); }

.intro { background: var(--cream); }
.intro-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(50px, 10vw, 150px); align-items: start; }
.intro h2 { max-width: 520px; margin-bottom: 0; }
.intro-copy > p { max-width: 680px; margin: 5px 0 52px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ccd9d9; }
.fact-row div { padding: 25px 18px 0 0; }
.fact-row div + div { padding-left: 24px; border-left: 1px solid #ccd9d9; }
.fact-row strong, .fact-row span { display: block; }
.fact-row strong { font-family: "Lora", Georgia, serif; color: var(--deep); font-size: clamp(2rem, 3vw, 3rem); line-height: 1; }
.fact-row span { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.offer-panel {
  display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(50px, 10vw, 150px);
  margin-top: clamp(65px, 8vw, 105px); padding-top: clamp(38px, 5vw, 62px); border-top: 1px solid #ccd9d9;
}
.offer-panel h2 { max-width: 540px; margin-bottom: 0; font-size: clamp(2.25rem, 4vw, 4rem); }
.offer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; margin: 0; padding: 0; list-style: none; }
.offer-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #d6e0df; font-weight: 600; line-height: 1.45; }
.offer-check { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; margin-top: -1px; color: var(--deep); background: var(--aqua-light); border-radius: 50%; font-size: .82rem; font-weight: 700; }

.pool-showcase { background: var(--mist); }
.pool-heading { display: grid; grid-template-columns: 1.08fr .92fr; align-items: end; gap: clamp(45px, 9vw, 120px); margin-bottom: 65px; }
.pool-heading h2 { max-width: 650px; margin-bottom: 0; }
.pool-heading > p { max-width: 520px; margin-bottom: 8px; color: var(--muted); font-size: 1.08rem; }
.pool-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 350px 330px; gap: 20px; }
.pool-photo { position: relative; margin: 0; overflow: hidden; background: var(--deep); box-shadow: var(--shadow); }
.pool-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pool-photo:hover img { transform: scale(1.025); }
.pool-photo figcaption {
  position: absolute; left: 18px; bottom: 16px; padding: 8px 12px; color: var(--deep);
  background: rgba(237,246,245,.92); border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pool-photo-enclosure { grid-column: 1 / 8; grid-row: 1; border-radius: 18px; }
.pool-photo-daylight { grid-column: 8 / -1; grid-row: 1; border-radius: 18px; }
.pool-photo-instruction { grid-column: 1 / 5; grid-row: 2; border-radius: 18px; }
.pool-photo-swimmer { grid-column: 5 / 9; grid-row: 2; border-radius: 18px; }
.pool-photo-swimmer-two { grid-column: 9 / -1; grid-row: 2; border-radius: 18px; }
.pool-photo-daylight img { object-position: center 42%; }
.pool-photo-instruction img { object-position: center 38%; }
.pool-photo-swimmer img, .pool-photo-swimmer-two img { object-position: center 32%; }

.guardian-program { position: relative; color: var(--deep); background: var(--aqua-light); overflow: hidden; }
.guardian-program::after { content: ""; position: absolute; right: -150px; bottom: -220px; width: 520px; height: 520px; border: 2px solid rgba(7,63,73,.1); border-radius: 50%; }
.program-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(55px, 10vw, 145px); }
.program-heading h2 { max-width: 560px; margin-bottom: 0; }
.program-copy { padding: 32px 0 32px 45px; border-left: 1px solid rgba(7,63,73,.25); }
.program-meta { margin-bottom: 22px; color: #08747b; font-size: .86rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.program-meta span { margin: 0 7px; color: var(--coral); }
.program-copy > p:last-child { max-width: 630px; margin-bottom: 0; color: rgba(7,63,73,.78); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }

.levels { position: relative; color: var(--white); background: var(--deep-2); overflow: hidden; }
.levels::after { content: "SASS"; position: absolute; right: -25px; bottom: -110px; color: rgba(255,255,255,.025); font-family: "Lora", Georgia, serif; font-size: min(32vw, 440px); font-weight: 700; line-height: 1; }
.section-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; margin-bottom: 70px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 7px; color: rgba(255,255,255,.68); }
.level-list { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.18); }
.level-card {
  min-height: 160px; display: grid; grid-template-columns: 90px minmax(210px, .65fr) 1fr;
  align-items: center; gap: clamp(24px, 4vw, 65px); padding: 34px 22px 34px 0;
  border-bottom: 1px solid rgba(255,255,255,.18); transition: background .25s ease, padding .25s ease;
}
.level-card:hover { padding-left: 22px; background: rgba(255,255,255,.045); }
.level-card.featured { background: var(--aqua-light); color: var(--deep); padding-left: 22px; }
.level-number { color: var(--aqua); font-size: .82rem; font-weight: 700; letter-spacing: .12em; }
.featured .level-number { color: #08747b; }
.level-card h3 { margin: 0; }
.level-card > p { max-width: 590px; margin: 0; color: rgba(255,255,255,.67); }
.featured > p { color: rgba(7,63,73,.75); }
.level-kicker { margin: 0 0 3px; color: var(--coral); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.instructor { background: var(--mist); }
.instructor-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); gap: clamp(60px, 10vw, 145px); align-items: center; }
.portrait-frame { position: relative; min-height: 580px; margin: 0; overflow: hidden; background: var(--aqua); border-radius: 48% 48% 14px 14px / 23% 23% 14px 14px; box-shadow: var(--shadow); }
.portrait-frame::after { content: ""; position: absolute; inset: 20px; pointer-events: none; border: 1px solid rgba(255,255,255,.58); border-radius: inherit; }
.portrait-frame img { width: 100%; height: 580px; object-fit: cover; object-position: center 18%; }
.portrait-frame figcaption { position: absolute; z-index: 2; left: 34px; bottom: 30px; padding: 9px 14px; color: var(--deep); background: rgba(237,246,245,.94); border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.instructor-copy h2 { margin-bottom: 7px; }
.instructor-copy .role { color: #078b92; font-size: .83rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.instructor-bio { max-width: 680px; margin: 32px 0; }
.instructor-bio p { margin-bottom: 18px; color: var(--muted); font-size: 1.05rem; }
.instructor-bio p:last-child { margin-bottom: 0; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--deep); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.details { color: var(--white); background: var(--deep); }
.details-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(70px, 10vw, 150px); align-items: start; }
.details-heading { position: sticky; top: 130px; }
.details-heading h2 { max-width: 520px; }
.details-heading > p:last-child { max-width: 500px; color: rgba(255,255,255,.68); }
.detail-panel { border-top: 1px solid rgba(255,255,255,.22); }
.detail-row { display: grid; grid-template-columns: 120px 1fr; gap: 35px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.detail-row > span { color: var(--aqua-light); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.detail-row p { margin: 0; color: rgba(255,255,255,.73); }
.detail-row strong { color: var(--white); }
.detail-row a { text-underline-offset: 4px; }

.contact-band { padding: 72px 0; color: var(--deep); background: var(--aqua-light); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-band h2 { margin: 0; font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.contact-band .eyebrow { color: #08747b; }
.button-light { color: var(--white); background: var(--deep); white-space: nowrap; }
.button-light:hover { background: var(--coral); }
.contact-enclosure { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 45px; padding-top: 28px; border-top: 1px solid rgba(7,63,73,.2); }
.contact-enclosure > div > span { color: #08747b; font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-enclosure p { margin: 6px 0 0; color: rgba(7,63,73,.74); }
.contact-enclosure p a { color: var(--deep); font-weight: 700; text-underline-offset: 4px; }
.contact-enclosure .enclosure-instagram { color: #08747b; }
.contact-enclosure .enclosure-instagram:hover { color: var(--coral); }

.site-footer { padding: 70px 0 25px; color: rgba(255,255,255,.68); background: #03272e; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .7fr; gap: 70px; }
.footer-brand { color: var(--white); }
.footer-grid > div:first-child > p { max-width: 340px; margin: 23px 0 0; }
.footer-links { display: grid; align-content: start; gap: 11px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: grid; align-content: start; justify-items: start; }
.footer-contact span { color: var(--aqua-light); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.footer-contact a { margin-top: 8px; color: var(--white); font-family: "Lora", Georgia, serif; font-size: 1.65rem; }
.enclosure-instagram { display: inline-flex; align-items: center; gap: 9px; color: var(--aqua-light); font-weight: 700; text-decoration: none; white-space: nowrap; }
.enclosure-instagram:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 720px); }
  .menu-toggle {
    width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; padding: 0;
    color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
  }
  .menu-toggle span:not(.sr-only) { width: 19px; height: 2px; display: block; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 82px 0 auto; min-height: calc(100vh - 82px); display: grid; align-content: start;
    gap: 0; padding: 45px 24px; background: var(--deep-2); transform: translateX(100%); transition: transform .3s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { padding: 18px 8px; font-family: "Lora", Georgia, serif; font-size: 1.7rem; border-bottom: 1px solid rgba(255,255,255,.15); }
  .site-nav .nav-contact { margin-top: 24px; padding: 14px 20px; font-family: "DM Sans", sans-serif; font-size: 1rem; text-align: center; border: 0; }
  .hero { min-height: auto; padding-top: 145px; }
  .hero-grid, .intro-grid, .offer-panel, .program-grid, .instructor-grid, .details-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 65px; }
  .hero-primary-logo { justify-self: center; }
  .hero-copy h1 { font-size: clamp(2.68rem, 10.4vw, 4.8rem); }
  .hero-art { min-height: 540px; }
  .hero-photo { width: min(410px, 86vw); }
  .intro-grid { gap: 35px; }
  .offer-panel { gap: 35px; }
  .pool-heading { grid-template-columns: 1fr; gap: 22px; }
  .pool-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 300px 300px; }
  .pool-photo-enclosure { grid-column: 1 / -1; grid-row: 1; }
  .pool-photo-daylight { grid-column: 1; grid-row: 2; }
  .pool-photo-instruction { grid-column: 2; grid-row: 2; }
  .pool-photo-swimmer { grid-column: 1; grid-row: 3; }
  .pool-photo-swimmer-two { grid-column: 2; grid-row: 3; }
  .program-grid { gap: 35px; }
  .program-copy { padding: 32px 0 0; border-top: 1px solid rgba(7,63,73,.25); border-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .level-card { grid-template-columns: 55px 1fr; gap: 25px; }
  .level-card > p { grid-column: 2; }
  .instructor-grid { gap: 60px; }
  .portrait-frame, .portrait-frame img { min-height: 520px; height: 520px; }
  .details-heading { position: static; }
  .contact-band-inner { align-items: flex-start; flex-direction: column; }
  .contact-enclosure { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 26px); }
  .header-inner { min-height: 74px; }
  .brand-name strong { font-size: .8rem; }
  .brand-name small { font-size: .65rem; }
  .brand-mark { width: 40px; }
  .site-nav { top: 74px; min-height: calc(100vh - 74px); }
  .section-pad { padding: 75px 0; }
  .hero { padding: 125px 0 105px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-primary-logo { width: 108px; }
  .button { width: 100%; }
  .hero-art { min-height: 470px; }
  .hero-photo { width: min(310px, 86vw); height: 440px; }

  .fact-row { grid-template-columns: 1fr; }
  .fact-row div { padding: 20px 0; border-bottom: 1px solid #ccd9d9; }
  .fact-row div + div { padding-left: 0; border-left: 0; }
  .offer-list { grid-template-columns: 1fr; }
  .pool-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(5, 245px); gap: 14px; }
  .pool-photo-enclosure, .pool-photo-daylight, .pool-photo-instruction, .pool-photo-swimmer, .pool-photo-swimmer-two { grid-column: 1; border-radius: 18px; }
  .pool-photo-enclosure { grid-row: 1; }
  .pool-photo-daylight { grid-row: 2; }
  .pool-photo-instruction { grid-row: 3; }
  .pool-photo-swimmer { grid-row: 4; }
  .pool-photo-swimmer-two { grid-row: 5; }
  .level-card { grid-template-columns: 42px 1fr; padding-right: 3px; }
  .level-card:hover { padding-left: 0; }
  .level-card.featured { padding-left: 12px; }
  .portrait-frame, .portrait-frame img { min-height: 500px; height: 500px; }
  .detail-row { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 45px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .enclosure-instagram { white-space: normal; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-video { display: none; }
  .hero-video-fallback { display: block; }
}
