:root {
  color-scheme: light;
  --ink: #17272a;
  --muted: #45565a;
  --pale: #eef4f5;
  --dark: #203b43;
  --line: #cbd9db;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #197391; outline-offset: 5px; }
.masthead :focus-visible, .contact :focus-visible { outline-color: #bce9ff; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p + p { margin-top: 1em; }

.wrap { width: min(100% - var(--gutter) * 2, 84rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .6rem 1rem;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  color: white;
  background: #2c3e40;
}
.hero-media, .masthead::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { object-fit: cover; object-position: center; z-index: -2; }
video.hero-media:not(.is-playing) { opacity: 0; }
.masthead::after {
  content: "";
  z-index: -1;
  opacity: .8;
  background: linear-gradient(90deg, #10191de8, #10191da8 55%, #10191d48),
              linear-gradient(#10191db5, transparent 30%);
}
.site-header { border-bottom: 1px solid #ffffff42; }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: clamp(9.5rem, 16vw, 12rem); height: auto; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }
nav a, .nav-inactive { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; text-transform: uppercase; font-size: .875rem; font-weight: 400; letter-spacing: .05em; }
nav a[aria-current="page"] { font-weight: 700; }
.nav-inactive { opacity: .78; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.menu-toggle {
  min-height: 44px;
  padding: .35rem .8rem;
  border: 1px solid #ffffff96;
  border-radius: .3rem;
  color: white;
  background: #17272a;
}
.menu-toggle { display: none; }
.menu-toggle span { margin-left: .35em; }

.hero-content { margin-block: auto; padding-block: clamp(4rem, 10vh, 8rem) 6rem; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-content .eyebrow { font-weight: 400; }
.eyebrow::after { content: ""; display: block; width: 2.8rem; height: 2px; margin-top: .65rem; background: #72a4b6; }
.hero-content h1 { margin-top: 1.35rem; font-size: clamp(3.4rem, 8.1vw, 8.25rem); }
.hero-intro { max-width: 36rem; margin-top: 1.6rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-detail { max-width: 42rem; margin-top: .6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .7rem 1.45rem;
  border-radius: 100px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.button-light { color: var(--ink); background: white; }
.button-light:hover { background: #dbeef4; }
.hero-content .button, .contact .button { margin-top: 1.65rem; }

.section { padding-block: clamp(3.5rem, 9vw, 8rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 7vw, 7rem); align-items: start; }
.solution-intro, .benefits-intro { container-type: inline-size; }
#solution-heading { font-size: min(9.2cqi, 4.8rem); }
#benefits-heading { font-size: clamp(1.7rem, 10cqi, 4.8rem); }
.split .eyebrow { margin-bottom: 1.2rem; }
.body-copy, .section-intro { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--muted); }
.section-intro { max-width: 38rem; margin-top: 1rem; }
.tinted { background: var(--pale); }
.class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.2rem); margin-top: 2rem; }
.class-grid article { display: flex; flex-direction: column; }
.class-grid article > a { align-self: flex-start; margin-top: auto; padding-top: 1rem; }
.class-grid img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.class-grid h3 { margin-top: 1rem; }
.class-grid p, .steps p { margin-top: .55rem; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 1.15rem 0 1.15rem .5rem; border-top: 1px solid var(--line); }
.steps li::marker { font-weight: 700; color: #365d67; }
.teachers { align-items: center; }
.teachers img { width: 100%; height: auto; }
.teaching-history { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.teaching-history p { margin-top: .65rem; color: var(--muted); }
.student-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.student-quotes figure {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.5rem;
  background: white;
}
.student-quotes blockquote { margin: 0; font-size: 1.2rem; }
.student-quotes figcaption { margin-top: auto; font-weight: 600; color: var(--muted); }
.more-reviews { margin-top: 1.5rem; }
.more-reviews summary {
  width: fit-content;
  padding: .65rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 600;
}
.more-reviews:not([open]) summary span:last-child,
.more-reviews[open] summary span:first-child { display: none; }
.contact { background: var(--dark); color: #fff; text-align: center; }
.contact p { max-width: 36rem; margin: 1rem auto 0; font-size: 1.15rem; }
.contact-email { display: table; margin: 1rem auto 0; overflow-wrap: anywhere; }
.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--pale); color: var(--ink); }
.back-to-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: white;
  color: var(--muted);
  box-shadow: 0 1px 4px #17272a1a;
  z-index: 1;
}
.back-to-top::before, .back-to-top::after {
  content: "";
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateY(3px) rotate(-45deg);
}
.back-to-top::after { margin-top: -4px; }
.back-to-top:hover { color: var(--ink); border-color: #8ca0a4; }
.footer-location { padding-block: 2.5rem 1.5rem; text-align: center; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.footer-bottom .brand { margin-left: auto; }
.footer-legal { color: var(--muted); font-size: .8125rem; line-height: 1.9; }
.footer-legal a { display: inline-block; margin-inline-start: .35em; }

@media (max-width: 56rem) {
  .student-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 43rem) {
  .student-quotes { grid-template-columns: 1fr; }
  .header-inner { min-height: 4.25rem; flex-wrap: wrap; }
  nav { flex-wrap: wrap; gap: 0 1rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; }
  .menu-toggle:not([hidden]) + nav {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    width: min(100%, 19rem);
    display: grid;
    gap: 0;
    padding: .5rem 1rem;
    background: #17272a;
    border: 1px solid #ffffff60;
  }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + nav { display: none; }
  .hero-media { object-position: 62% center; }
  .hero-content h1 { max-width: 15ch; font-size: clamp(2.5rem, 10vw, 4.4rem); }
  .hero-break { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 43rem) {
  .class-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  video.hero-media { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-arrival {
    animation: float-into-view 650ms cubic-bezier(.2, .7, .3, 1);
  }
  img.scroll-arrival {
    animation-duration: 850ms;
    --entry-scale: .985;
  }
  @keyframes float-into-view {
    from { opacity: .55; transform: translateY(25px) scale(var(--entry-scale, 1)); }
    to { opacity: 1; transform: none; }
  }
}
