/* Professor Mia prelander. Tokens locked from Format (canvas, type, radius)
   with MasterClass action role mapped to the official Slitz mask pink. */

:root {
  --canvas: #0e0202;
  --panel: #1a1a1a;
  --footer: #1e1e1e;
  --hairline: #261b1b;
  --control: #2a2a2a;
  --glass: #3e3535;
  --muted: #787878;
  --support: #c4b4b4;
  --white: #ffffff;
  --cta: #ff3d6e;
  --cta-ink: #ffffff;
  --ink: #0a0711;
  --serif: "Source Serif 4", "Times New Roman", Times, serif;
  --sans: "Source Sans 3", Arial, sans-serif;
  --radius: 6px;
  --header-h: 56px;
  --measure: 38rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2 {
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
}

.skip:focus {
  top: 12px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  background: rgba(14, 2, 2, 0.88);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  height: 22px;
  width: auto;
}

.legal-flags {
  display: flex;
  gap: 1rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 400;
  color: #a89898;
}

/* Stage */
.stage {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(1.5rem, 5vh, 3.5rem) var(--pad) 3rem;
  overflow: hidden;
}

.stage-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.stage-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 18%;
  filter: saturate(0.92) contrast(1.05);
}

.stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--canvas) 0%, rgba(14, 2, 2, 0.88) 36%, rgba(14, 2, 2, 0.35) 62%, rgba(14, 2, 2, 0.55) 100%),
    linear-gradient(180deg, rgba(14, 2, 2, 0.35) 0%, rgba(14, 2, 2, 0.1) 40%, var(--canvas) 100%);
}

.stage-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100svh - var(--header-h) - 5rem);
}

.stage-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.88;
  letter-spacing: -0.012em;
  max-width: 12ch;
}

.lead {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--support);
}

/* Faculty plaque */
.plaque {
  max-width: 22rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(26, 26, 26, 0.72);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.plaque-name {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.plaque-line {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--muted);
}

.bolt {
  margin: 0 0 1rem;
}

.bolt-plate {
  display: block;
  height: 28px;
  padding: 5px;
  background: #2a2222;
  border: 1px solid #3d3232;
  border-radius: 3px;
}

.bolt-slot {
  display: block;
  position: relative;
  height: 100%;
  background: #140c0c;
  border-radius: 2px;
  overflow: hidden;
}

.bolt-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: 46%;
  background: linear-gradient(180deg, #c4b4a4, #8a7a6c);
  border-radius: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.plaque.is-open .plaque-line {
  color: var(--support);
}

/* Buttons */
.btn-film,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-film {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
}

.plaque .btn-film {
  width: 100%;
}

.btn-film:hover,
.btn-film:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.btn-film:focus-visible,
.btn-cta:focus-visible,
.episode:focus-visible,
.player-cover:focus-visible,
.brand:focus-visible,
.gate-leave:focus-visible,
.foot a:focus-visible,
.cookie-notice a:focus-visible,
.legal-back a:focus-visible,
.legal-main a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.btn-cta {
  background: var(--cta);
  color: var(--cta-ink);
  border: 1px solid var(--cta);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: #ff527d;
  border-color: #ff527d;
}

/* Phone */
.phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.phone {
  width: min(360px, 100%);
  transform-origin: center bottom;
}

.phone-bezel {
  width: 100%;
  aspect-ratio: 360 / 640;
  padding: 10px;
  background: #160c0e;
  border: 1px solid #3a2a2c;
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem 1.5rem;
  color: var(--white);
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 2, 2, 0.05) 40%, rgba(14, 2, 2, 0.82) 100%);
}

.cover-play,
.cover-label {
  position: relative;
  z-index: 1;
}

.cover-play {
  color: var(--white);
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.cover-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.phone-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.phone-screen iframe[hidden] {
  display: none;
}

.fallback {
  margin: 0;
  max-width: 360px;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}

.fallback a {
  color: var(--support);
  text-underline-offset: 0.15em;
}

.phone-col .btn-cta {
  width: min(360px, 100%);
}

/* Episodes */
.episodes {
  padding: 3.5rem var(--pad) 3rem;
  background: var(--panel);
  border-top: 1px solid var(--hairline);
}

.episodes h2,
.how h2 {
  margin: 0 0 1.5rem;
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
}

.episode-list li + li {
  border-top: 1px solid var(--hairline);
}

.episode {
  display: grid;
  grid-template-columns: 8px 1.5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  padding: 0.95rem 0;
  text-align: left;
}

.ep-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a4141;
}

.episode.is-open .ep-dot {
  background: var(--white);
}

.episode.is-current .ep-dot {
  background: var(--cta);
}

.ep-num {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.episode.is-open .ep-num,
.episode.is-current .ep-num {
  color: var(--white);
}

.ep-copy {
  font-size: 1.03125rem;
  line-height: 1.35;
  color: var(--support);
}

.episode.is-locked .ep-copy {
  color: var(--muted);
}

.episode-note {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--support);
}

.episode-note a {
  color: var(--white);
}

/* How */
.how {
  padding: 3.75rem var(--pad) 4.25rem;
  background: var(--canvas);
}

.how-body {
  margin: 0 0 2rem;
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #d8c8c8;
  text-wrap: pretty;
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 8rem));
  gap: 1.5rem 2rem;
  margin: 0 0 1rem;
  max-width: 36rem;
}

.price-amt {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-term {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--muted);
}

.how-note {
  margin: 0 0 1.75rem;
  max-width: var(--measure);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Footer */
.foot {
  padding: 1.25rem var(--pad) 1.75rem;
  background: var(--footer);
  border-top: 1px solid var(--hairline);
}

.foot p {
  margin: 0;
  max-width: 48rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.foot-confirm {
  margin-top: 0.75rem;
}

.legal-nav {
  margin: 0.65rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.foot-confirm a,
.legal-nav a,
.gate-confirm a,
.cookie-notice a,
.legal-back a,
.legal-main a {
  color: var(--support);
  text-underline-offset: 0.15em;
}

/* Desktop split */
@media (min-width: 960px) {
  .stage-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 4.5rem;
    align-items: center;
  }

  .stage-copy h1 {
    font-size: 4.5rem;
  }

  .episodes,
  .how {
    padding-left: max(var(--pad), calc((100% - 1180px) / 2 + var(--pad)));
    padding-right: max(var(--pad), calc((100% - 1180px) / 2 + var(--pad)));
  }
}

@media (max-width: 959px) {
  .stage-bg::after {
    background:
      linear-gradient(180deg, rgba(14, 2, 2, 0.55) 0%, rgba(14, 2, 2, 0.28) 28%, rgba(14, 2, 2, 0.72) 100%);
  }

  .stage-grid {
    min-height: 0;
    align-items: start;
  }

  .stage-copy h1 {
    max-width: 10ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-film,
  .btn-cta {
    transition: none;
  }
}

.embed-fail {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0 1.1rem 1.4rem;
  color: var(--white);
}

.embed-fail[hidden] {
  display: none;
}

.embed-fail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.embed-fail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 2, 2, 0.1) 35%, rgba(14, 2, 2, 0.88) 100%);
}

.embed-fail p,
.embed-fail .btn-cta {
  position: relative;
  z-index: 1;
}

.embed-fail p {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: center;
}

.embed-fail .btn-cta {
  width: 100%;
}

/* Short desktop windows: keep the CTA in the first screen */
@media (min-width: 960px) and (max-height: 900px) {
  .stage {
    padding-top: 1.1rem;
    padding-bottom: 1.2rem;
  }

  .stage-grid {
    min-height: 0;
    gap: 2rem;
  }

  .stage-copy h1 {
    font-size: clamp(2.7rem, 5.4vw, 3.9rem);
  }

  .lead {
    margin-bottom: 1.2rem;
  }

  .phone {
    width: min(360px, calc((100svh - var(--header-h) - 10.25rem) * 360 / 640));
  }
}

/* Mobile first-screen rhythm and a persistent offer bar */
@media (max-width: 959px) {
  .stage {
    padding-top: 1.1rem;
    padding-bottom: 5.75rem;
  }

  .stage-copy h1 {
    font-size: clamp(2.15rem, 11vw, 2.55rem);
    max-width: 14ch;
  }

  .lead {
    margin-bottom: 1rem;
    font-size: 0.98rem;
  }

  .plaque {
    padding: 0.9rem 1rem 1rem;
  }

  .plaque-name {
    font-size: 1.3rem;
  }

  .plaque-line,
  .bolt {
    margin-bottom: 0.75rem;
  }

  .player-cover {
    justify-content: center;
    padding-bottom: 4.25rem;
  }

  .phone-col {
    gap: 0.7rem;
  }

  .phone-col > .btn-cta {
    display: none;
  }

  .mobile-dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    padding: 0.7rem var(--pad) calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(14, 2, 2, 0.94);
    border-top: 1px solid var(--hairline);
    backdrop-filter: blur(12px);
  }

  .mobile-dock .btn-cta {
    width: 100%;
  }

  .episodes,
  .how,
  .foot {
    padding-bottom: 1.75rem;
  }

  .foot {
    padding-bottom: 6rem;
  }
}

@media (min-width: 960px) {
  .mobile-dock {
    display: none;
  }
}


/* Age gate, cookie notice, and legal page. Same tokens as the office. */
body.is-gated {
  overflow: hidden;
  height: 100%;
}

body.is-gated #site {
  visibility: hidden;
  pointer-events: none;
}

html.age-ok body.is-gated {
  overflow: auto;
  height: auto;
}

html.age-ok body.is-gated #site {
  visibility: visible;
  pointer-events: auto;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--white);
  padding: 0 var(--pad) calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.age-gate[hidden],
html.age-ok .age-gate {
  display: none;
}

.gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: var(--header-h);
}

.gate-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 28rem;
  padding: 1rem 0 2rem;
}

.gate-main h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 5.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  max-width: 14ch;
  text-wrap: balance;
}

.gate-support {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--support);
}

.gate-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.gate-actions .btn-film {
  width: auto;
  min-width: 12.5rem;
}

.gate-leave {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-underline-offset: 0.18em;
}

.gate-confirm {
  flex-shrink: 0;
  margin: 0;
  max-width: 36rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem var(--pad);
  background: rgba(14, 2, 2, 0.94);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  flex: 1;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.cookie-notice .btn-film {
  flex: 0 0 auto;
  min-width: 4.5rem;
  padding: 0 1rem;
}

@media (min-width: 960px) {
  body.has-cookie-notice .foot {
    padding-bottom: 5.5rem;
  }

  body.has-cookie-notice .stage {
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 960px) and (max-height: 900px) {
  body.has-cookie-notice .phone {
    width: min(360px, calc((100svh - var(--header-h) - 10.25rem - 4.5rem) * 360 / 640));
  }
}

@media (max-width: 959px) {
  .gate-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 22rem;
  }

  .gate-actions .btn-film {
    width: 100%;
    min-width: 0;
  }

  .gate-leave {
    text-align: center;
  }

  .cookie-notice {
    /* 1px accounts for the dock's top border so the bars do not overlap. */
    bottom: calc(0.7rem + 44px + 0.7rem + 1px + env(safe-area-inset-bottom, 0px));
  }

  body.has-cookie-notice .foot {
    padding-bottom: calc(6rem + 5rem);
  }
}

.legal-main {
  padding: 2.25rem var(--pad) 1.75rem;
  max-width: var(--measure);
}

.legal-main h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
}

.legal-main p {
  margin: 0 0 1rem;
  font-size: 1.03125rem;
  line-height: 1.5;
  color: #d8c8c8;
}

.legal-back {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

body.legal .legal-main {
  padding-bottom: 0.75rem;
}

body.legal .foot {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (max-width: 959px) {
  body.legal .foot {
    padding-bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate,
  .cookie-notice {
    transition: none;
  }
}
