/* ============================================================
   Tomujin Summer Camp — Style Guide Foundation
   ============================================================ */

:root {
  /* Brand colors */
  --color-purple: #5c1090;
  --color-yellow: #ffce00;
  --color-white: #ffffff;

  /* Layout */
  --container-max: 1440px;
  --grid-columns: 12;
  --grid-gutter: 16px;
  --page-padding: clamp(20px, 4vw, 48px);

  /* 8px spacing scale */
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-7: 4rem;

  /* White-section rhythm — uniform seamless scroll */
  --section-pad-y: clamp(32px, 4.5vh, 48px);
  --section-pad-y-compact: clamp(16px, 2.5vh, 24px);
  --section-head-to-content: clamp(20px, 2.8vh, 32px);
  --section-hover-gutter: clamp(18px, 2.5vh, 28px);
  --scroll-card-hover-rest: clamp(4px, 1vh, 10px);
  --section-seam-pull: clamp(20px, 2.8vh, 32px);
  --section-head-gap: clamp(10px, 1.2vh, 14px);

  /* Typography */
  --font-family: "Raleway", system-ui, sans-serif;
  --font-numbers: "Gotham", "Montserrat", system-ui, sans-serif;
  --headline-tracking: -0.05em;
  --headline-leading: 1.15;

  /* Components */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-blur: 12px;
  --nav-pill-radius: 20px;
  --btn-radius: 16px;
  --register-cta-padding-y: 0.74rem;
  --register-cta-padding-x: 1.56rem;
  --register-cta-font-size: clamp(0.84rem, 1.08vw, 0.94rem);
  --register-cta-min-width: 9.5rem;
  --register-cta-min-height: 2.8125rem;
  --transition-base: 0.25s ease;
  --transition-interactive: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Tomujin 3D signature shadow (refined) */
  --shadow-tomujin:
    0 6px 20px -4px rgba(92, 16, 144, 0.2),
    0 14px 28px -8px rgba(92, 16, 144, 0.1);
  --shadow-tomujin-hover:
    0 10px 28px -4px rgba(92, 16, 144, 0.26),
    0 18px 36px -8px rgba(92, 16, 144, 0.14);
  --shadow-tomujin-yellow:
    0 4px 10px rgba(255, 206, 0, 0.42),
    0 10px 24px rgba(255, 206, 0, 0.32),
    0 20px 44px rgba(255, 206, 0, 0.22),
    0 32px 64px rgba(255, 206, 0, 0.12);

  /* Button outer strokes — yellow at ~78% for premium glow */
  --stroke-yellow: rgba(255, 206, 0, 0.78);
  --stroke-purple: rgba(92, 16, 144, 0.5);
  --stroke-white: rgba(255, 255, 255, 0.5);
  --overlay-scrim: rgba(0, 0, 0, 0.22);

  /* Modal premium 3D (Tomujin purple stroke + depth) */
  --modal-outer-stroke: 0 0 0 2px var(--color-purple);
  --modal-shadow-3d:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 4px rgba(92, 16, 144, 0.06),
    0 8px 24px -4px rgba(92, 16, 144, 0.14),
    0 20px 48px -12px rgba(92, 16, 144, 0.12),
    0 32px 72px -20px rgba(0, 0, 0, 0.1);

  /* Session CTA modal — frosted overlay + glass card */
  --session-overlay-scrim: rgba(255, 255, 255, 0.38);
  --session-overlay-blur: 24px;
  --session-modal-bg: rgba(255, 255, 255, 0.88);
  --session-modal-blur: 40px;

  /* list-camp.png — cropped asset; overlay size matches pre-crop optical weight */
  --list-camp-size-overlay: clamp(34px, 8.5vw, 40px);
  --list-camp-size-glyph: clamp(44px, 11vw, 52px);
  --list-camp-size-marquee: 1em;

  /* Hero marquee band — Happly-style ticker */
  --marquee-pad-y: clamp(9px, 1.1vh, 12px);
  --marquee-dot-gap: 1.25em;
  --marquee-font-size: clamp(0.72rem, 1.05vw, 0.875rem);
  --marquee-duration: 48s;
  --marquee-z: 3;
}

@media (min-width: 768px) {
  :root {
    --grid-gutter: 24px;
    --headline-leading: 1.15;
    --section-pad-y: clamp(40px, 4.5vh, 56px);
    --section-pad-y-compact: clamp(20px, 2.5vh, 28px);
  }
}

@media (min-width: 1024px) {
  :root {
    --section-pad-y: clamp(48px, 4.5vh, 64px);
    --section-pad-y-compact: clamp(24px, 2.5vh, 32px);
  }
}

/* ---- Reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-white);
  overscroll-behavior-y: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color-white);
  background: var(--color-white);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body.menu-open {
  overflow: hidden;
}

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

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

/* ---- 12-column grid ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-padding);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
}

.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

/* ---- Typography ---- */
.headline {
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: var(--headline-tracking);
  line-height: var(--headline-leading);
  text-transform: uppercase;
}

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

.subtext {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--color-white);
}

/* Gotham for all numeric characters */
.font-num {
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 500;
}

/* ---- Global click burst ---- */
.click-burst-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: visible;
}

.click-burst-particle {
  position: fixed;
  width: 22px;
  height: 22px;
  pointer-events: none;
  object-fit: contain;
  will-change: transform, opacity;
}

/* ---- Interactive 3D (cards + modals) ---- */
.interactive-3d,
.card {
  box-shadow: var(--shadow-tomujin);
  transition: box-shadow var(--transition-interactive);
}

.interactive-3d:hover,
.card:hover {
  box-shadow: var(--shadow-tomujin-hover);
}

/* ---- Buttons ---- */
.btn-wrap {
  position: relative;
  display: inline-flex;
  overflow: visible;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  letter-spacing: -0.02em;
  padding: 1rem 2rem;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    transform var(--transition-interactive),
    background-color var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.btn-primary {
  background-color: var(--color-yellow);
  color: var(--color-purple);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 2px var(--stroke-yellow);
}

.btn-primary:hover {
  background-color: var(--color-purple);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-tomujin-hover),
    0 0 0 2px var(--stroke-purple);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-purple);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 2px var(--stroke-white);
}

.btn-secondary:hover {
  background-color: var(--color-yellow);
  color: var(--color-purple);
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-tomujin-hover),
    0 0 0 2px var(--stroke-yellow);
}

.btn-purple {
  background-color: var(--color-purple);
  color: var(--color-white);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 2px var(--stroke-purple);
}

.btn-purple:hover {
  background-color: var(--color-yellow);
  color: var(--color-purple);
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-tomujin-hover),
    0 0 0 2px var(--stroke-yellow);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Shared register CTAs — unified premium scale across sections */
.hero__ctas .btn,
.sessions__cta,
.parent-testimonials__cta,
.student-testimonials__cta,
.pov__cta,
.faq__cta,
.coach-detail__cta.btn,
.curriculum-detail__cta.btn,
.site-footer__cta {
  padding: var(--register-cta-padding-y) var(--register-cta-padding-x);
  font-size: var(--register-cta-font-size);
  font-weight: 700;
  letter-spacing: -0.015em;
  min-width: var(--register-cta-min-width);
  min-height: var(--register-cta-min-height);
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* ---- Glass navigation pill ---- */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--nav-pill-radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-tomujin);
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  color: var(--color-purple);
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  white-space: nowrap;
  transition: color var(--transition-interactive);
}

.nav-link:hover {
  color: var(--color-yellow);
}

/* ---- Site header / navbar ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 32px;
  padding-bottom: clamp(10px, 1.5vw, 16px);
  padding-inline: var(--page-padding);
  filter: blur(0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s;
}

.site-header.is-hidden {
  opacity: 0 !important;
  transform: translateY(-10px);
  filter: blur(8px);
  pointer-events: none;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }

  .site-header.is-hidden {
    filter: none;
  }
}

.site-header .container {
  align-items: center;
  padding-inline: 0;
  max-width: var(--container-max);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-base);
}

.logo-link:hover {
  opacity: 0.85;
}

.logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo-tsc {
  width: clamp(100px, 12vw, 160px);
  height: auto;
}

/* White logo over hero, purple logo when scrolled (crossfade) */
.logo-tsc--white {
  opacity: 1;
  transition: opacity var(--transition-interactive);
}

.logo-tsc--purple {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-interactive);
}

.site-header.is-scrolled .logo-tsc--white {
  opacity: 0;
}

.site-header.is-scrolled .logo-tsc--purple {
  opacity: 1;
}

.logo-ta {
  width: clamp(90px, 10vw, 140px);
  height: auto;
  margin-left: auto;
}

.nav-zone-left {
  grid-column: span 3;
  display: flex;
  align-items: center;
}

.nav-zone-center {
  grid-column: span 6;
  display: flex;
  justify-content: center;
}

.nav-zone-right {
  grid-column: span 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.125rem;
  padding: 0.45rem 0.75rem;
  max-width: 100%;
}

@media (min-width: 1200px) {
  .nav-pill {
    gap: 0.25rem;
    padding: 0.5rem 1.25rem;
  }

  .nav-link {
    padding: 0.5rem 0.875rem;
  }
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  cursor: pointer;
  margin-left: auto;
  box-shadow: var(--shadow-tomujin);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-tomujin-hover);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-purple);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav cluster: register + hamburger (Fruitful-style) */
.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  margin-left: auto;
}

.nav-mobile-actions__register {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(0.9rem, 3vw, 1.2rem);
  border-radius: 16px;
  font-size: clamp(0.85rem, 3.4vw, 0.95rem);
  white-space: nowrap;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(92, 16, 144, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(clamp(12px, 2vw, 24px) + 60px) var(--page-padding) var(--page-padding);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-tomujin);
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-purple);
  padding: 0.875rem 1rem;
  border-radius: 16px;
  transition: color var(--transition-interactive);
}

.mobile-drawer__link:hover {
  color: var(--color-yellow);
}

/* ---- Modal (reusable) ---- */
.modal {
  box-shadow: var(--shadow-tomujin);
  border-radius: 32px;
}

/* ---- Scroll reveal targets ---- */
[data-scroll-reveal] {
  will-change: transform, opacity;
}

.menu-toggle-wrap {
  display: inline-flex;
  margin-left: auto;
}
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  /* Sky tone from hero photo — blends top overscroll if bounce occurs */
  background-color: #a8c8d4;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: min(900px, 100%);
  padding-top: clamp(180px, 22vh, 240px);
}

.hero__headline {
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  margin: 0;
  width: 100%;
  text-wrap: balance;
}

.hero__headline-line {
  display: block;
}

.hero__subtext {
  margin-top: clamp(12px, 2vh, 20px);
  margin-bottom: clamp(16px, 3vh, 32px);
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 15vh;
  overflow: visible;
}

.hero__ctas .btn {
  min-width: var(--register-cta-min-width);
}

/* ---- Responsive: tablet ---- */
@media (max-width: 1023px) {
  .nav-pill {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile-actions {
    display: inline-flex;
  }

  .nav-mobile-actions .menu-toggle {
    margin-left: 0;
  }

  .mobile-drawer {
    display: block;
  }

  .nav-zone-left {
    grid-column: span 6;
  }

  .nav-zone-center {
    grid-column: span 6;
    justify-content: flex-end;
  }

  .nav-zone-right {
    display: none;
  }

  .hero__headline {
    font-size: clamp(1.75rem, 7vw, 3rem);
    line-height: 1.15;
  }
}

/* ---- Responsive: mobile ---- */
@media (max-width: 767px) {
  .site-header {
    padding-top: clamp(14px, 4vw, 20px);
  }

  .nav-zone-left {
    grid-column: span 8;
  }

  .nav-zone-center {
    grid-column: span 4;
  }

  .logo-tsc {
    width: clamp(68px, 20vw, 96px);
  }

  .nav-mobile-actions {
    gap: 6px;
  }

  .nav-mobile-actions .nav-mobile-actions__register {
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 12px;
    font-size: 0.78rem;
    box-shadow:
      0 4px 14px -4px rgba(92, 16, 144, 0.18),
      0 8px 20px -8px rgba(92, 16, 144, 0.08),
      0 0 0 1px var(--stroke-yellow);
  }

  .nav-mobile-actions .nav-mobile-actions__register:hover {
    box-shadow:
      0 6px 18px -4px rgba(92, 16, 144, 0.22),
      0 10px 24px -8px rgba(92, 16, 144, 0.1),
      0 0 0 1px var(--stroke-yellow);
  }

  .nav-mobile-actions .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 12px;
    gap: 4px;
  }

  .nav-mobile-actions .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-mobile-actions .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero__text {
    padding-top: clamp(140px, 18vh, 190px);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: min(100%, 280px);
    margin-inline: auto;
    margin-top: 12vh;
    gap: 0.75rem;
  }

  .hero__ctas .btn-wrap {
    display: flex;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  .nav-zone-left  { grid-column: 1 / span 3; }
  .nav-zone-center { grid-column: 4 / span 6; }
  .nav-zone-right  { grid-column: 10 / span 3; display: flex; }

  .hero__ctas {
    flex-direction: row;
  }
}

/* ---- Navbar scroll-swap (TA logo <-> register button) ---- */
.nav-swap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-swap__logo {
  margin-left: 0;
  opacity: 1;
  transition: opacity var(--transition-interactive),
    transform var(--transition-interactive);
}

.nav-swap__register {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.site-header.is-scrolled .nav-swap__logo {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.site-header.is-scrolled .nav-swap__register {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.btn-nav-register {
  border-radius: 14px;
  padding: 0.7rem 1.35rem;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  background-color: var(--color-purple);
  color: var(--color-white);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 2px var(--stroke-yellow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-nav-register:hover {
  background-color: var(--color-yellow);
  color: var(--color-purple);
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-tomujin-hover),
    0 0 0 2px var(--stroke-yellow);
}

.mobile-drawer__register {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--color-purple);
  background: rgba(92, 16, 144, 0.08);
}

/* ---- Sessions section (white minimal) ---- */
/* ============================================================
   White-section design language
   Reusable layout/decor system for any white-background section.
   ============================================================ */
.section-white {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad-y);
  background: var(--color-white);
}

/* Collapse doubled gap between consecutive white sections */
.section-white + .section-seam + .section-white {
  padding-block-start: var(--section-pad-y-compact);
}

/* First white section after purple marquee — full top inset once */
.marquee + .section-seam + .section-white {
  padding-block-start: var(--section-pad-y);
}

/* Seam after marquee sits behind the band so icons never overlap copy */
.marquee + .section-seam {
  z-index: 0;
}

/* Marquee bridge — Happly-style infinite ticker (gethapply.com) */
.marquee {
  position: relative;
  z-index: var(--marquee-z);
  isolation: isolate;
  overflow: hidden;
  background: var(--color-purple);
  padding-block: var(--marquee-pad-y);
  font-family: var(--font-numbers);
  font-weight: 500;
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
  backface-visibility: hidden;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}

.marquee__ribbon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee__item {
  flex-shrink: 0;
  color: var(--color-yellow);
  font-family: inherit;
  font-weight: inherit;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  font-size: var(--marquee-font-size);
  -webkit-font-smoothing: antialiased;
}

.marquee__dot {
  flex-shrink: 0;
  padding-inline: var(--marquee-dot-gap);
  color: var(--color-yellow);
  font-size: var(--marquee-font-size);
  line-height: 1;
  opacity: 0.85;
}

.marquee .font-num {
  font-family: inherit;
  font-weight: inherit;
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    animation: none;
    transform: none;
    padding-inline: var(--page-padding);
    box-sizing: border-box;
  }

  .marquee__ribbon[aria-hidden="true"] {
    display: none;
  }

  .marquee__ribbon {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.35em;
    white-space: normal;
    text-align: center;
  }
}

/* Section seams — camp icon sits on the boundary between sections */
.section-seam {
  position: relative;
  height: 0;
  margin-block: calc(var(--section-seam-pull) * -1);
  z-index: 1;
  pointer-events: none;
}

.section-seam__mark {
  position: absolute;
  top: 0;
  display: block;
  line-height: 0;
}

.section-seam__mark--left {
  left: clamp(20px, 6vw, 80px);
}

.section-seam__mark--right {
  right: clamp(20px, 6vw, 80px);
  left: auto;
}

.section-seam__icon {
  display: block;
  width: clamp(96px, 13vw, 180px);
  height: auto;
  opacity: 0.085;
  transform: rotate(-8deg);
}

.section-seam__mark--right .section-seam__icon {
  transform: rotate(8deg);
}

@media (max-width: 767px) {
  .section-seam__icon {
    width: clamp(72px, 20vw, 120px);
    opacity: 0.065;
  }

  .section-seam__mark--left {
    left: clamp(8px, 3vw, 24px);
  }

  .section-seam__mark--right {
    right: clamp(8px, 3vw, 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-seam__mark {
    transform: translateY(-50%);
  }

  .section-seam__icon {
    will-change: auto;
  }
}

/* Centered head stack: eyebrow -> headline -> subtext -> chips -> CTA */
.section-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--section-head-gap);
}

/* Small tracked kicker with a yellow dot */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-purple);
}

.section-eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 999px;
  background: var(--color-yellow);
  box-shadow: 0 0 0 4px rgba(255, 206, 0, 0.18);
}

/* Premium pill chips for meta info */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 16px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 2.9em;
  padding: 0 1.25rem;
  border-radius: var(--btn-radius);
  background: var(--color-white);
  color: var(--color-purple);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1.5px var(--stroke-purple);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-tomujin-hover),
    0 0 0 1.5px var(--stroke-yellow);
}

/* keep Gotham digits on the same optical line as the Raleway label */
.chip .font-num {
  line-height: 1;
  font-weight: 700;
}

.chip__icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  color: var(--color-purple);
}

/* Floating decorative sticker motif */
.float-sticker {
  position: absolute;
  width: clamp(40px, 6vw, 84px);
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

.sessions {
  /* extends .section-white for shared bg + breathable rhythm */
}

.sessions__anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Subtle floating background icons */
.sessions__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sessions__inner {
  position: relative;
  z-index: 2;
}

.sessions__cta {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: var(--section-head-to-content);
}

.sessions__title {
  font-size: clamp(2.25rem, 6.5vw, 5rem);
  margin: 0;
  text-transform: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  white-space: nowrap;
}

.sessions__num {
  height: 3.5em;
  width: auto;
  vertical-align: middle;
  margin-top: -0.06em;
  /* negative inline margins pull "Зөвхөн" / "Ээлж" closer to the tile
     (the PNG carries wide transparent padding + glow around the glyph) */
  margin-inline: -0.32em;
  flex: 0 0 auto;
  transform-origin: 50% 50%;
  will-change: transform;
}

.sessions__subtext {
  color: var(--color-purple);
  opacity: 0.75;
  /* rhythm handled by .section-head gap */
  margin-top: 0;
  max-width: 44ch;
  margin-inline: auto;
}

/* a touch more air between the subtext and the meta chips */
.sessions__head .chip-row {
  margin-top: clamp(12px, 1.8vh, 20px);
}

/* Sticker placement — two intentional accents framing the composition */
.float-sticker--sun {
  top: 16%;
  left: 7%;
  opacity: 0.75;
}

.sessions__photos {
  position: relative;
  grid-column: 1 / -1;
  margin-top: var(--section-head-to-content);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

/* Soft yellow glow behind the photos */
.sessions__photos::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(820px, 90%);
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 206, 0, 0.4) 0%,
    rgba(255, 206, 0, 0) 65%
  );
  filter: blur(48px);
  pointer-events: none;
}

.session-photo-btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.session-photo {
  display: block;
  width: min(400px, 44vw);
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-tomujin);
  transition: transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
  pointer-events: none;
}

.session-photo-btn--left .session-photo {
  transform: rotate(-5deg);
}

.session-photo-btn--right .session-photo {
  transform: rotate(5deg);
}

.session-photo-btn--left:hover .session-photo {
  transform: rotate(-5deg) translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-tomujin-hover);
}

.session-photo-btn--right:hover .session-photo {
  transform: rotate(5deg) translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-tomujin-hover);
}

/* Inset content by one grid column on each side (tablet/desktop) */
@media (min-width: 768px) {
  .sessions__head,
  .sessions__photos {
    grid-column: 2 / -2;
  }
}

@media (max-width: 767px) {
  /* keep the headline on one line within the mobile side margins */
  .sessions__title {
    font-size: clamp(1.5rem, 8vw, 2.75rem);
  }

  .sessions__head .chip-row {
    flex-wrap: nowrap;
    gap: clamp(4px, 1.4vw, 8px);
    max-width: 100%;
  }

  .sessions__head .chip {
    min-height: 2.1em;
    height: 2.1em;
    padding: 0 0.55rem;
    font-size: clamp(0.62rem, 2.6vw, 0.75rem);
    gap: 0.3em;
    letter-spacing: -0.02em;
    border-radius: 10px;
    box-shadow:
      var(--shadow-tomujin),
      0 0 0 1px var(--stroke-purple);
  }

  .sessions__head .chip__icon {
    width: 0.95em;
    height: 0.95em;
  }

  .sessions__photos {
    flex-direction: column;
    align-items: center;
    gap: clamp(40px, 12vw, 64px);
  }

  .session-photo {
    width: min(400px, 82vw);
  }

  /* keep stickers playful but out of the content's way on small screens */
  .float-sticker {
    width: clamp(34px, 11vw, 56px);
    opacity: 0.6;
  }

  .float-sticker--sun {
    top: 9%;
    left: 3%;
  }
}

/* ---- Modal icon buttons (list-camp.png, no box) ---- */
.modal-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition-interactive);
}

.modal-icon-btn img {
  display: block;
  width: var(--list-camp-size-overlay);
  height: var(--list-camp-size-overlay);
  object-fit: contain;
  pointer-events: none;
  transition: transform var(--transition-interactive);
}

.modal-icon-btn:hover img {
  transform: translateY(-4px) scale(1.07);
}

.modal-icon-btn:active {
  transform: scale(0.97);
}

.modal-icon-btn:active img {
  transform: translateY(0) scale(0.95);
}

.modal-icon-btn:focus-visible {
  outline: none;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(92, 16, 144, 0.22);
}

.modal-icon-btn--overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.modal-icon-btn__glyph {
  display: block;
  flex-shrink: 0;
  width: var(--list-camp-size-glyph);
  height: var(--list-camp-size-glyph);
  object-fit: contain;
  pointer-events: none;
  transition: transform var(--transition-interactive);
}

.modal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.modal-nav-btn:hover .modal-icon-btn__glyph {
  transform: translateY(-2px) scale(1.06);
}

.modal-nav-btn:active .modal-icon-btn__glyph {
  transform: translateY(0) scale(0.96);
}

/* ---- Session CTA modal ---- */
.session-cta-overlay,
.register-modal-overlay,
.curriculum-detail-overlay,
.coach-detail-overlay,
.student-testimonial-overlay,
.parent-testimonial-overlay,
.pov-overlay,
.academy-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-padding);
}

.session-cta-overlay {
  background: var(--session-overlay-scrim);
  backdrop-filter: blur(var(--session-overlay-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--session-overlay-blur)) saturate(1.15);
}

.register-modal-overlay {
  background: var(--overlay-scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: opacity;
}

.curriculum-detail-overlay {
  background: var(--overlay-scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: opacity;
}

.session-cta-overlay[hidden],
.register-modal-overlay[hidden],
.curriculum-detail-overlay[hidden],
.coach-detail-overlay[hidden],
.student-testimonial-overlay[hidden],
.parent-testimonial-overlay[hidden],
.pov-overlay[hidden],
.academy-overlay[hidden] {
  display: none;
}

.session-cta-modal {
  position: relative;
  width: min(100%, 380px);
  padding: clamp(36px, 6vw, 48px) clamp(24px, 5vw, 32px)
    clamp(28px, 5vw, 40px);
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(251, 251, 253, 0.88) 100%
  );
  backdrop-filter: blur(var(--session-modal-blur));
  -webkit-backdrop-filter: blur(var(--session-modal-blur));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: var(--modal-outer-stroke), var(--modal-shadow-3d);
  transform-origin: center center;
  overflow: hidden;
}

.session-cta-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/camp-bg.png") center / 70% no-repeat;
  opacity: 0.04;
  filter: grayscale(1) brightness(2);
  pointer-events: none;
}

.session-cta-modal__content {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
}

.session-cta-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.session-cta-modal__text {
  margin: 0 0 1.5rem;
  color: var(--color-purple);
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.session-cta-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.session-cta-modal__actions .btn {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.session-cta-modal__later {
  background: var(--color-white);
  color: var(--color-purple);
  box-shadow:
    0 0 0 1px rgba(92, 16, 144, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.session-cta-modal__later:hover {
  background: #f5f5f7;
  color: var(--color-purple);
  transform: translateY(-2px);
}

body.modal-open {
  overflow: hidden;
}

/* ---- Register modal ---- */
.register-modal {
  position: relative;
  width: min(100%, 560px);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 36px);
  background: var(--color-white);
  border: 2px solid rgba(92, 16, 144, 0.2);
  border-radius: 22px;
  box-shadow: var(--modal-outer-stroke), var(--modal-shadow-3d);
}

.register-modal__title {
  margin: 0 0 1.25rem;
  padding-right: 5.25rem;
  color: var(--color-purple);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.register-form__fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.register-form__label {
  color: rgba(92, 16, 144, 0.65);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.register-form__input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #f5f5f7;
  color: var(--color-purple);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.register-form__input:focus {
  outline: none;
  border-color: rgba(92, 16, 144, 0.25);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(92, 16, 144, 0.12);
}

.register-form__input[type="tel"],
.register-form__input--numeric {
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums;
}

.register-form__textarea {
  min-height: 88px;
  resize: vertical;
}

.register-form__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: var(--color-purple);
  font-size: 0.9rem;
  cursor: pointer;
}

.register-form__submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
}

.register-form__submit.modal-nav-btn {
  justify-content: center;
}

.register-modal__shift-label {
  margin: -0.5rem 0 1rem;
  color: rgba(92, 16, 144, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 1rem;
  padding: 4px;
  background: #f5f5f7;
  border-radius: 14px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option__name {
  color: var(--color-purple);
  font-weight: 700;
  font-size: 0.95rem;
}

.payment-option--active {
  background: var(--color-white);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.payment-option--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qpay-panel {
  padding: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.qpay-panel__qr {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(225deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%) 0 0 / 16px 16px,
    #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.qpay-panel__text {
  margin: 0 0 0.35rem;
  color: var(--color-purple);
  font-weight: 600;
}

.qpay-panel__amount {
  margin: 0;
  color: var(--color-purple);
  font-weight: 700;
}

.register-modal__success {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 206, 0, 0.2);
  color: var(--color-purple);
  font-weight: 600;
  text-align: center;
}

.register-modal__actions {
  display: flex;
  gap: 0.75rem;
}

.register-modal__actions .btn {
  flex: 1;
}

.register-modal__actions .modal-nav-btn {
  flex: 1;
  justify-content: center;
}

.register-modal__actions .btn-secondary.modal-nav-btn {
  background: transparent;
  color: var(--color-purple);
  box-shadow: 0 0 0 1px rgba(92, 16, 144, 0.2);
}

.register-modal__actions .btn-secondary.modal-nav-btn:hover {
  background: #f5f5f7;
}

@media (max-width: 767px) {
  .register-form__row {
    grid-template-columns: 1fr;
  }

  .session-cta-modal__actions {
    flex-direction: column;
  }
}

/* ============================================================
   Curriculum / Program section
   ============================================================ */
.curriculum {
  position: relative;
}

.curriculum__inner {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-head-to-content);
}

.curriculum__status {
  margin: 0;
  color: var(--color-purple);
  font-weight: 600;
  text-align: center;
}

/* Compact category tab buttons */
.curriculum-tab-btns {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 22px);
  width: auto;
  max-width: 100%;
  padding: 6px 4px;
}

.curriculum-tab-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 4px 8px;
  padding: 0.65rem 1.25rem;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  white-space: nowrap;
  border-radius: calc(var(--btn-radius) - 6px);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

#curriculum-tab-senior {
  transform: rotate(-5deg);
}

#curriculum-tab-junior {
  transform: rotate(5deg);
}

.curriculum-tab-btn:active:not(.is-active) {
  transform: scale(0.985);
}

#curriculum-tab-senior:active:not(.is-active) {
  transform: rotate(-5deg) scale(0.985);
}

#curriculum-tab-junior:active:not(.is-active) {
  transform: rotate(5deg) scale(0.985);
}

.curriculum-tab-btn.is-active {
  pointer-events: none;
}

.curriculum__tabs {
  justify-content: center;
  width: auto;
}

.curriculum__head {
  width: 100%;
  max-width: min(920px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-head-gap);
}

.curriculum__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
}

.curriculum__title {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  text-transform: none;
}

.curriculum__badge {
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: calc(var(--btn-radius) - 6px);
}

.curriculum-tab-btn .font-num {
  line-height: 1;
  vertical-align: baseline;
  font-weight: 700;
}

.curriculum-program__count .font-num {
  line-height: 1;
  vertical-align: baseline;
  font-weight: 700;
}

.curriculum__overview-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 16px);
  width: 100%;
  max-width: min(920px, 100%);
  --overview-max: 48rem;
  --overview-collapsed: 4.5rem;
}

.curriculum__overview {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  line-height: 1.32;
  color: #333333;
  text-align: left;
  text-transform: none;
  overflow: hidden;
}

.curriculum__overview-wrap:not(.is-expanded) .curriculum__overview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.curriculum__overview-wrap.is-expanded .curriculum__overview {
  display: block;
  -webkit-line-clamp: unset;
  max-height: var(--overview-max);
}

.curriculum__overview-wrap.is-animating .curriculum__overview {
  display: block;
  -webkit-line-clamp: unset;
  transition: max-height 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.curriculum__overview-toggle {
  flex-shrink: 0;
  align-self: flex-end;
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-purple);
  text-transform: none;
  white-space: nowrap;
  opacity: 0.88;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.curriculum__overview-toggle-text {
  display: block;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.curriculum__overview-toggle-text[data-label-less] {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
}

.curriculum__overview-toggle[aria-expanded="true"] .curriculum__overview-toggle-text[data-label-more] {
  opacity: 0;
  transform: translateY(-3px);
}

.curriculum__overview-toggle[aria-expanded="true"] .curriculum__overview-toggle-text[data-label-less] {
  opacity: 1;
  transform: translateY(0);
}

.curriculum__overview-toggle:active {
  transform: scale(0.97);
  opacity: 1;
}

.curriculum__overview-toggle:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.curriculum__overview-toggle:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .curriculum-tab-btn,
  .curriculum__overview,
  .curriculum__overview-toggle,
  .curriculum__overview-toggle-text {
    transition: none;
  }

  .curriculum-tab-btn:active:not(.is-active),
  .curriculum__overview-toggle:active {
    transform: none;
  }

  #curriculum-tab-senior:active:not(.is-active) {
    transform: rotate(-5deg);
  }

  #curriculum-tab-junior:active:not(.is-active) {
    transform: rotate(5deg);
  }

  .curriculum__overview-toggle-text[data-label-less] {
    transform: none;
  }

  .curriculum__overview-toggle[aria-expanded="true"] .curriculum__overview-toggle-text[data-label-more],
  .curriculum__overview-toggle[aria-expanded="true"] .curriculum__overview-toggle-text[data-label-less] {
    transform: none;
  }
}

/* Program accordion grid */
.curriculum__programs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 20px);
  width: 100%;
  max-width: min(960px, 100%);
}

.curriculum-program {
  border: 1px solid rgba(92, 16, 144, 0.12);
  border-radius: var(--btn-radius);
  background: var(--color-white);
  box-shadow: var(--shadow-tomujin);
  overflow: hidden;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
  scroll-margin-bottom: 24px;
  transition:
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.curriculum-program:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-tomujin-hover);
  border-color: rgba(92, 16, 144, 0.18);
}

.curriculum-program.is-open {
  border-color: rgba(92, 16, 144, 0.22);
  box-shadow: var(--modal-shadow-3d);
}

.curriculum-program.is-open:hover {
  transform: none;
}

.curriculum-program__header {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 16px);
  width: 100%;
  padding: clamp(14px, 2vh, 18px) clamp(16px, 2.5vw, 20px);
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  transition: background 0.25s ease;
}

.curriculum-program__header:hover {
  background: rgba(92, 16, 144, 0.05);
}

.curriculum-program.is-open .curriculum-program__header {
  background: rgba(92, 16, 144, 0.03);
}

.curriculum-program__header:focus-visible,
.curriculum-program__block:focus-visible,
.curriculum-detail__nav:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

.curriculum-program__icon-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 5vw, 48px);
  height: clamp(40px, 5vw, 48px);
  border-radius: var(--btn-radius);
  background: rgba(255, 206, 0, 0.28);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1;
}

.curriculum-program__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.curriculum-program__count {
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(92, 16, 144, 0.55);
}

.curriculum-program__title {
  font-weight: 700;
  font-size: clamp(0.85rem, 1.25vw, 1rem);
  line-height: 1.3;
  color: var(--color-purple);
  text-transform: none;
}

.curriculum-program__toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(26px, 3.6vw, 30px);
  height: clamp(26px, 3.6vw, 30px);
  border-radius: 50%;
  border: 1px solid rgba(92, 16, 144, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-purple);
  line-height: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 6px rgba(92, 16, 144, 0.06);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.curriculum-program__header:hover .curriculum-program__toggle {
  border-color: rgba(92, 16, 144, 0.26);
  background: rgba(255, 206, 0, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 10px rgba(92, 16, 144, 0.08);
}

.curriculum-program.is-open .curriculum-program__toggle {
  background: var(--color-yellow);
  border-color: rgba(92, 16, 144, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 rgba(92, 16, 144, 0.08);
}

.curriculum-program__toggle-icon {
  display: block;
  width: 12px;
  height: 12px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.curriculum-program.is-open .curriculum-program__toggle-icon {
  transform: rotate(180deg);
}

.curriculum-program__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.curriculum-program__body[aria-hidden="true"] {
  pointer-events: none;
}

.curriculum-program__body[aria-hidden="true"] .curriculum-program__body-inner {
  visibility: hidden;
}

.curriculum-program.is-open .curriculum-program__body {
  grid-template-rows: 1fr;
}

.curriculum-program__body-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 clamp(10px, 1.5vw, 14px) clamp(12px, 1.5vw, 14px);
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

.curriculum-program:not(.is-open) .curriculum-program__body-inner {
  padding: 0;
  transition-delay: 0s;
}

.curriculum-program.is-open .curriculum-program__body-inner {
  opacity: 1;
  transform: translateY(0);
}

.curriculum-program__block {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
  width: 100%;
  padding: clamp(10px, 1.4vh, 12px) clamp(12px, 1.5vw, 14px);
  border: none;
  border-radius: calc(var(--btn-radius) - 4px);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  transition:
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease;
}

.curriculum-program__block:hover {
  background: rgba(92, 16, 144, 0.07);
  transform: translateX(2px);
  box-shadow: 0 2px 10px rgba(92, 16, 144, 0.07);
}

.curriculum-program__block:active {
  transform: translateX(1px) scale(0.995);
}

.curriculum-program__block.is-active {
  background: var(--color-yellow);
  box-shadow: 0 0 0 1px rgba(92, 16, 144, 0.18);
}

.curriculum-program__block-num {
  flex-shrink: 0;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 700;
  color: rgba(92, 16, 144, 0.5);
  min-width: 1.5em;
}

.curriculum-program__block.is-active .curriculum-program__block-num {
  color: var(--color-purple);
}

.curriculum-program__block-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.curriculum-program__block-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  line-height: 1.35;
  color: var(--color-purple);
  text-transform: none;
}

.curriculum-program__block.is-active .curriculum-program__block-title {
  color: var(--color-purple);
}

.curriculum-program__block-arrow {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--color-purple);
  opacity: 0.45;
}

.curriculum-program__block-arrow svg {
  width: 100%;
  height: 100%;
}

/* ---- Tomujin Academy (who we are) ---- */
.academy {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
}

.academy.section-white {
  overflow: visible;
}

.academy__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.academy__showcase {
  width: 100%;
  max-width: min(1040px, 100%);
  padding-bottom: clamp(4px, 1vh, 10px);
}

.academy__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  border-radius: clamp(16px, 2.4vw, 22px);
}

.academy__viewport::-webkit-scrollbar {
  display: none;
}

.academy__track {
  display: flex;
  align-items: stretch;
  min-width: 100%;
}

.academy-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.academy-slide__trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.academy-slide__trigger:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
  border-radius: clamp(16px, 2.4vw, 22px);
}

.academy-slide__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 56vw, 520px);
  overflow: hidden;
  border-radius: clamp(16px, 2.4vw, 22px);
  border: none;
  background: #121214;
  box-shadow:
    var(--shadow-tomujin),
    0 28px 52px -14px rgba(92, 16, 144, 0.16);
}

.academy-slide__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
}

.academy-slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 20, 0.05) 0%,
    rgba(18, 18, 20, 0.15) 42%,
    rgba(18, 18, 20, 0.72) 100%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.academy-slide.is-playing .academy-slide__scrim {
  opacity: 0.85;
}

.academy-slide__chrome {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 20px);
  padding: clamp(14px, 3vw, 22px);
  pointer-events: none;
}

.academy-slide__title {
  margin: 0;
  max-width: min(28ch, 78%);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(1.05rem, 3.2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: left;
  color: var(--color-white);
  text-wrap: balance;
}

.academy-slide__play {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 10vw, 52px);
  height: clamp(44px, 10vw, 52px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-purple);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: opacity 0.35s ease;
}

.academy-slide__play svg {
  display: block;
  margin-left: 2px;
}

.academy-slide.is-playing .academy-slide__play {
  opacity: 0;
}

.academy__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: clamp(12px, 2.2vh, 18px);
}

.academy__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(92, 16, 144, 0.22);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.academy__dot[aria-selected="true"] {
  background: var(--color-purple);
  transform: scale(1.25);
}

.academy__dot:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

.academy-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-padding);
  background: var(--overlay-scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: opacity;
}

.academy-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 14px);
  width: min(calc(100vw - 24px), 720px);
  max-height: min(calc(100vh - 24px), 92vh);
  padding: clamp(14px, 2.2vw, 20px);
  border-radius: clamp(18px, 2.5vw, 24px);
  background: var(--color-white);
  box-shadow: var(--modal-shadow-3d);
  transform-origin: center center;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.academy-modal__title {
  margin: 0;
  padding-inline: clamp(4px, 1vw, 8px);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-purple);
}

.academy-modal__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  width: 100%;
  min-height: 0;
}

.academy-modal__close {
  position: absolute;
  top: clamp(10px, 1.8vw, 14px);
  right: clamp(10px, 1.8vw, 14px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(92, 16, 144, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-purple);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.academy-modal__close:hover {
  background: var(--color-yellow);
}

.academy-modal__close:active {
  transform: scale(0.96);
}

.academy-modal__figure {
  margin: 0;
  width: 100%;
  max-height: min(calc(100vh - 160px), 72vh);
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 16px);
  background: #1c1c1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.academy-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(calc(100vh - 160px), 72vh);
  object-fit: contain;
  vertical-align: top;
  background: #1c1c1e;
}

.academy-modal__nav {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(40px, 4.5vw, 48px);
  height: clamp(40px, 4.5vw, 48px);
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-purple);
  box-shadow:
    0 8px 20px rgba(92, 16, 144, 0.12),
    0 0 0 1px rgba(92, 16, 144, 0.1);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.academy-modal__nav:hover {
  background: var(--color-yellow);
}

.academy-modal__nav:active {
  transform: scale(0.96);
}

.academy-modal__nav:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

.academy-modal__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.academy-modal__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .academy-slide__frame {
    aspect-ratio: 2 / 1;
    min-height: clamp(320px, 42vw, 480px);
  }
}

/* Academy zoom modal — cinematic scale on large screens */
@media (min-width: 1024px) {
  .academy-overlay {
    padding: clamp(16px, 2.5vw, 36px);
  }

  .academy-modal {
    width: min(calc(100vw - 64px), 1080px);
    max-height: min(calc(100vh - 40px), 94vh);
    gap: clamp(12px, 1.6vh, 18px);
    padding: clamp(16px, 1.8vw, 24px);
    border-radius: clamp(20px, 1.6vw, 26px);
  }

  .academy-modal__title {
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  }

  .academy-modal__stage {
    gap: clamp(10px, 1.2vw, 18px);
  }

  .academy-modal__figure {
    max-height: min(calc(100vh - 132px), 84vh);
    border-radius: clamp(14px, 1.2vw, 18px);
  }

  .academy-modal__video {
    max-height: min(calc(100vh - 132px), 84vh);
  }

  .academy-modal__nav {
    width: clamp(44px, 3.6vw, 52px);
    height: clamp(44px, 3.6vw, 52px);
  }

  .academy-modal__close {
    top: clamp(12px, 1.4vw, 18px);
    right: clamp(12px, 1.4vw, 18px);
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 1280px) {
  .academy-modal {
    width: min(calc(100vw - 80px), 1200px);
  }

  .academy-modal__figure,
  .academy-modal__video {
    max-height: min(calc(100vh - 120px), 88vh);
  }
}

@media (min-width: 1440px) {
  .academy-overlay {
    padding: clamp(20px, 2vw, 48px);
  }

  .academy-modal {
    width: min(calc(100vw - 96px), 1320px);
    max-height: min(calc(100vh - 32px), 96vh);
    padding: clamp(18px, 1.4vw, 28px);
  }

  .academy-modal__figure,
  .academy-modal__video {
    max-height: min(calc(100vh - 108px), 90vh);
  }
}

@media (max-width: 640px) {
  .academy-modal {
    width: min(calc(100vw - 16px), 100%);
    max-height: min(calc(100vh - 16px), 92vh);
    padding: 12px;
  }

  .academy-modal__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .academy-modal__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: min(calc(100vh - 188px), 68vh);
  }

  .academy-modal__video {
    max-height: min(calc(100vh - 188px), 68vh);
  }

  .academy-modal__nav--prev {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }

  .academy-modal__nav--next {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .academy__viewport {
    scroll-behavior: auto;
  }

  .academy-slide__scrim,
  .academy-slide__play,
  .academy__dot,
  .academy-modal__nav,
  .academy-modal__close {
    transition: none;
  }
}

/* ---- One day schedule ---- */
.one-day {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
  --scroll-card-width: clamp(240px, 22vw, 300px);
  --scroll-card-hover-lift: max(
    calc(var(--section-hover-gutter) + 24px),
    calc(var(--scroll-card-width) * 1.32 * 0.11 + 20px)
  );
}

.one-day.section-white {
  overflow: visible;
}

.one-day__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--section-head-to-content);
}

.one-day__head {
  text-align: center;
}

.one-day__title {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  text-transform: none;
}

.one-day__carousel {
  position: relative;
  z-index: 2;
  width: 100%;
}

.one-day__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 4.5vw, 44px);
  height: clamp(36px, 4.5vw, 44px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-purple);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(92, 16, 144, 0.08);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease;
}

.one-day__nav--prev {
  left: clamp(6px, 1.2vw, 14px);
}

.one-day__nav--next {
  right: clamp(6px, 1.2vw, 14px);
}

.one-day__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.one-day__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.one-day__nav:hover:not(:disabled) {
  background: var(--color-yellow);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(255, 206, 0, 0.45);
}

.one-day__nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.one-day__nav:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

.one-day__nav:disabled {
  opacity: 0.34;
  cursor: default;
}

.one-day__nav[hidden] {
  display: none;
}

.one-day__track-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: var(--page-padding);
  overflow-x: auto;
  overflow-y: hidden;
  clip-path: inset(
    calc(var(--scroll-card-hover-lift) * -1.05) 0
    calc(var(--scroll-card-hover-rest) * -1) 0
  );
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  padding-top: var(--scroll-card-hover-lift);
  padding-bottom: var(--scroll-card-hover-rest);
}

.one-day__track-wrap::-webkit-scrollbar {
  display: none;
}

.one-day__track-wrap:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
  border-radius: 4px;
}

.one-day__track {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 24px);
  width: max-content;
  min-width: 100%;
  padding-block: 0 var(--scroll-card-hover-rest);
  padding-inline: max(0px, calc((100vw - var(--container-max)) / 2 - var(--page-padding)));
}

.one-day-card {
  flex: 0 0 auto;
  width: clamp(240px, 22vw, 300px);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.one-day-card:focus-visible {
  outline: none;
  z-index: 3;
}

.one-day-card:focus-visible .one-day-card__surface {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
}

.one-day-card__surface {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--color-white);
  border-radius: calc(var(--btn-radius) + 4px);
  box-shadow: var(--shadow-tomujin);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.one-day-card__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f0f8;
}

.one-day-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.one-day-card__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(14px, 2vw, 18px) clamp(14px, 2vw, 18px) clamp(18px, 2.4vw, 22px);
}

.one-day-card__time-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.one-day-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 0 1.5px rgba(255, 206, 0, 0.45);
}

.one-day-card__icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.one-day-card__time {
  font-family: var(--font-numbers);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1;
  color: var(--color-purple);
  letter-spacing: -0.02em;
}

.one-day-card__rule {
  margin: 0;
  border: none;
  height: 1px;
  background: rgba(92, 16, 144, 0.14);
}

.one-day-card__title {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  line-height: 1.35;
  color: var(--color-purple);
  text-transform: none;
  padding-right: 2.5rem;
}

.one-day-card__desc {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(0.78rem, 1.05vw, 0.86rem);
  line-height: 1.45;
  color: rgba(92, 16, 144, 0.62);
  text-transform: none;
  padding-right: 1.5rem;
}

.one-day-card__watermark {
  position: absolute;
  right: clamp(10px, 1.6vw, 14px);
  bottom: clamp(10px, 1.6vw, 14px);
  width: clamp(52px, 7vw, 72px);
  height: auto;
  opacity: 0.09;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 767px) {
  .one-day {
    --scroll-card-width: min(78vw, 280px);
  }

  .one-day__track {
    padding-inline: 0;
  }

  .one-day-card {
    width: min(78vw, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .one-day__track-wrap {
    scroll-behavior: auto;
  }

  .one-day__nav {
    transition: none;
  }

  .one-day__nav:active:not(:disabled) {
    transform: translateY(-50%);
  }
}

/* ---- House system ---- */
.house-system {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
  --scroll-card-width: clamp(
    200px,
    calc((min(100vw, var(--container-max)) - 2 * var(--page-padding) - 4 * clamp(14px, 2vw, 20px)) / 5),
    260px
  );
  --scroll-card-hover-lift: max(
    calc(var(--section-hover-gutter) + 24px),
    calc(var(--scroll-card-width) * 1.48 * 0.11 + 22px)
  );
}

.house-system.section-white {
  overflow: visible;
}

.house-system__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--section-head-to-content);
}

.house-system__head {
  text-align: center;
  max-width: 720px;
}

.house-system__title {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  text-transform: none;
}

.house-system__intro-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 16px);
  width: 100%;
  margin: clamp(10px, 2vw, 14px) 0 0;
  --houses-intro-max: 48rem;
  --houses-intro-collapsed: 4.75rem;
}

.house-system__subline {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.55;
  color: rgba(92, 16, 144, 0.62);
  font-weight: 500;
  overflow: hidden;
}

.house-system__intro-wrap:not(.is-expanded) .house-system__subline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.house-system__intro-wrap.is-expanded .house-system__subline {
  display: block;
  -webkit-line-clamp: unset;
  max-height: var(--houses-intro-max);
}

.house-system__intro-wrap.is-animating .house-system__subline {
  display: block;
  -webkit-line-clamp: unset;
  transition: max-height 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.house-system__intro-toggle {
  flex-shrink: 0;
  align-self: flex-end;
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-purple);
  text-transform: none;
  white-space: nowrap;
  opacity: 0.88;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.house-system__intro-toggle-text {
  display: block;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.house-system__intro-toggle-text[data-label-less] {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
}

.house-system__intro-toggle[aria-expanded="true"] .house-system__intro-toggle-text[data-label-more] {
  opacity: 0;
  transform: translateY(-3px);
}

.house-system__intro-toggle[aria-expanded="true"] .house-system__intro-toggle-text[data-label-less] {
  opacity: 1;
  transform: translateY(0);
}

.house-system__intro-toggle:active {
  transform: scale(0.97);
  opacity: 1;
}

.house-system__intro-toggle:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.house-system__intro-toggle:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .house-system__subline,
  .house-system__intro-toggle,
  .house-system__intro-toggle-text {
    transition: none;
  }

  .house-system__intro-toggle:active {
    transform: none;
  }

  .house-system__intro-toggle-text[data-label-less] {
    transform: none;
  }

  .house-system__intro-toggle[aria-expanded="true"] .house-system__intro-toggle-text[data-label-more],
  .house-system__intro-toggle[aria-expanded="true"] .house-system__intro-toggle-text[data-label-less] {
    transform: none;
  }
}

.house-system__carousel {
  position: relative;
  z-index: 2;
  width: 100%;
}

.house-system__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 4.5vw, 44px);
  height: clamp(36px, 4.5vw, 44px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-purple);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(92, 16, 144, 0.08);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease;
}

.house-system__nav--prev {
  left: clamp(6px, 1.2vw, 14px);
}

.house-system__nav--next {
  right: clamp(6px, 1.2vw, 14px);
}

.house-system__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.house-system__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.house-system__nav:hover:not(:disabled) {
  background: var(--color-yellow);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(255, 206, 0, 0.45);
}

.house-system__nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.house-system__nav:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

.house-system__nav:disabled {
  opacity: 0.34;
  cursor: default;
}

.house-system__nav[hidden] {
  display: none;
}

.house-system__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: clamp(10px, 2.5vw, 16px) 0 0;
  padding-inline: var(--page-padding);
}

.house-system__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(92, 16, 144, 0.22);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.house-system__dot[aria-selected="true"] {
  background: var(--color-purple);
  transform: scale(1.2);
}

.house-system__dot:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

.house-system__track-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: var(--page-padding);
  overflow-x: auto;
  overflow-y: hidden;
  clip-path: inset(
    calc(var(--scroll-card-hover-lift) * -1.05) 0
    calc(var(--scroll-card-hover-rest) * -1) 0
  );
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  padding-top: var(--scroll-card-hover-lift);
  padding-bottom: var(--scroll-card-hover-rest);
}

.house-system__track-wrap::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .house-system__track-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 16, 144, 0.32) transparent;
    padding-bottom: calc(var(--scroll-card-hover-rest) + 8px);
  }

  .house-system__track-wrap::-webkit-scrollbar {
    display: block;
    height: 5px;
  }

  .house-system__track-wrap::-webkit-scrollbar-track {
    background: transparent;
  }

  .house-system__track-wrap::-webkit-scrollbar-thumb {
    background: rgba(92, 16, 144, 0.28);
    border-radius: 999px;
  }

  .house-system__track-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(92, 16, 144, 0.42);
  }
}

.house-system__track-wrap:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
  border-radius: 4px;
}

.house-system__track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 2vw, 20px);
  width: max-content;
  min-width: 100%;
  padding-block: 0 var(--scroll-card-hover-rest);
  padding-inline: max(0px, calc((100vw - var(--container-max)) / 2 - var(--page-padding)));
}

.house-card {
  flex: 0 0 auto;
  position: relative;
  width: clamp(
    200px,
    calc((min(100vw, var(--container-max)) - 2 * var(--page-padding) - 4 * clamp(14px, 2vw, 20px)) / 5),
    260px
  );
  scroll-snap-align: start;
  z-index: 1;
  overflow: visible;
  transform-origin: center center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.house-card:focus-visible {
  outline: none;
}

.house-card:focus-visible .house-card__surface {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
}

.house-card__frame {
  position: absolute;
  inset: 12% 8% auto;
  height: 72%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  background:
    linear-gradient(
      to top right,
      transparent calc(50% - 0.5px),
      rgba(92, 16, 144, 0.55) calc(50% - 0.5px),
      rgba(92, 16, 144, 0.55) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      to top left,
      transparent calc(50% - 0.5px),
      rgba(92, 16, 144, 0.55) calc(50% - 0.5px),
      rgba(92, 16, 144, 0.55) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    );
}

.house-card__surface {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "media"
    "body";
  height: 100%;
  background: var(--color-white);
  border-radius: calc(var(--btn-radius) + 4px);
  box-shadow: var(--shadow-tomujin);
  overflow: hidden;
  transform-origin: center center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.house-card__media {
  position: relative;
  z-index: 1;
  grid-area: media;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f0f8;
  border-radius: calc(var(--btn-radius) + 4px) calc(var(--btn-radius) + 4px) 0 0;
}

.house-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: opacity 0.22s ease;
}

.house-card__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: opacity 0.22s ease;
}

.house-card.is-media-playing .house-card__video {
  opacity: 1;
}

.house-card.is-media-playing .house-card__photo {
  opacity: 0;
}

.house-card__emblem {
  grid-area: media;
  position: relative;
  z-index: 4;
  justify-self: end;
  align-self: end;
  width: clamp(80px, 12vw, 104px);
  height: clamp(80px, 12vw, 104px);
  margin-right: clamp(2px, 0.6vw, 6px);
  transform: translateY(46%);
  pointer-events: auto;
  cursor: pointer;
  transform-origin: 50% 100%;
  will-change: transform;
}

.house-card__emblem-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 4px 10px rgba(255, 206, 0, 0.52))
    drop-shadow(0 12px 28px rgba(255, 206, 0, 0.4))
    drop-shadow(0 24px 48px rgba(255, 206, 0, 0.26))
    drop-shadow(0 2px 4px rgba(92, 16, 144, 0.12));
}

.house-card.is-pressed .house-card__emblem-logo {
  transform: translateY(-14px) scale(1.06);
  transition: transform 0.18s ease;
}

.house-card__body {
  position: relative;
  z-index: 2;
  grid-area: body;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 10px);
  padding: clamp(18px, 2.4vw, 22px) clamp(14px, 2vw, 18px) clamp(16px, 2.2vw, 20px);
  padding-right: clamp(52px, 7.5vw, 68px);
  background: var(--color-white);
  border-radius: 0 0 calc(var(--btn-radius) + 4px) calc(var(--btn-radius) + 4px);
  container-type: inline-size;
  min-width: 0;
}

.house-card__title-row {
  --house-title-size: clamp(1rem, 1.5vw, 1.15rem);
  display: flex;
  align-items: center;
  gap: 0.35em;
  min-width: 0;
  font-size: var(--house-title-size);
  line-height: 1.2;
}

.house-card__list-icon.modal-icon-btn {
  flex-shrink: 0;
  cursor: default;
  pointer-events: none;
}

.house-card__list-icon.modal-icon-btn img {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
}

.house-card__list-icon.modal-icon-btn:hover img,
.house-card__list-icon.modal-icon-btn:active,
.house-card__list-icon.modal-icon-btn:active img {
  transform: none;
}

.house-card__name {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1em;
  line-height: inherit;
  color: var(--color-purple);
  text-transform: none;
  min-width: 0;
}

.house-card__motto {
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  min-width: 0;
}

.house-card__motto-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(0.58rem, 4.8cqi, 0.8rem);
  line-height: 1.3;
  color: rgba(92, 16, 144, 0.52);
  font-weight: 500;
}

@media (max-width: 1023px) {
  .house-system__track {
    justify-content: flex-start;
    padding-inline: 0;
  }

  .house-card {
    width: min(72vw, 240px);
  }
}

@media (max-width: 767px) {
  .house-system {
    --scroll-card-width: min(78vw, 240px);
  }

  .house-card {
    width: min(78vw, 240px);
  }

  .house-system__nav {
    display: none !important;
  }

  .house-system__dots:not([hidden]) {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .house-system__track-wrap {
    scroll-behavior: auto;
  }

  .house-system__nav {
    transition: none;
  }

  .house-system__nav:active:not(:disabled) {
    transform: translateY(-50%);
  }

  .house-system__dot {
    transition: none;
  }
}

/* ---- Coaches ---- */
.coaches {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
}

.coaches.section-white {
  overflow: visible;
}

.coaches__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--section-head-to-content);
}

.coaches__head {
  text-align: center;
  max-width: 640px;
}

.coaches__title {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  text-transform: none;
}

.coaches__subline {
  margin: clamp(10px, 2vw, 14px) 0 0;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.5;
  color: rgba(92, 16, 144, 0.62);
  font-weight: 500;
}

.coaches__status {
  margin: 0;
  color: var(--color-purple);
  font-weight: 600;
  text-align: center;
}

.coaches__desktop {
  display: block;
  position: relative;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .coaches__desktop {
    cursor: none;
  }
}

.coaches__track-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: var(--page-padding);
  overflow: visible;
  outline: none;
  padding-block: var(--section-hover-gutter);
}

.coaches__track-wrap::-webkit-scrollbar {
  display: none;
}

.coaches__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vh, 18px);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: max(0px, calc((100vw - var(--container-max)) / 2 - var(--page-padding)));
}

.coaches__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
}

.coaches__row:nth-child(2) {
  margin-inline-start: clamp(12px, 2.5vw, 28px);
}

.coach-card {
  flex: 0 0 auto;
  width: clamp(
    108px,
    calc((min(100vw, var(--container-max)) - 2 * var(--page-padding) + 80px) / 5),
    240px
  );
  margin-inline: -10px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  z-index: 1;
  position: relative;
  transform-origin: center center;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.coach-card:focus-visible {
  outline: none;
  z-index: 3;
}

.coach-card:focus-visible .coach-card__surface {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
}

.coach-card__surface {
  display: block;
  width: 100%;
  border-radius: calc(var(--btn-radius) + 8px);
  background: #f7f3ec;
  box-shadow: var(--shadow-tomujin);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.coach-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 680 / 770;
  overflow: hidden;
  background: #f7f3ec;
}

.coach-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.coach-card__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}

/* Custom cursor pill */
.coaches-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-white);
  color: #1a1a1a;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  will-change: transform;
}

.coaches-cursor[hidden] {
  display: none;
}

.coaches-cursor__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-purple);
}

/* Mobile: avatar picker + featured carousel */
.coaches__mobile {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3.5vw, 24px);
  padding-inline: var(--page-padding);
  padding-bottom: 0;
}

.coaches__avatars-carousel {
  position: relative;
  width: 100%;
  max-width: min(100%, 520px);
}

.coaches__avatars-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 8.5vw, 40px);
  height: clamp(34px, 8.5vw, 40px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-purple);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(92, 16, 144, 0.08);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease;
}

.coaches__avatars-nav--prev {
  left: 0;
}

.coaches__avatars-nav--next {
  right: 0;
}

.coaches__avatars-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.coaches__avatars-nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.coaches__avatars-nav:hover:not(:disabled) {
  background: var(--color-yellow);
  transform: translateY(calc(-50% - 2px));
  box-shadow:
    var(--shadow-tomujin-hover),
    0 0 0 2px var(--stroke-yellow);
}

.coaches__avatars-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.coaches__avatars-nav:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

.coaches__avatars-nav:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.coaches__avatars-nav[hidden] {
  display: none;
}

.coaches__avatars {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: clamp(10px, 2.8vw, 14px);
  width: 100%;
  overflow-x: auto;
  padding: 8px clamp(42px, 11vw, 48px) 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.coaches__avatars::-webkit-scrollbar {
  display: none;
}

.coaches__avatar {
  flex: 0 0 auto;
  width: clamp(52px, 13vw, 60px);
  height: clamp(52px, 13vw, 60px);
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: center;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    box-shadow 0.32s ease;
  -webkit-tap-highlight-color: transparent;
}

.coaches__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.coaches__avatar.is-active {
  border-color: var(--color-purple);
  box-shadow:
    0 0 0 3px var(--color-yellow),
    0 6px 16px rgba(92, 16, 144, 0.2);
  transform: scale(1.08);
}

.coaches__featured-wrap {
  width: min(100%, 360px);
  overflow: hidden;
  touch-action: pan-y;
}

.coaches__featured-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.coaches__featured-track.is-instant {
  transition: none;
}

.coaches__featured-card {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 680 / 770;
  padding: 0;
  border: none;
  border-radius: calc(var(--btn-radius) + 10px);
  box-shadow: var(--shadow-tomujin);
  overflow: hidden;
  background: #f7f3ec;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.coaches__featured-card img,
.coaches__featured-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.coaches__featured-scrim {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.62) 100%
  );
  pointer-events: none;
}

.coaches__featured-meta {
  position: absolute;
  inset: auto clamp(16px, 4vw, 20px) clamp(16px, 4vw, 20px);
  z-index: 1;
  pointer-events: none;
}

.coaches__featured-name {
  margin: 0 0 4px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(1.05rem, 4.5vw, 1.2rem);
  line-height: 1.25;
  color: var(--color-white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}

.coaches__featured-title {
  margin: 0;
  font-size: clamp(0.78rem, 3.2vw, 0.88rem);
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Coach detail modal */
.coach-detail-overlay {
  background: var(--overlay-scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: opacity;
}

.coach-detail-modal {
  position: relative;
  width: min(calc(100vw - 32px), 800px);
  max-height: min(90vh, 720px);
  --coach-media-max-h: min(34vh, 280px);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--color-white);
  box-shadow: var(--modal-shadow-3d);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  overflow: hidden;
  min-width: 0;
}

.coach-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.coach-detail__close {
  position: absolute;
  top: clamp(12px, 2vw, 18px);
  right: clamp(12px, 2vw, 18px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 3.8vw, 32px);
  height: clamp(28px, 3.8vw, 32px);
  padding: 0;
  margin: 0;
  border: 1px solid rgba(92, 16, 144, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-purple);
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 8px rgba(92, 16, 144, 0.07);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.coach-detail__close:hover {
  border-color: rgba(92, 16, 144, 0.26);
  background: rgba(255, 206, 0, 0.16);
}

.coach-detail__close-icon {
  display: block;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.coach-detail__shell {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vh, 20px);
  padding: clamp(16px, 2.5vw, 28px);
  min-height: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  container-type: inline-size;
  container-name: coach-detail;
  border-radius: clamp(18px, 2.4vw, 24px);
  background: #fbfbfd;
  border: 1px solid rgba(92, 16, 144, 0.07);
}

.coach-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  min-height: 0;
  min-width: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.coach-detail.is-updating .coach-detail__text-wrap,
.coach-detail.is-updating .coach-detail__title,
.coach-detail.is-updating .coach-detail__subtitle {
  opacity: 0;
  transform: translateY(8px);
}

.coach-detail__media {
  position: relative;
  margin: 0;
  width: 100%;
  max-height: var(--coach-media-max-h);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: clamp(14px, 2vw, 20px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(92, 16, 144, 0.08);
  background: transparent;
  flex-shrink: 0;
}

.coach-detail__photo,
.coach-detail__video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: var(--coach-media-max-h);
  object-fit: contain;
  object-position: center center;
  background: transparent;
}

.coach-detail__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 10px);
  min-height: 0;
  min-width: 0;
  padding-top: clamp(2px, 0.6vw, 6px);
  overflow: visible;
}

.coach-detail__decor {
  position: absolute;
  right: -12%;
  top: 8%;
  width: min(72%, 220px);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  object-fit: contain;
}

.coach-detail__title {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-purple);
  text-transform: uppercase;
}

.coach-detail__subtitle {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: clamp(0.88rem, 1.3vw, 0.98rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(92, 16, 144, 0.58);
}

.coach-detail__subtitle .font-num {
  font-weight: 600;
}

.coach-detail__text-wrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(8px, 1.6vw, 12px);
  padding-top: clamp(12px, 2vw, 16px);
  border-top: 1px solid rgba(92, 16, 144, 0.08);
  max-height: min(42vh, 320px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 16, 144, 0.22) transparent;
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.coach-detail__text-wrap::-webkit-scrollbar {
  width: 5px;
}

.coach-detail__text-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(92, 16, 144, 0.22);
}

.coach-detail__bio {
  margin: 0;
  font-size: clamp(0.82rem, 1.12vw, 0.9rem);
  line-height: 1.68;
  color: rgba(30, 20, 40, 0.62);
}

.coach-detail__bio .font-num {
  font-weight: 500;
}

.coach-detail__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 8px);
  margin: clamp(12px, 1.8vw, 16px) 0 0;
  padding: 0;
  list-style: none;
}

.coach-detail__fact {
  display: inline-flex;
  align-items: center;
  padding: 0.38em 0.72em;
  border-radius: 999px;
  font-size: clamp(0.68rem, 0.95vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: rgba(92, 16, 144, 0.78);
  background: rgba(92, 16, 144, 0.06);
  border: 1px solid rgba(92, 16, 144, 0.1);
}

.coach-detail__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  padding-top: clamp(4px, 1vh, 8px);
  flex-shrink: 0;
  border-top: 1px solid rgba(92, 16, 144, 0.08);
  background: #fbfbfd;
}

.coach-detail__nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-purple);
  font-family: var(--font-family);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 600;
  cursor: pointer;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.coach-detail__nav--prev {
  justify-content: flex-start;
}

.coach-detail__nav--next {
  justify-content: flex-end;
  margin-left: auto;
}

.coach-detail__nav:hover {
  opacity: 0.75;
}

.coach-detail__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(28px, 3.6vw, 32px);
  height: clamp(28px, 3.6vw, 32px);
  border-radius: 50%;
  border: 1.5px solid rgba(92, 16, 144, 0.22);
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.coach-detail__nav-icon svg {
  width: 14px;
  height: 14px;
}

.coach-detail__nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: clamp(64px, 10vw, 100px);
  text-transform: uppercase;
}

.coach-detail__nav--next .coach-detail__nav-label {
  text-align: right;
}

.coach-detail__cta {
  justify-self: center;
  white-space: nowrap;
}

@container coach-detail (max-width: 560px) {
  .coach-detail__nav-label {
    display: none;
  }
}

@media (max-width: 767px) {
  .coaches__desktop {
    display: none;
  }

  .coaches__mobile {
    display: flex;
  }

  .coach-detail-overlay {
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3.5vw, 20px);
  }

  .coach-detail-modal {
    width: min(100%, 420px);
    max-height: min(92vh, 680px);
    --coach-media-max-h: min(24vh, 168px);
    border-radius: clamp(18px, 4vw, 24px);
    overflow: hidden;
  }

  .coach-detail {
    min-height: 0;
    flex: 1;
  }

  .coach-detail__shell {
    gap: 10px;
    padding: clamp(12px, 3vw, 16px);
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: clamp(14px, 3vw, 18px);
    background: var(--color-white);
    border: none;
  }

  .coach-detail__close {
    top: 12px;
    right: 12px;
    z-index: 5;
  }

  .coach-detail__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .coach-detail__media {
    width: 100%;
    max-height: var(--coach-media-max-h);
    margin: 0;
    border-radius: clamp(10px, 2.5vw, 14px);
    box-shadow: none;
    flex-shrink: 0;
  }

  .coach-detail__photo,
  .coach-detail__video {
    width: 100%;
    max-height: var(--coach-media-max-h);
    object-fit: contain;
    object-position: center center;
  }

  .coach-detail__content {
    overflow: visible;
    padding: 0;
    gap: 8px;
    flex: none;
    min-height: 0;
  }

  .coach-detail__decor {
    display: none;
  }

  .coach-detail__title {
    font-size: clamp(1.05rem, 4.8vw, 1.2rem);
    line-height: 1.25;
    padding-right: 40px;
  }

  .coach-detail__subtitle {
    line-height: 1.5;
  }

  .coach-detail__text-wrap {
    margin-top: 8px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(92, 16, 144, 0.08);
    max-height: min(36vh, 240px);
  }

  .coach-detail__bio {
    font-size: 0.82rem;
    line-height: 1.62;
    color: rgba(30, 20, 40, 0.68);
  }

  .coach-detail__facts {
    gap: 6px;
    margin-top: 12px;
  }

  .coach-detail__fact {
    font-size: 0.68rem;
    padding: 0.34em 0.65em;
  }

  .coach-detail__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px 8px;
    padding: 12px 0 0;
    margin-top: 0;
    border-top: 1px solid rgba(92, 16, 144, 0.08);
    flex-shrink: 0;
    background: var(--color-white);
  }

  .coach-detail__cta {
    grid-column: 1 / -1;
    grid-row: 1;
    order: unset;
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
    justify-self: stretch;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .coach-detail__nav--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-left: 0;
  }

  .coach-detail__nav--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .coaches__desktop {
    display: block;
  }

  .coaches__mobile {
    display: none !important;
  }

  .coach-detail-modal {
    --coach-media-max-h: min(40vh, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .coaches__track-wrap {
    scroll-behavior: auto;
  }

  .coaches__featured-track {
    transition: none;
  }

  .coaches__avatar {
    transition: none;
  }

  .coaches-cursor {
    display: none !important;
  }
}

/* ---- Student testimonials ---- */
.student-testimonials {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
  --student-card-width: clamp(88px, 12vw, 148px);
  --student-card-radius: clamp(11px, 1.4vw, 15px);
  --student-card-gap: clamp(10px, 1.5vw, 16px);
  --student-marquee-lift: max(
    var(--section-hover-gutter),
    calc(var(--section-hover-gutter) + var(--student-card-width) * 16 / 9 * 0.12)
  );
}

.student-testimonials.section-white {
  overflow: visible;
}

.student-testimonials__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--section-head-to-content);
  overflow: visible;
}

.student-testimonials__head {
  position: relative;
  text-align: center;
  max-width: min(920px, 100%);
  padding-top: 0;
}

.student-testimonials__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  text-transform: none;
  text-align: center;
}

.student-testimonials__cta-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: var(--section-head-gap);
  margin-bottom: 0;
}

.student-testimonials__marquee {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 0;
  padding-block: 0;
  overflow: visible;
}

.student-testimonials__row {
  position: relative;
  overflow: visible;
  width: 100%;
}

.student-testimonials__row::before,
.student-testimonials__row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(14%, 88px);
  z-index: 3;
  pointer-events: none;
}

.student-testimonials__row::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-white) 30%, transparent);
}

.student-testimonials__row::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-white) 30%, transparent);
}

.student-testimonials__row-viewport {
  overflow: hidden;
  width: 100%;
  padding-block: var(--student-marquee-lift);
  box-sizing: border-box;
}

@keyframes student-testimonials-hint-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.student-testimonials.is-zoom-open .student-testimonials__track {
  animation-play-state: paused;
}

.student-testimonials__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: student-testimonials-scroll 88s linear infinite;
  padding-block: 2px;
}

.student-testimonials__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--student-card-gap);
  padding-inline: calc(var(--student-card-gap) * 0.5);
}

.student-testimonials__card {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  position: relative;
  z-index: 1;
  transform-origin: 50% 92%;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.student-testimonials__card:focus-visible {
  outline: none;
  z-index: 4;
}

.student-testimonials__card:focus-visible .student-testimonials__surface {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
}

.student-testimonials__surface {
  display: block;
  width: var(--student-card-width);
  border-radius: var(--student-card-radius);
  background: #1c1c1e;
  box-shadow:
    0 8px 20px rgba(92, 16, 144, 0.08),
    0 0 0 1px rgba(92, 16, 144, 0.06);
  overflow: hidden;
  transform-origin: 50% 92%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-testimonials__media {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}

.student-testimonials__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(18, 18, 20, 0.38) 100%
  );
  transition: opacity 0.28s ease;
}

.student-testimonials__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.student-testimonials__hint {
  position: absolute;
  right: clamp(5px, 1.2vw, 8px);
  bottom: clamp(5px, 1.2vw, 8px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px 3px 3px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-white);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: opacity 0.28s ease;
  animation: student-testimonials-hint-pulse 2.4s ease-in-out infinite;
}

.student-testimonials__hint-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: clamp(14px, 3.6vw, 18px);
  height: clamp(14px, 3.6vw, 18px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-purple);
}

.student-testimonials__hint-icon svg {
  display: block;
  width: 58%;
  height: 58%;
  margin-left: 1px;
}

.student-testimonials__hint-label {
  font-size: clamp(0.5rem, 1.35vw, 0.62rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.student-testimonials__card.is-previewing .student-testimonials__hint,
.student-testimonials__card.is-previewing .student-testimonials__media::after,
.student-testimonials__card:focus-visible .student-testimonials__hint,
.student-testimonials__card:focus-visible .student-testimonials__media::after {
  opacity: 0;
  animation: none;
}

@media (hover: hover) and (pointer: fine) {
  .student-testimonials__card:hover .student-testimonials__hint,
  .student-testimonials__card:hover .student-testimonials__media::after {
    opacity: 0;
  }

  .student-testimonials__card:hover .student-testimonials__surface {
    box-shadow:
      0 18px 36px rgba(92, 16, 144, 0.14),
      0 0 0 1px rgba(92, 16, 144, 0.1);
  }

  .student-testimonials__card:hover .student-testimonials__video,
  .student-testimonials__card.is-previewing .student-testimonials__video {
    transform: scale(1.03);
  }
}

@media (min-width: 1024px) {
  .student-testimonials {
    --student-card-width: clamp(108px, 9.5vw, 160px);
    --student-card-gap: clamp(14px, 1.2vw, 20px);
  }
}

@media (max-width: 767px) {
  .student-testimonials {
    --student-card-width: clamp(80px, 22vw, 104px);
    --student-card-gap: clamp(8px, 2.2vw, 12px);
  }

  .student-testimonials__row::before,
  .student-testimonials__row::after {
    width: min(18%, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-testimonials__hint {
    animation: none;
  }

  .student-testimonials__video {
    transition: none;
  }
}

.student-testimonial-overlay {
  background: var(--overlay-scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: opacity;
}

.student-testimonial-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 24px), 440px);
  max-height: min(calc(100vh - 24px), 900px);
  padding: clamp(12px, 2vw, 18px);
  border-radius: clamp(18px, 2.5vw, 24px);
  background: var(--color-white);
  box-shadow: var(--modal-shadow-3d);
  transform-origin: center center;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.student-testimonial-modal__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  width: 100%;
  min-height: 0;
}

.student-testimonial-modal__close {
  position: absolute;
  top: clamp(10px, 1.8vw, 14px);
  right: clamp(10px, 1.8vw, 14px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(92, 16, 144, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-purple);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.student-testimonial-modal__close:hover {
  background: var(--color-yellow);
}

.student-testimonial-modal__close:active {
  transform: scale(0.96);
}

.student-testimonial-modal__figure {
  margin: 0;
  width: 100%;
  max-height: min(calc(100vh - 120px), 78vh);
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 16px);
  background: #1c1c1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-testimonial-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(calc(100vh - 120px), 78vh);
  object-fit: contain;
  vertical-align: top;
  background: #1c1c1e;
}

.student-testimonial-modal__nav {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(40px, 4.5vw, 48px);
  height: clamp(40px, 4.5vw, 48px);
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-purple);
  box-shadow:
    0 8px 20px rgba(92, 16, 144, 0.12),
    0 0 0 1px rgba(92, 16, 144, 0.1);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.student-testimonial-modal__nav--prev,
.student-testimonial-modal__nav--next {
  align-self: center;
}

.student-testimonial-modal__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.student-testimonial-modal__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.student-testimonial-modal__nav:hover {
  background: var(--color-yellow);
}

.student-testimonial-modal__nav:active {
  transform: scale(0.96);
}

.student-testimonial-modal__nav:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .student-testimonial-modal {
    width: min(calc(100vw - 16px), 100%);
    max-height: min(calc(100vh - 16px), 92vh);
    padding: 12px;
  }

  .student-testimonial-modal__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .student-testimonial-modal__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: min(calc(100vh - 168px), 72vh);
  }

  .student-testimonial-modal__video {
    max-height: min(calc(100vh - 168px), 72vh);
  }

  .student-testimonial-modal__nav--prev {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }

  .student-testimonial-modal__nav--next {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
  }
}

@keyframes student-testimonials-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-testimonials__track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--student-card-gap);
    padding-inline: var(--page-padding);
  }

  .student-testimonials__group:last-child {
    display: none;
  }

  .student-testimonials__row::before,
  .student-testimonials__row::after {
    display: none;
  }

  .student-testimonials__row-viewport {
    overflow: visible;
    padding-block: var(--section-hover-gutter);
  }

  .student-testimonials__marquee {
    padding-block: 0;
  }
}

/* ---- Parent testimonials ---- */
.parent-testimonials {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
}

.parent-testimonials.section-white {
  overflow: visible;
}

.parent-testimonials__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--section-head-to-content);
  overflow: visible;
}

.parent-testimonials__head {
  position: relative;
  text-align: center;
  max-width: min(920px, 100%);
  padding-top: clamp(6px, 1vh, 10px);
  padding-inline: clamp(4px, 1.5vw, 12px);
}

.parent-testimonials__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  text-transform: none;
  text-align: center;
  padding-inline: clamp(0.5rem, 3vw, 2rem);
  padding-right: clamp(5.75rem, 26vw, 9.5rem);
}

.parent-testimonials__viber-btn {
  position: absolute;
  top: clamp(2px, 0.6vh, 6px);
  right: clamp(0px, 1.5vw, 8px);
  left: auto;
  z-index: 3;
  margin: 0;
  padding: 0.34rem 0.62rem;
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  transform: rotate(5deg);
  cursor: default;
  opacity: 0.94;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    var(--shadow-tomujin),
    0 16px 32px -10px rgba(92, 16, 144, 0.28),
    0 0 0 2px var(--stroke-white);
}

.parent-testimonials__viber-btn:active {
  transform: rotate(5deg) scale(0.985);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    var(--shadow-tomujin),
    0 10px 22px -8px rgba(92, 16, 144, 0.22),
    0 0 0 2px var(--stroke-white);
}

@media (max-width: 767px) {
  .parent-testimonials__head {
    align-items: stretch;
    padding-top: 0;
  }

  .parent-testimonials__title {
    padding-inline: clamp(0.25rem, 2vw, 1rem);
    padding-right: clamp(0.25rem, 2vw, 1rem);
  }

  .parent-testimonials__viber-btn {
    position: static;
    align-self: flex-end;
    margin: 0 0 clamp(8px, 1.6vh, 12px);
    padding: 0.22rem 0.42rem;
    font-size: clamp(0.48rem, 2.1vw, 0.58rem);
    border-radius: calc(var(--btn-radius) - 8px);
    transform: rotate(5deg);
  }

  .parent-testimonials__viber-btn:active {
    transform: rotate(5deg) scale(0.985);
  }
}

@media (min-width: 1024px) {
  .parent-testimonials__viber-btn {
    padding: 0.38rem 0.72rem;
    font-size: 0.74rem;
  }
}

.parent-testimonials__marquees {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 12px);
  width: 100%;
  margin-bottom: 0;
  padding-block: var(--section-hover-gutter);
  overflow: visible;
}

.parent-testimonials__row {
  position: relative;
  overflow: visible;
  width: 100%;
  isolation: isolate;
}

.parent-testimonials__row::before,
.parent-testimonials__row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(14%, 88px);
  z-index: 3;
  pointer-events: none;
}

.parent-testimonials__row::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-white) 30%, transparent);
}

.parent-testimonials__row::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-white) 30%, transparent);
}

.parent-testimonials__row-viewport {
  overflow: hidden;
  clip-path: inset(calc(var(--section-hover-gutter) * -1.75) 0 calc(var(--section-hover-gutter) * -1.75) 0);
  width: 100%;
}

.parent-testimonials__row--2 {
  margin-inline-start: clamp(8px, 2vw, 20px);
}

.parent-testimonials.is-zoom-open .parent-testimonials__track {
  animation-play-state: paused;
}

.parent-testimonials__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: parent-testimonials-scroll 56s linear infinite;
}

.parent-testimonials__row--2 .parent-testimonials__track {
  animation-direction: reverse;
  animation-duration: 50s;
}

.parent-testimonials__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  padding-inline: clamp(4px, 1vw, 8px);
}

.parent-testimonials__card {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.parent-testimonials__card:focus-visible {
  outline: none;
  z-index: 3;
}

.parent-testimonials__card:focus-visible .parent-testimonials__surface {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
}

.parent-testimonials__surface {
  display: block;
  border-radius: clamp(10px, 1.5vw, 14px);
  background: #1c1c1e;
  box-shadow:
    0 10px 24px rgba(92, 16, 144, 0.1),
    0 0 0 1px rgba(92, 16, 144, 0.06);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.parent-testimonials__media {
  display: block;
  margin: 0;
  overflow: hidden;
}

.parent-testimonials__img {
  display: block;
  height: clamp(68px, 10vh, 148px);
  width: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .parent-testimonials__card:hover .parent-testimonials__surface {
    box-shadow:
      0 16px 32px rgba(92, 16, 144, 0.14),
      0 0 0 1px rgba(92, 16, 144, 0.1);
  }
}

@media (max-width: 767px) {
  .parent-testimonials__marquees {
    gap: clamp(4px, 1vh, 8px);
  }

  .parent-testimonials__row::before,
  .parent-testimonials__row::after {
    width: min(18%, 56px);
  }

  .parent-testimonials__row-viewport {
    clip-path: inset(calc(var(--section-hover-gutter) * -1.5) 0 calc(var(--section-hover-gutter) * -1.5) 0);
  }

  .parent-testimonials__img {
    height: clamp(56px, 8.5vh, 88px);
  }

  .parent-testimonials__group {
    gap: clamp(6px, 1.2vw, 10px);
  }
}

.parent-testimonials__cta-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: var(--section-head-to-content);
}

.parent-testimonial-overlay {
  background: var(--overlay-scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: opacity;
}

.parent-testimonial-modal {
  position: relative;
  width: min(calc(100vw - 24px), 420px);
  max-height: min(88vh, 720px);
  padding: clamp(14px, 2.5vw, 18px);
  border-radius: clamp(18px, 2.5vw, 24px);
  background: var(--color-white);
  box-shadow: var(--modal-shadow-3d);
  transform-origin: center center;
  will-change: transform, opacity;
}

.parent-testimonial-modal__close {
  position: absolute;
  top: clamp(10px, 1.8vw, 14px);
  right: clamp(10px, 1.8vw, 14px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(92, 16, 144, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-purple);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.parent-testimonial-modal__close:hover {
  background: var(--color-yellow);
}

.parent-testimonial-modal__close:active {
  transform: scale(0.96);
}

.parent-testimonial-modal__figure {
  margin: 0;
  max-height: min(82vh, 680px);
  overflow: auto;
  border-radius: clamp(12px, 2vw, 16px);
  background: #1c1c1e;
}

.parent-testimonial-modal__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .parent-testimonial-modal {
    width: min(calc(100vw - 48px), 640px);
    max-height: min(92vh, 900px);
    padding: clamp(16px, 2vw, 22px);
  }

  .parent-testimonial-modal__figure {
    max-height: min(86vh, 820px);
  }
}

@media (min-width: 1280px) {
  .parent-testimonial-modal {
    width: min(calc(100vw - 64px), 760px);
    max-height: min(94vh, 960px);
  }

  .parent-testimonial-modal__figure {
    max-height: min(88vh, 900px);
  }
}

@keyframes parent-testimonials-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .parent-testimonials__track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 18px);
    padding-inline: var(--page-padding);
  }

  .parent-testimonials__group:last-child {
    display: none;
  }

  .parent-testimonials__row--2 {
    margin-inline-start: 0;
  }

  .parent-testimonials__row {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .parent-testimonials__row::before,
  .parent-testimonials__row::after {
    display: none;
  }
}

/* ---- POV ---- */
.pov {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
  --pov-card-width: clamp(88px, 12vw, 148px);
  --pov-card-radius: clamp(11px, 1.4vw, 15px);
  --pov-card-gap: clamp(10px, 1.5vw, 16px);
  --pov-marquee-lift: max(
    var(--section-hover-gutter),
    calc(var(--section-hover-gutter) + var(--pov-card-width) * 16 / 9 * 0.12)
  );
}

.pov.section-white {
  overflow: visible;
}

.pov__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--section-head-to-content);
  overflow: visible;
}

.pov__head {
  position: relative;
  text-align: center;
  max-width: min(920px, 100%);
  padding-top: 0;
}

.pov__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  text-transform: none;
  text-align: center;
}

.pov__marquee-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.pov__marquee {
  position: relative;
  width: 100%;
  overflow: visible;
}

.pov__row {
  position: relative;
  overflow: visible;
  width: 100%;
}

.pov__row::before,
.pov__row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(14%, 88px);
  z-index: 3;
  pointer-events: none;
}

.pov__row::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-white) 30%, transparent);
}

.pov__row::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-white) 30%, transparent);
}

.pov__row-viewport {
  overflow: hidden;
  width: 100%;
  padding-block: var(--pov-marquee-lift);
  box-sizing: border-box;
}

.pov.is-zoom-open .pov__track {
  animation-play-state: paused;
}

.pov.is-marquee-shifting .pov__track {
  animation: none;
}

.pov.is-marquee-shifting .pov__nav {
  pointer-events: none;
  opacity: 0.72;
}

.pov__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: pov-scroll 120s linear infinite;
  padding-block: 2px;
}

.pov__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--pov-card-gap);
  padding-inline: calc(var(--pov-card-gap) * 0.5);
}

.pov__card {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  position: relative;
  z-index: 1;
  transform-origin: 50% 92%;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.pov__card:focus-visible {
  outline: none;
  z-index: 4;
}

.pov__card:focus-visible .pov__surface {
  outline: 2px solid var(--color-purple);
  outline-offset: 4px;
}

.pov__surface {
  display: block;
  width: var(--pov-card-width);
  border-radius: var(--pov-card-radius);
  background: #1c1c1e;
  box-shadow:
    0 8px 20px rgba(92, 16, 144, 0.08),
    0 0 0 1px rgba(92, 16, 144, 0.06);
  overflow: hidden;
  transform-origin: 50% 92%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pov__media {
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}

.pov__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.pov__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 4.5vw, 44px);
  height: clamp(36px, 4.5vw, 44px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-purple);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(92, 16, 144, 0.08);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease;
}

.pov__nav--prev {
  left: clamp(6px, 1.2vw, 14px);
}

.pov__nav--next {
  right: clamp(6px, 1.2vw, 14px);
}

.pov__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.pov__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pov__nav:hover {
  background: var(--color-yellow);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(255, 206, 0, 0.45);
}

.pov__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.pov__nav:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

.pov__cta-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: var(--section-head-gap);
  padding-bottom: clamp(8px, 2vw, 16px);
}

@media (hover: hover) and (pointer: fine) {
  .pov__card:hover .pov__surface {
    box-shadow:
      0 18px 36px rgba(92, 16, 144, 0.14),
      0 0 0 1px rgba(92, 16, 144, 0.1);
  }
}

@media (min-width: 1024px) {
  .pov {
    --pov-card-width: clamp(108px, 9.5vw, 160px);
    --pov-card-gap: clamp(14px, 1.2vw, 20px);
  }
}

@media (max-width: 767px) {
  .pov {
    --pov-card-width: clamp(80px, 22vw, 104px);
    --pov-card-gap: clamp(8px, 2.2vw, 12px);
  }

  .pov__row::before,
  .pov__row::after {
    width: min(18%, 56px);
  }

  .pov__nav {
    width: clamp(34px, 9vw, 40px);
    height: clamp(34px, 9vw, 40px);
  }
}

/* ---- FAQ ---- */
.faq {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
}

.faq.section-white {
  overflow: visible;
}

.faq__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.faq__head {
  position: relative;
  text-align: center;
  max-width: min(920px, 100%);
  margin-bottom: var(--section-head-to-content);
}

.faq__title {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  text-transform: none;
  text-align: center;
}

.faq__list-wrap {
  width: 100%;
  max-width: min(820px, 100%);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.1vh, 10px);
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.faq-item {
  border: 1px solid rgba(92, 16, 144, 0.07);
  border-radius: clamp(12px, 1.8vw, 16px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(92, 16, 144, 0.04);
  transition:
    background-color 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.faq-item:nth-child(even) {
  background: rgba(255, 206, 0, 0.07);
  border-color: rgba(255, 206, 0, 0.22);
  box-shadow: 0 1px 0 rgba(255, 206, 0, 0.12);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(92, 16, 144, 0.07);
}

.faq-item:nth-child(even):last-child {
  border-color: rgba(255, 206, 0, 0.22);
}

.faq-item.is-open {
  border-color: rgba(92, 16, 144, 0.14);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(92, 16, 144, 0.04);
}

.faq-item:nth-child(even).is-open {
  background: rgba(255, 206, 0, 0.11);
  border-color: rgba(255, 206, 0, 0.38);
  box-shadow:
    var(--shadow-tomujin),
    0 0 0 1px rgba(255, 206, 0, 0.18);
}

.faq-item__heading {
  margin: 0;
  font: inherit;
}

.faq-item__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(10px, 1.8vw, 16px);
  width: 100%;
  padding: clamp(13px, 2vh, 16px) clamp(14px, 2.2vw, 18px);
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  color: var(--color-purple);
  transition:
    background-color 0.28s ease,
    color 0.28s ease;
}

.faq-item__trigger:hover {
  background: rgba(92, 16, 144, 0.035);
}

.faq-item:nth-child(even) .faq-item__trigger:hover {
  background: rgba(255, 206, 0, 0.12);
}

.faq-item__trigger:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: -2px;
}

.faq-item.is-open .faq-item__trigger {
  background: rgba(92, 16, 144, 0.045);
}

.faq-item:nth-child(even).is-open .faq-item__trigger {
  background: rgba(255, 206, 0, 0.14);
}

.faq-item__question {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.9rem, 1.22vw, 0.98rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.018em;
}

.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.04em;
  border-radius: 999px;
  background: rgba(92, 16, 144, 0.07);
  color: var(--color-purple);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.25s ease,
    color 0.25s ease;
}

.faq-item:nth-child(even) .faq-item__icon {
  background: rgba(92, 16, 144, 0.09);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-yellow);
  color: var(--color-purple);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__answer {
  margin: clamp(8px, 1.2vh, 12px);
  padding: clamp(12px, 1.8vh, 16px) clamp(14px, 2.2vw, 18px);
  border-radius: clamp(8px, 1.2vw, 11px);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(92, 16, 144, 0.68);
  font-size: clamp(0.76rem, 0.98vw, 0.84rem);
  line-height: 1.58;
  letter-spacing: -0.008em;
}

.faq-item:nth-child(even) .faq-item__answer {
  background: rgba(255, 255, 255, 0.72);
}

.faq-item__answer p {
  margin: 0 0 0.55em;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__list {
  margin: 0.35em 0 0;
  padding-left: 1.05em;
  font-size: 0.96em;
}

.faq-item__list li {
  margin-bottom: 0.32em;
}

.faq-item__list li:last-child {
  margin-bottom: 0;
}

.faq__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 3vh, 28px);
  padding-bottom: clamp(8px, 2vw, 16px);
}

@media (max-width: 640px) {
  .faq__list-wrap {
    padding-inline: 0;
  }

  .faq__list {
    gap: 8px;
  }

  .faq-item__trigger {
    padding: 12px 13px;
  }

  .faq-item__answer {
    margin: 10px;
    padding: 12px 13px;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .faq-item__question {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .faq-item__icon {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__panel,
  .faq-item__icon {
    transition: none;
  }

  .faq-item:not(.is-open) .faq-item__panel {
    display: none;
  }

  .faq-item.is-open .faq-item__panel {
    display: block;
  }
}

/* ---- More TSC downloads ---- */
.more-tsc {
  position: relative;
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
}

.more-tsc.section-white {
  overflow: visible;
}

.more-tsc__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.more-tsc__head {
  max-width: min(920px, 100%);
  margin-bottom: var(--section-head-to-content);
}

.more-tsc__title {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 3rem);
  text-transform: none;
  text-align: center;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.more-tsc__subtext {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(0.88rem, 1.25vw, 1.02rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(92, 16, 144, 0.72);
}

.more-tsc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 16px);
  width: 100%;
  max-width: min(820px, 100%);
  padding-bottom: clamp(8px, 1.5vh, 16px);
}

.more-tsc-card {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 16px);
  min-height: 100%;
  padding: clamp(16px, 2.4vw, 20px);
  border: 1px solid rgba(92, 16, 144, 0.08);
  border-radius: clamp(14px, 2vw, 18px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(92, 16, 144, 0.04);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.more-tsc-card:nth-child(even) {
  background: rgba(255, 206, 0, 0.06);
  border-color: rgba(255, 206, 0, 0.24);
  box-shadow: 0 1px 0 rgba(255, 206, 0, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .more-tsc-card:hover {
    transform: translateY(-3px);
    border-color: rgba(92, 16, 144, 0.14);
    box-shadow:
      var(--shadow-tomujin),
      0 0 0 1px rgba(92, 16, 144, 0.04);
  }

  .more-tsc-card:nth-child(even):hover {
    border-color: rgba(255, 206, 0, 0.38);
    box-shadow:
      var(--shadow-tomujin),
      0 0 0 1px rgba(255, 206, 0, 0.16);
  }
}

.more-tsc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(92, 16, 144, 0.07);
  color: var(--color-purple);
}

.more-tsc-card:nth-child(even) .more-tsc-card__icon {
  background: rgba(92, 16, 144, 0.1);
}

.more-tsc-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  flex: 1;
}

.more-tsc-card__title {
  margin: 0;
  font-family: var(--font-family);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--color-purple);
}

.more-tsc-card__desc {
  margin: 0;
  font-size: clamp(0.78rem, 1vw, 0.86rem);
  line-height: 1.55;
  letter-spacing: -0.008em;
  color: rgba(92, 16, 144, 0.66);
}

.more-tsc-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: clamp(4px, 0.8vh, 8px);
}

.more-tsc-card__format {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(92, 16, 144, 0.06);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(92, 16, 144, 0.58);
}

.more-tsc-card:nth-child(even) .more-tsc-card__format {
  background: rgba(92, 16, 144, 0.09);
}

.more-tsc-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  min-width: 0;
  padding: 0.58rem 1rem;
  font-size: clamp(0.78rem, 0.95vw, 0.84rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  text-decoration: none;
}

.more-tsc-card__download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .more-tsc__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .more-tsc__title {
    font-size: clamp(1.28rem, 5.2vw, 1.75rem);
  }

  .more-tsc-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .more-tsc-card__format {
    align-self: flex-start;
  }

  .more-tsc-card__download {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .more-tsc-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .more-tsc-card:hover {
    transform: none;
  }
}

/* ---- Site footer ---- */
.site-footer {
  scroll-margin-top: calc(var(--scroll-padding-top, 96px) + 8px);
  margin-top: clamp(8px, 1.2vh, 16px);
}

.site-footer__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(92vh, 960px);
  background: #000;
  overflow: hidden;
}

.site-footer__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 1024px) {
  .site-footer__stage {
    max-height: none;
    min-height: clamp(520px, 52vw, 820px);
  }

  .site-footer__video {
    object-fit: cover;
    object-position: center 42%;
  }
}

.site-footer__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 14px);
  width: 100%;
  height: 100%;
  max-height: 46%;
  padding:
    clamp(16px, 2.8vw, 32px)
    var(--page-padding)
    clamp(10px, 1.6vh, 16px);
  pointer-events: none;
  overflow: visible;
}

.site-footer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: clamp(16px, 2.8vw, 32px);
  align-items: start;
  pointer-events: auto;
}

.site-footer__primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--section-head-gap);
  min-width: 0;
}

.site-footer__eyebrow {
  margin: 0;
  font-family: var(--font-family);
  font-size: clamp(0.62rem, 0.82vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 206, 0, 0.88);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.site-footer__headline {
  margin: 0;
  width: 100%;
  font-size: clamp(1.15rem, 3.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.site-footer__headline-line {
  display: block;
}

.site-footer__headline-line + .site-footer__headline-line {
  margin-top: 0.08em;
}

.site-footer__cta-wrap {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin-top: clamp(2px, 0.5vh, 6px);
}

.site-footer__aside {
  pointer-events: auto;
  justify-self: end;
  width: 100%;
  max-width: 300px;
}

.site-footer__contact-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 14px);
  width: 100%;
}

.site-footer__contact-phone-block {
  width: 100%;
}

.site-footer__phone-btn-wrap {
  display: flex;
  width: 100%;
}

.site-footer__phone-btn {
  width: 100%;
  min-width: 0;
  min-height: clamp(3.15rem, 8.8vw, 3.65rem);
  padding:
    clamp(0.52rem, 1.35vw, 0.68rem)
    clamp(1rem, 2.6vw, 1.32rem);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  white-space: normal;
}

.site-footer__phone-btn-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.1rem, 0.35vw, 0.18rem);
  width: 100%;
}

.site-footer__phone-btn-label {
  font-family: var(--font-family);
  font-size: clamp(0.58rem, 1.55vw, 0.66rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(92, 16, 144, 0.62);
  transition: color var(--transition-interactive);
}

.site-footer__phone-btn-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.1vw, 0.5rem);
}

.site-footer__phone-btn-icon {
  display: block;
  width: clamp(15px, 3.6vw, 18px);
  height: clamp(15px, 3.6vw, 18px);
  flex-shrink: 0;
  color: var(--color-purple);
  transition: color var(--transition-interactive);
}

.site-footer__phone-num {
  font-size: clamp(1.12rem, 3.1vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--color-purple);
  transition: color var(--transition-interactive);
}

.site-footer__phone-btn:hover .site-footer__phone-btn-label {
  color: rgba(92, 16, 144, 0.82);
}

.site-footer__phone-btn:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

.site-footer__contact-social {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 10px);
  width: 100%;
}

.site-footer__social-heading {
  margin: 0;
  font-family: var(--font-family);
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.site-footer__social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social-item {
  min-width: 0;
}

.site-footer__social-btn-wrap {
  display: flex;
  width: 100%;
}

.site-footer__social-btn {
  width: 100%;
  min-width: 0;
  min-height: clamp(2.35rem, 6.4vw, 2.65rem);
  padding:
    clamp(0.38rem, 1vw, 0.48rem)
    clamp(0.55rem, 1.4vw, 0.75rem);
  gap: clamp(0.3rem, 0.9vw, 0.42rem);
  font-size: clamp(0.72rem, 1.85vw, 0.82rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__social-btn-icon {
  display: block;
  width: clamp(14px, 3.2vw, 16px);
  height: clamp(14px, 3.2vw, 16px);
  flex-shrink: 0;
  color: var(--color-purple);
  transition: color var(--transition-interactive);
}

.site-footer__social-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-purple);
  transition: color var(--transition-interactive);
}

.site-footer__social-btn:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .site-footer__stage {
    aspect-ratio: auto;
    min-height: clamp(460px, 108vw, 640px);
    max-height: none;
    overflow: visible;
  }

  .site-footer__video {
    object-fit: cover;
    object-position: center 42%;
  }

  .site-footer__content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(6, 2, 10, 0.88) 0%,
      rgba(6, 2, 10, 0.58) 42%,
      rgba(6, 2, 10, 0.18) 62%,
      transparent 78%
    );
  }

  .site-footer__content {
    position: relative;
    inset: auto;
    min-height: inherit;
  }

  .site-footer__inner {
    position: relative;
    z-index: 1;
    max-height: none;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .site-footer__stage {
    min-height: clamp(500px, 145vw, 680px);
  }

  .site-footer__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(12px, 2.4vw, 18px);
  }

  .site-footer__aside {
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }

  .site-footer__headline {
    font-size: clamp(1.05rem, 5.2vw, 1.32rem);
  }

  .site-footer__phone-num {
    font-size: clamp(1.08rem, 4.8vw, 1.28rem);
  }

  .site-footer__phone-btn {
    min-height: clamp(3rem, 12vw, 3.35rem);
  }

  .site-footer__social-btn {
    min-height: clamp(2.25rem, 10vw, 2.55rem);
    font-size: clamp(0.68rem, 2.9vw, 0.78rem);
  }

  .site-footer__legal {
    margin-top: auto;
    padding-top: clamp(10px, 2.5vw, 14px);
  }
}

@media (max-width: 420px) {
  .site-footer__inner {
    padding-top: clamp(14px, 3.5vw, 20px);
  }
}

@media (min-width: 1024px) {
  .site-footer__aside {
    max-width: 280px;
  }
}

.site-footer__legal {
  margin: auto 0 0;
  padding-top: clamp(6px, 1vh, 10px);
  font-size: clamp(0.62rem, 0.82vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__video {
    display: none;
  }

  .site-footer__stage {
    aspect-ratio: auto;
    min-height: auto;
    background: #0a0410;
    padding: clamp(48px, 8vh, 72px) 0;
  }

  .site-footer__content {
    position: relative;
    inset: auto;
  }

  .site-footer__inner {
    max-height: none;
    height: auto;
  }
}

.pov-overlay {
  background: var(--overlay-scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: clamp(12px, 2vw, 24px);
  will-change: opacity;
}

.pov-overlay:not([hidden]) {
  visibility: visible;
}

.pov-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 24px), 960px);
  max-height: min(calc(100vh - 24px), 900px);
  padding: clamp(12px, 2vw, 20px);
  border-radius: clamp(18px, 2.5vw, 28px);
  background: var(--color-white);
  box-shadow: var(--modal-shadow-3d);
  transform-origin: center center;
  box-sizing: border-box;
  will-change: transform, opacity;
  transition: width 0.2s ease;
}

.pov-overlay:not([hidden]) .pov-modal {
  opacity: 1;
}

.pov-modal[data-orientation="portrait"] {
  width: min(calc(100vw - 24px), 420px);
}

.pov-modal__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  width: 100%;
  min-height: 0;
}

.pov-modal__close {
  position: absolute;
  top: clamp(10px, 1.8vw, 14px);
  right: clamp(10px, 1.8vw, 14px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(92, 16, 144, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-purple);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.pov-modal__close:hover {
  background: var(--color-yellow);
}

.pov-modal__close:active {
  transform: scale(0.96);
}

.pov-modal__figure {
  margin: 0;
  width: 100%;
  height: min(calc(100vh - 120px), 72vh);
  max-height: min(calc(100vh - 120px), 72vh);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 18px);
  background: #1c1c1e;
}

.pov-modal[data-orientation="portrait"] .pov-modal__figure {
  aspect-ratio: 9 / 16;
  width: min(100%, 380px);
  height: auto;
  max-height: min(calc(100vh - 120px), 78vh);
  margin-inline: auto;
}

.pov-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #1c1c1e;
}

.pov-modal__nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(40px, 4.5vw, 48px);
  height: clamp(40px, 4.5vw, 48px);
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-purple);
  box-shadow:
    0 8px 20px rgba(92, 16, 144, 0.12),
    0 0 0 1px rgba(92, 16, 144, 0.1);
  cursor: pointer;
  transform: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pov-modal__nav--prev,
.pov-modal__nav--next {
  align-self: center;
}

.pov-modal__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.pov-modal__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pov-modal__nav:hover {
  background: var(--color-yellow);
}

.pov-modal__nav:active {
  transform: scale(0.96);
}

.pov-modal__nav:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .pov-modal {
    width: min(calc(100vw - 16px), 100%);
    max-height: min(calc(100vh - 16px), 92vh);
    padding: 12px;
  }

  .pov-modal__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .pov-modal__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    height: min(calc(100vh - 168px), 68vh);
    max-height: min(calc(100vh - 168px), 68vh);
  }

  .pov-modal[data-orientation="portrait"] .pov-modal__figure {
    width: 100%;
    max-height: min(calc(100vh - 168px), 72vh);
  }

  .pov-modal__nav--prev {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }

  .pov-modal__nav--next {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
  }
}

@keyframes pov-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pov__track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--pov-card-gap);
    padding-inline: var(--page-padding);
    box-sizing: border-box;
  }

  .pov__group:last-child {
    display: none;
  }

  .pov__row::before,
  .pov__row::after {
    display: none;
  }
}

/* Curriculum detail modal */
.curriculum-detail-modal {
  position: relative;
  width: min(calc(100vw - 32px), 800px);
  max-height: min(90vh, 720px);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--color-white);
  box-shadow: var(--modal-shadow-3d);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}

.curriculum-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.curriculum-detail__close {
  position: absolute;
  top: clamp(12px, 2vw, 18px);
  right: clamp(12px, 2vw, 18px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 3.8vw, 32px);
  height: clamp(28px, 3.8vw, 32px);
  padding: 0;
  margin: 0;
  border: 1px solid rgba(92, 16, 144, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-purple);
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 8px rgba(92, 16, 144, 0.07);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.curriculum-detail__close:hover {
  border-color: rgba(92, 16, 144, 0.26);
  background: rgba(255, 206, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 10px rgba(92, 16, 144, 0.1);
}

.curriculum-detail__close:active {
  transform: scale(0.96);
}

.curriculum-detail__close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(92, 16, 144, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.curriculum-detail__close-icon {
  display: block;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.curriculum-detail__shell {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 24px);
  padding: clamp(20px, 3vw, 32px);
  min-height: 0;
  flex: 1;
  overflow: hidden;
  container-type: inline-size;
  container-name: curriculum-detail;
  border-radius: clamp(18px, 2.4vw, 24px);
  background: #fbfbfd;
  border: 1px solid rgba(92, 16, 144, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.curriculum-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
  min-height: 0;
}

.curriculum-detail.is-updating .curriculum-detail__text-wrap {
  opacity: 0;
  transform: translateY(8px);
}

.curriculum-detail__media {
  position: relative;
  margin: 0;
  border-radius: clamp(14px, 2vw, 20px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(92, 16, 144, 0.08);
}

.curriculum-detail__program-badge {
  position: absolute;
  top: clamp(10px, 1.6vw, 14px);
  left: clamp(10px, 1.6vw, 14px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1vw, 8px);
  max-width: calc(100% - clamp(20px, 3.2vw, 28px));
  padding: clamp(5px, 0.8vw, 7px) clamp(10px, 1.4vw, 12px);
  border-radius: clamp(8px, 1.2vw, 10px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(92, 16, 144, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 4px 14px -2px rgba(92, 16, 144, 0.16);
  pointer-events: none;
  transition:
    opacity 0.3s ease-in-out,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.curriculum-detail__program-name {
  min-width: 0;
  font-size: clamp(0.62rem, 0.9vw, 0.74rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.curriculum-detail__program-index {
  flex-shrink: 0;
  font-size: clamp(0.58rem, 0.82vw, 0.68rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(92, 16, 144, 0.52);
  letter-spacing: 0.02em;
}

.curriculum-detail__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease-in-out;
}

.curriculum-detail.is-updating .curriculum-detail__media img {
  opacity: 0.92;
}

.curriculum-detail__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vh, 14px);
  min-height: 0;
  overflow: hidden;
}

.curriculum-detail__title,
.curriculum-detail__text-wrap {
  position: relative;
}

.curriculum-detail__title {
  margin: 0;
  padding-right: clamp(36px, 5vw, 44px);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--color-purple);
  text-transform: none;
}

.curriculum-detail__text-wrap {
  max-height: clamp(180px, 38vh, 320px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(10px, 1.4vw, 14px);
  border-radius: clamp(12px, 1.6vw, 16px);
  background: rgba(251, 251, 253, 0.72);
  isolation: isolate;
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

.curriculum-detail__text-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../assets/camp-bg.png") center 52% / clamp(150px, 58%, 240px) no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.curriculum-detail__text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 65ch;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(0.84rem, 1.1vw, 0.95rem);
  line-height: 1.55;
  color: rgba(22, 22, 22, 0.9);
  text-transform: none;
}

.curriculum-detail__term {
  color: var(--color-purple);
  font-weight: 700;
}

.curriculum-detail__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(8px, 1.5vw, 12px);
  flex-shrink: 0;
  min-height: 2.75rem;
  padding-inline: 0;
  min-width: 0;
}

.curriculum-detail__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 4px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-family);
  color: var(--color-purple);
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.curriculum-detail__nav--prev {
  grid-column: 1;
  justify-content: flex-start;
}

.curriculum-detail__nav--next {
  grid-column: 3;
  justify-content: flex-end;
}

.curriculum-detail__nav:hover {
  opacity: 0.82;
}

.curriculum-detail__nav:active {
  transform: scale(0.98);
}

.curriculum-detail__nav-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(92, 16, 144, 0.07);
  color: var(--color-purple);
  transition: background 0.2s ease;
}

.curriculum-detail__nav:hover .curriculum-detail__nav-icon {
  background: rgba(92, 16, 144, 0.11);
}

.curriculum-detail__nav-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.curriculum-detail__nav-label {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: none;
  color: rgba(92, 16, 144, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.curriculum-detail__nav--next .curriculum-detail__nav-label {
  text-align: right;
}

@container curriculum-detail (max-width: 560px) {
  .curriculum-detail__nav-label {
    display: none;
  }

  .curriculum-detail__nav {
    width: auto;
  }
}

@container curriculum-detail (min-width: 561px) {
  .curriculum-detail__nav-label {
    display: block;
    max-width: min(9.5rem, 100%);
  }
}

@container curriculum-detail (min-width: 680px) {
  .curriculum-detail__nav-label {
    max-width: min(12rem, 100%);
    font-size: 0.75rem;
  }
}

.curriculum-detail__cta {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  z-index: 1;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

@media (min-width: 768px) and (max-width: 960px) {
  .curriculum-detail__shell {
    padding: clamp(18px, 2.5vw, 24px);
  }

  .curriculum-detail__title {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
  }
}

@media (max-width: 767px) {
  .curriculum-tab-btns {
    width: 100%;
    justify-content: center;
  }

  .curriculum-tab-btn {
    flex: 0 1 auto;
    margin: 4px 6px;
    padding: 0.6rem 1rem;
    font-size: 0.76rem;
  }

  .curriculum__programs {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .curriculum-program:hover {
    transform: none;
  }

  .curriculum-program__block:hover {
    transform: none;
  }

  .curriculum-detail-overlay {
    align-items: center;
    padding: clamp(10px, 3vw, 16px);
  }

  .curriculum-detail-modal {
    width: min(100%, 430px);
    max-height: min(92vh, 720px);
    border-radius: clamp(18px, 4vw, 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .curriculum-detail {
    min-height: 0;
  }

  .curriculum-detail__close {
    top: 10px;
    right: 10px;
    z-index: 5;
  }

  .curriculum-detail__shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 16px;
    flex: none;
    height: auto;
    min-height: 0;
    overflow: visible;
    border-radius: 16px;
    background: var(--color-white);
    border: none;
    box-shadow: none;
  }

  .curriculum-detail__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: none;
    min-height: 0;
    overflow: visible;
  }

  .curriculum-detail__media {
    flex-shrink: 0;
    height: auto;
    border-radius: 14px;
    box-shadow: none;
  }

  .curriculum-detail__media img {
    display: block;
    width: 100%;
    height: auto;
  }

  .curriculum-detail__program-badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 10px;
  }

  .curriculum-detail__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: none;
    min-height: 0;
    overflow: visible;
  }

  .curriculum-detail__title {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.28;
    padding-right: 36px;
  }

  .curriculum-detail__text-wrap {
    flex: none;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(251, 251, 253, 0.95);
  }

  .curriculum-detail__text-wrap::before {
    opacity: 0.12;
    background-size: clamp(120px, 50%, 180px);
  }

  .curriculum-detail__text {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .curriculum-detail__footer {
    flex-shrink: 0;
    padding-top: 10px;
    margin-top: 0;
    border-top: 1px solid rgba(92, 16, 144, 0.08);
    min-height: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .curriculum__overview,
  .curriculum-detail__content,
  .curriculum-detail__text-wrap,
  .curriculum-program__body,
  .curriculum-program__body-inner,
  .curriculum-program__block,
  .curriculum-program__toggle,
  .curriculum-program__toggle-icon,
  .curriculum-detail__media img {
    transition: none;
  }

  .curriculum-program:hover,
  .curriculum-program__block:hover {
    transform: none;
  }
}
