.teachers-page h1 {
  font-size: clamp(3.75rem, 8.2vw, 8rem);
}

.teacher-hero .hero__inner {
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.65fr);
}

.teacher-hero .promise-list {
  margin-top: 2.2rem;
}

.teacher-hero .hero__invitation p {
  margin-bottom: 1.6rem;
}

.teacher-hero .cta-button {
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.teacher-intro {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: #fbf8eb;
  text-align: center;
}

.teacher-intro__content {
  max-width: 60rem;
}

.teacher-intro__content > p:last-child {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}

.instrumental-callout {
  position: relative;
  display: grid;
  width: min(38rem, calc(100% - 2rem));
  margin: clamp(2.5rem, 5vw, 4rem) -2rem clamp(-8rem, -7vw, -5rem) auto;
  padding: 1.15rem 1.5rem;
  border: 1px solid rgb(158 111 30 / 25%);
  border-radius: 1.4rem 1.4rem 2.5rem 1.4rem;
  color: var(--ink-soft);
  background: rgb(255 249 224 / 92%);
  box-shadow: 0 16px 38px rgb(36 67 52 / 12%);
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  text-align: left;
  transform: rotate(-1deg);
  z-index: 2;
}

.instrumental-callout span {
  color: var(--gold);
  font-size: 1.65rem;
}

.instrumental-callout p {
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
}

.fundamentals {
  padding-top: clamp(6rem, 11vw, 10rem);
  background:
    radial-gradient(circle at 50% 40%, rgb(242 208 85 / 20%), transparent 36rem),
    linear-gradient(180deg, #eef5df, #fbf8eb);
}

.wand-feature {
  max-width: 68rem;
  margin: 0 auto;
  text-align: center;
}

.wand-feature__image {
  position: relative;
  padding: clamp(0.55rem, 1.2vw, 0.9rem);
  border: 1px solid rgb(132 92 27 / 28%);
  border-radius: clamp(1.2rem, 3vw, 2.3rem);
  background: linear-gradient(145deg, #fff9df, #e9d39a);
  box-shadow: 0 28px 70px rgb(12 45 41 / 22%);
}

.wand-feature__image::after {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgb(255 239 167 / 48%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.wand-feature img {
  width: 100%;
  height: auto;
  border-radius: clamp(0.85rem, 2.2vw, 1.7rem);
}

.wand-feature figcaption {
  margin-top: 1.4rem;
  color: var(--purple);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.wand-feature figcaption span {
  display: block;
}

.feedback-cycle {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
  padding: 1rem 1.4rem;
  border: 1px solid rgb(165 116 31 / 28%);
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 249 222 / 82%);
  box-shadow: 0 14px 34px rgb(55 79 54 / 10%);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 800;
  gap: clamp(0.6rem, 2vw, 1.4rem);
}

.feedback-cycle span {
  white-space: nowrap;
}

.feedback-cycle b {
  margin-right: 0.25rem;
  color: var(--gold);
}

.feedback-cycle i {
  color: #ab8430;
  font-style: normal;
}

.feedback-cycle__caption {
  margin: 0.9rem auto 0;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

.notation-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgb(167 207 181 / 25%), transparent 27rem),
    #fffdf5;
}

.notation-gallery {
  display: grid;
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.4rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notation-card {
  margin: 0;
  padding: 0.65rem 0.65rem 1.2rem;
  border: 1px solid rgb(132 92 27 / 22%);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #fffdf4, #f1e3c4);
  box-shadow: var(--shadow);
}

.notation-card:nth-child(2) {
  margin-top: clamp(1rem, 4vw, 3.25rem);
}

.notation-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  object-fit: cover;
}

.notation-card figcaption {
  padding: 1rem 0.7rem 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.practice-section {
  background:
    radial-gradient(circle at 12% 55%, rgb(255 222 111 / 19%), transparent 25rem),
    linear-gradient(155deg, #edf5e3, #faf4dc 62%, #e2f0df);
}

.practice-layout {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.22fr);
}

.practice-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.55vw, 1.26rem);
}

.teacher-highlight {
  display: grid;
  margin-top: 2.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgb(174 126 35 / 27%);
  border-radius: 1.35rem;
  background: rgb(255 249 222 / 76%);
  box-shadow: 0 14px 35px rgb(36 67 52 / 10%);
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
}

.teacher-highlight span {
  color: var(--gold);
  font-size: 1.5rem;
}

.teacher-highlight p {
  margin: 0;
  color: var(--purple-dark);
  font-style: italic;
  font-weight: 700;
}

.practice-gallery {
  position: relative;
  min-height: clamp(31rem, 54vw, 43rem);
}

.practice-frame {
  position: absolute;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid rgb(141 98 27 / 26%);
  border-radius: 1.6rem;
  background: #fff8df;
  box-shadow: var(--shadow);
}

.practice-frame img {
  width: 100%;
  height: 100%;
  border-radius: 1.15rem;
  object-fit: cover;
}

.practice-frame--shop {
  top: 0;
  right: 0;
  width: 88%;
  aspect-ratio: 4 / 3;
  transform: rotate(1.5deg);
}

.practice-frame--world {
  bottom: 0;
  left: 0;
  width: 58%;
  aspect-ratio: 4 / 3;
  transform: rotate(-3deg);
}

.games-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(7rem, 13vw, 11rem);
  color: #eef7e6;
  background:
    radial-gradient(circle at 20% 30%, rgb(212 170 53 / 14%), transparent 28rem),
    radial-gradient(circle at 82% 72%, rgb(71 140 119 / 18%), transparent 32rem),
    linear-gradient(150deg, #0a3436, #102a3c 58%, #25183a);
}

.games-section .eyebrow {
  color: #e0b94f;
}

.games-section h2,
.games-section__heading > p:last-child {
  color: #f9f5de;
}

.games-section__heading {
  max-width: 58rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.games-section__heading > p:last-child {
  max-width: 50rem;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  opacity: 0.86;
}

.game-gallery {
  display: grid;
  max-width: 70rem;
  min-height: clamp(40rem, 62vw, 52rem);
  align-items: start;
  margin-inline: auto;
  gap: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
}

.game-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgb(241 208 108 / 34%);
  border-radius: 1.4rem;
  background: #0a262b;
  box-shadow: 0 24px 55px rgb(0 0 0 / 28%);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.game-card--landscape {
  z-index: 2;
  grid-column: 1 / span 7;
  grid-row: 1;
  transform: rotate(-1.8deg);
}

.game-card--lava {
  margin-top: clamp(4rem, 8vw, 7rem);
  grid-column: 9 / span 4;
  grid-row: 1;
  transform: rotate(2.5deg);
}

.game-card--puzzle {
  z-index: 3;
  margin-top: clamp(-3.5rem, -4vw, -1.5rem);
  grid-column: 2 / span 4;
  grid-row: 2;
  transform: rotate(3deg);
}

.game-card--seahorse {
  margin-top: clamp(2rem, 5vw, 4rem);
  grid-column: 6 / span 4;
  grid-row: 2;
  transform: rotate(-2.4deg);
}

.game-card--world {
  z-index: 2;
  margin-top: clamp(-2rem, -2vw, -0.5rem);
  grid-column: 9 / span 4;
  grid-row: 2;
  transform: rotate(1.6deg);
}

.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.game-card:hover {
  box-shadow: 0 30px 66px rgb(0 0 0 / 34%);
}

.teacher-belief {
  max-width: 62rem;
  margin: clamp(5rem, 9vw, 8rem) auto 0;
  text-align: center;
}

.teacher-belief p {
  margin-bottom: 0.75rem;
  color: #fff8dc;
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

.teacher-belief p:last-child {
  color: #e8c967;
}

.progress-section {
  padding: clamp(6rem, 12vw, 10rem) 1.5rem;
  background:
    radial-gradient(circle at 50% 20%, rgb(248 213 100 / 23%), transparent 28rem),
    linear-gradient(180deg, #edf4df, #faf8e9);
}

.progress-card {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem);
  border: 1px solid rgb(147 101 27 / 28%);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% 0%, rgb(255 236 156 / 32%), transparent 22rem),
    linear-gradient(145deg, #fffdf1, #f1e2bf);
  box-shadow: var(--shadow), inset 0 0 65px rgb(255 230 153 / 18%);
}

.progress-card__ornament {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 2rem;
}

.progress-card > p:not(.eyebrow, .progress-card__closing) {
  color: var(--ink-soft);
  font-size: 1.16rem;
}

.progress-card ul {
  display: grid;
  margin: 2rem 0;
  padding: 0;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.progress-card li {
  position: relative;
  padding-left: 1.8rem;
  font-weight: 700;
}

.progress-card li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "✓";
}

.progress-card__closing {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(152 108 33 / 24%);
  color: var(--purple-dark);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 700;
}

.teacher-closing h2 {
  max-width: 21ch;
  margin-inline: auto;
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  line-height: 1.12;
}

.teacher-closing__copy {
  max-width: 42rem;
  margin: 1.2rem auto clamp(3rem, 6vw, 4.5rem);
  color: #d9e1d5;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  opacity: 0.84;
}

.teacher-closing {
  padding-block: clamp(8rem, 15vw, 13rem);
}

.teacher-closing .purchase-reassurance {
  max-width: 19rem;
  margin-top: 1.8rem;
  font-size: 0.68rem;
  opacity: 0.88;
}

.teacher-closing .purchase-reassurance__price {
  font-size: 0.78rem;
}

.teacher-closing .return-link {
  margin-top: 2.8rem;
}

@media (max-width: 900px) {
  .teacher-hero .hero__inner,
  .practice-layout {
    grid-template-columns: 1fr;
  }

  .teacher-hero .hero__invitation {
    width: min(100%, 31rem);
    margin-inline: auto;
  }

  .notation-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .notation-card:nth-child(2) {
    margin-top: 2rem;
  }

  .notation-card:last-child {
    width: calc(50% - 0.75rem);
    margin-inline: auto;
    grid-column: 1 / -1;
  }

  .practice-gallery {
    width: min(100%, 43rem);
    margin-inline: auto;
  }

  .instrumental-callout {
    margin-right: 0;
  }

  .game-gallery {
    min-height: 60rem;
    gap: 2.5rem 1.5rem;
  }

  .game-card--landscape {
    grid-column: 1 / span 8;
  }

  .game-card--lava {
    grid-column: 8 / span 5;
  }

  .game-card--puzzle {
    grid-column: 1 / span 5;
  }

  .game-card--seahorse {
    grid-column: 5 / span 5;
  }

  .game-card--world {
    grid-column: 9 / span 4;
  }
}

@media (max-width: 600px) {
  .teachers-page h1 {
    font-size: clamp(3.4rem, 18vw, 5.25rem);
  }

  .teacher-hero .hero__inner {
    padding-top: 5.5rem;
  }

  .notation-gallery {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .notation-card:nth-child(2),
  .notation-card:last-child {
    width: 100%;
    margin-top: 0;
    grid-column: auto;
  }

  .feedback-cycle {
    width: 100%;
    padding-inline: 0.8rem;
    gap: 0.55rem;
  }

  .feedback-cycle span {
    font-size: 0.88rem;
  }

  .practice-gallery {
    display: grid;
    min-height: 0;
    gap: 1.25rem;
  }

  .practice-frame,
  .practice-frame--shop,
  .practice-frame--world {
    position: static;
    width: 100%;
    aspect-ratio: 4 / 3;
    transform: none;
  }

  .game-gallery {
    min-height: 0;
    padding: 0.75rem 0.6rem;
    gap: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .game-card,
  .game-card--landscape,
  .game-card--lava,
  .game-card--puzzle,
  .game-card--seahorse,
  .game-card--world {
    width: 88%;
    margin: 0;
    grid-column: 1;
    grid-row: auto;
  }

  .game-card--landscape,
  .game-card--puzzle,
  .game-card--world {
    justify-self: start;
  }

  .game-card--lava,
  .game-card--seahorse {
    justify-self: end;
  }

  .game-card--lava,
  .game-card--puzzle,
  .game-card--seahorse,
  .game-card--world {
    margin-top: -0.65rem;
  }

  .instrumental-callout {
    width: 100%;
    margin: 2.5rem 0 -5rem;
    transform: none;
  }

  .teacher-closing h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.3rem);
  }

  .progress-card ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teachers-page *,
  .teachers-page *::before,
  .teachers-page *::after {
    scroll-behavior: auto !important;
  }
}
