/* Research variant. The poster revision deliberately changes the main-page
   composition; approved Astra and shared city styles remain independent. */
.home-progress .home-section-heading {
  display: block;
  margin: 0;
}

.home-progress h2 {
  font-size: 76px;
  line-height: 1.02;
}

.home-progress h2 em {
  display: block;
}

.home-progress h2 > span {
  margin-top: 16px;
  font-size: 44px;
  line-height: 1.1;
}

.home-progress .home-section-heading p {
  max-width: 440px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.7;
}

.home-progress .dance-path {
  display: block;
  margin: 0;
}

.home-progress .dance-path li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.home-progress .path-number {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  padding-top: 4px;
  font-size: 18px;
}

.home-progress .dance-path h3 {
  grid-column: 2;
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.home-progress .path-timing {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.2;
}

.home-progress .dance-path p {
  grid-column: 2;
  max-width: none;
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
}

@media (min-width: 1100px) {
  .home-progress {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 32px 64px;
    align-items: start;
  }

  .home-progress .home-section-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .home-progress .dance-path {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .home-progress > .button {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  /* Keep one heading and the original mobile DOM. The scene wrapper is only
     flattened on desktop so its image can sit behind heading and explanation. */
  .home-method {
    position: relative;
    isolation: isolate;
    padding-block: 64px;
    overflow: hidden;
  }

  .home-method .method-heading h2 {
    max-width: 480px;
    font-size: 64px;
    line-height: 1.02;
  }

  .home-method .method-scene {
    display: contents;
  }

  .home-method .method-copy {
    max-width: 480px;
    padding: 0;
  }

  .home-method .method-lead {
    margin-top: 32px;
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.5;
  }

  .home-method .method-copy > p:not(.method-lead) {
    font-size: 20px;
    line-height: 1.7;
  }

  .home-method .method-art {
    position: absolute;
    inset: 50% 0 auto auto;
    width: 62%;
    aspect-ratio: 2000 / 1330;
    transform: translateY(-50%);
    z-index: -1;
  }

  .home-method .method-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-method .method-art::after {
    inset: -1px;
    background:
      linear-gradient(90deg, var(--bg), rgba(8, 11, 24, .9) 7%, transparent 30%),
      linear-gradient(0deg, var(--bg) 2px, transparent 12%, transparent 92%, var(--bg) calc(100% - 2px));
  }
}

@media (max-width: 1099px) {
  .home-progress h2 {
    font-size: 70px;
  }

  .home-progress .home-section-heading {
    margin-bottom: 32px;
  }

  .home-progress .dance-path {
    margin-bottom: 32px;
  }
}

@media (max-width: 650px) {
  .home-progress h2 {
    font-size: 58px;
  }

  .home-progress h2 > span {
    font-size: 34px;
  }

  .home-progress .home-section-heading p {
    font-size: 18px;
  }

  .home-progress .dance-path h3 {
    font-size: 32px;
  }

  .home-progress .dance-path p {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .home-progress h2 {
    font-size: 52px;
  }

  .home-progress h2 > span {
    font-size: 30px;
  }

  .home-progress .dance-path li {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 16px;
  }

  .home-progress .dance-path h3 {
    font-size: 30px;
  }

  .home-progress .path-timing {
    font-size: 22px;
  }
}

/* A single photographic poster: type leads, the whole group fills the width. */
.hero.hero-poster {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 132px 0 0;
}
.hero-poster .hero-content {
  position: relative;
  z-index: 2;
  order: 0;
  display: block;
  padding: 0;
}
.hero-poster h1 {
  max-width: 1200px;
  margin-inline: auto;
  font-size: clamp(88px, 9.2vw, 142px);
  line-height: .94;
  letter-spacing: -.045em;
  text-align: center;
  text-shadow: none;
}
.hero-poster h1 em {display: block}
.hero-poster .hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  max-width: 1000px;
  margin: 36px auto 0;
}
.hero-poster .hero-lead {
  max-width: 440px;
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
}
.hero-poster .hero-actions {flex: none; margin: 0; gap: 0}
.hero-poster .hero-actions .button {min-width: 370px}
.hero-poster .hero-art {
  position: relative;
  inset: auto;
  order: 1;
  width: 100%;
  height: clamp(460px, 43vw, 700px);
  aspect-ratio: auto;
  margin: -100px 0 0;
  z-index: 0;
  opacity: 1;
  border-radius: 0;
  overflow: hidden;
}
.hero-poster .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: brightness(.86) saturate(.85);
  transform: none;
}
.hero-poster .hero-art::after {
  background:
    linear-gradient(180deg, var(--bg) 1%, rgba(8,11,24,.94) 7%, rgba(8,11,24,.12) 28%, transparent 42%, transparent 68%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,11,24,.35), transparent 18%, transparent 82%, rgba(8,11,24,.35));
}
.hero-poster .hero-bottom-bar {
  order: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 4px 0 32px;
  border-bottom: 1px solid var(--line);
}
.hero-poster .text-link {font-size: 16px; flex: none; gap: 24px}
.hero-poster .city-links {display: flex; gap: 4px 24px; margin: 0}
.hero-poster .hero-explore {
  position: static;
  display: flex;
  margin: 0 0 0 auto;
  font-size: 14px;
  gap: 16px;
}

/* Lesson overview reads across the page, then opens into the real class. */
.lessons .lesson-opening {display: block; min-height: 0}
.lessons .lesson-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 24px 80px;
  padding: 0;
  z-index: 1;
}
.lessons .lesson-intro h2 {
  grid-column: 1;
  grid-row: 1;
  max-width: 590px;
  font-size: clamp(64px, 6.3vw, 92px);
}
.lessons .lesson-pace {grid-column: 1; grid-row: 2; margin: 0; max-width: none; font-size: 24px}
.lessons .lesson-steps {display: block; grid-column: 2; grid-row: 1 / 3; margin: 0; max-width: none}
.lessons .lesson-steps li {font-size: 22px; padding: 16px 0; gap: 24px}
.lessons .lesson-steps li::before {font-size: 16px}
.lessons .lesson-steps li:nth-child(2) {border-top: 0}
.lessons .teacher-photo {
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(480px, 43vw, 740px);
  aspect-ratio: auto;
  margin: 16px 0 0;
  z-index: 0;
}
.lessons .teacher-photo img {object-position: 50% 0%}
.lessons .teacher-photo::after {
  background: linear-gradient(180deg, var(--bg) 1px, transparent 14%, transparent 78%, var(--bg) calc(100% - 1px)),
    linear-gradient(90deg, rgba(8,11,24,.2), transparent 16%, transparent 84%, rgba(8,11,24,.2));
}

/* A gold chapter interrupts the dark photographic scenes with clear outcomes. */
.home-progress.shell {
  width: 100%;
  max-width: none;
  padding: 88px max(56px, calc((100% - 1280px) / 2));
  border: 0;
  background: var(--gold);
  color: var(--bg);
}
.home-progress h2 {font-size: 88px}
.home-progress h2 em {color: var(--bg)}
.home-progress h2 > span {font-size: 44px}
.home-progress p, .home-progress .path-number {color: #292c36}
.home-progress .dance-path li {border-color: rgba(8,11,24,.28)}
.home-progress .path-number {font-size: 19px}
.home-progress .button {background: var(--bg); color: var(--gold); border: 1px solid var(--bg)}
.home-progress .button > span {background: var(--gold); color: var(--bg)}
.home-progress .button:hover {background: #202537}
.home-progress .button:focus-visible {outline-color: var(--bg)}

/* Community becomes a centered chapter opening; its photographs stay immersive. */
.stage-content {max-width: 1120px}
.stage-frequency {display: block; margin-top: 8px; color: var(--gold); font-size: 17px; line-height: 1.5}
.stage-films {gap: 24px; align-items: start}
.stage-film {display: block; min-width: 0}
.stage-image {aspect-ratio: 9 / 16}
.stage-image img {object-fit: contain; object-position: center; opacity: 1}
.stage-preview {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none}
.is-preview-playing .stage-preview {opacity: 1}
.stage-sound {position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 20px; padding: 10px 16px; border: 1px solid rgba(247,245,237,.32); border-radius: 100px; background: rgba(8,11,24,.9); color: var(--text); font-size: 16px; line-height: 1.5}
.stage-sound > span {font-size: 22px; line-height: 1; color: var(--gold)}
.stage-film:focus-visible {outline: 2px solid var(--gold); outline-offset: 4px}
.stage-film:hover .stage-sound {border-color: var(--gold)}
.home-community-heading {text-align: center; padding-bottom: 24px}
.home-community-heading h2 {max-width: 1120px; margin-inline: auto; font-size: clamp(64px, 7vw, 104px)}
.home-community-heading > p {max-width: 720px; margin: 32px auto 0; font-size: 22px}
.home-community .community-friends {margin-top: 0}

/* The final invitation has the same generous, centered type as the opening. */
.home-invitation {
  display: block;
  text-align: center;
  padding-block: 104px;
}
.home-invitation h2 {font-size: clamp(64px, 7.8vw, 112px)}
.home-invitation p {max-width: none; margin: 32px auto}
.home-invitation .button {margin-inline: auto}

@media (max-width: 1150px) {
  .hero.hero-poster {padding-top: 128px}
  .hero-poster .hero-caption {gap: 32px; max-width: 880px}
  .hero-poster .hero-lead {font-size: 22px; max-width: 390px}
  .hero-poster .hero-actions .button {min-width: 340px}
  .hero-poster .hero-bottom-bar {gap: 24px; flex-wrap: wrap}
  .hero-poster .hero-explore {margin-left: auto}
  .lessons .lesson-intro {column-gap: 48px}
  .lessons .lesson-intro h2 {font-size: 68px}
  .lessons .lesson-steps li {font-size: 20px; padding: 14px 0; gap: 16px}
  .home-progress.shell {padding: 72px 32px}
}
@media (min-width: 1100px) {
  .home-progress {grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); column-gap: 88px}
}
@media (min-width: 651px) and (max-width: 1099px) {
  .home-progress .home-section-heading {display: flex; align-items: end; gap: 40px}
  .home-progress h2 {font-size: 78px; flex: none}
  .home-progress h2 > span {font-size: 38px}
  .home-progress .home-section-heading p {font-size: 19px; max-width: 300px}
}
@media (max-width: 900px) {
  .hero-poster h1 {font-size: clamp(64px, 10.5vw, 94px)}
  .hero-poster .hero-caption {gap: 24px; margin-top: 32px}
  .hero-poster .hero-lead {font-size: 20px; max-width: 330px}
  .hero-poster .hero-actions .button {min-width: 320px; font-size: 15px}
  .hero-poster .hero-art {height: 440px; margin-top: -64px}
  .hero-poster .hero-bottom-bar {gap: 12px 32px}
  .hero-poster .hero-explore {margin-left: 0}
  .lessons .lesson-intro {grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); column-gap: 32px}
  .lessons .lesson-intro h2 {font-size: 58px}
  .lessons .lesson-pace {font-size: 20px}
  .lessons .lesson-steps li {font-size: 19px; gap: 12px}
  .lessons .teacher-photo {height: auto; aspect-ratio: 1.5; margin-top: 24px}
  .home-community-heading h2 {font-size: 68px}
  .home-community-heading > p {font-size: 20px}
  .home-invitation {padding-block: 72px}
  .home-invitation h2 {font-size: 76px}
}
@media (max-width: 650px) {
  .stage-films {grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; padding: 4px 4px 16px; margin-inline: -4px; scrollbar-width: thin; scrollbar-color: var(--gold) var(--bg)}
  .stage-film {display: block; scroll-snap-align: start}
  .stage-title {font-size: 18px; align-items: flex-start; padding-bottom: 8px}
  .hero.hero-poster {padding-top: 108px}
  .hero-poster h1 {font-size: clamp(43px, 11.5vw, 74px); line-height: .98; letter-spacing: -.035em}
  .hero-poster .hero-caption {display: block; margin-top: 24px; text-align: center}
  .hero-poster .hero-lead {max-width: 350px; margin-inline: auto; font-size: 19px; line-height: 1.55}
  .hero-poster .hero-actions {margin-top: 24px}
  .hero-poster .hero-actions .button {min-width: 0; width: 100%; font-size: 15px}
  .hero-poster .hero-art {height: auto; aspect-ratio: 1.5; margin-top: 12px}
  .hero-poster .hero-photo {object-position: center; filter: brightness(.9) saturate(.9)}
  .hero-poster .hero-art::after {background: linear-gradient(180deg, var(--bg) 1px, transparent 14%, transparent 72%, var(--bg) 100%)}
  .hero-poster .hero-bottom-bar {display: grid; grid-template-columns: 1fr; gap: 4px; padding-block: 0 24px}
  .hero-poster .text-link {justify-content: space-between; font-size: 16px}
  .hero-poster .city-links {display: flex; flex-wrap: wrap; justify-content: flex-start; column-gap: 24px}
  .hero-poster .city-links a {font-size: 15px; min-height: 44px}
  .hero-poster .hero-explore {margin: 8px 0 0; justify-content: space-between}
  .lessons .lesson-intro {display: block}
  .lessons .lesson-intro h2 {font-size: clamp(43px, 12.2vw, 64px); text-align: center; max-width: none}
  .lessons .lesson-pace {margin-top: 20px; text-align: center; font-size: 20px}
  .lessons .lesson-steps {margin-top: 32px}
  .lessons .lesson-steps li {font-size: 19px; padding: 16px 0; gap: 16px}
  .lessons .lesson-steps li::before {font-size: 16px}
  .lessons .teacher-photo {margin-top: 20px}
  .home-progress.shell {padding: 56px 20px}
  .home-progress h2 {font-size: 66px}
  .home-progress h2 > span {font-size: 34px}
  .home-progress .dance-path h3 {font-size: 32px}
  .home-community-heading {padding-bottom: 8px}
  .home-community-heading h2 {font-size: clamp(44px, 12vw, 64px)}
  .home-community-heading > p {font-size: 18px; margin-top: 24px}
  .home-invitation {padding-block: 56px}
  .home-invitation h2 {font-size: clamp(45px, 12.5vw, 72px)}
  .home-invitation p {font-size: 20px; margin-block: 24px}
}
@media (max-width: 360px) {
  .hero-poster h1 {font-size: 40px}
  .hero-poster .hero-actions .button {font-size: 14px; padding-left: 18px}
  .hero-poster .hero-lead {font-size: 18px}
  .hero-poster .city-links {gap: 0 20px}
  .lessons .lesson-steps li {font-size: 18px; gap: 12px}
  .home-progress.shell {padding-inline: 16px}
  .home-progress h2 {font-size: 58px}
  .home-progress h2 > span {font-size: 30px}
  .home-progress .dance-path h3 {font-size: 30px}
}
