:root {
   --ink: #110d25;
   --white: #fff7f1;
   --gold: #ffdc75;
   --progress: 0
}

* {
   box-sizing: border-box
}

html {
   scroll-behavior: smooth
}

body {
   margin: 0;
   background: var(--ink);
   color: var(--white);
   font-family: Nunito, sans-serif;
   overflow-x: hidden
}

button {
   font: inherit;
   cursor: pointer
}

button:focus-visible,
a:focus-visible {
   outline: 3px solid var(--gold);
   outline-offset: 5px
}

.film-grain {
   position: fixed;
   inset: 0;
   z-index: 100;
   pointer-events: none;
   opacity: .08;
   background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")
}

.progress-track {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   height: 3px;
   z-index: 210;
   background: #ffffff22
}

#filmProgress {
   height: 100%;
   width: 0;
   background: linear-gradient(90deg, #ffdc75, #f8a9d7, #91b7ff)
}

.film-controls {
   position: fixed;
   top: 16px;
   left: 4%;
   right: 4%;
   z-index: 200;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px
}

.film-mark {
   text-decoration: none;
   color: var(--gold);
   font-family: Fredoka, sans-serif;
   font-size: 21px;
   font-weight: 700
}

.film-mark span {
   color: #fff
}

.control-group {
   display: flex;
   gap: 8px
}

.control {
   border: 1px solid #ffffff4d;
   background: #19142da8;
   color: #fff;
   border-radius: 100px;
   padding: 9px 13px;
   font-size: 12px;
   backdrop-filter: blur(12px)
}

.control:hover {
   background: #ffffff29
}

.sequence {
   height: 250vh;
   position: relative;
   --p: 0;
   --reveal: 0
}

.opening {
   height: 190vh
}

.choice-scene {
   height: 205vh
}

.finale {
   height: 260vh
}

.stage {
   position: sticky;
   top: 0;
   height: 100svh;
   min-height: 520px;
   overflow: hidden;
   isolation: isolate;
   display: grid;
   place-items: center
}

.stage:after {
   content: "";
   position: absolute;
   inset: 0;
   pointer-events: none;
   background: linear-gradient(180deg, #07041266, transparent 28%, transparent 72%, #07041299);
   z-index: 3
}

.opening .stage {
   background: radial-gradient(ellipse at 50% 52%, #554186 0%, #251b4b 46%, #100d26 90%)
}

.collapse .stage {
   background: radial-gradient(ellipse at 50% 48%, #65426e, #1d153b 65%, #100d26)
}

.joy-scene .stage {
   background: linear-gradient(155deg, #a36a72, #d6a74e 48%, #6e456c)
}

.sadness-scene .stage {
   background: linear-gradient(145deg, #071d45, #2b5c8d 55%, #091b3d)
}

.storm-scene .stage {
   background: radial-gradient(ellipse at 50% 40%, #933f67, #43204b 55%, #180f2b)
}

.choice-scene .stage {
   background: radial-gradient(ellipse at center, #49376d, #1b1539 65%, #0d0b21)
}

.finale .stage {
   background: radial-gradient(ellipse at center, #79599c, #37275d 55%, #100d26)
}

.cinematic-copy {
   position: absolute;
   z-index: 6;
   text-align: center;
   left: 50%;
   width: min(850px, 85vw);
   transform: translateX(-50%);
   text-shadow: 0 4px 24px #0d092e88
}

.eyebrow {
   font-size: clamp(10px, 1.3vw, 14px);
   font-weight: 900;
   letter-spacing: .25em;
   color: var(--gold);
   margin: 0 0 16px
}

.cinematic-copy h1,
.cinematic-copy h2 {
   font-family: Fredoka, sans-serif;
   font-weight: 600;
   line-height: 1.03;
   letter-spacing: -.025em;
   margin: 0 auto 22px;
   text-wrap: balance
}

.cinematic-copy h1 {
   font-size: clamp(55px, 10vw, 150px)
}

.cinematic-copy h2 {
   font-size: clamp(35px, 6.5vw, 95px)
}

.line {
   font-size: clamp(16px, 1.8vw, 23px);
   line-height: 1.6;
   max-width: 730px;
   margin: 0 auto;
   text-wrap: pretty
}

.opening-copy {
   top: 48%;
   opacity: calc(1 - var(--p) * 1.35);
   transform: translate(-50%, -50%) translateY(calc(var(--p) * -65px))
}

.scroll-cue {
   display: block;
   margin-top: 50px;
   letter-spacing: .2em;
   font-size: 12px;
   color: #ffedbd;
   animation: bob 2.4s ease-in-out infinite
}

.scene-copy {
   bottom: 9%;
   opacity: var(--reveal);
   transform: translateX(-50%) translateY(calc((1 - var(--reveal)) * 40px))
}

.opening-orb {
   width: clamp(180px, 28vw, 400px);
   height: clamp(180px, 28vw, 400px);
   opacity: .58;
   transform: translateY(calc(var(--p) * -95px)) scale(calc(1 + var(--p) * .8))
}

.center-orb {
   position: absolute;
   border-radius: 50%;
   background: radial-gradient(circle at 30% 25%, #fffde9, #ffe08a 36%, #e99e56 76%, #9d569a);
   box-shadow: 0 0 80px #ffd77d99, 0 0 180px #f5b8b744
}

.ambient-stars {
   position: absolute;
   inset: 0;
   background-image: radial-gradient(2px 2px at 12% 20%, #fff, transparent), radial-gradient(2px 2px at 72% 35%, #fff, transparent), radial-gradient(3px 3px at 84% 73%, #fff, transparent), radial-gradient(2px 2px at 29% 68%, #fff, transparent), radial-gradient(2px 2px at 55% 10%, #fff, transparent);
   opacity: .7;
   transform: scale(calc(1 + var(--p) * .2))
}

.halo {
   position: absolute;
   border-radius: 50%;
   width: 75vmin;
   height: 75vmin;
   filter: blur(65px);
   opacity: .3
}

.halo-purple {
   background: #b790ff
}

.halo-gold {
   background: #e9a95c
}

.pedestal {
   position: absolute;
   top: 65%;
   width: 260px;
   height: 42px;
   border-radius: 50%;
   background: #aa8cba;
   box-shadow: 0 25px 80px #000a
}

.lost-orb {
   width: clamp(160px, 23vw, 300px);
   height: clamp(160px, 23vw, 300px);
   top: 25%;
   opacity: calc(1 - var(--p) * 1.7);
   transform: scale(calc(1 - var(--p) * .55)) translateY(calc(var(--p) * -120px));
   filter: blur(calc(var(--p) * 6px))
}

.shards,
.final-shards {
   position: absolute;
   inset: 0;
   pointer-events: none
}

.shards i,
.final-shards i {
   position: absolute;
   left: 50%;
   top: 43%;
   font-style: normal;
   font-size: clamp(35px, 6vw, 80px);
   text-shadow: 0 0 25px currentColor;
   transform: translate(calc(-50% + var(--x) * var(--p)), calc(-50% + var(--y) * var(--p))) rotate(calc(var(--p) * 240deg));
   opacity: clamp(0, calc(var(--p) * 3 - .35), 1)
}

.shards i:nth-child(1),
.final-shards i:nth-child(1) {
   color: #ffe276;
   --x: -30vw;
   --y: -25vh
}

.shards i:nth-child(2),
.final-shards i:nth-child(2) {
   color: #80c6ff;
   --x: 27vw;
   --y: -22vh
}

.shards i:nth-child(3),
.final-shards i:nth-child(3) {
   color: #ff7778;
   --x: -34vw;
   --y: 24vh
}

.shards i:nth-child(4),
.final-shards i:nth-child(4) {
   color: #bb9aff;
   --x: 31vw;
   --y: 23vh
}

.shards i:nth-child(5),
.final-shards i:nth-child(5) {
   color: #8be9b2;
   --x: 0vw;
   --y: -33vh
}

.landscape {
   position: absolute;
   inset: 0;
   opacity: .5
}

.landscape-joy {
   background: radial-gradient(ellipse at 20% 80%, #ffdd8a 0%, transparent 42%), radial-gradient(ellipse at 85% 35%, #f0c37c 0%, transparent 35%)
}

.character {
   position: absolute;
   z-index: 2;
   top: 15%;
   left: 12%;
   height: 58%;
   width: 40%;
   display: flex;
   align-items: center;
   justify-content: center;
   transform: translate(calc((1 - var(--p)) * -22vw), calc(var(--p) * -8vh)) rotate(calc(var(--p) * 9deg));
   opacity: clamp(0, calc(var(--p) * 4), 1)
}

.character img {
   height: 100%;
   max-width: 100%;
   object-fit: contain;
   filter: drop-shadow(0 25px 25px #0006);
   animation: float 4s ease-in-out infinite
}

.firefly {
   position: absolute;
   z-index: 2;
   top: 30%;
   left: 65%;
   font-size: clamp(45px, 8vw, 110px);
   color: #fff3a3;
   text-shadow: 0 0 35px #ffe273, 0 0 90px #fff;
   transform: translate(calc(var(--p) * -25vw), calc(var(--p) * 15vh)) rotate(calc(var(--p) * 420deg))
}

.sadness-character {
   left: 50%;
   transform: translate(calc((1 - var(--p)) * 22vw), calc(var(--p) * -5vh))
}

.rain {
   position: absolute;
   inset: 0;
   opacity: .48;
   background: repeating-linear-gradient(108deg, transparent 0 38px, #a8dfff66 39px 40px, transparent 41px 80px);
   background-size: 200px 200px;
   animation: rain 1.1s linear infinite
}

.water-reflection {
   position: absolute;
   bottom: -25%;
   height: 52%;
   left: -10%;
   right: -10%;
   background: radial-gradient(ellipse at center, #a4d8ff77, transparent 65%);
   transform: scaleY(calc(.5 + var(--p)))
}

.storm-ring {
   position: absolute;
   top: 15%;
   left: 50%;
   width: 65vmin;
   height: 65vmin;
   border: 8px dashed #f2b1d188;
   border-radius: 50%;
   box-shadow: 0 0 90px #c969b188, inset 0 0 90px #a96ac088;
   transform: translateX(-50%) rotate(calc(var(--p) * 650deg)) scale(calc(.45 + var(--p) * .9));
   opacity: var(--reveal)
}

.lightning {
   position: absolute;
   inset: 0;
   background: #fff;
   opacity: 0;
   pointer-events: none;
   animation: lightning 6s infinite
}

.ensemble {
   position: absolute;
   z-index: 2;
   top: 16%;
   left: 12%;
   right: 12%;
   height: 58%;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 0;
   transform: scale(calc(.7 + var(--p) * .4));
   opacity: clamp(0, calc(var(--p) * 3), 1)
}

.ensemble img {
   width: 33.33%;
   height: 100%;
   object-fit: contain;
   filter: drop-shadow(0 18px 25px #0007);
   animation: float 4s ease-in-out infinite
}

.ensemble img:nth-child(2) {
   animation-delay: -1s
}

.ensemble img:nth-child(3) {
   animation-delay: -2s
}

.choice-aura {
   position: absolute;
   width: 80vmin;
   height: 80vmin;
   background: radial-gradient(circle, #ffc97766, transparent 67%);
   filter: blur(25px);
   transform: scale(calc(.6 + var(--p) * .6))
}

.memory-heart {
   position: absolute;
   top: 13%;
   font-size: clamp(100px, 18vw, 230px);
   color: #ffe08b;
   text-shadow: 0 0 45px #ffe08b;
   opacity: .55;
   transform: scale(calc(.7 + var(--p) * .35));
   transition: color .5s, text-shadow .5s
}

.choice-scene.accepted .memory-heart {
   color: #fffbe2;
   text-shadow: 0 0 75px #fff1a8, 0 0 180px #ffdc75;
   animation: heartbeat 1.2s infinite
}

.choice-copy {
   bottom: 10%
}

.accept-btn,
.watch-again {
   margin-top: 24px;
   border: 1px solid #ffe7aa;
   background: #ffdb78;
   color: #2b1d42;
   border-radius: 40px;
   padding: 15px 28px;
   font-weight: 900;
   letter-spacing: .06em;
   box-shadow: 0 0 30px #ffdb7844;
   transition: transform .2s, box-shadow .2s
}

.accept-btn:hover,
.watch-again:hover {
   transform: translateY(-4px);
   box-shadow: 0 0 55px #ffdb7888
}

.choice-feedback {
   min-height: 1.5em;
   color: #ffedb5;
   font-weight: 700
}

.finale-rays {
   position: absolute;
   inset: -50%;
   background: repeating-conic-gradient(from 0deg, #ffedc911 0 7deg, transparent 7deg 18deg);
   transform: rotate(calc(var(--p) * 80deg)) scale(calc(.7 + var(--p) * .3));
   opacity: var(--reveal)
}

.final-shards i {
   transform: translate(calc(-50% + var(--x) * (1 - var(--p))), calc(-50% + var(--y) * (1 - var(--p)))) rotate(calc(var(--p) * 360deg));
   opacity: clamp(0, calc(1 - var(--p) * 1.3), 1)
}

.restored-orb {
   width: clamp(150px, 26vw, 340px);
   height: clamp(150px, 26vw, 340px);
   top: 13%;
   transform: scale(calc(.1 + var(--p) * 1.1));
   opacity: clamp(0, calc((var(--p) - .3) * 2.3), 1);
   box-shadow: 0 0 100px #ffe39e, 0 0 220px #ffd57a99
}

.finale-copy {
   bottom: 7%
}

.end-card {
   margin: 26px auto 0;
   font-size: 13px;
   letter-spacing: .25em;
   color: #ffe4a0
}

.watch-again {
   margin-top: 18px
}

.film-controls,
.cinematic-copy {
   transition: opacity .2s
}

html[lang=ar] .cinematic-copy {
   font-family: Cairo, sans-serif;
   direction: rtl
}

html[lang=ar] .cinematic-copy h1,
html[lang=ar] .cinematic-copy h2 {
   font-family: Cairo, sans-serif;
   letter-spacing: 0
}

html[lang=ar] .eyebrow {
   letter-spacing: 0
}

@keyframes bob {
   50% {
      transform: translateY(10px)
   }
}

@keyframes float {
   50% {
      transform: translateY(-16px) rotate(3deg)
   }
}

@keyframes rain {
   to {
      background-position: -60px 200px
   }
}

@keyframes lightning {

   0%,
   43%,
   45%,
   48%,
   100% {
      opacity: 0
   }

   44%,
   47% {
      opacity: .16
   }
}

@keyframes heartbeat {
   50% {
      transform: scale(1.1)
   }
}

@media(max-width:700px) {
   .film-controls {
      left: 3%;
      right: 3%
   }

   .film-mark {
      font-size: 16px
   }

   .control {
      font-size: 10px;
      padding: 8px
   }

   .sequence {
      height: 225vh
   }

   .stage {
      min-height: 480px
   }

   .character {
      top: 12%;
      left: 6%;
      width: 75%;
      height: 45%
   }

   .sadness-character {
      left: 20%
   }

   .ensemble {
      top: 12%;
      left: 2%;
      right: 2%;
      height: 43%
   }

   .scene-copy {
      bottom: 10%
   }

   .scene-copy h2 {
      font-size: clamp(34px, 8vw, 55px)
   }

   .scene-copy .line {
      font-size: 15px
   }

   .choice-copy {
      bottom: 10%
   }

   .memory-heart {
      top: 20%
   }

   .lost-orb {
      top: 27%
   }

   .pedestal {
      top: 65%
   }

   .finale-copy {
      bottom: 8%
   }

   .restored-orb {
      top: 19%
   }

   .eyebrow {
      letter-spacing: .1em
   }
}

@media(prefers-reduced-motion:reduce) {
   html {
      scroll-behavior: auto
   }

   *,
   *:before,
   *:after {
      animation: none !important;
      transition: none !important
   }

   .rain {
      opacity: .15
   }
}



.lumi-guide {
   --lumi-color: #ffe4a1;
   position: fixed;
   left: 0;
   top: 0;
   width: 84px;
   height: 84px;
   z-index: 115;
   pointer-events: none;
   will-change: transform, opacity;
   transform: translate3d(50vw, 50vh, 0);
   filter: drop-shadow(0 0 17px var(--lumi-color));
   opacity: 0;
   transition: filter .65s, opacity .3s
}

.lumi-aura {
   position: absolute;
   inset: -27px;
   border-radius: 50%;
   background: radial-gradient(circle, var(--lumi-color) 0%, transparent 70%);
   opacity: .28;
   animation: lumi-breathe 2.4s ease-in-out infinite
}

.lumi-core {
   position: absolute;
   inset: 12px;
   border-radius: 45% 55% 52% 48%;
   background: radial-gradient(circle at 32% 24%, #fff 0%, #fff9df 20%, var(--lumi-color) 63%, #e39a65 100%);
   box-shadow: inset -7px -9px 14px #784a6d44, 0 0 22px var(--lumi-color), 0 0 65px var(--lumi-color);
   animation: lumi-squish 3.1s ease-in-out infinite
}

.lumi-eye {
   position: absolute;
   top: 43%;
   width: 5px;
   height: 8px;
   background: #34203b;
   border-radius: 50%;
   animation: lumi-blink 6s infinite
}

.eye-left {
   left: 35%
}

.eye-right {
   right: 35%
}

.lumi-mouth {
   position: absolute;
   top: 62%;
   left: 47%;
   width: 8px;
   height: 4px;
   border: solid #5e3451;
   border-width: 0 0 2px;
   border-radius: 50%
}

.lumi-wings i {
   position: absolute;
   top: 23px;
   width: 29px;
   height: 40px;
   background: linear-gradient(140deg, #ffffffa8, #e1caff11);
   border: 1px solid #fff8;
   border-radius: 85% 12% 80% 18%;
   filter: blur(.3px);
   transform-origin: bottom center;
   animation: lumi-wing .35s ease-in-out infinite alternate
}

.lumi-wings i:first-child {
   left: 1px;
   transform: rotate(-34deg)
}

.lumi-wings i:last-child {
   right: 1px;
   transform: scaleX(-1) rotate(-34deg);
   animation-delay: -.18s
}

.lumi-spark {
   position: absolute;
   color: var(--lumi-color);
   font-size: 18px;
   text-shadow: 0 0 12px currentColor;
   animation: lumi-sparkle 2.3s ease-in-out infinite
}

.spark-a {
   left: -12px;
   top: 0
}

.spark-b {
   right: -18px;
   bottom: 6px;
   animation-delay: -.9s
}

.spark-c {
   left: 14px;
   bottom: -13px;
   animation-delay: -1.5s
}

.lumi-speech {
   position: fixed;
   z-index: 117;
   max-width: min(330px, 65vw);
   padding: 13px 18px;
   background: #17112bdc;
   border: 1px solid #fff5c36b;
   border-radius: 20px 20px 20px 5px;
   box-shadow: 0 10px 40px #0007, 0 0 25px #ffe09b19;
   color: #fff8e9;
   font-size: clamp(12px, 1.3vw, 15px);
   font-weight: 800;
   line-height: 1.45;
   pointer-events: none;
   opacity: 0;
   transform: translateY(12px);
   transition: opacity .4s, transform .4s;
   backdrop-filter: blur(12px)
}

.lumi-speech.show {
   opacity: 1;
   transform: translateY(0)
}

.lumi-speech:before {
   content: '✦ LUMI';
   display: block;
   color: #ffe2a2;
   font-size: 10px;
   letter-spacing: .16em;
   margin-bottom: 5px
}

.lumi-hint {
   position: fixed;
   z-index: 116;
   left: 50%;
   bottom: 27px;
   transform: translateX(-50%);
   background: #15102bd9;
   color: #fff5d7;
   padding: 10px 19px;
   border: 1px solid #fff4;
   backdrop-filter: blur(12px);
   border-radius: 99px;
   font-size: 12px;
   white-space: nowrap;
   pointer-events: none;
   opacity: 0;
   transition: opacity .4s
}

.lumi-hint.show {
   opacity: 1
}

.lumi-secret {
   position: fixed;
   z-index: 119;
   left: 0;
   top: 0;
   width: 76px;
   height: 76px;
   border: 0;
   border-radius: 50%;
   background: transparent;
   color: transparent;
   cursor: pointer;
   opacity: 0;
   transform: translate3d(-200px, -200px, 0);
   touch-action: manipulation
}

.lumi-secret:focus-visible {
   outline: 3px solid #ffe5a0;
   outline-offset: 3px
}

.scene-location {
   position: fixed;
   z-index: 110;
   left: 4%;
   bottom: 25px;
   color: #fff9d9a6;
   font-size: 11px;
   font-weight: 900;
   letter-spacing: .24em;
   pointer-events: none;
   text-shadow: 0 2px 9px #000;
   transition: opacity .4s
}

.lumi-constellation {
   position: fixed;
   inset: 0;
   pointer-events: none;
   z-index: 108;
   overflow: hidden
}

.lumi-trail-dot {
   position: absolute;
   width: var(--sz, 6px);
   height: var(--sz, 6px);
   border-radius: 50%;
   background: var(--col, #ffe4a1);
   box-shadow: 0 0 12px var(--col, #ffe4a1);
   pointer-events: none;
   animation: trail-dissolve .95s ease-out forwards
}

body.lumi-magic .lumi-aura {
   animation-duration: .6s
}

body.lumi-magic .lumi-core {
   box-shadow: 0 0 60px #fff, 0 0 130px var(--lumi-color)
}

.sequence .stage:before {
   content: '';
   position: absolute;
   inset: 0;
   pointer-events: none;
   z-index: 1;
   background: radial-gradient(circle at var(--lumi-local-x, 50%) var(--lumi-local-y, 50%), #fff9cf18 0%, transparent 28%);
   opacity: var(--reveal)
}

@keyframes lumi-breathe {
   50% {
      transform: scale(1.35);
      opacity: .48
   }
}

@keyframes lumi-squish {
   50% {
      border-radius: 54% 46% 45% 55%;
      transform: scale(.94, 1.05)
   }
}

@keyframes lumi-blink {

   0%,
   43%,
   46%,
   100% {
      transform: scaleY(1)
   }

   44%,
   45% {
      transform: scaleY(.12)
   }
}

@keyframes lumi-wing {
   to {
      rotate: 18deg;
      scale: 1 .85
   }
}

@keyframes lumi-sparkle {
   50% {
      opacity: .25;
      transform: translateY(-12px) rotate(45deg)
   }
}

@keyframes trail-dissolve {
   to {
      opacity: 0;
      transform: translateY(24px) scale(.05)
   }
}

@media(max-width:700px) {
   .lumi-guide {
      width: 60px;
      height: 60px
   }

   .lumi-core {
      inset: 9px
   }

   .lumi-eye {
      width: 4px;
      height: 6px
   }

   .lumi-wings i {
      top: 15px;
      width: 23px;
      height: 31px
   }

   .lumi-speech {
      max-width: 66vw;
      padding: 10px 12px;
      font-size: 12px
   }

   .scene-location {
      font-size: 9px;
      bottom: 16px
   }

   .lumi-hint {
      bottom: 40px;
      font-size: 10px;
      max-width: 92vw;
      white-space: normal;
      text-align: center
   }

   .lumi-secret {
      width: 60px;
      height: 60px
   }
}

@media(prefers-reduced-motion:reduce) {

   .lumi-guide,
   .lumi-guide *,
   .lumi-trail-dot {
      animation: none !important;
      transition: none !important
   }

   .lumi-trail-dot {
      display: none
   }
}

.brand-dots {
   display: inline-flex;
   gap: 3px;
   vertical-align: middle;
   margin-right: 7px
}

.brand-dots i {
   display: block;
   width: 7px;
   height: 7px;
   border-radius: 50%;
   background: #ffdc75
}

.brand-dots i:nth-child(2) {
   background: #80c6ff
}

.brand-dots i:nth-child(3) {
   background: #ff7778
}

.brand-dots i:nth-child(4) {
   background: #bb9aff
}

.brand-dots i:nth-child(5) {
   background: #8be9b2
}

.emotion-signature {
   display: flex;
   flex-wrap: wrap;
   gap: 7px;
   justify-content: center;
   margin: 0 auto 24px
}

.emotion-signature span {
   font-family: Fredoka, sans-serif;
   font-size: clamp(10px, 1.2vw, 15px);
   font-weight: 700;
   padding: 7px 12px;
   border-radius: 30px;
   background: #ffffff19;
   border: 1px solid #ffffff55;
   box-shadow: 0 0 15px #ffffff18
}

.emotion-signature span:nth-child(1) {
   color: #ffdc75
}

.emotion-signature span:nth-child(2) {
   color: #80c6ff
}

.emotion-signature span:nth-child(3) {
   color: #ff7778
}

.emotion-signature span:nth-child(4) {
   color: #bb9aff
}

.emotion-signature span:nth-child(5) {
   color: #8be9b2
}

.opening .stage:before {
   content: "";
   position: absolute;
   inset: 5%;
   border-radius: 50%;
   border: 1px solid #cbb9ff20;
   box-shadow: 0 0 0 65px #cbb9ff09, 0 0 0 130px #cbb9ff07;
   pointer-events: none
}

.headquarters-console {
   position: absolute;
   z-index: 1;
   bottom: 13%;
   width: min(650px, 85vw);
   height: 145px;
   border-radius: 45% 45% 25px 25px;
   background: linear-gradient(#8b7bb3, #42345f 50%, #241a44);
   border: 4px solid #b3a2ce;
   box-shadow: 0 25px 55px #09041eaa, inset 0 10px 25px #ffffff20;
   display: flex;
   align-items: center;
   justify-content: space-evenly;
   transform: perspective(500px) rotateX(24deg)
}

.headquarters-console span {
   width: clamp(26px, 6vw, 64px);
   height: clamp(26px, 6vw, 64px);
   border-radius: 50%;
   background: #ffdc75;
   box-shadow: 0 0 20px currentColor;
   border: 5px solid #ffffff70
}

.headquarters-console span:nth-child(2) {
   background: #80c6ff
}

.headquarters-console span:nth-child(3) {
   background: #ff7778
}

.headquarters-console span:nth-child(4) {
   background: #bb9aff
}

.headquarters-console span:nth-child(5) {
   background: #8be9b2
}

.collapse .pedestal {
   z-index: 2
}

.collapse .lost-orb {
   z-index: 3
}




:root {
   --sky-top: 32 23 65;
   --sky-mid: 84 57 126;
   --sky-bottom: 19 14 46;

   --sky-light-a: 170 117 249;
   --sky-light-b: 255 215 126;
   --sky-light-c: 113 115 223;

   --sky-shift: 0px;
   --sky-drift: 0px;
}

.emotion-sky {
   position: fixed;
   inset: 0;
   z-index: 0;
   overflow: hidden;
   pointer-events: none;

   background: linear-gradient(150deg,
         rgb(var(--sky-top)) 0%,
         rgb(var(--sky-mid)) 49%,
         rgb(var(--sky-bottom)) 100%);
}

.sky-wash {
   position: absolute;
   inset: -15%;

   background: radial-gradient(ellipse at 45% 45%,
         rgb(var(--sky-light-a) / 0.28),
         transparent 60%);

   transform: translate3d(0,
         calc(var(--sky-shift) * -0.35),
         0);
}

.sky-glow {
   position: absolute;
   width: 75vmax;
   height: 75vmax;
   border-radius: 50%;
   filter: blur(65px);
   mix-blend-mode: screen;
   will-change: transform;
}

.sky-glow-a {
   left: -35vmax;
   top: -40vmax;

   background: radial-gradient(circle,
         rgb(var(--sky-light-a) / 0.48),
         transparent 67%);

   transform: translate3d(calc(var(--sky-drift) * 0.5),
         calc(var(--sky-shift) * -0.8),
         0);
}

.sky-glow-b {
   right: -37vmax;
   top: 2vh;

   background: radial-gradient(circle,
         rgb(var(--sky-light-b) / 0.43),
         transparent 67%);

   transform: translate3d(calc(var(--sky-drift) * -0.65),
         calc(var(--sky-shift) * 0.6),
         0);
}

.sky-glow-c {
   left: 20%;
   bottom: -58vmax;

   background: radial-gradient(circle,
         rgb(var(--sky-light-c) / 0.36),
         transparent 68%);

   transform: translate3d(0,
         calc(var(--sky-shift) * 0.35),
         0);
}

.sky-horizon {
   position: absolute;
   inset: 0;

   background: linear-gradient(to bottom,
         transparent 45%,
         rgb(10 7 28 / 0.25) 100%);
}

#film {
   position: relative;
   z-index: 1;
}


.sequence .stage,
.opening .stage,
.collapse .stage,
.joy-scene .stage,
.sadness-scene .stage,
.storm-scene .stage,
.choice-scene .stage,
.finale .stage {
   background: transparent !important;
}

.sequence .stage::after {
   background: linear-gradient(180deg,
         rgb(7 4 18 / 0.17),
         transparent 27%,
         transparent 73%,
         rgb(7 4 18 / 0.22));
}

@media (prefers-reduced-motion: reduce) {

   .sky-glow,
   .sky-wash {
      transform: none !important;
      filter: blur(45px);
   }
}





.opening .stage {
  overflow: hidden;
}

.hero-memory-orbs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  overflow: hidden;

  z-index: 0;

  transform: translateY(
    calc(var(--p, 0) * -110px)
  );

  opacity: calc(1 - var(--p, 0) * 0.8);
}

.hero-memory-orbs .memory-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;

  background: radial-gradient(
    circle at 30% 25%,
    rgba(255,255,255,0.95),
    var(--orb-color) 42%,
    transparent 78%
  );

  box-shadow:
    0 0 35px var(--orb-color),
    0 0 90px var(--orb-glow),
    inset -12px -15px 25px rgba(0,0,0,0.12);

  filter: saturate(1.2);

  animation: heroOrbFloat var(--duration)
    ease-in-out infinite alternate;

  animation-delay: var(--delay);
}

.hero-memory-orbs .orb-1 {
  --orb-color: #ffd447;
  --orb-glow: rgba(255,212,71,0.35);
  --duration: 5s;
  --delay: -1s;

  width: 110px;
  height: 110px;
  top: 16%;
  left: 10%;
}

.hero-memory-orbs .orb-2 {
  --orb-color: #72bdf5;
  --orb-glow: rgba(114,189,245,0.35);
  --duration: 7s;
  --delay: -3s;

  width: 75px;
  height: 75px;
  top: 62%;
  left: 18%;
}

.hero-memory-orbs .orb-3 {
  --orb-color: #ff6868;
  --orb-glow: rgba(255,104,104,0.35);
  --duration: 6s;
  --delay: -2s;

  width: 90px;
  height: 90px;
  top: 22%;
  right: 13%;
}

.hero-memory-orbs .orb-4 {
  --orb-color: #b49aff;
  --orb-glow: rgba(180,154,255,0.35);
  --duration: 8s;
  --delay: -4s;

  width: 65px;
  height: 65px;
  top: 70%;
  right: 20%;
}

.hero-memory-orbs .orb-5 {
  --orb-color: #83e19b;
  --orb-glow: rgba(131,225,155,0.35);
  --duration: 6.5s;
  --delay: -2.5s;

  width: 55px;
  height: 55px;
  top: 44%;
  right: 7%;
}

@keyframes heroOrbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -30px, 0) scale(1.08);
  }

  100% {
    transform: translate3d(-15px, 22px, 0) scale(0.95);
  }
}

/* .opening .stage > :not(.hero-memory-orbs) {
  position: relative;
  z-index: 2;
} */

.hero-memory-orbs {
  transform: translateY(
    calc(var(--p, 0) * -110px)
  );

  opacity: calc(1 - var(--p, 0) * 0.8);
}

@media (max-width: 768px) {
  .hero-memory-orbs .memory-orb {
    scale: 0.6;
  }

  .hero-memory-orbs .orb-1 { left: -5%; }
  .hero-memory-orbs .orb-2 { left: 5%; }
  .hero-memory-orbs .orb-3 { right: -5%; }
  .hero-memory-orbs .orb-4 { right: 4%; }
  .hero-memory-orbs .orb-5 { right: -5%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-memory-orbs .memory-orb {
    animation: none;
  }
}



.opening .stage {
  isolation: isolate;
}

.opening .hero-memory-orbs {
  z-index: -1;
}

.opening .opening-copy,
.opening .hero-content,
.opening .opening-title,
.opening .hero-title,
.opening .hero-orb,
.opening .opening-orb,
.opening .memory-core {
  z-index: 2;
}

.lumi,
#lumi {
  z-index: 50;
}