/* The poster and the film use the same frame. The underlying page remains
   useful while the video loads or when reduced motion is requested. */
.cinema-story {
  --cinema-gutter: clamp(24px, 6.5vw, 132px);
  --cinema-rail-y: max(22px, env(safe-area-inset-bottom));
  --cinema-accent: #e6d5fa;
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #15111c;
}
.cinema-sticky {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
}
@supports (overflow: clip) {
  body:not(.menu-open):not(.dialog-open) { overflow-x: clip; }
}
.cinema-story[data-enhanced="true"] {
  height: 330vh;
  height: 330svh;
}
.cinema-story[data-enhanced="true"] .cinema-sticky {
  position: sticky;
  top: 0;
  min-height: 0;
}
.cinema-screen, .cinema-screen picture, .cinema-screen img, .cinema-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cinema-screen img, .cinema-screen video {
  display: block;
  object-fit: cover;
  object-position: 65% center;
}
.cinema-screen video { opacity: 0; pointer-events: none; }
.cinema-story[data-film-ready="true"] .cinema-screen video { opacity: 1; }
.cinema-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 66% 78% at 0% 80%, #0c0a13e0 0, #0c0a1399 34%, #0c0a1324 66%, transparent 85%),
              linear-gradient(0deg, #0b0912c2 0, #0b091230 12%, transparent 27%);
}
.cinema-overlay {
  position: absolute;
  inset: 0;
  width: min(100%, 2020px);
  margin-inline: auto;
  pointer-events: none;
}
/* Text stays on the left of the film composition in both languages.
   The copy itself keeps the document's reading direction. */
.cinema-captions {
  position: absolute;
  left: var(--cinema-gutter);
  width: min(43%, 700px);
  bottom: clamp(100px, 18svh, 232px);
  display: grid;
  align-items: end;
  text-align: start;
}
.cinema-panel {
  grid-area: 1 / 1;
  width: fit-content;
  max-width: 100%;
  justify-self: left;
  opacity: var(--panel-alpha, 1);
  transform: translateY(var(--panel-y, 0px));
}
.cinema-panel + .cinema-panel { visibility: hidden; opacity: var(--panel-alpha, 0); }
.cinema-story[data-enhanced="true"] .cinema-panel { visibility: visible; }
.cinema-panel[inert] { pointer-events: none; }
.cinema-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(14px, 2.2svh, 28px);
  color: #f4edf9;
  font-size: clamp(.94rem, 1vw, 1.125rem);
  font-weight: 550;
  line-height: 1.45;
}
.cinema-title {
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, min(7vw, 12.2svh), 7.85rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0;
}
.cinema-title em { font-style: normal; font-weight: 400; color: var(--cinema-accent); }
html[lang="en"] .cinema-title {
  font-size: clamp(3.25rem, min(5.95vw, 11.6svh), 7.25rem);
  line-height: .99;
  letter-spacing: -.055em;
}
html[lang="en"] .cinema-title em { letter-spacing: -.048em; }
html[lang="en"] .cinema-label { letter-spacing: .025em; }
.cinema-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px clamp(16px, 2.2vw, 32px);
  margin-top: clamp(16px, 3svh, 32px);
}
.cinema-actions a, .cinema-skip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  pointer-events: auto;
}
.cinema-panel[inert] a { pointer-events: none; }
.cinema-actions .cinema-button {
  justify-content: center;
  border-radius: 9px;
  padding: 11px clamp(18px, 1.7vw, 28px);
  background: #f2eaf9;
  color: #23182f;
  text-decoration: none;
}
.cinema-actions .cinema-button:is(:hover, :focus-visible) { background: #fff; }
.cinema-link, .cinema-skip {
  text-decoration: underline;
  text-decoration-color: #c9bacf;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
}
.cinema-link:hover, .cinema-skip:hover { text-decoration-color: #fff; }
.cinema-rail {
  position: absolute;
  inset-inline: var(--cinema-gutter);
  bottom: var(--cinema-rail-y);
  display: none;
  align-items: center;
  gap: clamp(15px, 2vw, 36px);
  min-height: 44px;
}
.cinema-story[data-enhanced="true"] .cinema-rail { display: flex; }
.cinema-cue, .cinema-skip { color: #f4eff8; font-size: .94rem; font-weight: 500; }
.cinema-track { flex: 1; height: 1px; background: #ffffff72; overflow: hidden; }
.cinema-track i {
  display: block;
  height: 100%;
  background: var(--cinema-accent);
  transform: scaleX(var(--cinema-progress, 0));
  transform-origin: right;
}
html[dir="ltr"] .cinema-track i { transform-origin: left; }
.cinema-story a:focus-visible { outline: 3px solid #dfc5ff; outline-offset: 4px; }
.nav #links a[aria-current="location"] { color: var(--purple); text-decoration: underline; text-underline-offset: 6px; }

/* Keep the film visible behind a single compact bar, in either site theme. */
header[data-cinema-nav] {
  --card: #211e28;
  --text: #faf6fd;
  --subtext: #eee7f3;
  --edge: #ffffff30;
  --purple: #e1caff;
  width: min(1140px, calc(100% - 64px));
  height: 62px;
  background: rgba(23, 20, 30, .84);
  border: 1px solid #ffffff2e;
  border-radius: 16px;
  box-shadow: 0 4px 20px #08050d26;
  backdrop-filter: blur(18px);
}
header[data-cinema-nav] .nav.shell {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0 16px;
  justify-content: flex-start;
  gap: clamp(13px, 1.35vw, 24px);
}
header[data-cinema-nav] .nav > .brand {
  margin: 0;
  flex: none;
}
header[data-cinema-nav] .nav .brand .original-logo {
  display: block;
  width: 93px;
  height: 40px;
  filter: brightness(0) invert(1);
}
header[data-cinema-nav] .nav :is(.lang, .menu, #studio-theme) {
  color: var(--text);
  border-color: var(--edge);
  background: transparent;
}
header[data-cinema-nav] .nav :is(a, button):focus-visible {
  outline: 2px solid #e1caff;
  outline-offset: 2px;
}
header[data-cinema-nav] .nav .nav-cta {
  color: #271a33;
  border-radius: 9px;
  background: #eee5f5;
  padding: 8px 17px;
  min-height: 40px;
}
header[data-cinema-nav] .nav .nav-cta:hover { background: #fff; }
@media (min-width: 1101px) {
  header[data-cinema-nav] { width: max-content; max-width: calc(100% - 64px); }
  header[data-cinema-nav] .nav.shell { width: auto; }
  html[dir="rtl"] header[data-cinema-nav] .brand { margin-left: clamp(12px, 2vw, 36px); }
  html[dir="ltr"] header[data-cinema-nav] .brand { margin-right: clamp(12px, 2vw, 36px); }
  header[data-cinema-nav] .nav > .links { gap: clamp(17px, 1.65vw, 26px); }
  header[data-cinema-nav] .links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 1100px) {
  header[data-cinema-nav] { width: calc(100% - 32px); }
  html[dir="rtl"] header[data-cinema-nav] .brand { margin-left: auto; }
  html[dir="ltr"] header[data-cinema-nav] .brand { margin-right: auto; }
  header[data-cinema-nav] .nav > .links {
    max-height: calc(100dvh - 96px);
    background: #221e2a; border-radius: 16px; color: #fff;
  }
  header[data-cinema-nav] .nav > .links a:hover { background: #ffffff12; }
}
@media (max-width: 760px) {
  header[data-cinema-nav] { height: 56px; width: calc(100% - 24px); border-radius: 14px; }
  header[data-cinema-nav] .nav.shell { gap: 7px; padding: 0 9px; }
  header[data-cinema-nav] .nav .brand .original-logo { width: 79px; }
  header[data-cinema-nav] .nav .menu, header[data-cinema-nav] #studio-theme { width: 44px; height: 44px; }
}

@media (max-width: 760px) and (orientation: portrait), (max-aspect-ratio: 4/5) {
  .cinema-story { --cinema-gutter: clamp(20px, 5.8vw, 52px); --cinema-rail-y: max(12px, env(safe-area-inset-bottom)); }
  .cinema-story[data-enhanced="true"] { height: 285vh; height: 285svh; }
  .cinema-screen img, .cinema-screen video { object-position: center 40%; }
  .cinema-screen::after {
    background: linear-gradient(0deg, #100d17ef 0%, #100d17d6 12%, #100d1791 26%, #100d1726 42%, transparent 53%);
  }
  .cinema-captions {
    width: auto;
    inset-inline: var(--cinema-gutter);
    bottom: max(82px, calc(11svh + env(safe-area-inset-bottom)));
  }
  .cinema-panel { width: 100%; }
  .cinema-title { font-size: clamp(2.6rem, min(10.9vw, 8.55svh), 6.8rem); }
  html[lang="en"] .cinema-title { font-size: clamp(2.65rem, min(12vw, 9.25svh), 6.6rem); }
  .cinema-actions { margin-top: clamp(11px, 1.9svh, 22px); }
  .cinema-label { margin-bottom: 8px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .cinema-story { --cinema-gutter: clamp(20px, 4vw, 48px); --cinema-rail-y: 4px; }
  .cinema-sticky { min-height: 360px; }
  .cinema-captions { bottom: 56px; width: 49%; }
  .cinema-title, html[lang="en"] .cinema-title { font-size: clamp(2rem, 9.2svh, 3.6rem); }
  .cinema-label { margin-bottom: 4px; }
  .cinema-actions { margin-top: 6px; }
}
@media (max-height: 580px) and (orientation: portrait) {
  .cinema-captions { bottom: 63px; }
  .cinema-label { margin-bottom: 3px; }
  .cinema-title, html[lang="en"] .cinema-title { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .platform-card.motion-arrival .platform-art img,
  .platform-card.motion-arrival .ledger-mark { animation: platform-symbol-in .65s cubic-bezier(.2,.8,.25,1) both; }
  .platform-card.motion-arrival .ledger-mark i { transform-origin: left; animation: ledger-line-in .44s .2s ease-out both; }
  .platform-card.motion-arrival .ledger-mark i:nth-child(2) { animation-delay: .31s; }
  .platform-card.motion-arrival .ledger-mark i:nth-child(3) { animation-delay: .42s; }
  .platform-card.motion-arrival .platform-art strong { animation: platform-name-in .55s .07s ease-out both; }
  .hallha-service .service-open { transition: background .23s, color .23s, transform .23s; }
  .hallha-service:is(:hover,:focus-visible) .service-open { transform: rotate(90deg); background: var(--purple); color: var(--card); }
}
@keyframes platform-symbol-in { from { transform: translateY(10px) scale(.84); opacity: .35; } }
@keyframes ledger-line-in { from { transform: scaleX(.15); } }
@keyframes platform-name-in { from { transform: translateY(7px); opacity: .45; } }
