@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
:root { --film-paper: #fff4e4; --film-ease: cubic-bezier(.16,1,.3,1); }
body { background-color: #130f18; }
.preview-bar { background: #24113c; border: 0; padding-block: 4px; font-size: .65rem; }
.preview-bar span { color: #f5d6fa; }
.nav.wrap {
  position: absolute; z-index: 4; left: 50%; transform: translateX(-50%);
  margin: 16px 0 0; max-width: 1080px; padding: 9px 14px 9px 20px;
  border: 1px solid #fff5; border-radius: 99px; background: #261344cf;
  backdrop-filter: blur(16px);
}
.nav .brands img { width: 34px; height: 34px; }
.nav-cta,.button,.text-link { border-radius: 99px; }
.nav-cta { display: inline-flex; background: var(--film-paper); color: #2b1246; }
.nav nav .nav-cta:hover { color: #441d61; background: #ffccdf; }
.cinema {
  isolation: isolate; position: relative; overflow: clip;
  color: var(--film-paper); background: linear-gradient(112deg,#8a275e 0%,#6d2866 33%,#32396f 56%,#226e9b 82%,#011826 110%);
  min-height: max(720px,calc(100svh - 24px)); display: flex; flex-direction: column; justify-content: end;
}
.film-space { position: absolute; inset: 0; overflow: hidden; z-index: -2; perspective: 740px; perspective-origin: 67% 47%; }
.film-rail { position: absolute; inset: 0; transform-style: preserve-3d; }
.film-frame {
  position: absolute; top: 47%; left: 67%; width: clamp(176px,21vw,310px); aspect-ratio: 1.55;
  background: #f1d7bc; padding: 5px 5px 16px; backface-visibility: hidden;
  transform-origin: center; will-change: transform; pointer-events: none;
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cinema::after {
  content: ""; position: absolute; z-index: -3; inset: -10% -18%; pointer-events: none;
  background: radial-gradient(ellipse at 26% 31%,#f4479ca6,transparent 42%),
              radial-gradient(ellipse at 77% 27%,#3199ceeb,transparent 49%);
}
@keyframes brand-drift {
  from { transform: translate3d(-5%,2%,0) scale(1.02); }
  to { transform: translate3d(6%,-3%,0) scale(1.10); }
}
@media (prefers-reduced-motion:no-preference) {
  .cinema::after { animation: brand-drift 8s ease-in-out infinite alternate paused; }
  .cinema.playing::after { animation-play-state: running; }
}
.film-frame::after {
  content: ""; position: absolute; bottom: 5px; left: 6px; right: 6px; height: 6px;
  background: repeating-linear-gradient(90deg,#43284e 0 14px,transparent 14px 19px);
}
.cinema::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,#270d2880,transparent 67%),linear-gradient(0deg,#101526ee 0%,#18213755 19%,transparent 52%);
}
.cinema-inner { padding: clamp(114px,17vh,195px) 0 clamp(30px,5.5vh,70px); }
.cinema .eyebrow { color: #ffe1ee; font-size: .72rem; margin-bottom: 1.4rem; }
.cinema h1 { font: 900 clamp(5rem,9.7vw,10rem)/.90 Montserrat,Arial,sans-serif; letter-spacing: -.077em; }
.title-mask { display: block; overflow: clip; padding: 0 .08em .09em 0; margin-bottom: -.09em; }
.title-mask > span { display: block; }
.cinema-footer { margin-top: clamp(26px,5vh,55px); display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.cinema .hero-lede { color: #fff1ee; max-width: 480px; line-height: 1.48; font-size: clamp(1rem,1.3vw,1.22rem); }
.cinema .hero-actions { margin: 0; gap: 10px; }
.cinema .primary { background: #ff98be; color: #260d35; }
.cinema .text-link { padding: 13px 20px; border: 1px solid #fff7; color: var(--film-paper); }
.cinema .hero-actions a { transition: transform .45s cubic-bezier(.34,1.56,.64,1),background .3s; }
.cinema .hero-actions a:hover { transform: translateY(-4px) scale(1.035); }
.motion-toggle { position: absolute; top: 99px; right: max(5vw,calc((100vw - 1240px)/2)); width: 40px; height: 40px; border-radius: 99px; border: 1px solid #fff8; background: #301646; color: #fff1df; font-size: 14px; z-index: 2; }
.motion-toggle[hidden] { display: none; }
.facts { background: var(--film-paper); color: #371744; border: 0; }
.fact-grid { padding-block: clamp(25px,4.6vw,62px); }
.fact-grid p { border-color: #bfa4b9; }
.fact-grid span { color: #685268; }
.section h2,.closing h2 { font-weight: 900; font-family: Montserrat,Arial,sans-serif; letter-spacing: -.07em; line-height: .99; }
@keyframes title-cut { from { transform: translateY(108%) rotate(2deg); } to { transform: none; } }
@keyframes iris-in { from { clip-path: inset(0 0 100% 0); transform: translateY(34px); } to { clip-path: inset(0); transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion:no-preference) {
  .cinema .title-mask > span { animation: title-cut 1.2s var(--film-ease) both; }
  .title-mask:nth-child(2) > span { animation-delay: .10s; }
  .title-mask:nth-child(3) > span { animation-delay: .20s; }
  .reveal-title { animation: iris-in .95s cubic-bezier(.76,0,.24,1) both; }
  .reveal-card { animation: card-in .78s var(--film-ease) var(--stagger,0ms) both; }
  .lesson-panel.panel-enter { animation: iris-in .48s var(--film-ease); }
}
@media(max-width:840px) {
  .cinema-footer { flex-direction: column; align-items: start; gap: 20px; }
  .cinema .hero-actions { justify-content: start; }
}
@media(max-width:560px) {
  .nav.wrap { margin-top: 10px; padding: 7px 9px; width: calc(100% - 24px); }
  .nav .brands { gap: 5px; } .nav .brands img { width: 29px; height: 29px; }
  .nav nav { display: flex; } .nav nav a:not(.nav-cta) { display: none; }
  .nav-cta { font-size: .67rem; padding: 7px 10px; }
  .cinema { min-height: max(690px,calc(100svh - 22px)); }
  .film-space { perspective: 580px; perspective-origin: 64% 29%; }
  .film-frame { top: 29%; left: 64%; width: 165px; }
  .cinema-inner { padding-top: 185px; padding-bottom: 30px; }
  .cinema h1 { font-size: clamp(3.9rem,14.7vw,5.6rem); }
  .cinema .hero-actions { display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap; align-items: center; }
  .cinema .hero-actions a { width: auto; margin: 0; font-size: .81rem; min-height: 44px; padding: 11px 14px; }
  .cinema .hero-lede { text-align: left; }
  .motion-toggle { top: 67px; right: 14px; }
  .cinema::before { background: linear-gradient(0deg,#0a1828f5 0%,#231931c9 32%,#34185033 63%,transparent 85%); }
}

.nav .brands .lumine-logo, .teacher-brand img.lumine-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 43px;
  border-radius: 0;
  object-fit: contain;
}
.teacher-brand img.lumine-logo { height: 74px; }
@media (max-width: 560px) {
  .nav .brands .lumine-logo { height: 33px; }
  .teacher-brand img.lumine-logo { height: 60px; }
}
