/* ============================================
   Legacy School of Music — Revamp v2
   Monochrome · Backbone from legacyschoolofmusic.netlify.app
   ============================================ */

@font-face {
  font-family: 'Adam Bold';
  src: url('../assets/fonts/Adam-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --black-2: #0a0a0a;
  --black-3: #141414;
  --black-4: #2a2a2a;
  --white: #ffffff;
  --gray: #888888;
  --gray-light: rgba(255, 255, 255, 0.65);
  --gray-dark: rgba(0, 0, 0, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --border-light: rgba(0, 0, 0, 0.12);
  --font-display: 'Anton', sans-serif;
  --font-brand: 'Adam Bold', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-script: 'Great Vibes', cursive;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) var(--black);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--white); color: var(--black); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }

/* Alternating section bands (hero excluded) */
main > section:nth-child(odd):not(.hero) {
  background: var(--black);
  color: var(--white);
}

main > section:nth-child(even):not(.hero) {
  background: var(--white);
  color: var(--black);
}

main > section:nth-child(even):not(.hero) .eyebrow {
  color: var(--gray);
}

main > section:nth-child(even):not(.hero) .text-neon {
  color: var(--black);
}

main > section:nth-child(even):not(.hero) .section-head p,
main > section:nth-child(even):not(.hero) .why__intro > p,
main > section:nth-child(even):not(.hero) .faq__intro > p {
  color: var(--gray-dark);
}

main > section:nth-child(even):not(.hero) .btn--neon {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

main > section:nth-child(even):not(.hero) .btn--neon:hover {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.2);
}

main > section:nth-child(even):not(.hero) .btn--outline {
  border-color: var(--border-light);
  color: var(--black);
}

main > section:nth-child(even):not(.hero) .btn--outline:hover {
  border-color: var(--black);
  background: rgba(0, 0, 0, 0.04);
}

.script { font-family: var(--font-script); text-transform: none; letter-spacing: 0.02em; }

.brand-text {
  font-family: var(--font-brand) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant: normal;
  font-size: 1em;
}

.nav__links .brand-text,
.mobile-drawer .brand-text,
.footer .brand-text,
.faq-item .brand-text,
.branch .brand-text,
.portal-showcase .brand-text {
  font-family: var(--font-brand) !important;
}

:where(h1, h2, h3, h4, h5, h6, .legacy-ascent__program, .legacy-ascent__eyebrow, .eyebrow) .brand-text {
  font-size: 1em;
  line-height: inherit;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
}

.section-head p,
.why__intro > p,
.faq__intro > p,
.discovery__copy > p {
  color: var(--gray-light);
  font-size: 1.05rem;
  max-width: 56ch;
}

.text-neon {
  color: var(--white);
}

/* Grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--neon {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.12);
}
.btn--neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255, 255, 255, 0.2);
}
.btn--outline {
  border: 1px solid var(--border);
  color: var(--white);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.btn--full { width: 100%; }
/* Honour the hidden attribute on buttons/action bars that form scripts toggle. */
.btn[hidden],
.price-mandate-form__actions[hidden] { display: none; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav__brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.nav__brand span {
  font-family: var(--font-brand);
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--white); }
.nav__dropdown {
  position: relative;
}
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.25s;
  padding: 0;
}
.nav__dropdown-toggle:hover,
.nav__dropdown.is-open .nav__dropdown-toggle,
.nav__dropdown.is-current .nav__dropdown-toggle {
  color: var(--white);
}
.nav__dropdown-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s var(--ease);
}
.nav__dropdown.is-open .nav__dropdown-caret {
  transform: rotate(180deg);
}
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  min-width: 10rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s var(--ease);
  z-index: 20;
}
.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__dropdown-menu a:hover,
.nav__dropdown-menu a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.nav__cta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.2);
}
.nav__franchise {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
  transition: transform 0.3s var(--ease), border-color 0.25s, background 0.25s;
}
.nav__franchise:hover {
  transform: translateY(-1px);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.nav__franchise[aria-current="page"] {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}
.nav__portal {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav__portal:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.2);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
}
.mobile-drawer__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.mobile-drawer__toggle {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-drawer__toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s var(--ease);
}
.mobile-drawer__group.is-open .mobile-drawer__toggle::after {
  transform: rotate(180deg);
}
.mobile-drawer__submenu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.25rem;
}
.mobile-drawer__group.is-open .mobile-drawer__submenu {
  display: flex;
}
.mobile-drawer__submenu a {
  font-family: var(--font-body);
  font-size: 1.1rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.mobile-drawer__cta {
  margin-top: 0.5rem;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh + var(--nav-h));
  min-height: calc(100dvh + var(--nav-h));
  display: flex;
  align-items: flex-start;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + clamp(7rem, 17vh, 11rem)) 0 clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0a;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 28%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1280px, 94vw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.hero__content {
  position: relative;
  min-width: 0;
}
.hero__logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.hero__logo img {
  width: clamp(240px, 36vw, 560px);
  height: auto;
  max-height: min(72vh, 560px);
  object-fit: contain;
  filter: drop-shadow(0 12px 48px rgba(255, 255, 255, 0.18));
  opacity: 0.98;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 12ch;
  letter-spacing: 0.02em;
  line-height: 0.92;
}
.hero__accent {
  color: var(--white);
  font-weight: 400;
}
.hero__desc {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 52ch;
}
.hero__desc strong { color: var(--white); }
.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__stat {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  max-width: 380px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.hero__stat:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.hero__stat.is-updated {
  border-color: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.hero__stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
}
.hero__stat-label,
.hero__stat-recent,
.hero__stat-link {
  font-size: 0.75rem;
  color: var(--gray-light);
  line-height: 1.4;
}
.hero__stat-recent {
  color: var(--white);
  font-weight: 500;
}
.hero__stat-link {
  margin-top: 0.15rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.hero__stat:hover .hero__stat-link {
  color: var(--white);
}

.hero__gift-vouchers {
  margin-top: 0.85rem;
  align-self: flex-start;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Course Finder */
.course-finder {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}
.course-finder__entry .course-finder__step--age {
  display: block !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.course-finder__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.course-finder__step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.course-finder__progress {
  display: flex;
  gap: 0.45rem;
  list-style: none;
}
.course-finder__progress li {
  width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.course-finder__progress li.active,
.course-finder__progress li.done {
  background: var(--white);
}
.course-finder__progress li.active {
  transform: scaleX(1.15);
}
.course-finder__form {
  position: relative;
  z-index: 1;
}
.course-finder__step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.course-finder__step[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.course-finder__step.active {
  display: block !important;
  pointer-events: auto !important;
  visibility: visible !important;
  animation: finderFade 0.4s var(--ease);
}
.course-finder__form[hidden],
.course-finder__result[hidden] {
  display: none !important;
}
@keyframes finderFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.course-finder__question {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  color: var(--white);
}
.course-finder__hint {
  font-size: 0.92rem;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
  max-width: 52ch;
  line-height: 1.65;
}
.course-finder__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 220px;
}
.course-finder__field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.course-finder__field input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  pointer-events: auto;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.course-finder__field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.course-finder__field input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.course-finder__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.course-finder__option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  background: rgba(255, 255, 255, 0.04);
}
.course-finder__option:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.course-finder__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.course-finder__option:has(input:checked) {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px var(--white);
}
.course-finder__option:has(input:disabled) input {
  pointer-events: none;
  cursor: not-allowed;
}
.course-finder__option:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.course-finder__option-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}
.course-finder__option-desc {
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 1.5;
}
main > section .course-finder .btn--outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
main > section .course-finder .btn--outline:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--white);
}
main > section .course-finder .btn--neon {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.12);
}
main > section .course-finder .btn--neon:hover {
  box-shadow: 0 8px 36px rgba(255, 255, 255, 0.2);
}
.course-finder__actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  align-items: center;
  min-height: 3rem;
}
.course-finder__back[hidden] {
  display: none !important;
}
@keyframes finderCtaFlash {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 8px 40px rgba(255, 255, 255, 0.35);
    transform: scale(1.03);
  }
}
#finder-pricing-cta.is-flash {
  animation: finderCtaFlash 1.25s ease-in-out infinite;
}
.course-finder__result {
  background: var(--black);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  animation: finderFade 0.5s var(--ease);
}
.course-finder__result-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
.course-finder__result-course {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.course-finder__result-level {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-bottom: 1rem;
}
.course-finder__result-desc {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 1.75rem;
}
.course-finder__group-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.course-finder__section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.course-finder__section-hint {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 58ch;
}
.course-finder__shop {
  margin-bottom: 1.75rem;
}
.course-finder__shop-list {
  display: grid;
  gap: 0.75rem;
}
.course-finder__shop-card {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 1rem 1.2rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.course-finder__shop-card-media {
  display: grid;
  place-items: center;
  width: 112px;
  height: 90px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #111, #39001f);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.course-finder__shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s var(--ease);
}
.course-finder__shop-card:hover .course-finder__shop-card-media img {
  transform: scale(1.04);
}
.course-finder__shop-card-body {
  min-width: 0;
}
.course-finder__shop-card-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}
.course-finder__shop-card h5 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.course-finder__shop-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.5;
}
.course-finder__shop-card .btn {
  white-space: nowrap;
  padding: 0.8rem 1.25rem;
  font-size: 0.75rem;
}
.course-finder__subscribe {
  margin-bottom: 1.75rem;
}
.course-finder__package-list {
  display: grid;
  gap: 0.85rem;
}
.course-finder__subscribe .course-finder__package {
  margin-bottom: 0;
}
.course-finder__package.is-recommended {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.price-card.is-highlighted {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}
.course-finder__package {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}
.course-finder__package-badge {
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
}
.course-finder__package h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.course-finder__package-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.course-finder__package-duration {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 1.25rem;
}
.course-finder__package ul {
  list-style: none;
  margin-bottom: 0;
}
.course-finder__package li {
  font-size: 0.88rem;
  color: var(--gray-light);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.25rem;
  position: relative;
}
.course-finder__package li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--white);
  font-size: 0.75rem;
}
.course-finder__package-signup {
  margin-top: 1.25rem;
  width: 100%;
}
.course-finder__result-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}
.course-finder__discovery-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}
.course-finder__discovery-prompt-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-light);
  margin: 0;
}
.course-finder__restart {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-left: auto;
  transition: color 0.25s;
}
.course-finder__restart:hover { color: var(--white); }
.course-finder__result .btn--outline {
  border-color: var(--border);
  color: var(--white);
}
.course-finder__result .btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.course-finder__book-cta.is-active {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(255, 0, 127, 0.08);
}
.course-finder__discovery-booking {
  display: none;
  margin-top: 0;
}
.course-finder__discovery-booking.is-open {
  display: block;
  margin-top: 1.25rem;
  animation: finderFade 0.4s var(--ease);
}

.course-finder__result--booking-only {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.course-finder--discovery-booking .course-finder__discovery-booking.is-open {
  margin-top: 0;
}
.course-finder__discovery-slots,
.course-finder__discovery-branch-step,
.course-finder__discovery-teacher {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}
.course-finder__discovery-selection {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}
.course-finder__discovery-hint,
.course-finder__discovery-slots-empty {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray-light);
  margin-bottom: 0.85rem;
}
.course-finder__discovery-step-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.course-finder__discovery-step-actions .btn {
  flex: 1;
}
.course-finder__discovery-teachers {
  margin: 1rem 0;
}
.course-finder__discovery-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.55rem;
}
.course-finder__discovery-heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.course-finder__discovery-branches {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.course-finder__discovery-branch {
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.course-finder__discovery-branch:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
.course-finder__discovery-branch.is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.course-finder__discovery-slot-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.course-finder__discovery-slot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.course-finder__discovery-slot:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.course-finder__discovery-slot.is-selected {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px var(--white);
}
.course-finder__discovery-slot-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.course-finder__discovery-slot-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.5;
}
.course-finder__discovery-slot.is-selected .course-finder__discovery-slot-meta {
  color: var(--gray-light);
}
.course-finder__discovery-slot-check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  opacity: 0;
}
.course-finder__discovery-slot.is-selected .course-finder__discovery-slot-check {
  opacity: 1;
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.course-finder__discovery-slots-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.course-finder__discovery-slots-back,
.course-finder__discovery-close-back,
.course-finder__discovery-back-teacher,
.course-finder__discovery-form-back {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0;
}
.course-finder__discovery-slots-back:hover,
.course-finder__discovery-close-back:hover,
.course-finder__discovery-back-teacher:hover,
.course-finder__discovery-form-back:hover {
  color: var(--white);
}
.course-finder__discovery-continue {
  margin-left: auto;
}
.course-finder__discovery-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.course-finder__discovery-slot-summary {
  margin: 0.35rem 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 0, 127, 0.08);
  border: 1px solid rgba(255, 0, 127, 0.22);
  font-size: 0.92rem;
  line-height: 1.5;
}

.slot-calendar {
  margin-bottom: 1.2rem;
}

.slot-calendar__layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.slot-calendar__picker,
.slot-calendar__times-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.slot-calendar__month-bar {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.slot-calendar__month-label {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}

.slot-calendar__nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.slot-calendar__nav:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.slot-calendar__weekdays,
.slot-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.slot-calendar__weekdays {
  margin-bottom: 0.45rem;
}

.slot-calendar__weekdays span {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.slot-calendar__day {
  aspect-ratio: 1;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-dark);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
}

.slot-calendar__day--empty {
  pointer-events: none;
}

.slot-calendar__day.is-past {
  color: var(--gray-dark);
  opacity: 0.45;
}

.slot-calendar__day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--border-light);
}

.slot-calendar__day.is-available {
  color: #ff007f;
  cursor: pointer;
}

.slot-calendar__day.is-available:hover {
  background: rgba(255, 0, 127, 0.08);
}

.slot-calendar__day.is-selected {
  background: #ff007f;
  color: var(--white);
}

.slot-calendar__date-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.slot-calendar__timezone {
  font-size: 0.78rem;
  color: #ff007f;
  margin-bottom: 1rem;
}

.slot-calendar__period + .slot-calendar__period {
  margin-top: 1rem;
}

.slot-calendar__period-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.55rem;
}

.slot-calendar__times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.slot-calendar__time {
  min-width: 4.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 0, 127, 0.35);
  border-radius: 10px;
  background: transparent;
  color: #ff007f;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slot-calendar__time:hover {
  background: rgba(255, 0, 127, 0.08);
}

.slot-calendar__time.is-selected {
  background: #ff007f;
  border-color: #ff007f;
  color: var(--white);
}

/* Taken times: struck through, muted and not selectable. */
.slot-calendar__time.is-full,
.slot-calendar__time.is-full:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  cursor: not-allowed;
}

.waitlist-modal__dialog {
  max-width: 760px;
}

.waitlist-modal__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.waitlist-modal__form label {
  display: grid;
  gap: 0.5rem;
  color: var(--black);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-modal__form input,
.waitlist-modal__form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 14px;
  background: #fff;
  color: #111;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.waitlist-modal__notes,
.waitlist-modal__hint,
.waitlist-modal__status,
.waitlist-modal__form > .btn {
  grid-column: 1 / -1;
}

.waitlist-modal__hint,
.waitlist-modal__status {
  margin: 0;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.82rem;
  line-height: 1.5;
}

.waitlist-modal__status:not(:empty) {
  border-radius: 14px;
  background: rgba(0, 209, 255, 0.1);
  color: #065f70;
  padding: 0.8rem 1rem;
  font-weight: 700;
}

.slot-calendar__slot-detail,
.slot-calendar__empty {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray-light);
}

.slot-calendar__empty {
  color: var(--gray);
}

@media (max-width: 760px) {
  .waitlist-modal__form {
    grid-template-columns: 1fr;
  }
  .slot-calendar__layout {
    grid-template-columns: 1fr;
  }
}

.course-finder__discovery-form {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.course-finder__discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.25rem;
}
.course-finder__discovery-grid .course-finder__field--full {
  grid-column: 1 / -1;
}
.course-finder__discovery-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}
.course-finder__discovery-form .course-finder__discovery-form-back {
  color: var(--gray);
}
.course-finder__discovery-form .course-finder__discovery-form-back:hover {
  color: var(--white);
}
.course-finder__discovery-form .course-finder__field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font: inherit;
}
.course-finder__discovery-form .course-finder__field select:focus {
  outline: none;
  border-color: var(--neon);
}
.course-finder__discovery-form .course-finder__field textarea {
  width: 100%;
  min-height: 5.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font: inherit;
  resize: vertical;
}
.course-finder__discovery-form .course-finder__field textarea:focus {
  outline: none;
  border-color: var(--neon);
}
.course-finder__discovery-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--gray-light);
  cursor: pointer;
}
.course-finder__discovery-checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--neon);
}
.course-finder__discovery-policy {
  margin-top: 1rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--gray);
}
.course-finder__discovery-policy strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.course-finder__discovery-policy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.course-finder__discovery-success {
  margin-top: 1rem;
  min-height: 420px;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 0, 127, 0.3), transparent 45%),
    linear-gradient(145deg, #080808, #280016);
  border: 1px solid rgba(255, 0, 127, 0.55);
  color: var(--white);
  text-align: center;
  box-shadow: 0 24px 60px rgba(255, 0, 127, 0.18);
}
.course-finder__discovery-form.is-confirmed > :not(.course-finder__discovery-success) {
  display: none;
}
.course-finder__discovery-form.is-confirmed {
  padding: 0;
  border: 0;
  background: transparent;
}
.course-finder__discovery-success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  background: var(--neon);
  color: var(--white);
  font-size: 2.3rem;
  font-weight: 900;
  box-shadow: 0 0 0 12px rgba(255, 0, 127, 0.12);
}
.course-finder__discovery-success-kicker,
.course-finder__discovery-success-detail,
.course-finder__discovery-success-meta,
.course-finder__discovery-success-note,
.course-finder__discovery-success-actions {
  display: block;
}
.course-finder__discovery-success-kicker {
  margin-bottom: 0.65rem;
  color: #ff5eaf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.course-finder__discovery-success strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}
.course-finder__discovery-success-detail {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.course-finder__discovery-success-meta {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
}
.course-finder__discovery-success-note {
  max-width: 52ch;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.65;
}
.course-finder__discovery-success-actions {
  margin-top: 1.5rem;
}
.course-finder__discovery-success-actions .btn {
  margin: 0.3rem;
}

/* Celebration pop-up (sign-up complete, shop order paid) — same card as the
   discovery-session "booked" confirmation, shown over the page. */
body.legacy-celebrate-open {
  overflow: hidden;
}
.legacy-celebrate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.legacy-celebrate.is-open {
  opacity: 1;
}
.legacy-celebrate__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.legacy-celebrate__dialog {
  position: relative;
  width: min(580px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 24px;
  outline: none;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}
.legacy-celebrate.is-open .legacy-celebrate__dialog {
  transform: none;
}
.legacy-celebrate__card.course-finder__discovery-success {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  min-height: 0;
}
.legacy-celebrate__card > :not(.legacy-celebrate__confetti) {
  position: relative;
}
.legacy-celebrate__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.legacy-celebrate__close:hover,
.legacy-celebrate__close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}
.legacy-celebrate .course-finder__discovery-success-icon {
  animation: legacy-celebrate-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.legacy-celebrate__steps-heading {
  display: block;
  margin-top: 1.5rem;
  color: #ff5eaf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.legacy-celebrate__steps {
  display: grid;
  gap: 0.65rem;
  max-width: 44ch;
  margin: 0.85rem auto 0;
  padding: 0;
  list-style: none;
  counter-reset: legacy-step;
  text-align: left;
}
.legacy-celebrate__steps li {
  position: relative;
  padding-left: 2.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.55;
  counter-increment: legacy-step;
}
.legacy-celebrate__steps li::before {
  content: counter(legacy-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(255, 0, 127, 0.22);
  color: #ff5eaf;
  font-size: 0.78rem;
  font-weight: 800;
}
.legacy-celebrate--muted .legacy-celebrate__card.course-finder__discovery-success {
  background: linear-gradient(145deg, #080808, #1c1c1c);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.legacy-celebrate--muted .course-finder__discovery-success-icon {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.05);
  animation: none;
}
.legacy-celebrate--muted .course-finder__discovery-success-kicker {
  color: rgba(255, 255, 255, 0.7);
}
.legacy-celebrate__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.legacy-celebrate__confetti span {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: legacy-confetti-fall 2.8s ease-in forwards;
}
@keyframes legacy-confetti-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--legacy-confetti-drift, 0), 520px) rotate(540deg); }
}
@keyframes legacy-celebrate-pop {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
/* shop.html#gift-vouchers scrolls here; keep it clear of the fixed nav. */
.shop-categories,
.shop-store__grid {
  scroll-margin-top: calc(var(--nav-h, 80px) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  .legacy-celebrate,
  .legacy-celebrate__dialog {
    transition: none;
  }
  .legacy-celebrate .course-finder__discovery-success-icon {
    animation: none;
  }
  .legacy-celebrate__confetti {
    display: none;
  }
}

/* Why */
.why__intro {
  max-width: 680px;
  margin-bottom: 2.5rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border-light);
}
.why__intro .legacy-ascent__lead {
  margin-bottom: 0;
}
.why__intro h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.why__bento {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  color: var(--black);
  transition: border-color 0.35s, background 0.35s;
}
.why-card:hover {
  border-color: rgba(0, 0, 0, 0.35);
  background: var(--white);
}
.why-card--large { grid-row: span 2; border-color: rgba(255, 0, 127, 0.45); }
.why-card--large .why-card__num { color: #ff007f; }
.why-card--wide { grid-column: span 2; }
.why-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(0, 0, 0, 0.1);
  display: block;
  margin-bottom: 1rem;
  transition: color 0.35s;
}
.why-card:hover .why-card__num { color: var(--black); }
.why-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--black);
}
.why-card p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.65;
}

/* Legacy Portal showcase */
.portal-showcase {
  overflow: hidden;
}
.portal-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.portal-showcase__features {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
}
.portal-showcase__features li {
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
}
.portal-showcase__features strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.portal-showcase__features span {
  display: block;
  font-size: 0.92rem;
  color: var(--gray-dark);
  line-height: 1.55;
}
.portal-showcase__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.portal-showcase__stores-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 0.65rem;
}
.portal-showcase__store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.portal-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 9.75rem;
  height: 2.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.portal-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.portal-store-badge__icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex-shrink: 0;
}
.portal-store-badge__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1;
  min-width: 0;
}
.portal-store-badge__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}
.portal-store-badge__name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  white-space: nowrap;
}
.portal-showcase__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.portal-showcase__image {
  display: block;
  width: min(100%, 960px);
  max-width: none;
  margin-inline: auto;
  height: auto;
}
@media (max-width: 960px) {
  .portal-showcase__grid {
    grid-template-columns: 1fr;
  }
  .portal-showcase__visual {
    order: -1;
  }
  .portal-showcase__image {
    width: min(100%, 720px);
  }
}
@media (max-width: 600px) {
  .portal-store-badge {
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* Legacy Ascent journey */
.legacy-ascent {
  margin-bottom: 0;
}
.legacy-ascent__header {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.legacy-ascent__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
.legacy-ascent__program {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: var(--black);
}
.legacy-ascent__accent {
  color: #ff007f;
}
main > section:nth-child(odd):not(.hero) .legacy-ascent__program {
  color: var(--white);
}
body.theme-portal .legacy-ascent__program {
  color: var(--black) !important;
}
body.theme-portal .legacy-ascent__accent {
  color: var(--portal-pink) !important;
}
.legacy-ascent__lead {
  font-size: 1.05rem;
  color: var(--gray-light);
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 1.25rem;
}
.legacy-ascent__ages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.legacy-ascent__ages span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gray-light);
}
.legacy-ascent__path {
  list-style: none;
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0 0 0 3.75rem;
}
.legacy-ascent__path::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.35) 12%,
    rgba(255, 255, 255, 0.35) 88%,
    rgba(255, 255, 255, 0.05)
  );
}
.ascent-step {
  position: relative;
}
.ascent-step__num {
  position: absolute;
  left: -3.75rem;
  top: 1.35rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-dark);
  z-index: 1;
}
.ascent-step__card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  color: var(--black);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.ascent-step__card:hover {
  border-color: rgba(0, 0, 0, 0.32);
  transform: translateX(4px);
}
.ascent-step__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}
.ascent-step__card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  line-height: 1.1;
  color: var(--black);
}
.ascent-step__card p {
  font-size: 0.88rem;
  color: var(--gray-dark);
  line-height: 1.65;
  max-width: 62ch;
}
.ascent-step__card strong {
  color: var(--black);
  font-weight: 600;
}
.ascent-step__card--start,
.ascent-step__card--finish {
  border-color: rgba(0, 0, 0, 0.2);
  background: var(--white);
}
.ascent-step:first-child .ascent-step__num,
.ascent-step:last-child .ascent-step__num {
  border-color: rgba(0, 0, 0, 0.35);
  color: var(--black);
}
.legacy-ascent__outro-wrap {
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .legacy-ascent__path {
    padding: 0;
    gap: 0;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
  }
  .legacy-ascent__path::before {
    left: 10%;
    right: 10%;
    top: 2.45rem;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.35) 10%,
      rgba(255, 255, 255, 0.35) 90%,
      rgba(255, 255, 255, 0.05)
    );
  }
  .ascent-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.45rem;
    text-align: center;
  }
  .ascent-step__num {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 1rem;
  }
  .ascent-step__card {
    width: 100%;
    height: 100%;
    text-align: left;
  }
  .ascent-step__card:hover {
    transform: translateY(-4px);
  }
  .ascent-step__card p {
    max-width: none;
  }
}

/* Google Reviews */
.google-reviews__summary {
  margin-bottom: 2rem;
}
.google-reviews__summary-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.google-reviews__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.google-reviews__g {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.google-reviews__rating-block {
  text-align: center;
}
.google-reviews__score {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.google-reviews__stars,
#google-reviews-stars {
  display: inline-flex;
  gap: 0.1rem;
  margin-bottom: 0.35rem;
}
.google-reviews__star {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.25);
}
.google-reviews__star.is-filled {
  color: #fbbc04;
}
.google-reviews__count {
  font-size: 0.82rem;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}
.google-reviews__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}
.google-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.google-reviews__loading,
.google-reviews__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-light);
  font-size: 0.95rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.google-reviews__attribution {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.google-review-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.25rem;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.google-review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.google-review-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem;
}
.google-review-card__head .google-reviews__g {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}
.google-review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.google-review-card__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.google-review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.google-review-card__author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
a.google-review-card__author:hover {
  text-decoration: underline;
}
.google-review-card__meta .google-reviews__stars {
  justify-content: flex-start;
}
.google-review-card__meta .google-reviews__star {
  font-size: 0.78rem;
}
.google-review-card__quote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-light);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.google-review-card time {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

main > section.testimonials:nth-child(even) .google-reviews__count,
main > section.testimonials:nth-child(even) .google-reviews__loading,
main > section.testimonials:nth-child(even) .google-reviews__empty {
  color: var(--gray-dark);
}

main > section.testimonials:nth-child(even) .google-reviews__summary-card,
main > section.testimonials:nth-child(even) .google-review-card {
  background: rgba(255, 255, 255, 0.72);
}

main > section.testimonials:nth-child(even) .google-reviews__score,
main > section.testimonials:nth-child(even) .google-reviews__brand,
main > section.testimonials:nth-child(even) .google-review-card__author {
  color: var(--black);
}

main > section.testimonials:nth-child(even) .google-review-card__quote {
  color: var(--black);
}

main > section.testimonials:nth-child(even) .google-reviews__attribution {
  color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 860px) {
  .google-reviews__summary-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .google-reviews__actions {
    justify-content: center;
  }
  .google-reviews__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }
  .google-review-card {
    flex: 0 0 min(88vw, 320px);
    scroll-snap-align: start;
  }
}

/* Teachers */
.teachers__team-btn {
  margin-top: 1.5rem;
  background: var(--black) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.teachers__team-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.2);
}
.teachers__scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.teacher-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.35s;
}
.teacher-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
}
.teacher-card__photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.teacher-card__photo::after {
  content: 'View profile';
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.teacher-card__photo:hover::after,
.teacher-card__photo:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.teacher-card__photo:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}
.teacher-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.teacher-card__photo:hover img,
.teacher-card__photo:focus-visible img {
  transform: scale(1.04);
}
.teacher-card h3 {
  font-size: 1.2rem;
  padding: 1rem 1rem 0.25rem;
}
.teacher-card p {
  font-size: 0.8rem;
  color: var(--gray);
  padding: 0 1rem 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.teacher-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0 1rem 1.25rem;
  justify-content: center;
}
.teacher-card__tags li {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  border: 1px solid var(--border);
}

.teacher-flashcard {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  perspective: 1200px;
  pointer-events: none;
}
.teacher-flashcard[hidden] {
  display: none !important;
}
.teacher-flashcard.is-open {
  pointer-events: auto;
}
.teacher-flashcard__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.teacher-flashcard__card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotateY(-18deg) scale(0.82);
  opacity: 0;
  transition: transform 0.42s var(--ease), opacity 0.35s ease;
  transform-style: preserve-3d;
}
.teacher-flashcard.is-open .teacher-flashcard__backdrop {
  opacity: 1;
}
.teacher-flashcard.is-open .teacher-flashcard__card {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
}
.teacher-flashcard__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.teacher-flashcard__close:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.teacher-flashcard__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) 1.05fr;
  gap: 0;
}
.teacher-flashcard__media {
  min-height: 100%;
  background: var(--black-2);
}
.teacher-flashcard__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.teacher-flashcard__body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}
.teacher-flashcard__role {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.teacher-flashcard__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.05;
}
.teacher-flashcard__bio {
  color: var(--gray-light);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 38ch;
}
.teacher-flashcard__cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 760px) {
  .teacher-flashcard__inner {
    grid-template-columns: 1fr;
  }
  .teacher-flashcard__media img {
    min-height: 260px;
    max-height: 42vh;
  }
}

/* Pricing */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}
.price-card--featured {
  border-color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, var(--black-3) 40%);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.08);
}
.price-card__badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  white-space: nowrap;
}
.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.price-card__billing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.price-billing__option {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--gray-dark);
  transition: background 0.25s, color 0.25s;
}
.price-billing__option.is-active {
  background: var(--black);
  color: var(--white);
}
.price-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.price-card__duration {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}
.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 0;
}
.price-card__footer {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Pro rata calculator modal */
.pro-rata-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}
.pro-rata-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pro-rata-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.pro-rata-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(92vh, 46rem);
  overflow: auto;
  background: var(--white);
  color: var(--black);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  outline: none;
}
.pro-rata-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.pro-rata-modal__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.35rem;
}
.pro-rata-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pro-rata-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.pro-rata-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.pro-rata-modal__plan {
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.pro-rata-modal__date {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0 0 0.35rem;
}
.pro-rata-modal__term {
  font-size: 0.82rem;
  color: var(--gray-dark, #444);
  margin: 0 0 1.15rem;
  font-weight: 600;
}
.pro-rata-modal__breakdown {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
}
.pro-rata-modal__breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.pro-rata-modal__breakdown dt {
  font-size: 0.82rem;
  color: var(--gray);
}
.pro-rata-modal__breakdown dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.pro-rata-modal__schedule {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}
.pro-rata-modal__schedule-heading {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.pro-rata-modal__schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.pro-rata-modal__schedule-row--due {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 0, 127, 0.25);
  border-radius: 14px;
  background: rgba(255, 0, 127, 0.05);
}
.pro-rata-modal__schedule-row--ongoing {
  border-bottom: 0;
  padding-bottom: 0;
}
.pro-rata-modal__schedule-label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
}
.pro-rata-modal__schedule-meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--gray);
}
.pro-rata-modal__schedule-amount {
  margin: 0;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.pro-rata-modal__schedule-row--due .pro-rata-modal__schedule-amount {
  color: var(--accent, #ff007f);
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.pro-rata-modal__settle {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  cursor: pointer;
}
.pro-rata-modal__settle input {
  margin-top: 0.2rem;
  accent-color: var(--accent, #ff007f);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.pro-rata-modal__settle-copy {
  display: grid;
  gap: 0.25rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--gray-dark, #444);
}
.pro-rata-modal__settle-copy strong {
  color: var(--black);
  font-size: 0.92rem;
}
.pro-rata-modal__settle-breakdown {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.pro-rata-modal__settle-breakdown-title {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.pro-rata-modal__settle-breakdown-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.pro-rata-modal__settle-breakdown-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--gray-dark, #444);
}
.pro-rata-modal__settle-breakdown-list strong {
  color: var(--black);
  white-space: nowrap;
}
.pro-rata-modal__settle-breakdown-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.88rem;
}
.pro-rata-modal__settle-breakdown-total--due {
  margin-top: 0.55rem;
  font-weight: 700;
}
.pro-rata-modal__settle-breakdown-total--due strong {
  color: var(--accent, #ff007f);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.pro-rata-modal__note {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--gray);
  margin: 0 0 1.25rem;
}
.pro-rata-modal__actions {
  display: flex;
  gap: 0.75rem;
}
.pro-rata-modal__actions .btn {
  flex: 1;
}
body.pro-rata-modal-open {
  overflow: hidden;
}
.price-card__addons-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.55rem;
}
.price-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: transparent;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.price-addon:hover:not(.price-addon--included) {
  border-color: rgba(0, 0, 0, 0.35);
}
.price-addon[aria-pressed="true"] {
  border-color: var(--black);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 1px var(--black);
}
.price-addon--included {
  cursor: default;
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-light);
}
.price-addon__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
}
.price-addon__price {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dark);
  white-space: nowrap;
}
.price-addon[aria-pressed="true"] .price-addon__price {
  color: var(--black);
}
.price-addon--included .price-addon__price {
  color: var(--gray);
}
.price-card li {
  font-size: 0.88rem;
  color: var(--gray-light);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.25rem;
  position: relative;
}
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--white);
  font-size: 0.75rem;
}

.price-signup-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.price-signup-modal.is-open {
  display: flex;
}

body.price-signup-modal-open {
  overflow: hidden;
}

.price-signup-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.price-signup-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 96vw);
  height: min(92dvh, calc(var(--modal-vh, 1vh) * 92));
  max-height: min(92dvh, calc(var(--modal-vh, 1vh) * 92));
  min-height: 0;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  outline: none;
}

.price-signup-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.price-signup-modal__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.35rem;
}

.price-signup-modal__title {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.price-signup-modal__plan {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  line-height: 1.45;
}

.price-signup-modal__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.price-signup-modal__close:hover {
  border-color: var(--white);
}

.price-signup-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scroll-padding-bottom: 2rem;
  padding: 1.25rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.price-signup-modal .price-signup__instruments {
  max-height: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.65rem;
}

.price-signup-modal .price-mandate-form__grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.price-signup-modal .slot-calendar {
  min-height: 22rem;
}

.price-signup-modal .course-finder__top {
  margin-bottom: 1.25rem;
}

.price-signup-modal .course-finder__result {
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.price-signup-modal .course-finder__discovery-booking.is-open {
  margin-bottom: 0.5rem;
}

.price-signup-modal .course-finder__instruments {
  max-height: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.65rem;
}

.price-signup-modal .course-finder__options {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.price-signup__hint,
.price-signup__selection,
.price-signup__department-hint,
.price-signup__slots-empty {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray-light);
  margin-bottom: 0.85rem;
}

.price-signup__selection {
  font-weight: 600;
  color: var(--white);
}

.price-signup__instruments {
  margin: 0.85rem 0 1rem;
  max-height: none;
  overflow: visible;
}

.price-signup__step[data-price-signup-step="instrument"] .price-signup__continue-instrument {
  display: none;
}

.price-signup__instruments .course-finder__option {
  padding: 0.85rem 1rem;
}

.price-signup__teachers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.price-signup-teacher {
  display: block;
  cursor: pointer;
}

.price-signup-teacher input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-signup-teacher__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--black-3);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.price-signup-teacher:hover .price-signup-teacher__card,
.price-signup-teacher:focus-within .price-signup-teacher__card {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

.price-signup-teacher.is-selected .price-signup-teacher__card {
  border-color: var(--white);
  box-shadow: 0 0 0 1px var(--white);
}

.price-signup-teacher__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.price-signup-teacher__body {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem 1rem;
}

.price-signup-teacher__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.price-signup-teacher__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.price-signup-teacher__tagline {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--gray-light);
  margin-top: 0.15rem;
}

.price-signup__step-actions,
.price-signup__slots-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.price-signup__step-actions .btn,
.price-signup__slots-footer .btn {
  flex: 1;
}

.price-mandate-form__slot-summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.price-mandate-form__payment {
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.price-mandate-form__payment-heading {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.price-mandate-form__payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.price-mandate-form__payment-card {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-mandate-form__payment-card--due {
  border-color: rgba(255, 0, 127, 0.35);
  background: rgba(255, 0, 127, 0.08);
}

.price-mandate-form__payment-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.price-mandate-form__payment-value {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--white);
}

.price-mandate-form__payment-card--due .price-mandate-form__payment-value {
  color: var(--accent, #ff007f);
}

.price-mandate-form__payment-meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--gray-light);
}

.price-mandate-form__payment-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray-light);
}

.price-mandate-form__title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.price-mandate-form__summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.price-mandate-form__hint {
  font-size: 0.78rem;
  color: var(--gray-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.price-mandate-form__section {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.price-mandate-form__section legend {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.65rem;
  padding: 0;
}

.price-mandate-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.price-mandate-form__field {
  display: grid;
  gap: 0.35rem;
}

.price-mandate-form__field--full {
  grid-column: 1 / -1;
}

.price-mandate-form__field span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-light);
}

.price-mandate-form__field input,
.price-mandate-form__field select,
.price-mandate-form__field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.84rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.price-mandate-form__field input::placeholder,
.price-mandate-form__field textarea::placeholder {
  color: var(--gray-dark);
}

.price-mandate-form__field input:focus,
.price-mandate-form__field select:focus,
.price-mandate-form__field textarea:focus {
  outline: none;
  border-color: var(--white);
}

.price-mandate-form__field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.price-mandate-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gray-light);
  margin-bottom: 0.65rem;
}

.price-mandate-form__checkbox input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.price-mandate-form__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.price-mandate-form__actions .btn {
  flex: 1;
}

.price-mandate-form__policy {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--gray);
  margin-top: 0.85rem;
}

.price-mandate-form__policy strong {
  color: var(--gray-light);
}

.price-mandate-form__policy a {
  color: var(--white);
  text-decoration: underline;
}

.price-mandate-form__success {
  font-size: 0.88rem;
  color: var(--white);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Sign-up: optional teacher filter on the time step */
.price-signup__teacher-filter[hidden] { display: none; }

.price-signup__teacher-filter {
  margin: 0 0 0.85rem;
}

.price-signup__teacher-filter-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.price-signup__teacher-filter-label span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.price-signup__teacher-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.price-signup__teacher-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
}

.price-signup__teacher-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-signup__teacher-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.price-signup__teacher-chip.is-selected {
  border-color: var(--accent, #ff007f);
  box-shadow: 0 0 0 1px var(--accent, #ff007f);
}

.price-signup__teacher-chip:focus-within {
  outline: 2px solid var(--accent, #ff007f);
  outline-offset: 2px;
}

/* Sign-up: server payment quote on the details step */
.price-mandate-form__quote-status {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gray-light);
}

.price-mandate-form__quote-status[hidden],
.price-mandate-form__quote[hidden],
.price-mandate-form__schedule[hidden],
.price-mandate-form__quote-small[hidden],
.price-mandate-form__settle[hidden],
.price-mandate-form__error[hidden] { display: none; }

.price-mandate-form__quote-status p {
  margin: 0 0 0.65rem;
}

.price-mandate-form__quote-status.is-error {
  color: #ff5c8a;
}

.price-mandate-form__quote {
  display: grid;
  gap: 0.75rem;
}

.price-mandate-form__settle {
  margin: 0;
}

.price-mandate-form__schedule-heading {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.price-mandate-form__schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.price-mandate-form__schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-light);
}

.price-mandate-form__schedule-list strong {
  color: var(--white);
  white-space: nowrap;
}

.price-mandate-form__schedule-list s {
  font-weight: 400;
  opacity: 0.6;
}

.price-mandate-form__quote .price-mandate-form__payment-note {
  margin: 0;
}

.price-mandate-form__quote-small {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--gray);
}

.price-mandate-form__error {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 127, 0.4);
  background: rgba(255, 0, 127, 0.08);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--white);
}

@media (max-width: 640px) {
  .price-mandate-form__grid {
    grid-template-columns: 1fr;
  }

  .price-mandate-form__payment-grid {
    grid-template-columns: 1fr;
  }

  .price-mandate-form__actions {
    flex-direction: column;
  }
}

main > section.pricing:nth-child(even) .price-card {
  background: var(--white);
  border-color: var(--border-light);
}

@keyframes corePlanFlash {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--black);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12), 0 28px 72px rgba(0, 0, 0, 0.14);
    border-color: rgba(0, 0, 0, 0.75);
  }
}

main > section.pricing:nth-child(even) .price-card--featured {
  border-color: var(--black);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, var(--white) 40%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  animation: corePlanFlash 2.2s ease-in-out infinite;
}

main > section.pricing:nth-child(even) .price-card__amount {
  color: var(--black);
}

main > section.pricing:nth-child(even) .price-card__duration,
main > section.pricing:nth-child(even) .price-card li {
  color: var(--gray-dark);
}

main > section.pricing:nth-child(even) .price-card li {
  border-bottom-color: var(--border-light);
}

main > section.pricing:nth-child(even) .price-card li::before {
  color: var(--black);
}

main > section.pricing:nth-child(even) .price-addon {
  border-color: var(--border-light);
}

main > section.pricing:nth-child(even) .price-addon[aria-pressed="true"] {
  border-color: var(--black);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 1px var(--black);
}

main > section.pricing:nth-child(even) .price-card__billing {
  border-color: var(--border-light);
}

main > section.pricing:nth-child(even) .price-billing__option.is-active {
  background: var(--black);
  color: var(--white);
}

main > section.pricing:nth-child(even) .price-mandate-form__hint,
main > section.pricing:nth-child(even) .price-mandate-form__field span,
main > section.pricing:nth-child(even) .price-mandate-form__checkbox,
main > section.pricing:nth-child(even) .price-mandate-form__policy {
  color: var(--gray-dark);
}

main > section.pricing:nth-child(even) .price-mandate-form__field input,
main > section.pricing:nth-child(even) .price-mandate-form__field select,
main > section.pricing:nth-child(even) .price-mandate-form__field textarea {
  color: var(--black);
  background: var(--white);
  border-color: var(--border-light);
}

main > section.pricing:nth-child(even) .price-mandate-form__field input:focus,
main > section.pricing:nth-child(even) .price-mandate-form__field select:focus,
main > section.pricing:nth-child(even) .price-mandate-form__field textarea:focus {
  border-color: var(--black);
}

main > section.pricing:nth-child(even) .price-mandate-form__policy strong,
main > section.pricing:nth-child(even) .price-mandate-form__success {
  color: var(--black);
}

main > section.pricing:nth-child(even) .price-mandate-form__policy a {
  color: var(--black);
}

main > section.pricing:nth-child(even) .price-signup__hint,
main > section.pricing:nth-child(even) .price-signup__department-hint,
main > section.pricing:nth-child(even) .price-signup__slots-empty {
  color: var(--gray-dark);
}

main > section.pricing:nth-child(even) .price-signup__selection,
main > section.pricing:nth-child(even) .price-mandate-form__slot-summary {
  color: var(--black);
}

/* Branches */
.branches__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.branch {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  overflow: hidden;
}
.branch__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 0.5rem;
}
.branch h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.branch > p {
  font-size: 0.85rem;
  color: var(--gray-light);
}
.branch__desc {
  margin: 1rem 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.65;
}
.branch iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 12px;
  margin: 1rem 0;
  filter: grayscale(1) contrast(1.1);
}
.branch__link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.branch__link:hover { opacity: 0.7; }

/* FAQ */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq__intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gray); }
.faq-item p {
  font-size: 0.9rem;
  color: var(--gray-light);
  padding-bottom: 1.25rem;
  line-height: 1.7;
  max-width: 56ch;
}

main > section.faq:nth-child(even) .faq-item {
  border-bottom-color: var(--border-light);
}

main > section.faq:nth-child(even) .faq-item summary::after {
  color: var(--black);
}

main > section.faq:nth-child(even) .faq-item summary:hover {
  color: var(--gray);
}

main > section.faq:nth-child(even) .faq-item p {
  color: var(--gray-dark);
}

/* Discovery */
.discovery {
  position: relative;
  overflow: hidden;
}
.discovery__glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.discovery__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 1;
}
.discovery__copy h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}
.discovery__steps {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}
.discovery__steps li {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--gray-light);
}
.discovery__steps li.active {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.discovery .course-finder {
  margin: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer__logo-link span {
  font-family: var(--font-brand);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__logo-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.footer__brand p {
  font-size: 0.9rem;
  color: var(--gray-light);
  max-width: 36ch;
  line-height: 1.65;
}
.footer__social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--gray-dark);
  transition: color 0.25s, transform 0.25s;
}
.footer__social a:hover {
  color: var(--black);
  transform: translateY(-2px);
}
.footer__social-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}
.footer h3 {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}
.footer ul { list-style: none; }
.footer li {
  font-size: 0.88rem;
  color: var(--gray-light);
  margin-bottom: 0.6rem;
}
.footer a { transition: color 0.25s; }
.footer a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
}
.footer__bottom div { display: flex; gap: 1.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .course-finder__options,
  .pricing__grid,
  .teachers__scroll { grid-template-columns: 1fr; }
  .why__bento { grid-template-columns: 1fr 1fr; }
  .why-card--large { grid-row: auto; }
  .why-card--wide { grid-column: span 1; }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    position: relative;
  }
  .hero__content {
    position: relative;
    z-index: 3;
    padding-right: min(38vw, 150px);
  }
  .hero__logo {
    position: absolute;
    top: 0;
    right: 0;
    justify-content: flex-end;
    margin-top: 0;
    z-index: 4;
    pointer-events: none;
  }
  .hero__logo img {
    width: min(140px, 34vw);
    max-height: 140px;
  }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .why__bento,
  .branches__grid,
  .faq__grid,
  .discovery__grid,
  .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials__arrow { display: none; }
  .course-finder__result-actions { flex-direction: column; align-items: stretch; }
  .course-finder__restart { margin-left: 0; text-align: center; }
  .price-signup-modal {
    padding: 0;
    align-items: stretch;
  }
  .price-signup-modal__dialog {
    width: 100%;
    height: calc(var(--modal-vh, 1vh) * 100);
    max-height: calc(var(--modal-vh, 1vh) * 100);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }
  .price-signup-modal__header {
    padding: 1rem 1rem 0.85rem;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
  }
  .price-signup-modal__title {
    font-size: 1.15rem;
  }
  .price-signup-modal__body {
    padding: 1rem 1rem calc(3rem + env(safe-area-inset-bottom, 0px));
  }
  .price-signup-modal .course-finder__options,
  .price-signup-modal .course-finder__instruments,
  .price-signup-modal .price-signup__instruments,
  .price-signup-modal .pricing__grid.course-finder__package-list {
    grid-template-columns: 1fr;
  }
  .price-signup-modal .slot-calendar {
    min-height: 18rem;
  }
  .course-finder__discovery-slots-footer { flex-direction: column; align-items: stretch; }
  .course-finder__discovery-continue { width: 100%; margin-left: 0; }
  .course-finder__discovery-grid { grid-template-columns: 1fr; }
  .course-finder__shop-card { grid-template-columns: 88px 1fr; }
  .course-finder__shop-card-media { width: 88px; height: 78px; }
  .course-finder__shop-card-body { align-self: center; }
  .course-finder__shop-card .btn { grid-column: 1 / -1; width: 100%; text-align: center; }
}

/* Franchising page */
.franchise-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)) 0 clamp(4rem, 10vh, 6rem);
  background: var(--black);
  border-bottom: 1px solid var(--border);
}
.franchise-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.franchise-hero__copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.franchise-hero__copy p {
  color: var(--gray-light);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.franchise-hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.franchise-hero__logo {
  display: flex;
  justify-content: flex-end;
}
.franchise-hero__logo img {
  width: clamp(220px, 32vw, 480px);
  height: auto;
  object-fit: contain;
}
.franchise-section--light {
  background: var(--white);
  color: var(--black);
}
.franchise-section--light .eyebrow { color: var(--gray); }
.franchise-section--light .text-neon { color: var(--black); }
.franchise-section--light .section-head p { color: var(--gray-dark); }
.franchise-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.franchise-stats article {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--white);
}
.franchise-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.franchise-stats span {
  font-size: 0.85rem;
  color: var(--gray-dark);
  line-height: 1.5;
}
.franchise-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.franchise-benefit {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}
.franchise-benefit__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.12);
  display: block;
  margin-bottom: 1rem;
}
.franchise-benefit h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}
.franchise-benefit p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.65;
}
.franchise-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.franchise-breakdown__card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
}
.franchise-breakdown__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}
.franchise-breakdown__card > p {
  font-size: 0.92rem;
  color: var(--gray-dark);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.franchise-breakdown__card ul {
  list-style: none;
}
.franchise-breakdown__card li {
  font-size: 0.88rem;
  color: var(--gray-dark);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-light);
  padding-left: 1.25rem;
  position: relative;
}
.franchise-breakdown__card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--black);
  font-size: 0.75rem;
}
.franchise-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 760px;
}
.franchise-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--black-3);
}
.franchise-steps strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gray);
  line-height: 1;
}
.franchise-steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.franchise-steps p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.6;
}
.franchise-apply {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.franchise-apply__copy h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}
.franchise-apply__copy p {
  color: var(--gray-dark);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.franchise-apply__note {
  font-size: 0.85rem !important;
  margin-bottom: 1.5rem !important;
}
.franchise-apply__form {
  background: var(--black);
  color: var(--white);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.franchise-apply__form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.franchise-apply__form input,
.franchise-apply__form select,
.franchise-apply__form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.franchise-apply__form input::placeholder,
.franchise-apply__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.franchise-apply__form input:focus,
.franchise-apply__form select:focus,
.franchise-apply__form textarea:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.franchise-apply__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.franchise-apply__form select option { background: var(--black); }
.franchise-apply__form textarea { resize: vertical; min-height: 88px; }
.franchise-apply__success {
  color: var(--white);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1024px) {
  .franchise-hero__grid,
  .franchise-apply,
  .franchise-breakdown { grid-template-columns: 1fr; }
  .franchise-benefits { grid-template-columns: 1fr 1fr; }
  .franchise-stats { grid-template-columns: 1fr 1fr; }
  .franchise-hero__grid {
    position: relative;
  }
  .franchise-hero__copy {
    position: relative;
    z-index: 3;
    padding-right: min(40vw, 170px);
  }
  .franchise-hero__logo {
    position: absolute;
    top: 0;
    right: 0;
    justify-content: flex-end;
    z-index: 4;
    pointer-events: none;
  }
  .franchise-hero__logo img {
    width: min(150px, 36vw);
  }
}

@media (max-width: 768px) {
  .franchise-apply__form {
    gap: 1.1rem;
  }
  .franchise-apply__form .form-row {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

@media (max-width: 768px) {
  .franchise-benefits,
  .franchise-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Shop page */
.shop-page .nav__links a[aria-current="page"] {
  color: var(--white);
  opacity: 1;
}
.shop-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)) 0 clamp(3rem, 7vh, 4.5rem);
  background: var(--black);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.shop-hero__inner {
  max-width: 720px;
  margin-inline: auto;
}
.shop-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.shop-hero p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 52ch;
}
.shop-store {
  background: var(--white);
  color: var(--black);
  padding: calc(var(--nav-h) + clamp(2rem, 5vh, 3.5rem)) 0 clamp(4rem, 10vh, 6rem);
}
.price-card__description {
  min-height: 2.8em;
  margin: 0 0 1rem;
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.55;
}
.shop-store__wrap {
  width: min(1180px, 96vw);
}
.shop-store__header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.shop-store__intro {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.shop-store__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.shop-store__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}
.shop-store__lede {
  margin: 0.9rem auto 0;
  max-width: 38rem;
  color: var(--gray-dark);
  line-height: 1.65;
}
.shop-recover-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 0, 128, 0.12);
  color: var(--black);
  font-size: 0.95rem;
  text-align: center;
}
.shop-store__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
}
.shop-store__loading {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  color: var(--gray);
}
.shop-store__loading[hidden],
.shop-store__grid[hidden],
.shop-store__empty[hidden],
.shop-store__meta[hidden] {
  display: none !important;
}
.shop-store__grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}
.shop-featured {
  margin: 0 0 2.5rem;
}
.shop-featured[hidden] {
  display: none !important;
}
.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.05);
}
.shop-card--featured {
  box-shadow:
    0 0 0 2px rgba(255, 0, 127, 0.28),
    0 18px 48px rgba(0, 0, 0, 0.05);
}
.shop-card__image {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.04);
}
.shop-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.shop-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.35rem 1.5rem;
}
.shop-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.shop-card__type {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff007f;
}
.shop-card__badge {
  border-radius: 999px;
  background: #ff007f;
  color: var(--white);
  padding: 0.28rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.shop-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}
.shop-card__desc {
  margin: 0;
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.55;
}
.shop-card__meta-line {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.shop-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--gray-dark);
  font-size: 0.92rem;
  line-height: 1.45;
}
.shop-card__features li + li {
  margin-top: 0.2rem;
}
.shop-card__features li::before {
  content: '·';
  margin-right: 0.45rem;
  color: #ff007f;
  font-weight: 700;
}
.shop-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}
.shop-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.shop-card__compare {
  margin: 0.35rem 0 0;
  color: var(--gray);
  font-size: 0.9rem;
  text-decoration: line-through;
}
.shop-card__cta {
  flex-shrink: 0;
  white-space: nowrap;
}
.shop-store__empty,
.shop-store__placeholder {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vh, 4rem) 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.02);
}
.shop-store__placeholder-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.shop-store__placeholder-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.shop-store__placeholder-copy {
  margin: 0 0 1.5rem;
  color: var(--gray-dark);
  line-height: 1.6;
}
@media (min-width: 720px) {
  .shop-store__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .shop-store__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .shop-store__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .shop-hero { text-align: left; }
  .shop-hero__inner { max-width: none; }
  .shop-card__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-card__cta {
    width: 100%;
    text-align: center;
  }
}

/* Gallery page */
.gallery-page .nav__dropdown-menu a[aria-current="page"] {
  color: var(--white);
  opacity: 1;
}
.gallery-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)) 0 clamp(3rem, 7vh, 4.5rem);
  background: var(--black);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.gallery-hero__inner {
  max-width: 720px;
  margin-inline: auto;
}
.gallery-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.gallery-hero p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 1.75rem;
  max-width: 52ch;
}
.gallery-hero__cta { margin-inline: auto; }
.gallery-feed {
  background: var(--white);
  color: var(--black);
  padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(4rem, 10vh, 6rem);
}
.gallery-feed__loading,
.gallery-feed__empty {
  text-align: center;
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 42ch;
  margin-inline: auto;
}
.gallery-feed__empty a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gallery-feed__attribution {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.gallery-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--black);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.35s ease;
}
.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.05);
  opacity: 0.88;
}
.gallery-card__badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-size: 0.75rem;
  pointer-events: none;
}
.gallery-card__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: var(--white);
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-card:hover .gallery-card__caption,
.gallery-card:focus-visible .gallery-card__caption {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-hero { text-align: left; }
  .gallery-hero__inner { max-width: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
}

/* Exam results page */
.exam-results-page .nav__dropdown-menu a[aria-current="page"] {
  color: var(--white);
  opacity: 1;
}
.exam-results-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)) 0 clamp(3rem, 7vh, 4.5rem);
  background: var(--black);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.exam-results-hero__inner {
  max-width: 720px;
  margin-inline: auto;
}
.exam-results-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.exam-results-hero p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 52ch;
}
.exam-results {
  background: var(--white);
  color: var(--black);
}
.exam-results__years {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.exam-results__year {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
.exam-results__year summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.exam-results__year summary::-webkit-details-marker { display: none; }
.exam-results__year summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.exam-results__year[open] summary::after {
  transform: rotate(45deg);
}
.exam-results__year-body {
  padding: 0 1.5rem 1.5rem;
}
.exam-results__intro {
  color: var(--gray-dark);
  margin-bottom: 1rem;
  max-width: 60ch;
}
.exam-results__department {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}
.exam-results__department:first-child {
  margin-top: 0;
}
.exam-results__list {
  display: grid;
  gap: 0.75rem;
}
.exam-results__list li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
}
.exam-results__list strong {
  font-size: 1rem;
}
.exam-results__list span {
  color: var(--gray-dark);
  font-size: 0.95rem;
}
.exam-results__list em {
  font-style: normal;
  font-weight: 700;
  color: var(--black);
}
.exam-results__empty {
  text-align: center;
  color: var(--gray-dark);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-inline: auto;
}
@media (max-width: 768px) {
  .exam-results-hero { text-align: left; }
  .exam-results-hero__inner { max-width: none; }
}

/* Classes page */
.classes-page .nav__dropdown.is-current .nav__dropdown-toggle,
.team-page {
  --accent: #ff007f;
}
.team-page .nav__dropdown.is-current .nav__dropdown-toggle {
  color: var(--white);
  opacity: 1;
}
.classes-hero,
.team-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)) 0 clamp(3rem, 7vh, 4.5rem);
  background: var(--black);
  border-bottom: 1px solid var(--border);
}
.team-hero__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.team-hero__inner::after {
  content: '';
  display: block;
  width: 4rem;
  height: 3px;
  margin: 1.75rem auto 0;
  border-radius: 999px;
  background: var(--accent);
}
.team-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: 1rem;
  line-height: 0.95;
}
.team-hero p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 52ch;
}

.team-list {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}
.team-list__intro {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.team-list__count {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-dark);
  white-space: nowrap;
}
.team-list__count span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-right: 0.35rem;
}
.team-list__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.team-list__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.team-spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.4s;
}
.team-spotlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.09);
}

.team-spotlight:nth-child(even) {
  background: var(--black);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.team-spotlight:nth-child(even) .team-spotlight__role {
  color: var(--accent);
}
.team-spotlight:nth-child(even) .team-spotlight__name,
.team-spotlight:nth-child(even) .team-spotlight__tagline,
.team-spotlight:nth-child(even) .team-spotlight__bio,
.team-spotlight:nth-child(even) .team-spotlight__branches {
  color: var(--white);
}
.team-spotlight:nth-child(even) .team-spotlight__surname {
  color: var(--accent);
}
.team-spotlight:nth-child(even) .team-spotlight__index {
  color: rgba(255, 255, 255, 0.06);
}
.team-spotlight:nth-child(even) .team-spotlight__tags li {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.team-spotlight__index {
  position: absolute;
  top: 0.35rem;
  right: 0.75rem;
  left: auto;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  color: rgba(0, 0, 0, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.team-spotlight__visual {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.team-spotlight__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  transform: none;
  transition: transform 0.45s var(--ease);
}
.team-spotlight:hover .team-spotlight__frame {
  transform: scale(1.02);
}
.team-spotlight__frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), transparent 55%);
  opacity: 0.3;
  z-index: -1;
  transition: opacity 0.4s;
}
.team-spotlight:hover .team-spotlight__frame::before {
  opacity: 0.5;
}
.team-spotlight__frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  background: var(--black-2);
}

.team-spotlight__badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(255, 0, 127, 0.3);
}

.team-spotlight__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.team-spotlight__owner {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.5rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(255, 0, 127, 0.28);
}
.team-spotlight--owner {
  border-color: rgba(255, 0, 127, 0.22);
}
.team-spotlight__role {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.team-spotlight__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 0.95;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}
.team-spotlight__surname {
  color: var(--accent);
}
.team-spotlight__tagline {
  font-size: 0.88rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--gray-dark);
  margin: 0 0 0.65rem;
}
.team-spotlight__bio {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-dark);
  margin: 0 0 0.85rem;
}
.team-spotlight__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.team-spotlight__tags li {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s, background 0.3s;
}
.team-spotlight:hover .team-spotlight__tags li {
  border-color: rgba(255, 0, 127, 0.25);
}
.team-spotlight__branches {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
  margin-top: auto;
}
.team-spotlight__branches::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.team-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.team-hero__copy {
  max-width: 38rem;
}
.team-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.team-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.team-stat {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.team-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.team-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.team-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.team-pillar {
  position: relative;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.02);
}
.team-pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.08);
  margin-bottom: 0.75rem;
}
.team-pillar h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
.team-pillar p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-dark);
  margin: 0;
}

.team-roster .section-head {
  max-width: 720px;
}

.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.team-filter {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-dark);
  background: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.team-filter:hover {
  border-color: var(--black);
  color: var(--black);
}
.team-filter.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.team-grid__empty {
  text-align: center;
  color: var(--gray-dark);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}
.team-card__photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--black-2);
  cursor: pointer;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.team-card:hover .team-card__photo img {
  transform: scale(1.04);
}
.team-card__dept {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.team-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
}
.team-card__body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
  line-height: 1.1;
}
.team-card__role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.65rem;
}
.team-card__tagline {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gray-dark);
  margin: 0 0 0.85rem;
}
.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.team-card__tags li {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-dark);
  background: rgba(0, 0, 0, 0.05);
}
.team-card__branches {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.85rem;
}
.team-card__link {
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}

.team-cta {
  border-top: 1px solid var(--border-light);
}
.team-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.02);
}
.team-cta__copy {
  max-width: 36rem;
}
.team-cta__copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.65rem;
}
.team-cta__copy p {
  color: var(--gray-dark);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}
.team-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.teacher-flashcard__tagline {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray-light);
  margin: 0 0 0.85rem;
}
.teacher-flashcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.teacher-flashcard__tags li {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  border: 1px solid var(--border);
}
.teacher-flashcard__branches {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 1rem;
}

.classes-hero__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.classes-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.classes-hero p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 1.75rem;
  max-width: 52ch;
}
.classes-hero__cta { margin-inline: auto; }

@media (max-width: 768px) {
  .team-list__grid {
    grid-template-columns: 1fr;
  }
  .team-list__intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .team-list__rule {
    width: 100%;
  }
  .team-hero__grid {
    grid-template-columns: 1fr;
  }
  .team-pillars__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .team-hero__actions,
  .team-cta__actions {
    width: 100%;
  }
  .team-hero__actions .btn,
  .team-cta__actions .btn {
    flex: 1 1 100%;
  }
  .team-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.classes-subscriptions {
  background: var(--white);
  color: var(--black);
}
.classes-subscriptions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.classes-plan {
  position: relative;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.75rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.classes-plan--featured {
  border-color: var(--black);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
.classes-plan__badge {
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
}
.classes-plan h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.classes-plan__price {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.classes-plan__price span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-dark);
}
.classes-plan__termly {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-bottom: 0.85rem;
}
.classes-plan__summary {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.classes-plan ul {
  list-style: none;
  margin-bottom: 1.25rem;
  flex: 1;
}
.classes-plan li {
  font-size: 0.85rem;
  color: var(--gray-dark);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-light);
  padding-left: 1.1rem;
  position: relative;
}
.classes-plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-size: 0.7rem;
}
.classes-plan__actions {
  display: grid;
  gap: 0.5rem;
}
.classes-departments {
  background: var(--black);
  color: var(--white);
}
.classes-departments .section-head .eyebrow { color: var(--gray); }
.classes-departments .section-head p { color: var(--gray-light); }
.classes-departments .text-neon { color: var(--white); }
.classes-dept {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.03);
}
.classes-dept__age {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.35rem;
}
.classes-dept h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  text-transform: uppercase;
}
.classes-dept__summary {
  font-size: 0.92rem;
  color: var(--gray-light);
  line-height: 1.65;
  margin: 0.85rem 0 1.25rem;
  max-width: 62ch;
}
.classes-dept__offerings {
  display: grid;
  gap: 0.65rem;
}
.classes-offering {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.classes-offering--subscription {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}
.classes-offering__type {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.3rem;
}
.classes-offering h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.classes-offering__body p {
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.5;
}
.classes-offering__meta {
  text-align: right;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}
.classes-offering__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
}
.classes-offering__note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray);
  margin-top: 0.15rem;
}
.classes-offering .btn {
  padding: 0.55rem 1rem;
  font-size: 0.65rem;
  white-space: nowrap;
}
.classes-error {
  text-align: center;
  color: var(--gray-dark);
  grid-column: 1 / -1;
}
.classes-error a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
}
@media (max-width: 1024px) {
  .classes-subscriptions__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 768px) {
  .classes-hero,
  .team-hero { text-align: center; }
  .classes-hero__inner,
  .team-hero__inner { max-width: none; }
  .classes-offering { grid-template-columns: 1fr; }
  .classes-offering__meta { text-align: left; justify-items: start; }
  .classes-offering .btn { width: 100%; text-align: center; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  left: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 900;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, border-color 0.25s, background 0.25s;
}
.back-to-top__icon {
  display: block;
  transition: transform 0.3s var(--ease);
}
.back-to-top:hover .back-to-top__icon {
  transform: translateY(-2px);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition-duration: 0.01ms; }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 900;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition-duration: 0.01ms; }
}

/* Legal pages */
.legal-page .reveal {
  opacity: 1;
  transform: none;
}
.legal-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)) 0 clamp(3rem, 7vh, 4.5rem);
  background: var(--black);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.legal-hero__inner {
  max-width: 720px;
  margin-inline: auto;
}
.legal-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.legal-hero p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 58ch;
}
.legal-content {
  background: var(--white);
  color: var(--black);
}
.legal-prose {
  max-width: 760px;
  margin-inline: auto;
}
.legal-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 2.5rem 0 0.85rem;
  letter-spacing: 0.02em;
}
.legal-prose h2:first-child {
  margin-top: 0;
}
.legal-prose h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-prose h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}
.legal-prose p,
.legal-prose li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.78);
}
.legal-prose p {
  margin: 0 0 1rem;
}
.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal-prose li {
  margin-bottom: 0.55rem;
}
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.legal-prose a:hover {
  color: var(--black);
}
@media (max-width: 768px) {
  .legal-hero { text-align: left; }
  .legal-hero__inner { max-width: none; }
}

/* Feedback page */
.feedback {
  background: var(--white);
  color: var(--black);
}

.feedback__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.feedback__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}

.feedback__intro p {
  color: rgba(0, 0, 0, 0.78);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.feedback__intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.feedback-form {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feedback-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feedback-form__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.18);
}

.feedback-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.feedback-form select option {
  background: var(--black);
  color: var(--white);
}

.feedback-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.feedback-form__success {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gray-light);
}

.feedback-form__error {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #ffb4b4;
}

.feedback-form__error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.feedback-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 900px) {
  .feedback__layout,
  .feedback-form__row {
    grid-template-columns: 1fr;
  }
}
.shop-checkout {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.shop-checkout::backdrop { background: rgba(0, 0, 0, .62); }
.shop-checkout__form { display: grid; gap: 1rem; padding: 2rem; }
.shop-checkout__form label { display: grid; gap: .4rem; font-weight: 700; }
.shop-checkout__form input,
.shop-checkout__form textarea,
.shop-checkout__form select { width: 100%; padding: .85rem 1rem; border: 1px solid #d7d7d7; border-radius: 12px; background: #fff; font: inherit; }
.shop-checkout__checkbox { grid-template-columns: auto 1fr; align-items: center; }
.shop-checkout__checkbox input { width: auto; }
.shop-checkout__close { position: absolute; right: 1rem; top: 1rem; border: 0; background: none; font-size: 1.6rem; }
.shop-checkout__status { min-height: 1.4em; }

/* Full storefront experience */
.shop-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin:0 0 2.5rem}.shop-categories[hidden]{display:none}.shop-category{position:relative;isolation:isolate;overflow:hidden;min-height:156px;display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;padding:1.5rem;border:1px solid rgba(255,255,255,.16);border-radius:24px;background:#111;color:#fff;text-align:left;box-shadow:0 14px 34px rgba(0,0,0,.12);cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.shop-category:before{content:'';position:absolute;inset:0;z-index:-2;background:var(--category-image,none) center/cover no-repeat;transition:transform .35s ease}.shop-category:after{content:none}.shop-category span{max-width:75%;font-family:var(--font-display);font-size:clamp(1.55rem,2.2vw,2rem);line-height:1;text-transform:uppercase;text-shadow:0 2px 18px rgba(0,0,0,.45)}.shop-category strong{display:flex;align-items:center;gap:.32rem;min-width:auto;height:2.25rem;padding:0 .75rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.15);backdrop-filter:blur(8px);font-size:.76rem}.shop-category strong:after{content:'items';font-size:.62rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;opacity:.75}.shop-category:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.38);box-shadow:0 20px 45px rgba(0,0,0,.2)}.shop-category:hover:before{transform:scale(1.04)}.shop-category.is-active{border-color:#ff007f;outline:3px solid #ff007f;outline-offset:3px;box-shadow:0 18px 48px rgba(255,0,127,.2)}.shop-category:focus-visible{outline:3px solid #ff007f;outline-offset:3px}.shop-card__media,.shop-card__title-button{display:block;width:100%;padding:0;border:0;background:none;text-align:left;cursor:pointer}.shop-card__media{position:relative}.shop-card__title-button{color:inherit}.shop-card__stock{color:#b00036;font-size:.68rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.shop-card__cta:disabled{opacity:.45;cursor:not-allowed}
.shop-category span{padding:.65rem .85rem;border-radius:14px;background:rgba(255,255,255,.94);color:#111!important;text-shadow:none}.shop-category strong{background:#fff;color:#111!important;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.shop-detail{inset:0;width:min(1080px,94vw);max-height:92vh;margin:auto;padding:0;border:0;border-radius:32px;background:#fff;color:#111;box-shadow:0 32px 120px rgba(0,0,0,.35)}.shop-detail::backdrop,.shop-checkout::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(7px)}.shop-detail__shell{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)}.shop-detail__close{position:absolute;z-index:4;top:1rem;right:1rem;width:44px;height:44px;border:0;border-radius:50%;background:#000;color:#fff;font-size:1.7rem;cursor:pointer}.shop-detail__gallery{min-width:0;padding:1rem;background:#f2f2f2}.shop-detail__hero{display:grid;place-items:center;overflow:hidden;height:540px;border-radius:24px;background:#e8e8e8}.shop-detail__hero img{width:100%;height:100%;object-fit:contain}.shop-detail__placeholder{display:grid;place-items:center;height:100%;font-family:var(--font-display);font-size:4rem}.shop-detail__thumbs{display:flex;gap:.65rem;padding-top:.75rem;overflow:auto}.shop-detail__thumbs button{flex:0 0 70px;height:70px;overflow:hidden;padding:0;border:2px solid transparent;border-radius:13px;background:none}.shop-detail__thumbs button.is-active{border-color:#ff007f}.shop-detail__thumbs img{width:100%;height:100%;object-fit:contain}.shop-detail__content{display:flex;flex-direction:column;padding:clamp(2rem,5vw,4rem);overflow:auto}.shop-detail__content h2{margin:.75rem 0 1rem;font-family:var(--font-display);font-size:clamp(2.2rem,5vw,4rem);line-height:.95;text-transform:uppercase}.shop-detail__price{display:flex;align-items:baseline;gap:.75rem}.shop-detail__price strong{font-family:var(--font-display);font-size:2.2rem}.shop-detail__price s{color:#888}.shop-detail__description{color:#555;line-height:1.7}.shop-detail__features{padding-left:1.2rem;line-height:1.7}.shop-detail__options{display:grid;gap:.85rem;margin:1rem 0 1.3rem}.shop-detail__options label{display:grid;gap:.4rem;font-weight:700}.shop-detail__options label[hidden]{display:none}.shop-detail__options input,.shop-detail__options select,.shop-detail__options textarea{width:100%;padding:.85rem 1rem;border:1px solid #d5d5d5;border-radius:12px;background:#fff;font:inherit}.shop-detail__check{grid-template-columns:auto 1fr!important;align-items:center}.shop-detail__check input{width:auto}.shop-detail__status{min-height:1.2em;color:#8a064a}.shop-detail__secure{margin:.9rem 0 0;color:#777;font-size:.78rem;text-align:center}
.shop-cart-fab{position:fixed;z-index:220;right:22px;top:calc(var(--nav-h) + 16px);display:flex;align-items:center;gap:.7rem;min-height:56px;padding:.7rem .8rem .7rem 1rem;border:0;border-radius:999px;background:#000;color:#fff;box-shadow:0 18px 48px rgba(0,0,0,.3);font:800 .8rem var(--font-body);letter-spacing:.12em;text-transform:uppercase;cursor:pointer}.shop-cart-fab[hidden]{display:none}.shop-cart-fab__icon{color:#ff007f}.shop-cart-fab__count{display:grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:#ff007f;color:#fff}.shop-cart{position:fixed;z-index:10050;top:var(--nav-h);right:0;bottom:0;left:0;visibility:hidden}.shop-cart.is-open{visibility:visible}.shop-cart__backdrop{position:absolute;inset:0;width:100%;border:0;background:rgba(0,0,0,.58);opacity:0;transition:opacity .25s}.shop-cart.is-open .shop-cart__backdrop{opacity:1}.shop-cart__panel{position:absolute;top:0;right:0;display:flex;flex-direction:column;width:min(480px,94vw);height:100%;padding:1.5rem;background:#fff;color:#111;box-shadow:-20px 0 80px rgba(0,0,0,.18);transform:translateX(105%);transition:transform .3s ease}.shop-cart.is-open .shop-cart__panel{transform:translateX(0)}.shop-cart__header{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #ddd;padding-bottom:1rem}.shop-cart__header h2{margin:.25rem 0 0;font-family:var(--font-display);font-size:2.5rem;text-transform:uppercase}.shop-cart__close{width:42px;height:42px;border:0;border-radius:50%;background:#000;color:#fff;font-size:1.6rem}.shop-cart__items{flex:1;overflow:auto;padding:1rem 0}.shop-cart__empty{margin:auto;color:#777;text-align:center}.shop-cart__empty[hidden]{display:none}.shop-cart-line{display:grid;grid-template-columns:82px 1fr;gap:1rem;padding:1rem 0;border-bottom:1px solid #eee}.shop-cart-line__image{display:grid;place-items:center;overflow:hidden;height:92px;border-radius:16px;background:#eee;font-family:var(--font-display);font-size:2rem}.shop-cart-line__image img{width:100%;height:100%;object-fit:cover}.shop-cart-line h3{margin:0;font-size:1rem}.shop-cart-line p{margin:.25rem 0;color:#777;font-size:.8rem}.shop-cart-line__actions{display:flex;align-items:center;gap:.5rem;margin-top:.65rem}.shop-cart-line__actions button{min-width:28px;height:28px;border:1px solid #ddd;border-radius:8px;background:#fff}.shop-cart-line__remove{margin-left:auto;padding:0 .6rem;color:#a00030}.shop-cart__footer{border-top:1px solid #ddd;padding-top:1rem}.shop-cart__total{display:flex;justify-content:space-between;margin-bottom:1rem;font-size:1.15rem}.shop-overlay-open{overflow:hidden}
@media(max-width:768px){.shop-categories{grid-template-columns:1fr;gap:.8rem}.shop-category{min-height:132px;padding:1.25rem}.shop-detail__shell{grid-template-columns:1fr}.shop-detail__hero{height:330px}.shop-detail__content{padding:1.5rem}.shop-cart-fab{right:14px;top:calc(var(--nav-h) + 12px)}}

.shop-detail__course-meta{display:inline-flex;margin:0 0 .9rem;padding:.5rem .8rem;border:1px solid rgba(255,0,128,.25);border-radius:999px;background:rgba(255,0,128,.06);color:#7d003f;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}

/* Canonical product gallery: the detail image opens into a true full-screen viewer. */
.shop-detail__hero{position:relative;width:100%;padding:0;border:0;cursor:zoom-in}
.shop-detail__hero:disabled{cursor:default}
.shop-detail__expand-label{position:absolute;right:1rem;bottom:1rem;padding:.6rem .85rem;border-radius:999px;background:rgba(0,0,0,.78);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s}
.shop-detail__hero:hover .shop-detail__expand-label,.shop-detail__hero:focus-visible .shop-detail__expand-label{opacity:1;transform:none}
.shop-image-viewer{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:rgba(7,7,9,.98);color:#fff}
.shop-image-viewer::backdrop{background:#070709}
.shop-image-viewer__shell{position:relative;display:grid;width:100%;height:100%;place-items:center;overflow:hidden;padding:clamp(1rem,4vw,3.5rem)}
.shop-image-viewer__shell img{display:block;max-width:calc(100vw - 7rem);max-height:calc(100dvh - 7rem);width:auto;height:auto;object-fit:contain}
.shop-image-viewer__close,.shop-image-viewer__nav{position:absolute;z-index:2;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(0,0,0,.64);color:#fff;cursor:pointer;backdrop-filter:blur(10px)}
.shop-image-viewer__close{top:1rem;right:1rem;width:48px;height:48px;font-size:2rem}
.shop-image-viewer__nav{top:50%;width:54px;height:54px;font-size:2.8rem;transform:translateY(-50%)}
.shop-image-viewer__nav--previous{left:1rem}
.shop-image-viewer__nav--next{right:1rem}
.shop-image-viewer__count{position:absolute;bottom:1rem;left:50%;padding:.55rem .8rem;border-radius:999px;background:rgba(0,0,0,.64);font-size:.72rem;font-weight:800;letter-spacing:.12em;transform:translateX(-50%)}
@media(max-width:768px){.shop-image-viewer__shell{padding:4.5rem .75rem}.shop-image-viewer__shell img{max-width:calc(100vw - 1.5rem);max-height:calc(100dvh - 9rem)}.shop-image-viewer__nav{top:auto;bottom:1rem;width:46px;height:46px;transform:none}}

.shop-detail--course{width:min(1180px,96vw)}
.shop-detail--course .shop-detail__shell{grid-template-columns:minmax(0,.9fr) minmax(420px,1.15fr)}
.shop-course-booking{display:grid;gap:.85rem;padding:1.1rem;border-radius:22px;background:#101010;color:#fff}.shop-course-booking [hidden]{display:none}.shop-course-booking__step[hidden]{display:none}
.shop-course-booking__eyebrow{margin:0;color:rgba(255,255,255,.55);font-size:.68rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.shop-course-booking__heading{margin:0;font-size:1.15rem;line-height:1.3}
.shop-course-booking__modes{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.shop-course-booking__mode{display:grid;gap:.2rem;padding:.85rem .9rem;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.04);cursor:pointer}
.shop-course-booking__mode:has(input:checked){border-color:#ff007f;box-shadow:0 0 0 1px #ff007f}
.shop-course-booking__mode input{accent-color:#ff007f}
.shop-course-booking__mode span{font-size:.86rem;font-weight:800}
.shop-course-booking__mode small{color:rgba(255,255,255,.62);font-size:.72rem;line-height:1.4}
.shop-course-booking__hint,.shop-course-booking__empty,.shop-course-booking__summary,.shop-course-booking__later{margin:0;color:rgba(255,255,255,.72);font-size:.82rem;line-height:1.5}
.shop-course-booking__step{display:grid;gap:.45rem;padding:.2rem 0 .15rem}
.shop-course-booking__step-title{margin:0;font-size:1rem;line-height:1.3}
.shop-course-booking__teachers{display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));gap:1rem;margin:.1rem 0 0}
.shop-course-booking .course-finder__discovery-branches{display:grid;grid-template-columns:1fr;gap:.5rem;margin:0}
.shop-course-booking .course-finder__discovery-branch{width:100%;border-radius:14px;text-align:left;padding:.9rem 1rem;letter-spacing:.08em}
body.theme-portal .shop-course-booking .course-finder__discovery-branch{background:#fff!important;border-color:#fff!important;color:#111!important}
body.theme-portal .shop-course-booking .course-finder__discovery-branch.is-active,body.theme-portal .shop-course-booking .course-finder__discovery-branch[aria-selected="true"]{background:#ff007f!important;border-color:#ff007f!important;color:#fff!important}
.shop-course-booking .slot-calendar{margin:0}
@media(max-width:720px){.shop-detail--course .shop-detail__shell{grid-template-columns:1fr}.shop-course-booking__modes{grid-template-columns:1fr}}

/* Brand rule: Legacy / Legacy School of Music always in capitals, Adam Bold. */
.legacy-brand-text {
  font-family: var(--font-brand) !important;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase !important;
  letter-spacing: 0.04em;
}
