@font-face {
  font-family: "Cobe";
  src: url("assets/fonts/Cobe/Cobe Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cobe";
  src: url("assets/fonts/Cobe/Cobe Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cobe";
  src: url("assets/fonts/Cobe/Cobe Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cobe";
  src: url("assets/fonts/Cobe/Cobe Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070509;
  --bg-deep: #030204;
  --text: #fff7ec;
  --muted: #c6b7bd;
  --muted-strong: #ead9dc;
  --gold: #f7c85f;
  --gold-deep: #b97623;
  --rose: #ff1bbb;
  --rose-deep: #6f0c4a;
  --plum: #190716;
  --panel: rgba(20, 11, 18, 0.82);
  --panel-solid: #120912;
  --line: rgba(255, 247, 236, 0.16);
  --line-strong: rgba(247, 200, 95, 0.42);
  --curve: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 24% 4%, rgba(255, 27, 187, 0.3), transparent 34rem),
    radial-gradient(circle at 88% 28%, rgba(247, 200, 95, 0.15), transparent 26rem),
    linear-gradient(180deg, #10050e 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Cobe", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--gold);
  color: #120912;
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 400ms var(--curve);
}

.skip-link:focus {
  transform: translateY(0);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

.ambient {
  display: none;
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(12px);
  opacity: 0.72;
}

.ambient--one {
  width: 46vw;
  height: 46vw;
  left: -18vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(255, 27, 187, 0.26), transparent 68%);
}

.ambient--two {
  width: 34vw;
  height: 34vw;
  right: -12vw;
  top: 46vh;
  background: radial-gradient(circle, rgba(247, 200, 95, 0.16), transparent 70%);
}

.site-header,
.page {
  position: relative;
  z-index: 2;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px auto 0;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(255, 247, 236, 0.14);
  border-radius: 999px;
  background: rgba(8, 5, 10, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.brand {
  display: grid;
  gap: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand strong {
  color: var(--text);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.045em;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 247, 236, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 500ms var(--curve),
    border-color 500ms var(--curve),
    background 500ms var(--curve);
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(247, 200, 95, 0.08);
  outline: none;
}

.age-seal {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 236, 0.18);
  border-radius: 999px;
  background: rgba(5, 3, 6, 0.74);
}

.age-seal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.age-seal__fallback {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #d92635;
  color: #fff;
  font-weight: 900;
}

.age-seal.is-fallback {
  display: none;
}

.age-seal.is-fallback img {
  display: none;
}

.page {
  width: min(1180px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}

.hero {
  min-height: auto;
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: clamp(18px, 2.8vw, 34px);
  padding: clamp(26px, 4vw, 54px) 0 clamp(68px, 8vw, 112px);
}

.hero::before {
  content: none;
  position: absolute;
  inset: clamp(32px, 5vw, 68px) -8vw auto;
  z-index: -2;
  height: min(58vw, 720px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 4, 12, 0.08), rgba(12, 4, 12, 0.82)),
    url("assets/banner-principal.png") center / cover no-repeat;
  filter: blur(42px) saturate(1.12);
  opacity: 0.38;
  transform: scale(1.08);
  mask-image: radial-gradient(ellipse at center, black 42%, rgba(0, 0, 0, 0.72) 62%, transparent 84%);
}

.hero::after {
  content: none;
  position: absolute;
  inset: 8% -10vw 30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 42%, rgba(255, 27, 187, 0.34), transparent 30rem),
    radial-gradient(circle at 82% 58%, rgba(247, 200, 95, 0.12), transparent 28rem),
    linear-gradient(180deg, transparent 0%, rgba(8, 3, 8, 0.78) 100%);
}

.hero__poster {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: clamp(18px, 2.5vw, 34px);
  background: transparent;
  box-shadow: none;
}

.hero__poster::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 62%, rgba(255, 27, 187, 0.24), transparent 30rem),
    linear-gradient(90deg, rgba(12, 4, 12, 0.4), transparent 10%, transparent 88%, rgba(12, 4, 12, 0.72)),
    linear-gradient(180deg, rgba(12, 4, 12, 0.16), transparent 42%, rgba(12, 4, 12, 0.28));
  mix-blend-mode: screen;
  opacity: 0.62;
}

.hero__poster::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10%;
  z-index: 2;
  height: 46%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(18, 4, 16, 0.3) 48%, rgba(12, 4, 12, 0.98) 100%);
}

.hero__poster img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: inherit;
  filter:
    drop-shadow(0 42px 80px rgba(0, 0, 0, 0.28))
    drop-shadow(0 24px 80px rgba(255, 27, 187, 0.12));
}

.hero__copy {
  max-width: 980px;
  display: grid;
  gap: 18px;
  padding-top: 4px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.support-section h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 1040px;
  font-size: clamp(3rem, 6.6vw, 6.5rem);
}

.hero__copy p:not(.eyebrow),
.section-heading p,
.lesson__body p,
.support-section p,
.legal p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.button-row,
.lesson__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  --button-bg: rgba(255, 255, 255, 0.05);
  --button-fg: var(--text);
  --button-border: rgba(255, 247, 236, 0.16);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  padding: 6px 7px 6px 18px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 520ms var(--curve),
    border-color 520ms var(--curve),
    background 520ms var(--curve);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button--primary {
  --button-bg: linear-gradient(135deg, #ffeaa8 0%, var(--gold) 40%, #bd721e 100%);
  --button-fg: #12070c;
  --button-border: rgba(255, 234, 168, 0.58);
}

.button--ghost,
.button--outline {
  --button-bg: rgba(255, 255, 255, 0.045);
  --button-fg: var(--muted-strong);
}

.button--outline {
  --button-border: rgba(255, 27, 187, 0.34);
}

.button__mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(18, 7, 12, 0.18);
  transition: transform 520ms var(--curve);
}

.button__mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}

.button:hover .button__mark,
.button:focus-visible .button__mark {
  transform: translateX(3px);
}

.course {
  padding: clamp(86px, 13vw, 170px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(26px, 5vw, 54px);
}

.section-heading h2,
.support-section h2 {
  max-width: 780px;
  font-size: clamp(2.5rem, 6.1vw, 6rem);
}

.lesson-stack {
  display: grid;
  gap: clamp(30px, 5vw, 74px);
  min-width: 0;
  perspective: 1800px;
}

.lesson {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  padding: clamp(16px, 2.3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 247, 236, 0.12);
  border-radius: clamp(24px, 3vw, 42px);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 27, 187, 0.24), transparent 30rem),
    radial-gradient(circle at 90% 110%, rgba(247, 200, 95, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(12, 5, 13, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 42px 100px rgba(0, 0, 0, 0.42),
    0 18px 80px rgba(255, 27, 187, 0.08);
  transform-style: flat;
}

.lesson:nth-child(even) {
  grid-template-columns: minmax(0, 0.56fr) minmax(260px, 0.44fr);
}

.lesson:nth-child(even) .lesson__media {
  order: 2;
}

.lesson--landscape {
  grid-template-columns: minmax(0, 0.62fr) minmax(260px, 0.38fr);
}

.lesson::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(247, 200, 95, 0.18), transparent 28%, rgba(255, 27, 187, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
  opacity: 0.76;
}

.lesson::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -20px;
  height: 34px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 27, 187, 0.22), transparent 72%);
  filter: blur(10px);
}

.lesson__media,
.lesson__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.lesson__media {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --tz: 0px;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 236, 0.22);
  border-radius: clamp(18px, 2vw, 30px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(255, 27, 187, 0.16), transparent 48%),
    #090509;
  padding: clamp(8px, 1vw, 12px);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 8px rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 28px 62px rgba(0, 0, 0, 0.36);
  transform:
    perspective(1400px)
    rotateX(var(--rx))
    rotateY(var(--ry))
    translateY(var(--lift))
    translateZ(var(--tz));
  transform-style: flat;
  transition:
    transform 900ms var(--curve),
    border-color 700ms var(--curve),
    box-shadow 700ms var(--curve);
}

.lesson:nth-child(even) .lesson__media {
  --ry: 0deg;
}

.lesson__media::before {
  content: "";
  position: absolute;
  inset: clamp(7px, 0.8vw, 11px);
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 247, 236, 0.13);
  border-radius: clamp(12px, 1.5vw, 22px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%, rgba(0, 0, 0, 0.18));
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -18px 42px rgba(0, 0, 0, 0.18);
}

.lesson__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 247, 236, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, rgba(0, 0, 0, 0.16)),
    linear-gradient(90deg, rgba(247, 200, 95, 0.08), transparent 24%, transparent 76%, rgba(255, 27, 187, 0.08));
  mix-blend-mode: screen;
  opacity: 0.58;
  transition: opacity 520ms var(--curve);
}

.lesson__media:hover,
.lesson__media:focus-visible {
  --lift: -6px;
  --tz: 0px;
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 8px rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 34px 74px rgba(0, 0, 0, 0.46);
  outline: none;
}

.lesson:nth-child(even) .lesson__media:hover,
.lesson:nth-child(even) .lesson__media:focus-visible {
  --lift: -6px;
  --tz: 0px;
}

.lesson__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: clamp(14px, 1.6vw, 24px);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 900ms var(--curve);
}

.watched-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(247, 200, 95, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(247, 200, 95, 0.9), rgba(189, 114, 30, 0.88));
  color: #12070c;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(-8px) scale(0.94);
  transition:
    opacity 520ms var(--curve),
    transform 520ms var(--curve);
}

.lesson.is-watched .watched-ribbon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lesson.is-watched .lesson__media {
  border-color: rgba(247, 200, 95, 0.5);
}

.lesson.is-watched .lesson__media img {
  filter: grayscale(1) saturate(0.18) brightness(0.72) contrast(1.06);
}

.lesson--portrait .lesson__media {
  aspect-ratio: 9 / 16;
  width: min(100%, 420px);
  max-height: none;
  justify-self: center;
}

.lesson--landscape .lesson__media {
  aspect-ratio: 16 / 9;
  width: 100%;
  justify-self: stretch;
}

.lesson__media:hover img,
.lesson__media:focus-visible img {
  transform: scale(1.018);
}

.play-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 247, 236, 0.2);
  border-radius: 999px;
  background: rgba(7, 4, 8, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  z-index: 3;
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--gold);
}

.lesson__body {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: clamp(8px, 2vw, 20px);
  min-width: 0;
}

.lesson__number {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(247, 200, 95, 0.34);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(247, 200, 95, 0.06);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lesson__body h3 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.1rem, 4.2vw, 5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.support-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 clamp(72px, 10vw, 132px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 247, 236, 0.14);
  border-radius: clamp(18px, 2vw, 30px);
  background:
    radial-gradient(circle at 82% 16%, rgba(247, 200, 95, 0.16), transparent 22rem),
    radial-gradient(circle at 10% 90%, rgba(255, 27, 187, 0.18), transparent 24rem),
    rgba(12, 6, 12, 0.78);
}

.support-section > div {
  display: grid;
  gap: 16px;
}

.legal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 32px 0 112px;
  border-top: 1px solid rgba(255, 247, 236, 0.14);
}

.legal__copy {
  display: grid;
  grid-template-columns: 0.36fr minmax(0, 1fr);
  gap: 22px;
}

.legal strong {
  color: var(--text);
  font-size: 1.08rem;
}

.footer-seal {
  position: relative;
  width: min(380px, 34vw);
  height: auto;
  display: none;
  place-items: center;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-seal.has-image {
  display: grid;
}

.footer-seal img {
  position: static;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0;
  opacity: 0.82;
}

.floating-support {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(247, 200, 95, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 27, 187, 0.2), rgba(247, 200, 95, 0.16)),
    rgba(11, 6, 11, 0.82);
  color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 520ms var(--curve);
}

.floating-support:hover,
.floating-support:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 4, 0.82);
  backdrop-filter: blur(12px);
}

.modal__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: min(900px, 94dvh);
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 236, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 27, 187, 0.12), transparent 20rem),
    #0b060b;
  padding: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58);
}

.modal__panel.is-wide {
  width: min(1040px, 100%);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 6px 0;
}

.modal__header h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1;
}

.modal__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 247, 236, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
}

.modal__player {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #060306;
}

.modal__player wistia-player {
  width: 100%;
  max-height: 76dvh;
}

.modal__player--poster {
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 27, 187, 0.16), transparent 22rem),
    #060306;
}

.modal__poster {
  position: relative;
  width: 100%;
  max-height: 76dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #080408;
  aspect-ratio: var(--video-aspect, 0.5625);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.modal__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, transparent 0 38%, rgba(5, 2, 5, 0.22) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%, rgba(3, 2, 4, 0.46));
}

.modal__poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal__poster-action {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(255, 247, 236, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 234, 168, 0.96), rgba(210, 132, 32, 0.94));
  color: #12070c;
  padding: 0 18px 0 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 520ms var(--curve);
}

.modal__poster-action::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.modal__poster:hover .modal__poster-action,
.modal__poster:focus-visible .modal__poster-action {
  transform: scale(1.04);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 900ms var(--curve),
    transform 900ms var(--curve);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lesson.reveal,
.support-section.reveal,
.legal.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-header,
  .page {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero__poster img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .section-heading,
  .lesson,
  .lesson:nth-child(even),
  .lesson--landscape,
  .legal,
  .legal__copy {
    grid-template-columns: 1fr;
  }

  .lesson:nth-child(even) .lesson__media {
    order: 0;
  }

  .lesson--portrait .lesson__media {
    max-height: none;
    width: min(100%, 460px);
    justify-self: center;
  }

  .support-section {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .ambient {
    display: none;
  }

  .site-header {
    align-items: stretch;
    border-radius: 22px;
    padding: 12px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    min-height: auto;
    overflow: hidden;
    padding-top: 28px;
    padding-bottom: 58px;
  }

  .hero::before {
    inset: 26px 0 auto;
  }

  .hero::after {
    inset: 8% 0 30%;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10.2vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
  }

  .hero__copy,
  .hero__copy p:not(.eyebrow) {
    max-width: 100%;
  }

  .button-row,
  .lesson__actions,
  .button {
    width: 100%;
  }

  .button-row .button--ghost {
    display: none;
  }

  .button {
    justify-content: space-between;
    max-width: 100%;
  }

  .course {
    padding-top: 62px;
  }

  .lesson {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border-radius: 20px;
  }

  .lesson__media,
  .lesson:nth-child(even) .lesson__media {
    transform: none;
  }

  .lesson__media::before {
    inset: 7px;
    transform: none;
  }

  .lesson--portrait .lesson__media {
    width: min(100%, 320px);
  }

  .lesson__media:hover,
  .lesson__media:focus-visible,
  .lesson:nth-child(even) .lesson__media:hover,
  .lesson:nth-child(even) .lesson__media:focus-visible {
    transform: translateY(-4px);
  }

  .lesson__body {
    padding: 4px 2px 8px;
  }

  .lesson__body h3 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 0.98;
    overflow-wrap: break-word;
  }

  .floating-support {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .legal {
    gap: 28px;
    padding-bottom: 96px;
  }

  .footer-seal {
    width: min(100%, 300px);
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
