:root {
  --ink: #15223d;
  --muted: #60708a;
  --paper: #fbf8f3;
  --white: #ffffff;
  --ocean: #29468c;
  --ocean-deep: #17275f;
  --teal: #1298a6;
  --teal-deep: #2374a5;
  --coral: #d35f63;
  --coral-dark: #a94650;
  --gold: #1298a6;
  --line: rgba(21, 34, 61, 0.13);
  --shadow: 0 20px 55px rgba(21, 34, 61, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

.page-top-anchor {
  display: block;
  height: 0;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 6px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 243, 0.92);
  border-bottom: 1px solid rgba(21, 34, 61, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(200px, 25vw, 320px);
  max-height: 82px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(21, 34, 61, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(41, 70, 140, 0.09);
  outline: none;
}

.site-nav .nav-call {
  color: var(--white);
  background: var(--ocean);
}

.site-nav .nav-call:hover,
.site-nav .nav-call:focus-visible {
  color: var(--white);
  background: var(--ocean-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 178px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
  background: #07080c;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-portrait .hero-photo {
  object-fit: cover;
  object-position: center center;
  filter: none;
  transform: none;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.28) 0%, rgba(7, 8, 12, 0.08) 18%, transparent 38%),
    linear-gradient(90deg, rgba(7, 8, 12, 0.86) 0%, rgba(7, 8, 12, 0.54) 30%, rgba(7, 8, 12, 0.12) 48%, transparent 72%),
    linear-gradient(0deg, rgba(7, 8, 12, 0.1), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(880px, 100%);
  min-height: calc(100svh - 178px);
  margin: 0;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 56px) clamp(38px, 6vw, 70px);
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  text-align: left;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--coral-dark);
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(3.6rem, 8.4vw, 8.4rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.48);
}

.hero-copy {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button.primary {
  color: var(--white);
  background: #b44750;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--coral-dark);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.42);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.button.outline {
  color: var(--ocean-deep);
  background: transparent;
  border-color: rgba(41, 70, 140, 0.32);
}

.button.outline:hover,
.button.outline:focus-visible {
  background: rgba(41, 70, 140, 0.08);
}

.button.wide {
  width: 100%;
}

.hero-social {
  display: flex;
  align-items: center;
  width: min(620px, 100%);
  margin: 30px 0 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(23, 39, 95, 0.54);
  box-shadow:
    0 16px 34px rgba(7, 8, 12, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(12px);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(41, 70, 140, 0.7);
  outline: none;
  transform: translateY(-1px);
}

.social-icon {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  place-items: center;
  flex: 0 0 auto;
}

.social-icon-instagram {
  border: 2px solid currentColor;
  border-radius: 7px;
}

.social-icon-instagram::before {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.social-icon-instagram::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.social-icon-facebook {
  align-items: end;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 0.9;
}

.quick-strip {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 1px;
  background: var(--ocean-deep);
  color: var(--white);
}

.strip-item {
  padding: 20px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.05);
}

.strip-item span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.strip-item strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.section {
  padding: clamp(72px, 10vw, 118px) clamp(18px, 4vw, 56px);
}

.section-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(251, 248, 243, 0)),
    var(--paper);
}

.section-head {
  width: min(780px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section-head h2,
.split-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p,
.split-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.course-carousel-shell {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.course-carousel {
  display: flex;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 4px 0 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.course-carousel::-webkit-scrollbar {
  display: none;
}

.course-card {
  flex: 0 0 calc((100% - 54px) / 4);
  height: 270px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  perspective: 1000px;
  scroll-snap-align: start;
  text-align: left;
  --course-image: linear-gradient(140deg, rgba(41, 70, 140, 0.96), rgba(35, 116, 165, 0.9));
  --course-position: center;
}

.course-card:focus-visible {
  outline: 3px solid rgba(211, 95, 99, 0.55);
  outline-offset: 4px;
}

.course-card-inner,
.course-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.course-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.course-card.is-flipped .course-card-inner {
  transform: rotateY(180deg);
}

.course-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  backface-visibility: hidden;
  box-shadow: 0 12px 34px rgba(21, 34, 61, 0.08);
}

.course-front {
  color: var(--white);
  background: var(--ocean);
}

.course-front::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.04), rgba(7, 8, 12, 0.54)),
    linear-gradient(140deg, rgba(41, 70, 140, 0.22), rgba(211, 95, 99, 0.1)),
    var(--course-image);
  background-position: center, center, var(--course-position);
  background-size: cover, cover, cover;
  content: "";
  transform: scale(1.01);
  transition:
    filter 220ms ease,
    transform 420ms ease;
}

.course-card:hover .course-front::before,
.course-card:focus-visible .course-front::before {
  filter: saturate(1.12) contrast(1.02) brightness(1.04);
  transform: scale(1.06);
}

.course-front::after {
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  content: "";
  border: 24px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  z-index: 0;
}

.course-back {
  color: var(--ink);
  background: var(--white);
  transform: rotateY(180deg);
}

.course-number {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: fit-content;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(7, 8, 12, 0.78);
}

.course-title {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  font-size: clamp(1.18rem, 1.6vw, 1.55rem);
  font-weight: 900;
  line-height: 1.06;
  text-shadow:
    0 2px 16px rgba(7, 8, 12, 0.86),
    0 1px 2px rgba(7, 8, 12, 0.76);
}

.course-kicker {
  color: var(--coral-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-info {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.feature-list h3 {
  margin: 44px 0 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.feature-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.staff-section {
  padding: 0 clamp(18px, 4vw, 56px) clamp(72px, 9vw, 110px);
  background: var(--paper);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.staff-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 34, 61, 0.07);
}

.staff-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.1;
}

.staff-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.staff-card-photo {
  position: relative;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.staff-toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.staff-toggle:focus-visible {
  outline: 3px solid white;
  outline-offset: -5px;
}

.staff-card-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  transition:
    transform 520ms ease,
    filter 520ms ease;
}

.staff-name,
.staff-details {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.staff-name {
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.82));
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.staff-name h3,
.staff-details h3 {
  color: var(--white);
  font-size: 1.18rem;
}

.staff-details {
  display: flex;
  min-height: 100%;
  padding: 22px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(
      180deg,
      rgba(7, 8, 12, 0.08) 0%,
      rgba(7, 8, 12, 0.24) 36%,
      rgba(7, 8, 12, 0.58) 68%,
      rgba(7, 8, 12, 0.82) 100%
    );
  transform: translateY(100%);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.staff-details p {
  color: rgba(255, 255, 255, 0.78);
}

.staff-card-photo.is-open img {
  filter: brightness(0.68);
  transform: scale(1.04);
}

.staff-card-photo.is-open .staff-details {
  transform: translateY(0);
}

.staff-card-photo.is-open .staff-name {
  opacity: 0;
  transform: translateY(12px);
}

@media (hover: hover) {
  .staff-card-photo:hover img {
    filter: brightness(0.68);
    transform: scale(1.04);
  }

  .staff-card-photo:hover .staff-details {
    transform: translateY(0);
  }

  .staff-card-photo:hover .staff-name {
    opacity: 0;
    transform: translateY(12px);
  }
}

.gallery-section {
  padding: clamp(72px, 9vw, 112px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(18, 152, 166, 0.32), transparent 30%),
    linear-gradient(135deg, rgba(23, 39, 95, 0.98), rgba(41, 70, 140, 0.94)),
    var(--ocean-deep);
}

.gallery-head p {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-carousel {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 0 16px;
  scroll-behavior: smooth;
  scroll-padding: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  position: relative;
  flex: 0 0 calc((100% - 16px) / 2);
  height: clamp(380px, 42vw, 540px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 8, 12, 0.35);
  cursor: pointer;
  scroll-snap-align: start;
}

.gallery-card img,
.gallery-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-video-card {
  isolation: isolate;
}

.gallery-video-card video {
  background: #07080c;
}

.video-play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(7, 8, 12, 0.42);
  box-shadow:
    0 18px 40px rgba(7, 8, 12, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(10px);
}

.video-play-mark::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--white);
  content: "";
}

.gallery-video-card:hover .video-play-mark,
.gallery-video-card:focus-visible .video-play-mark {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

.gallery-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

.gallery-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.82));
  font-size: 1.08rem;
  font-weight: 900;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(41, 70, 140, 0.82), rgba(211, 95, 99, 0.62));
  box-shadow:
    0 18px 40px rgba(7, 8, 12, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(14px);
}

.gallery-arrow span {
  width: 13px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
}

.gallery-arrow:not(.is-disabled):hover,
.gallery-arrow:not(.is-disabled):focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(41, 70, 140, 0.92), rgba(211, 95, 99, 0.72));
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow.is-disabled {
  opacity: 1;
  transform: translateY(-50%);
}

.gallery-arrow-prev {
  left: -24px;
}

.gallery-arrow-prev span {
  margin-left: 5px;
  transform: rotate(225deg);
}

.gallery-arrow-next {
  right: -24px;
}

.gallery-arrow-next span {
  margin-right: 5px;
  transform: rotate(45deg);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: clamp(18px, 3vw, 42px);
  place-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(211, 95, 99, 0.22), transparent 28%),
    radial-gradient(circle at 18% 76%, rgba(18, 152, 166, 0.2), transparent 32%),
    rgba(7, 8, 12, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  backdrop-filter: blur(18px);
}

.photo-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(82vh, 820px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 8, 12, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  transform: translateY(14px) scale(0.98);
  transition: transform 240ms ease;
}

.photo-lightbox.is-open .lightbox-frame {
  transform: translateY(0) scale(1);
}

.lightbox-frame.is-video {
  width: min(540px, 100%);
}

.lightbox-frame img,
.lightbox-frame video {
  display: block;
  width: 100%;
  max-height: min(82vh, 820px);
  object-fit: contain;
  background: #07080c;
}

.lightbox-frame video {
  height: min(82vh, 820px);
}

.lightbox-frame [hidden] {
  display: none;
}

.lightbox-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.84));
  font-size: 1.02rem;
  font-weight: 900;
  pointer-events: none;
}

.lightbox-frame.is-video figcaption {
  top: 0;
  bottom: auto;
  padding: 24px 28px 64px;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.72), transparent);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(23, 39, 95, 0.7);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(14px);
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(41, 70, 140, 0.82);
  outline: none;
  transform: scale(1.04);
}

.lightbox-close {
  top: clamp(16px, 3vw, 34px);
  right: clamp(16px, 3vw, 34px);
  width: 48px;
  height: 48px;
}

.lightbox-close::before,
.lightbox-close::after {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-arrow span {
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
}

.lightbox-arrow-prev {
  left: clamp(14px, 3vw, 34px);
}

.lightbox-arrow-prev span {
  margin-left: 5px;
  transform: rotate(225deg);
}

.lightbox-arrow-next {
  right: clamp(14px, 3vw, 34px);
}

.lightbox-arrow-next span {
  margin-right: 5px;
  transform: rotate(45deg);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 7vw, 92px);
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.split-section .school-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.split-copy {
  align-self: center;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--ocean);
  font-weight: 900;
  border-bottom: 2px solid rgba(41, 70, 140, 0.28);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--coral-dark);
  border-color: rgba(231, 95, 69, 0.42);
  outline: none;
}

.trial-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(58px, 8vw, 94px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(18, 152, 166, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(21, 34, 61, 0.98), rgba(41, 70, 140, 0.94)),
    var(--ocean-deep);
}

.trial-copy,
.trial-steps {
  width: min(560px, 100%);
}

.trial-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1;
}

.trial-copy p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.trial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trial-steps {
  display: grid;
  gap: 12px;
}

.trial-steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.trial-steps span {
  grid-row: span 2;
  color: var(--teal);
  font-weight: 900;
}

.trial-steps strong {
  font-size: 1.08rem;
}

.trial-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  padding: 28px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 34, 61, 0.08);
}

.feature-list h3 {
  margin-top: 0;
}

.contact-section {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.contact-panel,
.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.contact-intro h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.contact-intro p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-panel .button {
  margin-top: 24px;
}

.map-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--paper);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ocean);
  box-shadow: 0 12px 28px rgba(21, 34, 61, 0.22);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 980px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .contact-layout,
  .trial-section {
    grid-template-columns: 1fr;
  }

  .split-section {
    width: min(720px, calc(100% - 36px));
  }

  .trial-copy,
  .trial-steps,
  .contact-layout {
    width: min(680px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .course-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .gallery-card {
    flex-basis: min(76vw, 440px);
    height: 340px;
  }

  .gallery-arrow-prev {
    left: 8px;
  }

  .gallery-arrow-next {
    right: 8px;
  }
}

@media (max-width: 740px) {
  .section {
    padding: 58px 18px;
  }

  .site-header {
    min-height: 68px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .brand-logo {
    width: min(172px, 50vw);
    max-height: 62px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 12px auto 12px;
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-portrait .hero-photo {
    object-fit: cover;
    object-position: 72% center;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 8, 12, 0.34) 0%, rgba(7, 8, 12, 0.12) 20%, transparent 42%),
      linear-gradient(90deg, rgba(7, 8, 12, 0.82) 0%, rgba(7, 8, 12, 0.56) 48%, rgba(7, 8, 12, 0.08) 100%),
      linear-gradient(0deg, rgba(7, 8, 12, 0.22), transparent 42%);
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    padding: 52px 18px 34px;
  }

  .hero-content > * {
    width: min(100%, 354px);
    max-width: 354px;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.15rem);
    line-height: 0.96;
    white-space: normal;
  }

  .hero-copy {
    max-width: 32rem;
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-social {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: min(100%, 354px);
    max-width: 354px;
    margin-top: 24px;
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }

  .social-links {
    width: 100%;
  }

  .social-link {
    flex: 1 1 150px;
    min-width: 0;
  }

  .strip-item {
    padding: 15px 18px;
  }

  .section-head {
    width: 100%;
    margin-bottom: 28px;
    text-align: left;
  }

  .section-head h2,
  .split-copy h2,
  .trial-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .section-head p,
  .split-copy p,
  .trial-copy p {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .course-card {
    flex-basis: min(84vw, 310px);
    max-width: calc(100vw - 36px);
    height: 250px;
  }

  .course-face {
    padding: 20px;
  }

  .course-title {
    font-size: clamp(1.18rem, 7vw, 1.55rem);
    line-height: 1.08;
  }

  .course-info {
    font-size: 0.96rem;
  }

  .staff-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px 18px 18px;
    width: calc(100% + 36px);
    margin-right: -18px;
    margin-left: -18px;
    scroll-behavior: smooth;
    scroll-padding: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .staff-grid::-webkit-scrollbar {
    display: none;
  }

  .course-card,
  .staff-card,
  .gallery-card,
  .trial-steps article,
  .feature-list article,
  .contact-panel,
  .map-card {
    max-width: 100%;
  }

  .trial-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 354px);
  }

  .trial-actions .button {
    width: 100%;
  }

  .staff-card-photo,
  .staff-card-photo img {
    flex: 0 0 min(78vw, 330px);
    min-height: 430px;
    scroll-snap-align: start;
  }

  .staff-details {
    padding: 22px;
  }

  .staff-details h3,
  .staff-name h3 {
    font-size: 1.35rem;
    line-height: 1.08;
  }

  .trial-section {
    gap: 26px;
    padding: 58px 18px;
  }

  .trial-steps article {
    grid-template-columns: 34px 1fr;
    gap: 6px 12px;
    padding: 18px;
  }

  .feature-list article,
  .contact-panel {
    padding: 22px;
  }

  .gallery-track {
    gap: 12px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .gallery-card {
    flex-basis: min(84vw, 360px);
    max-width: calc(100vw - 36px);
    height: 260px;
  }

  .gallery-card figcaption {
    padding: 18px;
    font-size: 0.98rem;
  }

  .video-play-mark {
    width: 52px;
    height: 52px;
  }

  .video-play-mark::before {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 14px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
    padding-bottom: 3px;
    font-size: 2.2rem;
  }

  .gallery-arrow span {
    width: 11px;
    height: 11px;
  }

  .photo-lightbox {
    padding: 14px;
  }

  .lightbox-frame {
    width: 100%;
    max-height: 78vh;
  }

  .lightbox-frame img,
  .lightbox-frame video {
    max-height: 78vh;
  }

  .lightbox-frame video {
    height: 78vh;
  }

  .lightbox-frame figcaption {
    padding: 54px 18px 18px;
    font-size: 0.95rem;
  }

  .lightbox-frame.is-video figcaption {
    padding: 18px 18px 52px;
  }

  .lightbox-close,
  .lightbox-arrow {
    width: 42px;
    height: 42px;
  }

  .lightbox-arrow span {
    width: 11px;
    height: 11px;
  }

  .map-card {
    min-height: 300px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .hero-content {
    padding-top: 44px;
  }

  .button {
    width: 100%;
  }

  .social-link {
    width: 100%;
  }

  .course-card {
    flex-basis: calc(100vw - 36px);
    height: 245px;
  }

  .staff-card-photo,
  .staff-card-photo img {
    flex-basis: min(82vw, 320px);
    min-height: 390px;
  }

  .contact-panel {
    padding: 18px;
  }

}
