/* A different motion vocabulary for each scene. */
:root { --motion-ease: cubic-bezier(.22,1,.36,1); }
.hero-copy { padding-bottom: 14px; }
.hero h1 { line-height: 1; }
.hero-title-line { display: block; overflow: clip; padding-block: .09em; margin-block: -.09em; }
.hero-title-line > * { display: block; transform-origin: 0 100%; }
.hero-title-lead { font-family: var(--sc-font-text); font-weight: 400; font-size: clamp(45px, 5.05vw, 76px); letter-spacing: -.065em; line-height: 1.2; }
.hero-title-line em { font-size: clamp(80px, 8.8vw, 133px); letter-spacing: -.035em; line-height: 1.07; }
.hero-description { margin-top: 31px; }
.hero-bottom { background: var(--paper); }

/* A dark stage separates the dress from the background. Feet stay planted. */
.hero-disc { top: 75px; bottom: 14px; left: 11%; width: 78%; aspect-ratio: auto; border-radius: 48% 48% 2px 2px / 40% 40% 2px 2px; background: #2c302a; transform: none; overflow: hidden; }
.hero-disc::after { content: ''; position: absolute; inset: -8%; background: radial-gradient(ellipse at 45% 34%, #84907660, #65705c16 44%, transparent 70%); opacity: calc(.7 + var(--dance-energy, 0) * .3); transform: translateX(calc(var(--dance-energy, 0) * -14px)); }
.dancer-group { transform: none; z-index: 2; }
.dancer-shadow { left: 32%; right: 23%; bottom: 4px; height: 11px; background: #1c201b80; filter: blur(5px); }
.hero-floor-line { width: 63%; height: 25px; left: 19%; bottom: 14px; border-color: #d8cbb770; border-radius: 50%; transform: none; z-index: 1; }
.dance-trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.dance-trace path { stroke: #be755b; stroke-width: .8; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .5; }
.dance-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0; pointer-events: none; }
.dance-ready .hero-dancers { opacity: 0; }
.dance-ready .dance-canvas { opacity: 1; }
.motion-ready .dance-trace path { stroke-dashoffset: 1; }
.dance-introduced .dance-trace path { stroke-dashoffset: 0; transition: stroke-dashoffset 2400ms 180ms var(--motion-ease); }
.motion-toggle { position: absolute; left: 0; bottom: 22px; z-index: 4; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--soft); padding: 0; width: 44px; height: 44px; }
.motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.motion-toggle svg { width: 26px; height: 26px; padding: 5px; border: 1px solid #b8b1a3; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.motion-play { fill: currentColor; stroke: none; }
.motion-pause, [data-playing="true"] .motion-play { display: none; }
[data-playing="true"] .motion-pause { display: block; }
.hero-art-caption { transform: none; }
.motion-ready .hero-title-line > * { animation: title-arrival 1050ms var(--motion-ease) both; }
.motion-ready .hero-title-line:last-child > * { animation-delay: 130ms; }
.motion-ready .hero .eyebrow { animation: quiet-arrival 750ms var(--motion-ease) both; }
.motion-ready .hero-description { animation: quiet-arrival 850ms 220ms var(--motion-ease) both; }
.motion-ready .hero-actions { animation: quiet-arrival 850ms 320ms var(--motion-ease) both; }
@keyframes title-arrival { from { transform: translateY(115%) rotate(3deg); } to { transform: none; } }
@keyframes quiet-arrival { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.welcome { display: block; padding-block: clamp(100px, 10vw, 145px); overflow: clip; }
.welcome > .welcome-statement { font-family: var(--sc-font-text); font-size: clamp(27px, 3.7vw, 54px); letter-spacing: -.045em; line-height: 1.42; }
.welcome .welcome-line { display: block; color: var(--ink); font-style: normal; transform: translateX(var(--welcome-left, 0px)); }
.welcome .welcome-line:nth-child(2) { margin-left: 9%; transform: translateX(var(--welcome-right, 0px)); }
.welcome .welcome-line:last-child { margin-top: 8px; margin-left: 4%; font-family: var(--sc-font-display); font-size: 1.36em; font-style: italic; letter-spacing: -.025em; color: var(--red); }
.welcome-note { margin: 30px 0 0 54%; padding: 2px 0 2px 18px; border-left: 1px solid var(--red); font-size: 13px; max-width: 36ch; }

/* Courses respond to the chosen style. No scroll crop. */
.course-image-frame { clip-path: none; }
.course-image-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; object-position: 50% 48%; }
.course-outgoing { z-index: 2; pointer-events: none; }
.rhythm-ribbon { z-index: 3; }
.motion-ready .courses:not(.rhythm-arrived) #rhythm-path { stroke-dashoffset: 1; }
#rhythm-path { transition: stroke-dashoffset 1200ms var(--motion-ease); }
.course-tabs button { position: relative; transition: color 200ms, padding-left 400ms var(--motion-ease); }
.course-tabs button::before { content: ''; position: absolute; height: 1px; left: 0; right: 0; bottom: -1px; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform 600ms var(--motion-ease); }
.course-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
.course-tabs button[aria-selected="true"] { padding-left: 14px; }
.course-tabs button .icon { transition: transform 450ms var(--motion-ease), color 250ms; }

/* Heritage: develop the print inside a steady frame. */
.heritage-photo { background: transparent; }
.heritage-photo-media { position: absolute; inset: 0 0 30px; overflow: hidden; background: #181c19; clip-path: none; }
.heritage-photo img { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; object-fit: cover; filter: grayscale(1); transition: filter 1500ms ease-out; }
.motion-ready .heritage:not(.heritage-developed) .heritage-photo img { filter: grayscale(1) sepia(.28) contrast(.66) brightness(1.18); }
.heritage-year > span { display: block; transform: none; }
.teacher { translate: 0 var(--teacher-offset, 0px); }

/* Pricing and questions move only in response to their controls. */
.price-tabs { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; }
.price-tabs::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--ink); z-index: -1; transform: translateX(0); transition: transform 300ms var(--motion-ease); }
.price-tabs:has([data-price="private"][aria-pressed="true"])::before { transform: translateX(100%); }
.price-tabs button { min-width: 0; transition: color 160ms 100ms; }
.price-tabs button[aria-pressed="true"] { background: transparent; }
.faq details[open] > p { animation: answer-arrival 220ms ease-out both; }
@keyframes answer-arrival { from { opacity: .25; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* A solid closing field, signed once with a pencil stroke. */
.contact { position: relative; background: #ab3327; }
.contact::before { content: none; }
.contact h2 em { position: relative; display: inline-block; }
.contact-signature { position: absolute; bottom: -17px; left: 0; width: 100%; height: 27px; overflow: visible; pointer-events: none; }
.contact-signature path { fill: none; stroke: #f8dccf; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .7; transition: stroke-dashoffset 1200ms 100ms var(--motion-ease); }
.motion-ready .contact:not(.contact-signed) .contact-signature path { stroke-dashoffset: 1; }
.contact .button { margin-top: 46px; }
.button .icon, .text-link .icon, .map-link .icon { transition: transform 350ms var(--motion-ease); }
@media (hover: hover) and (pointer: fine) {
  .button:hover .icon, .text-link:hover .icon, .map-link:hover .icon { transform: translate(3px, -3px); }
}
@media (min-width: 1101px) {
  .course-index { position: sticky; top: 64px; align-self: start; }
  .course-layout { align-items: start; }
  .course-image-frame { aspect-ratio: 1 / 1.16; }
  .heritage-photo { height: 620px; }
  .heritage-year > span { font-size: 134px; }
}
@media (max-width: 1100px) and (min-width: 601px) {
  .hero-disc { top: 65px; left: 4%; width: 92%; }
  .motion-toggle { left: -3%; bottom: 2px; }
  .motion-toggle span { display: none; }
}
@media (max-width: 800px) and (min-width: 601px) {
  .hero-title-lead { font-size: 4.9vw; }
  .hero-title-line em { font-size: 8.5vw; }
}
@media (max-width: 600px) {
  .hero-copy { padding-bottom: 0; }
  .hero-title-lead { font-size: clamp(32px, 9.15vw, 55px); letter-spacing: -.065em; }
  .hero-title-line em { font-size: clamp(58px, 16.5vw, 95px); line-height: 1.1; }
  .hero-description { margin-top: 22px; }
  .hero-disc { top: 49px; bottom: 0; left: 16%; width: 72%; }
  .hero-floor-line { left: 28%; width: 47%; height: 13px; bottom: -6px; }
  .motion-toggle { bottom: 6px; left: -1%; }
  .dance-trace { inset: 13px 0 0; height: 95%; }
  .welcome { padding-block: 76px; }
  .welcome > .welcome-statement { font-size: clamp(20px, 5.55vw, 31px); line-height: 1.58; }
  .welcome .welcome-line:nth-child(2) { margin-left: 0; }
  .welcome .welcome-line:last-child { margin-left: 0; margin-top: 14px; font-size: 1.58em; line-height: 1.14; max-width: 20ch; }
  .welcome-note { font-size: 11px; margin: 26px 0 0 16%; max-width: 33ch; }
  .course-tabs button[aria-selected="true"] { padding-left: 10px; }
  .price-tabs { width: 100%; }
  .price-tabs button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title-line > *, .hero .eyebrow, .hero-description, .hero-actions, .faq details > p { animation: none !important; opacity: 1 !important; }
  .teacher { translate: none !important; }
  .hero-disc::after, .welcome-line, .heritage-photo img { transform: none !important; }
  .heritage-photo img { filter: grayscale(1) !important; transition: none; }
  .dance-canvas, .motion-toggle { display: none !important; }
  .hero-dancers { opacity: 1 !important; }
  .dance-trace path, #rhythm-path, .contact-signature path { stroke-dashoffset: 0 !important; transition: none; }
  .course-outgoing { display: none; }
  .price-tabs::before, .price-tabs button, .course-tabs button, .course-tabs button::before, .course-tabs button .icon { transition: none; }
}
@media print {
  .welcome-line, .heritage-photo img { transform: none !important; filter: none !important; }
  .teacher { translate: none !important; }
  .contact-signature path { stroke-dashoffset: 0 !important; }
}
