.home-section {
  padding-block: clamp(5.5rem, 9vw, 8.5rem);
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 5.3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 8% 18%,
      color-mix(in srgb, var(--color-accent) 11%, transparent),
      transparent 24rem
    ),
    var(--color-paper);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(24rem, 1.08fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: calc(100svh - 10rem);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 7.55rem);
  line-height: 0.84;
  text-transform: uppercase;
  letter-spacing: -0.045em;
}

.home-hero-copy :where(h1) span {
  display: block;
}

.home-hero-copy h1 span:last-child {
  color: var(--color-accent);
}

.home-hero-copy > p:not(.eyebrow) {
  max-width: 39rem;
  margin: 1.7rem 0 0;
  font-size: clamp(1.03rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.home-hero-copy > .home-hero-note {
  padding-top: 1rem;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--color-border);
}

.home-hero-media {
  position: relative;
  justify-self: center;
  width: min(100%, 36.9rem);
  min-height: 0;
  aspect-ratio: 897 / 1216;
  margin: 0;
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: var(--radius-card);
  box-shadow: 0 2rem 5rem rgb(48 20 31 / 12%);
}

.home-hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: linear-gradient(180deg, transparent 65%, rgb(0 0 0 / 58%));
}

.home-hero-media picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.home-hero-media img,
.course-card-media img,
.teacher-image img,
.service-grid img {
  object-fit: cover;
  transition:
    filter 450ms ease,
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-position: center;
}

.home-hero-media figcaption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  padding-inline: max(1.5rem, calc((100% - 82rem) / 2));
  color: var(--color-ink);
  background: linear-gradient(
    90deg,
    var(--color-surface),
    color-mix(in srgb, var(--color-sand) 78%, white)
  );
  border-block: 1px solid var(--color-border);
}

.home-proof p {
  display: grid;
  gap: 0.25rem;
  min-height: 7.5rem;
  padding: 1.4rem 1.5rem;
  margin: 0;
  border-left: 1px solid var(--color-border);
}

.home-proof p:first-child {
  border-left: 0;
}

.home-proof strong {
  font-family: var(--font-barlow-condensed), sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--color-accent-dark);
  text-transform: uppercase;
}

.home-proof span {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.home-manifesto {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding-block: clamp(5rem, 11vw, 10rem);
}

.home-manifesto h2,
.home-section-heading h2 {
  margin: 0;
  font-size: clamp(3.5rem, 6.7vw, 6.8rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.home-manifesto p {
  font-size: 1.05rem;
}

.home-courses {
  overflow: hidden;
  background: var(--color-ink);
}

.home-courses [data-slot="button"] {
  color: white;
  background: transparent;
  border-color: color-mix(in srgb, white 72%, transparent);
}

.home-courses [data-slot="button"]:hover {
  color: var(--color-ink);
  background: white;
  border-color: white;
}

.home-fitness-cluster {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  margin-top: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.home-section-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.home-section-heading-inverted {
  color: white;
}

.home-section-heading-inverted .eyebrow {
  color: #ff8ab4;
}

.home-section-heading h2 {
  max-width: 12ch;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.course-card {
  position: relative;
  display: grid;
  grid-column: span 4;
  min-height: clamp(24rem, 34vw, 31rem);
  padding: 0;
  overflow: hidden;
  color: white;
  text-decoration: none;
  background: var(--color-ink);
  border-radius: var(--radius-card);
  isolation: isolate;
  clip-path: inset(0 round var(--radius-card));
}

.course-card:nth-child(-n + 2) {
  grid-column: span 6;
  min-height: clamp(31rem, 43vw, 40rem);
}

.course-grid-fitness .course-card,
.course-grid-fitness .course-card:nth-child(-n + 2) {
  grid-column: span 4;
  min-height: clamp(24rem, 34vw, 31rem);
}

.course-card-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-height: 100%;
  background: var(--color-ink);
  border-radius: inherit;
}

.course-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 1.5rem;
  color: white;
  background: linear-gradient(
    180deg,
    rgb(28 21 26 / 6%) 32%,
    rgb(28 21 26 / 88%) 100%
  );
}

.course-card:hover img,
.service-grid a:hover img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.025);
}

.course-card strong {
  max-width: 10ch;
  font-family: var(--font-barlow-condensed), sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.course-card-number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  margin-bottom: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.course-card-copy > svg {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
}

.home-dance-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
  color: white;
}

.home-dance-directory > div {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: var(--radius-card);
}

.home-dance-directory h3 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  text-transform: uppercase;
}

.home-dance-directory :where(h3) a {
  color: var(--color-accent-soft);
  text-decoration: none;
}

.home-dance-directory ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-dance-directory li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: var(--radius-pill);
}

.home-dance-directory :where(li) a:hover,
.home-dance-directory :where(li) a:focus-visible {
  color: var(--color-ink);
  background: white;
}

.home-goals {
  background: var(--color-paper);
}

.goal-list {
  border-top: 1px solid var(--color-ink);
}

.goal-list a {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 1rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--color-ink);
  transition:
    padding 200ms ease,
    background 200ms ease;
}

.goal-list a:hover {
  padding-inline: 1rem;
  color: white;
  background: var(--color-accent);
}

.goal-list span {
  font-size: 0.75rem;
  font-weight: 800;
}

.goal-list strong {
  font-family: var(--font-barlow-condensed), sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.home-teachers {
  scroll-margin-top: 2rem;
  background: var(--color-sky);
}

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

.teacher-card {
  display: grid;
  grid-template-rows: minmax(32rem, 1fr) auto;
  min-height: 49rem;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.teacher-image {
  position: relative;
  min-height: 34rem;
  background: var(--color-sky);
}

.teacher-image img {
  object-position: 50% 28%;
}

.teacher-image-contain {
  background: color-mix(in srgb, var(--color-accent-soft) 65%, white);
}

.teacher-image-contain img {
  object-fit: contain;
  object-position: center;
}

.teacher-card > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.teacher-card h3 {
  margin: 0 0 1.2rem;
  font-size: clamp(3rem, 5vw, 5rem);
  text-transform: uppercase;
}

.teacher-card-dark {
  color: white;
  background: var(--color-ink);
}

.teacher-card-dark .eyebrow,
.teacher-card-dark .editorial-link {
  color: #ff8ab4;
}

.teacher-card-accent {
  color: white;
  background: var(--color-accent-dark);
}

.teacher-card-accent .eyebrow,
.teacher-card-accent .editorial-link {
  color: var(--color-accent-soft);
}

.home-schedule {
  background: var(--color-paper);
}

.schedule-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.schedule-heading h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.5rem, 6.7vw, 6.8rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.schedule-intro p {
  margin: 0 0 1.5rem;
  font-size: 1.03rem;
}

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

.schedule-day {
  min-height: 23rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--color-sky);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.schedule-day:nth-child(2),
.schedule-day:nth-child(5) {
  background: var(--color-accent-soft);
}

.schedule-day > header {
  padding-bottom: 1.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-ink);
}

.schedule-day h3 {
  margin: 0;
  font-size: clamp(2.35rem, 3.5vw, 3.5rem);
  text-transform: uppercase;
}

.schedule-day ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.schedule-day li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  min-height: 3.2rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 18%, transparent);
}

.schedule-day li:last-child {
  border-bottom: 0;
}

.schedule-day time {
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-day li a,
.schedule-day li strong {
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.35;
}

.schedule-day li a {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-accent);
}

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

.home-services > .editorial-link {
  margin-top: 1.5rem;
}

.service-grid a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: clamp(24rem, 38vw, 34rem);
  padding: 1.75rem;
  overflow: hidden;
  font-size: 1.05rem;
  color: white;
  text-decoration: none;
  background: var(--color-ink);
  border-radius: var(--radius-card);
  isolation: isolate;
}

.service-grid a > div {
  position: absolute;
  inset: 0;
  z-index: -2;
  grid-column: 1 / -1;
  overflow: hidden;
  background: var(--color-sky);
}

.service-grid a::after {
  position: absolute;
  inset: 30% 0 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent, rgb(28 21 26 / 88%));
}

.service-grid a > strong,
.service-grid a > svg {
  align-self: end;
}

.service-grid a > strong {
  font-family: var(--font-barlow-condensed), sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.home-testimonials {
  color: white;
  background: var(--color-ink);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
}

.testimonial-grid blockquote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 23rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  border-radius: var(--radius-card);
}

.testimonial-grid blockquote:first-child {
  background: var(--color-accent-soft);
}

.testimonial-grid p {
  margin: 0;
  font-family: var(--font-barlow-condensed), sans-serif;
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
}

.testimonial-grid footer {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 8vw, 8rem);
}

.home-faq .home-section-heading {
  display: block;
  margin: 0;
}

.home-faq-list {
  border-bottom: 1px solid var(--color-ink);
}

.home-faq-list details {
  border-top: 1px solid var(--color-ink);
}

.home-faq-list summary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  font-family: var(--font-barlow-condensed), sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  flex: 0 0 auto;
  font-family: var(--font-manrope), sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  content: "+";
  transition: transform 180ms ease;
}

.home-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.home-faq-answer {
  max-width: 42rem;
  padding-bottom: 1.5rem;
  font-size: 1rem;
}

.home-faq-answer p {
  margin: 0;
}

@media (max-width: 64rem) {
  .home-hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .home-hero-copy h1 {
    font-size: clamp(4rem, 9vw, 6.5rem);
  }

  .home-proof,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-card,
  .course-card:nth-child(-n + 2) {
    grid-column: span 1;
    min-height: 31rem;
  }

  .home-proof p:nth-child(3) {
    border-left: 0;
  }

  .teacher-image {
    min-height: 35rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-grid blockquote:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 52rem) {
  .home-hero-grid,
  .content-hero-image .content-hero-inner,
  .content-hero-article .content-hero-inner,
  .home-manifesto,
  .home-faq,
  .schedule-heading {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    min-height: auto;
  }

  .home-hero-copy {
    padding-block: 3.5rem 1rem;
  }

  .home-hero-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 897 / 1216;
  }

  .home-manifesto,
  .home-faq {
    gap: 3rem;
  }
}

@media (max-width: 40rem) {
  .home-section {
    padding-block: 5rem;
  }

  .home-hero {
    padding-top: 0.25rem;
  }

  .home-hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(3.75rem, 18.5vw, 5.6rem);
  }

  .home-hero-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 897 / 1216;
  }

  .home-proof,
  .home-manifesto,
  .home-section-heading,
  .teacher-grid,
  .testimonial-grid,
  .home-faq,
  .home-dance-directory,
  .schedule-grid,
  .service-hub-grid {
    grid-template-columns: 1fr;
  }

  .home-proof p {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .home-proof p:first-child {
    border-top: 0;
  }

  .home-manifesto,
  .home-faq {
    gap: 3rem;
  }

  .home-section-heading {
    gap: 0.75rem;
  }

  .home-section-heading h2,
  .home-manifesto h2 {
    font-size: clamp(3.3rem, 16vw, 5rem);
  }

  .course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-right: 0;
    overflow: visible;
  }

  .course-card,
  .course-card:nth-child(-n + 2) {
    grid-column: auto;
    min-height: 28rem;
  }

  .goal-list a {
    grid-template-columns: 2rem 1fr auto;
    gap: 0.5rem;
    min-height: 5rem;
  }

  .goal-list strong {
    font-size: 1.8rem;
  }

  .teacher-image {
    min-height: 31rem;
  }

  .service-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .schedule-day {
    min-height: auto;
  }

  .schedule-day li {
    grid-template-columns: 5.8rem 1fr;
  }

  .testimonial-grid blockquote:first-child {
    grid-column: auto;
  }

  .testimonial-grid blockquote {
    min-height: 19rem;
  }
}
