/* Saltwater Yoga. The tide line: sand above, deep teal water below. Twice on the page a photograph
   spans the line, and each photo's real waterline is set to land exactly where the page turns from
   sand to water. */

:root {
  --sand: #EEE4D2;
  --sand-2: #E5D8C1;
  --glass: #A9C9B9;
  --teal: #1E4D51;
  --teal-2: #285D61;
  --teal-soft: #3D6B6E;
  --white: #FFFFFF;
  --display: 'Spectral', Georgia, serif;
  --body: 'Mulish', system-ui, sans-serif;
  --gutter: 16px;
  /* Hero window: its height and where the page turns to water, as a fraction of that height. */
  --strip-h: 184px;
  --hz: .56;
  /* The lake photo's waterline sits at 59.4% of its height, the dock photo's at 43.2%. */
  --lake-line: .594;
  --dock-line: .432;
  --photo-ratio: .6665;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--sand); color: var(--teal); font: 400 18px/1.6 var(--body); text-rendering: optimizeLegibility; font-kerning: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--teal); color: var(--white); padding: 12px 18px; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* Sand grain: faint and warm, like a beach seen close. */
.shore, .classes-info, .pricing, .new, .top, .dock { position: relative; }
.shore::before, .classes-info::before, .pricing::before, .new::before, .dock::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .3  0 0 0 1.6 -.9'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23s)'/%3E%3C/svg%3E");
}
/* Water: grain and a little low light, never stripes. */
.water::before, .teachers::before, .foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(img/grain-water.svg) 0 0 / 300px 300px;
}
/* Light on the water just under the horizon, where the schedule starts. */
.water::before {
  background:
    radial-gradient(55% 45% at 16% 0%, rgba(169, 201, 185, .16), rgba(169, 201, 185, 0) 70%),
    radial-gradient(35% 30% at 88% 4%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%),
    url(img/grain-water.svg) 0 0 / 300px 300px;
}

/* Studio photos are warm wood and white walls. A light grade pulls them toward sand so they sit
   with the cool lake photos. */
.speed img, .teacher img, .n-photo img { filter: saturate(.84) sepia(.1) contrast(1.03); }
.dock-photo img { filter: saturate(.86) contrast(1.02); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; font: 800 17px/1 var(--body); letter-spacing: .01em; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-2); }
.btn-sand { background: var(--sand); color: var(--teal); }
.btn-sand:hover { background: var(--white); }

/* Header */
.top { z-index: 20; background: var(--sand); position: sticky; top: 0; }
.top-in { max-width: 1440px; margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; min-height: 48px; }
/* Logo: three lines of different lengths, a breath and the tide, with a sea glass pebble resting on the top
   one; the Spectral wordmark's g ends in one level line. --lg is the wordmark size; the rest is in em of it. */
.logo { --lg: 25px; display: inline-flex; align-items: center; gap: .26em; font-size: var(--lg); color: var(--teal); }
.logo-icon { width: 1.5em; height: 1.5em; flex: none; }
.logo-lines, .logo-stone { stroke: var(--teal); }
.logo-text { display: grid; justify-items: start; }
.logo-word { display: block; height: .97em; width: auto; overflow: visible; margin-top: .14em; }
.logo.on-dark { color: var(--white); }
.logo.on-dark .logo-lines, .logo.on-dark .logo-stone { stroke: var(--sand); }
.logo-stack { display: inline-grid; justify-items: start; gap: .06em; }
.logo-stack .logo-icon { width: 1.9em; height: 1.9em; margin-left: -.14em; }
.nav, .top-cta { display: none; }
.burger { width: 48px; height: 48px; flex: none; display: grid; place-content: center; gap: 6px; background: transparent; border: 2px solid var(--teal); border-radius: 50%; }
.burger span { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--teal); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 100%); overflow-y: auto; display: flex; flex-direction: column; padding: 4px var(--gutter) 28px; background: url(img/grain-water.svg) 0 0 / 300px 300px, var(--teal); color: var(--white); }
.menu :focus-visible { outline-color: var(--white); }
.menu-photo { flex: 1 1 0; min-height: 0; max-height: 300px; margin: 22px 0 0; overflow: hidden; border-radius: 4px; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-photo + .menu-foot { margin-top: 0; padding-top: 14px; }
@media (max-height: 700px) { .menu-photo { display: none; } .menu-photo + .menu-foot { margin-top: auto; } }
.menu-photo img { object-position: 35% 50%; }
.menu-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 2px; font: 500 20px/1.4 var(--display); }
.scrim { position: fixed; inset: 0; z-index: 19; background: rgba(30, 77, 81, .55); }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: center; min-height: 46px; font: 500 23px/1.1 var(--display); text-decoration: none; padding-left: 16px; }
.menu nav a.menu-home { padding-left: 0; font-weight: 600; }
.menu-label { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(169, 201, 185, .35); font: 800 17px/1.4 var(--body); color: var(--glass); }
.menu-cta { width: 100%; margin-top: 18px; }

/* Shore: the headline and the intro offer, on sand. */
.shore-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter) 22px; display: grid; gap: 16px; container-type: inline-size; }
.title { font-size: clamp(44px, 14.8cqi, 132px); line-height: .94; letter-spacing: -.025em; font-weight: 500; text-wrap: initial; }
.title span { display: block; white-space: nowrap; }
.offer { display: grid; gap: 10px; justify-items: start; }
.offer-big { font: 600 clamp(26px, 3.2vw, 36px)/1.1 var(--display); letter-spacing: -.01em; }
.offer-small { font-size: 18px; line-height: 1.45; max-width: 30ch; }
.offer .btn { margin-top: 6px; }

/* The horizon: the photo window spans the line where sand turns to water. */
/* The sea glass line is the first background layer, so it draws across at load. */
.horizon {
  position: relative;
  background:
    linear-gradient(var(--glass), var(--glass)) 50% calc(var(--strip-h) * var(--hz) - 1px) / 100% 2px no-repeat,
    linear-gradient(to bottom, var(--sand) 0 calc(var(--strip-h) * var(--hz)), var(--teal) calc(var(--strip-h) * var(--hz)) 100%);
}
.strip { position: relative; width: calc(100% - var(--gutter) * 2); max-width: calc(1440px - var(--gutter) * 2); margin: 0 auto; height: var(--strip-h); overflow: hidden; container-type: size; }
.strip img {
  width: 100%; height: 100%; object-fit: cover;
  /* Place the photo so its waterline lands on the page's line, without ever leaving a gap. */
  object-position: 56% clamp(min(0px, var(--strip-h) - 100cqw * var(--photo-ratio)), var(--strip-h) * var(--hz) - 100cqw * var(--photo-ratio) * var(--lake-line), 0px);
}

/* The water: the class schedule. */
.water { background: var(--teal); color: var(--white); position: relative; }
.water :focus-visible { outline-color: var(--white); }
.water-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 22px var(--gutter) 64px; }
.sched-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; }
.sched-title { font-size: 34px; line-height: 1.05; letter-spacing: -.01em; color: var(--white); }
.levels { display: flex; flex-wrap: wrap; gap: 8px; }
.level {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 0; color: var(--white); font: 700 17px/1 var(--body); transition: background-color .15s ease, color .15s ease;
}
.level .lv { width: 22px; height: 16px; fill: none; stroke: var(--glass); stroke-width: 1.8; stroke-linecap: round; }
.level:hover { background: rgba(255, 255, 255, .15); }
.level[aria-pressed="true"] { background: var(--glass); color: var(--teal); }
.level[aria-pressed="true"] .lv { stroke: var(--teal); }
/* Phones: the photos run edge to edge. The horizon alignment belongs to wider screens. */
@media (max-width: 599px) {
  .horizon { background: var(--teal); }
  .strip { width: 100%; }
  .dock-photo { margin: 0 calc(var(--gutter) * -1); }
  .dock-photo img { border-radius: 0; }
}
/* Phones: the three levels share one row as a segmented control. */
@media (max-width: 599px) {
  .sched-head { display: grid; gap: 12px; }
  .levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
  .level { justify-content: center; padding: 0 6px; background: transparent; }
  .level .lv { display: none; }
}

.days { display: flex; gap: 6px; margin: 18px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.days::-webkit-scrollbar { display: none; }
@media (max-width: 1179px) {
  .days { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); padding-right: 48px; }
}
.day {
  flex: none; display: grid; justify-items: start; gap: 3px; min-width: 104px; min-height: 64px; padding: 9px 14px 10px; scroll-snap-align: start;
  background: transparent; border: 0; border-radius: 12px; color: var(--white); text-align: left; transition: background-color .15s ease;
  box-shadow: inset 1px 0 0 rgba(169, 201, 185, .28);
}
.day:first-child, .day[aria-selected="true"], .day[aria-selected="true"] + .day { box-shadow: none; }
.day:hover { background: rgba(255, 255, 255, .08); }
.day-name { display: flex; align-items: baseline; gap: 7px; font: 800 17px/1.15 var(--body); }
.day-num { font: 600 27px/1 var(--display); font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.day-sun { font: 600 15px/1.2 var(--body); color: var(--glass); white-space: nowrap; }
.day[aria-selected="true"] { background: var(--sand); color: var(--teal); }
.day[aria-selected="true"] .day-sun { color: var(--teal-soft); }
.day:focus-visible { outline-offset: 2px; }

.sched-panel { outline: none; margin-top: 14px; }
.classes { list-style: none; margin: 0; padding: 0; }
.cls { position: relative; border-top: 1px solid rgba(169, 201, 185, .35); }
.cls:last-child { border-bottom: 1px solid rgba(169, 201, 185, .35); }
.cls-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 16px 0;
  grid-template-areas: "time side" "name side" "meta meta";
}
.cls-time { grid-area: time; display: flex; align-items: baseline; gap: 14px; font: 600 22px/1.05 var(--display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.cls-time small { font: 700 15px/1.2 var(--body); color: var(--glass); letter-spacing: 0; }
.cls-name { grid-area: name; font: 800 19px/1.25 var(--body); }
.cls-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 16px; line-height: 1.35; color: #E4EFEA; }
.cls-who { display: inline-flex; align-items: center; gap: 8px; }
.cls-who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cls-level { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--glass); font: 700 15px/1 var(--body); color: var(--white); }
.cls-place { display: inline-flex; align-items: center; gap: 6px; }
.cls-place svg { width: 18px; height: 18px; fill: none; stroke: var(--glass); stroke-width: 1.8; stroke-linecap: round; }
.cls-side { grid-area: side; display: grid; justify-items: end; gap: 6px; }
.cls-spots { font: 700 17px/1.2 var(--body); color: var(--glass); text-align: right; white-space: nowrap; }
.cls-spots.is-low { color: var(--white); }
.book {
  min-height: 46px; min-width: 96px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--sand); color: var(--teal); font: 800 17px/1 var(--body); transition: background-color .15s ease;
}
.book:hover { background: var(--white); }
.book.is-wait { background: transparent; color: var(--white); border: 2px solid var(--glass); }
.book.is-wait:hover { background: rgba(169, 201, 185, .16); }
.book:disabled { cursor: default; background: transparent; color: var(--glass); border: 2px dashed rgba(169, 201, 185, .6); }
.cls.is-booked .book { background: var(--glass); color: var(--teal); border: 0; }
.cls-status { min-height: 46px; display: inline-flex; align-items: center; font: 700 17px/1 var(--body); color: var(--glass); }
.cls.is-past .cls-time, .cls.is-past .cls-name { color: #CFE0D8; }

.drawer { padding: 4px 0 22px; display: grid; gap: 14px; }
.drawer-what { font: 600 22px/1.3 var(--display); }
.drawer fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.drawer legend, .drawer-fields label > span { display: block; margin-bottom: 6px; padding: 0; font: 800 17px/1.3 var(--body); }
.passes { display: grid; gap: 8px; }
.pass { position: relative; display: block; }
.pass input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pass span { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: 12px; border: 2px solid rgba(169, 201, 185, .7); font: 700 17px/1.2 var(--body); }
.pass span b { font: 600 22px/1 var(--display); }
.pass input:hover + span { background: rgba(169, 201, 185, .14); }
.pass input:checked + span { background: var(--glass); color: var(--teal); border-color: var(--glass); }
.pass input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }
.drawer-fields { display: grid; gap: 12px; }
.drawer input[type="text"], .drawer input[type="tel"] {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--white); color: var(--teal); font-size: 18px; font-weight: 600;
}
.drawer input[aria-invalid="true"] { box-shadow: inset 0 0 0 3px #F0B7A8; }
.drawer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.link { min-height: 44px; padding: 0 4px; background: none; border: 0; font: 700 17px/1 var(--body); text-decoration: underline; text-underline-offset: 4px; color: inherit; }
.drawer-msg { font-weight: 700; font-size: 17px; padding: 12px 14px; border-radius: 10px; background: var(--sand); color: var(--teal); }
.drawer-msg:empty { display: none; }
.booked-note { padding: 0 0 18px; display: grid; gap: 6px; }
.booked-note p:first-child { font: 600 22px/1.3 var(--display); }
.sched-empty { padding: 24px 0; font-size: 18px; }
.sched-note { margin-top: 18px; font-size: 17px; color: #E4EFEA; max-width: 60ch; }

/* Section heads share one scale and differ in how they sit. */
.ci-title, .t-title, .p-title, .n-title, .dock-title { font-size: clamp(52px, 8.4vw, 108px); line-height: .92; letter-spacing: -.03em; }

/* Classes: three speeds, photos rising from Gentle to Strong, all standing on one tide line. */
.ci-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 84px var(--gutter) 96px; }
.ci-head { display: grid; gap: 14px; }
.ci-head p { font-size: 20px; max-width: 40ch; }
.speeds { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 40px; position: relative; }
.speed { position: relative; display: grid; gap: 12px; align-content: start; }
.speed figure { overflow: hidden; border-radius: 4px; }
.speed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.speed:nth-child(3) img { object-position: 30% 50%; }
/* Gentle uses a crop cut below the window, so no street lettering shows. */
.speed:nth-child(1) img { object-position: 30% 60%; }
.speed h3 { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.speed p { font-size: 18px; max-width: 36ch; }

/* On the Dock: the second horizon. The title stands on the sand, the words sit in the water, and the
   dock photo's waterline continues the page's line. */
.dock { --dock-h: 260px; background: var(--sand); overflow: hidden; }
.dock-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 72px var(--gutter) 64px; display: grid; }
.dock-title { color: var(--teal); padding-bottom: 20px; }
.dock-photo { position: relative; z-index: 0; height: var(--dock-h); container-type: size; }
/* The water hangs from the photo's own waterline and runs to the edges of the page. */
.dock-photo::before {
  content: ""; position: absolute; z-index: -1; left: -100vw; right: -100vw; height: 4000px;
  top: calc(var(--dock-h) * var(--dock-line)); background: url(img/grain-water.svg) 0 0 / 300px 300px, var(--teal);
}
.dock-photo img {
  border-radius: 4px;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 42% clamp(min(0px, var(--dock-h) - 100cqw * var(--photo-ratio)), var(--dock-h) * var(--dock-line) - 100cqw * var(--photo-ratio) * var(--dock-line), 0px);
}
.dock-text { position: relative; z-index: 1; display: grid; gap: 14px; padding-top: 24px; background: url(img/grain-water.svg) 0 0 / 300px 300px, var(--teal); }
.dock-text p { font-size: 19px; max-width: 46ch; color: #F1F7F4; }
.dock-text .dock-sun { font: 600 22px/1.35 var(--display); color: var(--glass); }

/* Teachers: in the water. */
.teachers { position: relative; background: var(--teal); color: var(--white); }
.teachers :focus-visible { outline-color: var(--white); }
.t-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 40px var(--gutter) 104px; }
.t-title { color: var(--white); }
.t-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 48px; }
.teacher { display: grid; gap: 10px; align-content: start; }
.teacher img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.teacher h3 { margin-top: 10px; font-size: 36px; line-height: 1.05; letter-spacing: -.02em; }
.teaches { font: 800 17px/1.35 var(--body); color: var(--glass); }
.teacher p:not(.teaches):not(.next) { font-size: 18px; max-width: 34ch; color: #F1F7F4; }
.next { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(169, 201, 185, .4); font: 600 20px/1.35 var(--display); color: var(--white); }
.next:empty { display: none; }

/* Pricing: a ruled list beside its heading. The intro week sits on sea glass. */
.p-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 84px var(--gutter) 96px; display: grid; gap: 30px; }
.p-side { display: grid; gap: 14px; align-content: start; }
.p-side p { font-size: 19px; max-width: 30ch; }
.prices { width: 100%; border-collapse: collapse; }
.prices tr { border-top: 1px solid var(--teal); }
.prices tr:last-child { border-bottom: 1px solid var(--teal); }
.prices th, .prices td { display: block; padding: 0; text-align: left; vertical-align: baseline; }
.prices tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 0; }
.prices th { font: 600 26px/1.15 var(--display); letter-spacing: -.01em; }
.prices td:not(.price) { grid-column: 1; font-size: 17px; line-height: 1.5; max-width: 46ch; }
.prices .price { grid-column: 2; grid-row: 1 / span 2; font: 600 40px/1 var(--display); text-align: right; font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.prices tr.is-intro { background: var(--glass); border-color: var(--glass); margin: 0 calc(var(--gutter) * -1); padding: 22px var(--gutter); }

/* New Here */
.n-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 104px; display: grid; gap: 30px; }
.n-photo { overflow: hidden; border-radius: 4px; }
.n-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 50%; }
.n-text { display: grid; gap: 16px; align-content: start; }
.n-text p { font-size: 19px; max-width: 44ch; }
.n-text .btn { justify-self: start; margin-top: 8px; }

/* Footer: back to the water. */
.foot { position: relative; background: var(--teal); color: var(--white); }
.foot :focus-visible { outline-color: var(--white); }
.foot-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 48px var(--gutter) 56px; display: grid; gap: 8px; font-size: 17px; }
.foot-logo { margin-bottom: 10px; }
.foot-logo .logo { --lg: 40px; }
.foot a { font-weight: 800; white-space: nowrap; }
.foot-demo { margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(169, 201, 185, .4); color: #E4EFEA; }

/* Load moment: the horizon line draws across, then the window opens up and down from it. */
@media (prefers-reduced-motion: no-preference) {
  .horizon { animation: line-draw .9s cubic-bezier(.65, 0, .25, 1) backwards; }
  .strip { animation: window-open 1.2s cubic-bezier(.7, 0, .2, 1) .7s backwards; }
  .strip img { animation: settle 2.2s cubic-bezier(.2, .7, .2, 1) .7s backwards; }
}
@keyframes line-draw { from { background-size: 0% 2px, auto; } to { background-size: 100% 2px, auto; } }
@keyframes window-open { from { clip-path: inset(calc(var(--strip-h) * var(--hz)) 0 calc(var(--strip-h) * (1 - var(--hz))) 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 600px) {
  :root { --gutter: 28px; --strip-h: 300px; --hz: .58; }
  .shore-in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 36px; }
  .title { font-size: clamp(56px, 10.4cqi, 132px); }
  .cls-row { grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "time name side" "time meta side"; }
  .cls-time { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 26px; }
  .passes { grid-template-columns: repeat(3, 1fr); }
  .drawer-fields { grid-template-columns: 1fr 1fr; }
  .speeds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .dock { --dock-h: 380px; }
  .t-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .teacher:nth-child(2) { margin-top: 64px; }
  .teacher:nth-child(3) { margin-top: 24px; }
  .prices tbody tr { grid-template-columns: minmax(170px, 2fr) minmax(0, 4fr) auto; align-items: baseline; }
  .prices td:not(.price) { grid-column: 2; }
  .prices .price { grid-column: 3; grid-row: 1; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .nav { display: flex; gap: 2px; margin-right: 8px; }
  .nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 13px; font: 700 17px/1 var(--body); text-decoration: none; border-radius: 999px; }
  .nav a:hover { background: rgba(30, 77, 81, .08); }
  .top-cta { display: inline-flex; min-height: 48px; }
  .burger { display: none; }
  .menu, .scrim { display: none !important; }
  .top-in { min-height: 76px; }
  .cls-row { grid-template-columns: 124px minmax(0, 1.5fr) minmax(0, 2.4fr) auto; grid-template-areas: "time name meta side"; gap: 16px; padding: 14px 0; }
  .cls-side { grid-template-columns: auto auto; align-items: center; gap: 18px; }

  .ci-head { grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 56px; }
  .ci-head p { padding-bottom: 10px; }
  /* The photos stand on one tide line and rise from Gentle to Strong. */
  .speeds { --rise: clamp(280px, 30vw, 470px); align-items: start; margin-top: 56px; }
  .speed { grid-template-rows: var(--rise) auto auto; }
  .speed figure { align-self: end; }
  .speeds::before { content: ""; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: calc(var(--rise) + 14px); height: 1px; background: var(--teal); }
  .speed h3 { margin-top: 18px; }
  .speed:nth-child(1) img { aspect-ratio: auto; height: calc(var(--rise) * .58); }
  .speed:nth-child(2) img { aspect-ratio: auto; height: calc(var(--rise) * .79); }
  .speed:nth-child(3) img { aspect-ratio: auto; height: var(--rise); }

  /* Dock: title above the line, words below it, photo across it. */
  .dock { --dock-h: 560px; }
  .dock-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: calc(var(--dock-h) * var(--dock-line)) calc(var(--dock-h) * (1 - var(--dock-line))); column-gap: 56px; padding: 96px var(--gutter) 40px; }
  .dock-title { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 22px; }
  .dock-photo { grid-column: 2; grid-row: 1 / span 2; }
  .dock-text { grid-column: 1; grid-row: 2; align-self: start; padding-top: 26px; }

  .t-in { padding-top: 72px; }
  .p-in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
  .p-side { position: sticky; top: 32px; }
  .n-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 56px; }
}

/* The first screen at desktop: headline and offer on sand, the window across the horizon, the schedule in the water. */
@media (min-width: 1180px) {
  :root { --gutter: 56px; --strip-h: 330px; --hz: .64; }
  .shore-in { padding: 14px var(--gutter) 22px; }
  .title { font-size: clamp(80px, 8.6cqi, 116px); }
  .water-in { padding-top: 20px; }
  .days { margin-top: 14px; }
  .day { min-width: 0; flex: 1; }
  .cls-row { padding: 12px 0; }
}
