@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f8f6ee;
  --ink: #10343b;
  --deep: #082a33;
  --mint: #c0ead5;
  --muted: #4a6162;
  --line: #c3cdc3;
  --gutter: clamp(1.25rem, 6vw, 6.5rem);
  --serif: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 "DM Sans", sans-serif; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2, .band-title, .band h3 { font-family: var(--serif); }
h2 { font-size: clamp(3rem, 6vw, 6.15rem); line-height: .95; letter-spacing: -.025em; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { max-width: 106rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-150%); z-index: 10; padding: .6rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 2.75rem; padding: .6rem 1.15rem; border: 1px solid currentColor; border-radius: 100vmax; text-decoration: none; font-size: .88rem; font-weight: 700; }
.pill span { font-size: 1.1em; }
.header-cta:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.primary { color: var(--deep); background: var(--mint); border-color: var(--mint); padding-inline: 1.25rem; }
.primary:hover { background: #e5f7e8; border-color: #e5f7e8; }
.primary:focus-visible { outline-color: white; }

.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; text-decoration: none; font: 400 2.6rem/.85 var(--serif); }
.brand-dot { color: #387f72; }
.masthead nav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); }
.masthead nav a { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .9rem; font-weight: 600; }
.masthead nav a:hover { text-decoration: underline; }
.header-cta { justify-self: end; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--paper); }
.hero-photo { position: absolute; inset: 0 0 0 23%; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 65% 29%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--deep) 22%, #082a33f5 28%, #082a3399 45%, #082a3300 71%), linear-gradient(0deg, #06293277, transparent 30%); }
.hero-inner { position: relative; display: grid; align-items: center; min-height: clamp(34rem, 46vw, 46rem); padding-block: clamp(3.1rem, 5.1vw, 6rem); }
.kicker { display: flex; align-items: center; gap: .65rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.mark { width: .48rem; height: .48rem; border-radius: 50%; background: #377d6c; flex: none; }
.hero .mark, .footer .mark { background: var(--mint); }
.hero h1 { margin-block: 1.15rem 1.1rem; font-size: clamp(5rem, 8.4vw, 9.2rem); line-height: .85; letter-spacing: -.025em; }
.hero h1 em { color: var(--mint); font-weight: 400; }
.hero-description { max-width: 17rem; font-size: clamp(1rem, 1.3vw, 1.16rem); color: #e1eee9; }
.hero .pill { margin-top: 1.55rem; }
.photo-note { position: absolute; bottom: 1.2rem; right: var(--gutter); padding: .24rem .5rem; border-radius: .15rem; color: white; background: #082a33df; font-size: .68rem; letter-spacing: .04em; }

.section-intro, .schedule { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.25rem, 6vw, 6rem); padding-block: clamp(3.25rem, 7vw, 7rem); align-items: end; }
.section-intro .kicker, .schedule .kicker, .footer .kicker { margin-bottom: 1rem; }
.section-intro > p, .classes-intro p, .schedule > div > p:last-child { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 29rem; }
.motion-toggle {
  display: none;
  min-height: 2.75rem;
  margin-top: .45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.band {
  --text-share: 66.666667%;
  --slide: var(--text-share);
  --photo-shift: -33.333333%;
  --motion: .9s cubic-bezier(.25,.72,.24,1);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: var(--text-share) 1fr;
  overflow: hidden;
  background: #e4f0e8;
}
.band + .band { border-top: 2px solid var(--paper); }
.band.hydro {
  --slide: calc(-1 * var(--text-share));
  --photo-shift: 33.333333%;
  grid-template-columns: 1fr var(--text-share);
  background: #e0ebe9;
}
.band-panel {
  grid-area: 1 / 1;
  align-self: center;
  padding: clamp(2.25rem, 4vw, 4.5rem) clamp(1.5rem, 4vw, 4.5rem) clamp(2.25rem, 4vw, 4.5rem) var(--gutter);
}
.hydro .band-panel {
  grid-column: 2;
  padding-inline: clamp(1.5rem, 4vw, 4.5rem) var(--gutter);
}
.band-panel h3 { font-size: clamp(2.65rem, 4.8vw, 5.3rem); line-height: .94; margin-bottom: 1rem; }
.band-lead { max-width: 58ch; font-size: 1.05rem; }
.benefits {
  display: grid;
  gap: .8rem clamp(1rem, 2vw, 2rem);
  margin: 1.2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #9cb3ab;
  list-style: none;
  font-size: .93rem;
}
.benefits strong { display: block; margin-bottom: .2rem; }
.band-panel a { display: inline-block; margin-top: 1.2rem; font-weight: 700; }
.band-cover { grid-area: 1 / 2; position: relative; min-height: 100%; background: #13505b; }
.hydro .band-cover { grid-column: 1; }
.band-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 41%; }
.hydro .band-cover img { object-position: 50% 53%; }
.band-cover .photo-note { bottom: auto; top: 1rem; }
.band-title { display: none; }
.band[data-ready] .band-panel {
  opacity: 0;
  transform: translateY(.65rem);
  transition: opacity .32s ease .15s, transform .5s ease .15s;
}
.band[data-ready] .band-cover {
  grid-area: auto;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--motion);
}
.band[data-ready] .band-cover img { transition: transform var(--motion); }
.band[data-ready] .band-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(8deg, #041e28e8, #092a3355 45%, transparent 70%); pointer-events: none; }
.band[data-ready] .band-title { display: block; position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(1.5rem, 4.6vw, 4.5rem); color: white; font-size: clamp(3.5rem, 7.5vw, 7.5rem); line-height: .9; transition: opacity .26s ease; }
.hydro[data-ready] .band-title { right: var(--gutter); left: auto; }
.band[data-ready] .photo-note { z-index: 1; transition: opacity .26s ease; }
.band[data-open] .band-panel { opacity: 1; transform: none; transition-delay: .12s; }
.band[data-open] .band-cover { transform: translateX(var(--slide)); }
.band[data-open] .band-cover img { transform: translateX(var(--photo-shift)); }
.band[data-open] .band-title, .band[data-open] .band-cover .photo-note { opacity: 0; }
.band-toggle { position: absolute; bottom: clamp(1.5rem, 4.6vw, 4.5rem); right: var(--gutter); z-index: 2; display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .45rem .55rem .45rem .92rem; border: 1px solid #e4f0e8; border-radius: 100vmax; background: var(--deep); color: white; font-size: .83rem; font-weight: 700; cursor: pointer; }
.hydro .band-toggle { left: var(--gutter); right: auto; }
.band-toggle:hover { background: #164a52; }
.toggle-icon { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--mint); color: var(--deep); font-size: 1.1rem; line-height: 1; }

.schedule { align-items: center; }
.schedule > div > p:last-child { margin-top: 1rem; }
.schedule-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.schedule-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.schedule-list h3 { font-size: 1.04rem; font-weight: 700; }
.schedule-list p { color: var(--muted); font-size: .9rem; }
.schedule-list a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; font-size: .88rem; font-weight: 700; }
.space { background: #e6ede4; padding-bottom: clamp(3rem, 6vw, 6rem); }
.space .section-intro { padding-bottom: 2.1rem; }
.space-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.media-slot { display: grid; align-content: center; justify-items: center; gap: .75rem; min-height: clamp(8rem, 19vw, 18rem); border: 1px dashed #819e94; color: #365a57; font-size: .9rem; }
.space-media figure { margin: 0; }
.space-media img, .space-media video { width: 100%; height: auto; display: block; }

.footer { background: var(--deep); color: var(--paper); }
.footer-main { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; padding-block: clamp(3rem, 6vw, 6rem); }
.footer-main h2 { margin-bottom: .75rem; }
.footer-main p:last-child, .footer-contact > span { color: #c8dcd4; }
.footer-contact { display: grid; justify-items: end; gap: .45rem; }
.footer-contact > span { font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid #45666b; color: #c8dcd4; font-size: .86rem; }

@media (min-width: 1120px) {
  .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .section-intro, .schedule { gap: 1.25rem; }
}
@media (max-width: 680px) {
  .masthead-inner { grid-template-columns: 1fr 1fr; gap: .05rem .75rem; padding-top: .8rem; }
  .masthead nav { grid-area: 2 / 1 / 3 / -1; gap: 1.45rem; }
  .header-cta { grid-area: 1 / 2; }
  .brand { font-size: 2.3rem; }
  .brand svg { width: 2rem; height: 2rem; }
  .hero-inner { align-items: end; min-height: 37.5rem; padding-block: 13rem 3.5rem; }
  .hero-photo { inset: 0 0 auto; height: 22rem; mask-image: linear-gradient(black 68%, transparent); }
  .hero-photo img { object-position: 60% 23%; }
  .hero::after { background: linear-gradient(0deg, var(--deep) 40%, #082a33ea 49%, #082a3300 77%); }
  .hero h1 { font-size: clamp(4.2rem, 14vw, 5.85rem); }
  .hero .photo-note { top: .85rem; bottom: auto; }
  .section-intro, .schedule { grid-template-columns: minmax(0, 1fr); }
  .schedule { gap: 1.65rem; }
  .band, .band.hydro { --text-share: 100%; grid-template-columns: minmax(0, 1fr); }
  .band-panel, .hydro .band-panel { grid-column: 1; padding: 1.9rem var(--gutter) 5.5rem; }
  .band:not([data-ready]) .band-cover { grid-area: 2 / 1; min-height: 11rem; }
  .band:not([data-ready]) .band-panel { padding-bottom: 1.9rem; }
  .band[data-ready] .band-title { left: var(--gutter); bottom: 5.45rem; right: var(--gutter); }
  .band-toggle { bottom: 1.55rem; right: var(--gutter); }
  .footer-main { flex-direction: column; align-items: start; }
  .footer-contact { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: inline-block; }
  #clases:not([data-motion]) .band-panel,
  #clases:not([data-motion]) .band-cover,
  #clases:not([data-motion]) .band-cover img,
  #clases:not([data-motion]) .band-title,
  #clases:not([data-motion]) .photo-note { transition: none; }
}
