/* ============ SOUND PRO ACADEMY — /masterclass ============
   Page-specific layer. Everything shared (type scale, .display, .eyebrow,
   .mark chips, .case / .ab result blocks, .apply, .modal, .footer, the
   loader) comes from css/styles.css — this file only adds the pieces that
   exist solely on the masterclass page: the hero, and the course player.
   Load order matters: styles.css first, this second.
   ============================================================ */

/* ---------- Nav: this page has two links on the right ---------- */

.nav__group {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.2rem);
}
.nav__link { opacity: 0.65; }
.nav__link:hover { opacity: 1; }

/* styles.css hides .nav__cta below 620px because the home page folds it into
   the hamburger overlay. This page carries no overlay — two links fit — so the
   community link stays put and only trims its letter-spacing to make room. */
.nav__cta { white-space: nowrap; }

/* styles.css folds .nav__cta into the hamburger overlay below 620px; this
   page's extra "Home" link has to go the same way, or it sits stranded next
   to the close ×. */
@media (max-width: 620px) {
  .nav__link { display: none; }
}

/* ---------- Nav: solid banner once the page scrolls ----------
   The bar rides on mix-blend-mode: difference, which reads cleanly over the
   full-bleed hero but falls apart further down, where it sits over the
   player's video frames and then the white results section — the letters
   invert per pixel and the whole header turns to mush. Past the hero it
   drops the blend mode for a plain dark bar instead. (Blend mode itself
   can't be transitioned, so it swaps on the same frame the fade starts;
   at this speed the two read as one move.) */

.nav {
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease,
              padding 0.35s ease;
}
.nav.is-solid {
  mix-blend-mode: normal;
  background: rgba(8, 8, 7, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(250, 250, 248, 0.09);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ---------- 1. Hero ----------
   No frame sequence here (this page's job is to play videos, not to spend
   4.6 MB on a turntable before the first one loads) — instead a single
   still from the hero sequence, heavily darkened, so it still reads as the
   same world as the home page at a fraction of the weight. */

.mc-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 22vh 0 14vh;
  background: var(--black);
}
.mc-hero__bg {
  position: absolute;
  inset: 0;
  /* relative to THIS file (/css/…) so it resolves the same off the disk,
     from a folder, or deployed — see the note in masterclass/index.html */
  background-image: url("https://cdn.jsdelivr.net/gh/soundproacademy/audiofiles@media-web-7ccf707944/web/assets/frames/hero/hero_0054.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.06); /* headroom for the slow parallax drift (JS) */
  will-change: transform;
}
.mc-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* flat wash + a bottom-heavy gradient so the copy stays legible and the
     section melts into the black player below it */
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.35) 45%, rgba(10, 10, 10, 0.98) 100%),
    rgba(10, 10, 10, 0.5);
}
.mc-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 6vw;
}
.mc-hero .display { font-size: clamp(3rem, 10vw, 8.5rem); }
.mc-hero__sub {
  margin-top: 2.2rem;
  max-width: 620px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: rgba(250, 250, 248, 0.82);
}
.mc-hero__note {
  margin-top: 0.9rem;
  max-width: 520px;
  font-size: 0.92rem;
  color: rgba(250, 250, 248, 0.5);
}
.mc-hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(250, 250, 248, 0.14);
  max-width: 620px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}
.mc-hero__meta li { display: flex; align-items: center; gap: 1.4rem; }
.mc-hero__meta li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(250, 250, 248, 0.3);
}
.mc-hero__meta span { color: var(--white); }
.mc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.8rem;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease;
}
.mc-hero__cta:hover { background: #ffffff; }
.mc-hero__cta svg { animation: nudge 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .mc-hero__cta svg { animation: none; }
}

/* ---------- 2. The course player ---------- */

.mc {
  position: relative;
  padding: 12vh 0 16vh;
  background: var(--black);
}
.mc__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: clamp(2rem, 4vw, 3.6rem);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 6vw;
  align-items: start;
}
.mc__main { min-width: 0; }

/* ---- stage ---- */

.mc__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(250, 250, 248, 0.14);
  overflow: hidden;
}
.mc__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
/* The plate is the pre-roll state: Vimeo's own thumbnail for the chapter with
   our play button over it — same treatment as the case studies on the home
   page. It's hidden the moment the iframe is injected, and from then on the
   controls are Vimeo's. */
.mc__plate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  cursor: pointer;
  background: #0b0b0b;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.mc__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Bottom-heavy scrim so the chapter title stays readable over any frame. */
.mc__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.15) 45%, rgba(10, 10, 10, 0.35) 100%);
}
/* display:flex above would beat the `hidden` attribute's UA style, so the
   hidden state (set by JS once the iframe is in) needs its own rule. */
.mc__plate[hidden] { display: none; }
.mc__plate:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.mc__play {
  z-index: 2;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 9vw, 88px);
  height: clamp(64px, 9vw, 88px);
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 248, 0.5);
  background: rgba(10, 10, 10, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.mc__play svg { width: 28px; height: 28px; fill: var(--white); margin-left: 3px; transition: fill 0.25s ease; }
.mc__plate:hover .mc__play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold); border-color: var(--gold); }
.mc__plate:hover .mc__play svg { fill: #0a0a0a; }
.mc__platefoot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22ch;
}
.mc__platenum {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.mc__platetitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* ---- chapter copy ---- */

.mc__details { margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.mc__detail { display: none; }
.mc__detail.is-active { display: block; }
.mc__kicker {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.mc__kicker-dur { color: rgba(250, 250, 248, 0.4); letter-spacing: 0.18em; }
.mc__kicker-dur::before { content: "— "; }
.mc__title {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
}
.mc__desc {
  margin-top: 1.1rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.68;
  color: rgba(250, 250, 248, 0.68);
}
.mc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(250, 250, 248, 0.35);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.mc__link:hover { border-color: var(--gold); color: var(--gold); }

/* ---- prev / next ---- */

.mc__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(250, 250, 248, 0.14);
}
.mc__navbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid rgba(250, 250, 248, 0.25);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.3rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
.mc__navbtn:hover:not(:disabled) { border-color: var(--gold); background: rgba(250, 250, 248, 0.06); }
.mc__navbtn:disabled { opacity: 0.28; cursor: default; }
.mc__counter {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(250, 250, 248, 0.45);
  font-variant-numeric: tabular-nums;
}

/* ---- sidebar: course content ---- */

.mc__list {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.2rem, 2vw, 1.8rem);
}
.mc__listhead { margin-bottom: 1.2rem; }
.mc__items { list-style: none; display: flex; flex-direction: column; }
.mc__item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.95rem 0.9rem 0.95rem 0.8rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250, 250, 248, 0.1);
  border-left: 2px solid transparent;
  color: inherit;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.mc__items li:first-child .mc__item { border-top: 1px solid rgba(250, 250, 248, 0.1); }
.mc__item:hover { background: rgba(250, 250, 248, 0.05); }
.mc__item.is-active {
  background: rgba(250, 250, 248, 0.08);
  border-left-color: var(--white);
}
/* Chapter thumbnail — Vimeo's frame at list size. */
.mc__itemthumb {
  flex: 0 0 auto;
  width: 84px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(250, 250, 248, 0.12);
}
.mc__itemthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
  transition: opacity 0.22s ease;
}
.mc__item:hover .mc__itemthumb img,
.mc__item.is-active .mc__itemthumb img { opacity: 1; }
.mc__itemnum {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(250, 250, 248, 0.35);
  margin-right: 0.35rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.22s ease;
}
.mc__item.is-active .mc__itemnum { color: var(--gold); }
.mc__itembody { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.mc__itemtitle {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(250, 250, 248, 0.62);
  transition: color 0.22s ease;
}
.mc__item:hover .mc__itemtitle,
.mc__item.is-active .mc__itemtitle { color: var(--white); }
.mc__itemdur {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(250, 250, 248, 0.35);
  font-variant-numeric: tabular-nums;
}
.mc__total {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(250, 250, 248, 0.14);
}
.mc__total-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.4);
}
.mc__total-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.mc__total-note { font-size: 0.78rem; color: rgba(250, 250, 248, 0.4); }

/* ---- responsive ---- */

@media (max-width: 1040px) {
  /* Stack: player first, course list underneath. The sticky column only
     makes sense while it sits beside the video. */
  .mc__inner { grid-template-columns: minmax(0, 1fr); }
  .mc__list {
    position: static;
    margin-top: clamp(2.5rem, 6vw, 4rem);
  }
  .mc__itemtitle { font-size: 0.95rem; }
}

@media (max-width: 820px) {
  .mc-hero { min-height: 0; padding: 20vh 0 12vh; }
  .mc { padding: 9vh 0 12vh; }
  .mc__nav { flex-wrap: wrap; }
  .mc__navbtn { flex: 1 1 auto; justify-content: center; }
  .mc__counter { order: -1; width: 100%; text-align: center; padding-bottom: 0.6rem; }
  .mc-hero__meta { font-size: 0.68rem; letter-spacing: 0.18em; }

  /* A 16:9 stage is only ~190px tall here — lift the play button off centre
     so it can't collide with the chapter title sitting at the bottom. */
  .mc__play { top: 42%; width: 58px; height: 58px; }
  .mc__play svg { width: 22px; height: 22px; }
  .mc__platefoot { max-width: 16ch; }
}

/* ---------- Apply: secondary call link (masterclass only) ---------- */

.apply__alt {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(250, 250, 248, 0.5);
}
.apply__alt a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 250, 248, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.25s ease;
}
.apply__alt a:hover { border-color: var(--gold); }

/* The shared .apply rule reserves a full viewport for the home page's
   admission moment; here it's a closing section, so it can breathe less. */
.apply { min-height: 0; padding: 16vh 0; }

/* ---- community invite that closes the results section ---- */
.proof__join {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(168, 118, 22, 0.4);
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.proof__join:hover { border-color: var(--gold-dark); }
