.cinema {
  --cinema-height: max(100svh, 720px);
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  background: radial-gradient(ellipse at 75% 40%, #2835b8 0%, #171f79 43%, #11164c 100%);
}
.cinema-stage {
  position: sticky; top: 0; width: 59%; height: 100svh; margin: 0 0 -100svh 41%;
  pointer-events: none;
}
.cinema .scene-device { position: absolute; inset: 0; opacity: var(--device-opacity, 0); transform: translateX(calc(var(--device-shift, 0) * 1%)); }
.cinema .journey-portrait {
  position: absolute; inset: 3% 3% 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
}
.cinema .journey-weight { opacity: var(--weight-opacity, 1); transform: translateX(calc(var(--weight-shift, 0) * 1%)); }
.cinema .journey-trt { opacity: var(--trt-opacity, 0); transform: translateX(calc(var(--trt-shift, 0) * 1%)); }
.cinema .journey-drift {
  position: absolute; inset: 6% 0; animation: journey-drift 9s ease-in-out infinite alternate; animation-play-state: paused;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 85%, transparent 100%);
}
.cinema[data-motion="playing"] .journey-drift, .cinema[data-motion="playing"] .journey-trace path { animation-play-state: running; }
.cinema .journey-portrait img {
  position: absolute; top: 0; left: 50%; width: auto; max-width: none; height: 100%; transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 55% at 50% 50%, #000 60%, transparent 100%);
}
.cinema .journey-weight .journey-progress { opacity: var(--weight-progress, 0); }
.cinema .journey-trt .journey-progress { opacity: var(--trt-progress, 0); }
.cinema .journey-pair { display: contents; }
.cinema .journey-log { display: none; }
.cinema .journey-trace { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.cinema .journey-trace path { fill: none; stroke: url(#journey-trace-gradient); stroke-width: 1.5; stroke-dasharray: 14 86; animation: journey-trace 8s linear infinite; animation-play-state: paused; }
.cinema .journey-trace path + path { stroke-width: .8; animation-delay: -4s; opacity: .6; }
@keyframes journey-drift { from { transform: scale(1.02) translateY(1%); } to { transform: scale(1.1) translateY(-1%); } }
@keyframes journey-trace { to { stroke-dashoffset: -100; } }
.cinema #journeyCanvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.cinema[data-renderer="ready"] #journeyCanvas { opacity: 1; }
.cinema[data-renderer="ready"] .device-fallback { visibility: hidden; }
.cinema-controls {
  position: sticky; z-index: 3; top: 20px; height: 0; margin-inline: max(28px, calc((100% - 1240px) / 2));
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; pointer-events: none;
}
.cinema-controls::before {
  content: ""; position: absolute; z-index: -1; top: -20px; left: -100vw; right: -100vw; height: 105px;
  background: linear-gradient(#11164c 0%, #11164cf2 55%, #11164c00 100%);
}
.cinema .scene-note, .cinema .motion-status { margin: 0; color: #e2e5ff; font-size: .78rem; line-height: 1.4; }
.cinema .story-bottom .motion-status { max-width: 430px; font-size: .78rem; color: #e2e5ff; }
.cinema .motion-status:empty { display: none; }
.cinema .story-shot {
  position: relative; min-height: var(--cinema-height); width: min(1240px, calc(100% - 2 * clamp(20px, 4vw, 48px)));
  margin-inline: auto; padding: 142px 0 72px; display: flex; flex-direction: column;
  justify-content: center; pointer-events: none;
}
.cinema .story-opening { min-height: max(calc(100svh - 104px), 650px); }
.cinema .story-copy { width: 100%; display: flex; flex-direction: column; gap: 26px; }
.cinema .story-shot h1, .cinema .story-shot h2 {
  max-width: 43%; margin: 0; color: #fff; font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 700; line-height: 1.025; letter-spacing: -.04em; text-wrap: balance;
}
.cinema .story-shot h1 span, .cinema .story-shot h2 span { color: #d7f63b; }
.cinema .story-bottom { max-width: 40%; display: grid; gap: 24px; }
.cinema .story-bottom p { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; }
.cinema .story-bottom .story-note { margin-top: 12px; color: #e2e5ff; font-size: .84rem; }
.cinema .story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cinema .story-shot a { pointer-events: auto; }
.cinema .story-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: #fff; font-weight: 700; text-underline-offset: .2em; }
.cinema .story-link svg { width: 18px; height: 18px; transform: rotate(90deg); }
.cinema .story-link:hover { color: #d7f63b; }
.cinema .device-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.1035) 7%, rgba(0,0,0,.5) 14%, rgba(0,0,0,.8965) 21%, #000 28%, #000 88%, rgba(0,0,0,.8965) 91%, rgba(0,0,0,.5) 94%, rgba(0,0,0,.1035) 97%, transparent 100%), linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.1035) 3.5%, rgba(0,0,0,.5) 7%, rgba(0,0,0,.8965) 10.5%, #000 14%, #000 86%, rgba(0,0,0,.8965) 89.5%, rgba(0,0,0,.5) 93%, rgba(0,0,0,.1035) 96.5%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.1035) 7%, rgba(0,0,0,.5) 14%, rgba(0,0,0,.8965) 21%, #000 28%, #000 88%, rgba(0,0,0,.8965) 91%, rgba(0,0,0,.5) 94%, rgba(0,0,0,.1035) 97%, transparent 100%), linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.1035) 3.5%, rgba(0,0,0,.5) 7%, rgba(0,0,0,.8965) 10.5%, #000 14%, #000 86%, rgba(0,0,0,.8965) 89.5%, rgba(0,0,0,.5) 93%, rgba(0,0,0,.1035) 96.5%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.cinema .device-fallback::before {
  content: ""; position: absolute; width: min(72%, 570px); aspect-ratio: 1; border: 1px solid #c9d2ff90;
  border-radius: 50%; transform: rotateX(58deg) rotate(-25deg); box-shadow: 0 0 0 35px #bcc5ff14, 0 0 0 70px #bcc5ff0a;
}
.cinema .device-static {
  position: relative; width: 280px; height: 400px; padding: 17px 11px 11px; border: 3px solid #b7c0e8;
  border-radius: 32px; background: #171a36; box-shadow: 22px 30px 55px -15px #10145a99; transform: rotate(-10deg);
}
.cinema .device-camera { width: 42px; height: 4px; border-radius: 4px; margin: 0 auto 10px; background: #061319; }
.cinema .mini-app { height: calc(100% - 14px); padding: 15px; border-radius: 19px; background: #f7f8ff; color: #171a36; }
.cinema .mini-brand { color: #2a33d6; font-size: 10px; font-weight: 700; }
.cinema .mini-app h3 { margin: 12px 0; font-size: 24px; line-height: 1.1; }
.cinema .mini-weight { display: flex; flex-direction: column; gap: 4px; font-size: 9px; }
.cinema .mini-weight b { font-size: 36px; line-height: 1; }
.cinema .mini-weight small { font-size: 12px; }
.cinema .mini-line { height: 50px; margin: 8px 0; border-bottom: 3px solid #2a33d6; transform: skewY(-8deg); }
.cinema .mini-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #d9dced; font-size: 10px; }
.cinema .mini-bottom { margin-top: 11px; color: #2a33d6; font-size: 9px; font-weight: 700; }
@media (max-width: 1000px) {
  .cinema .story-shot h1, .cinema .story-shot h2 { font-size: clamp(2.6rem, 5vw, 4.1rem); }
}
@media (max-width: 680px) {
  .cinema { --cinema-height: 100svh; --copy-top: 88px; }
  .cinema-stage { width: 100%; height: 100svh; margin: 0 0 -100svh; overflow: hidden; }
  .cinema .journey-portrait {
    inset: var(--weight-top, 310px) 0 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--portrait-edge, 0px), #000 calc(100% - var(--portrait-edge, 0px)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--portrait-edge, 0px), #000 calc(100% - var(--portrait-edge, 0px)), transparent);
  }
  .cinema .journey-weight { top: calc(var(--opening-top, 370px) + (var(--weight-top, 310px) - var(--opening-top, 370px)) * var(--visual-lift, 0)); }
  .cinema .journey-trt { top: var(--trt-top, 310px); }
  .cinema .journey-drift { inset: 0; animation: none; }
  .cinema .journey-pair {
    display: block; position: absolute; top: 0; left: 29%; height: 100%; aspect-ratio: 2 / 3; transform: translateX(-50%);
    -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 50%, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 55% at 50% 50%, #000 60%, transparent 100%);
  }
  .cinema .journey-trt .journey-pair { left: 33%; }
  .cinema .journey-portrait img { left: 0; width: 100%; transform: none; -webkit-mask-image: none; mask-image: none; }
  .cinema .journey-portrait img:first-child { opacity: 1; }
  .cinema .journey-portrait .journey-progress { opacity: var(--portrait-mix, 0); }
  .cinema .journey-trace { display: none; }
  .cinema #journeyCanvas { position: absolute; top: var(--device-top, 370px); height: calc(100% - var(--device-top, 370px)); }
  .cinema .device-fallback { inset: var(--device-top, 370px) 0 0; }
  .cinema-controls { top: 16px; margin-inline: 20px; gap: 6px 12px; }
  .cinema-controls::before { top: -16px; height: 84px; }
  .cinema .scene-note { flex: 1; min-width: 130px; }
  .cinema .motion-status { font-size: .72rem; }
  .cinema { --copy-hold: 340px; }
  /* The overlap gives the incoming chapter room to share the pinned stage. */
  .cinema .story-shot {
    width: calc(100% - 40px); padding: 0; justify-content: flex-start; opacity: var(--copy-opacity, 1);
    min-height: calc(var(--cinema-height) + var(--copy-hold)); margin-bottom: calc(-1 * var(--copy-hold));
  }
  .cinema .story-opening { padding-top: var(--copy-top); }
  .cinema .story-shot:last-child { min-height: calc(var(--cinema-height) + var(--copy-hold)); margin-bottom: 0; padding-bottom: 42%; }
  .cinema .story-copy { position: sticky; top: var(--copy-top); gap: 16px; transform: translate(calc(var(--copy-x, 0) * 1vw), var(--copy-shift, 0px)); }
  .cinema .story-shot[data-copy-hidden="true"] a { pointer-events: none; }
  .cinema .story-shot h1, .cinema .story-shot h2 { max-width: 100%; font-size: clamp(2rem, 9.2vw, 2.7rem); line-height: 1.055; }
  .cinema .story-bottom { max-width: 100%; gap: 14px; }
  .cinema .story-bottom p { font-size: .96rem; line-height: 1.5; }
  .cinema .story-bottom .story-note { font-size: .75rem; }
  .cinema .story-actions { gap: 8px 16px; }
  .cinema .device-static { position: absolute; top: 50%; left: 50%; width: 224px; height: 320px; transform: translate(-50%, -50%) rotate(-8deg) scale(.65); }
  .cinema .mini-app h3 { font-size: 20px; margin: 8px 0; }
  .cinema .mini-weight b { font-size: 28px; }
  .cinema .mini-line { height: 30px; }
  .cinema .mini-row { padding: 6px 0; }
  .cinema .journey-log {
    display: block; position: absolute; right: 18px; bottom: 28px; width: clamp(146px, 42%, 210px);
    padding: 16px; border: 1px solid #fff; border-radius: 18px; background: #f7f8ff; color: #171a36;
    box-shadow: 8px 18px 34px -18px #080d39; opacity: var(--log-opacity, 1);
  }
  .cinema .journey-log-brand { color: #2a33d6; font-size: .75rem; font-weight: 700; }
  .cinema .journey-log p { margin: 12px 0 4px; font-size: .75rem; line-height: 1.4; }
  .cinema .journey-log strong { display: block; font-size: 1.9rem; line-height: 1.1; font-weight: 650; }
  .cinema .journey-log-trt strong { font-size: clamp(1rem, 4.6vw, 1.4rem); line-height: 1.35; }
  .cinema .journey-log small { font-size: .85rem; font-weight: 500; }
  .cinema .journey-log ul { margin: 12px 0 0; padding: 0; list-style: none; }
  .cinema .journey-log li { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px solid #d9dced; font-size: .75rem; line-height: 1.4; }
  .cinema .journey-log svg { flex: 0 0 14px; width: 14px; height: 14px; color: #2a33d6; }
  .cinema .journey-log .journey-log-note { color: #50577d; }
  .cinema .journey-log .journey-phase { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: .7rem; }
  .cinema .journey-phase span { flex: 1; padding-top: 6px; border-top: 2px solid #d9dced; color: #50577d; }
  .cinema .journey-phase span:first-child { border-color: #2a33d6; color: #171a36; font-weight: 700; }
  .cinema[data-weight-later="true"] .journey-log-weight .journey-phase span,
  .cinema[data-trt-later="true"] .journey-log-trt .journey-phase span { border-color: #d9dced; color: #50577d; font-weight: 500; }
  .cinema[data-weight-later="true"] .journey-log-weight .journey-phase span:last-child,
  .cinema[data-trt-later="true"] .journey-log-trt .journey-phase span:last-child { border-color: #2a33d6; color: #171a36; font-weight: 700; }
  .cinema .journey-weight-later, .cinema[data-weight-later="true"] .journey-weight-start { display: none; }
  .cinema[data-weight-later="true"] .journey-weight-later { display: inline; }
  .cinema .journey-log-trt, .cinema[data-log="trt"] .journey-log-weight { display: none; }
  .cinema[data-log="trt"] .journey-log-trt { display: block; }
}
@media (max-width: 680px) and (max-height: 720px) {
  .cinema { --copy-top: 68px; }
  .cinema .story-copy { gap: 12px; }
  .cinema .journey-log { bottom: 18px; padding: 12px; }
  .cinema .journey-log p { margin-top: 8px; }
  .cinema .journey-log li { padding-block: 5px; }
  .cinema .device-static { transform: translate(-50%, -50%) rotate(-8deg) scale(.55); }
}
@media (prefers-reduced-motion: reduce) {
  .cinema #journeyCanvas { transition: none; }
  .cinema .journey-drift, .cinema .journey-trace path { animation: none !important; }
}
