/* ==========================================================================
   Home page - cinematic scroll scenes
   Rule of the file: every element's CSS describes its FINISHED state. With no
   JavaScript, a blocked CDN, or reduced motion, visitors see complete scenes.
   home.js animates *into* these states with GSAP ScrollTrigger.
   All selectors are scoped under .cine so nothing leaks into other pages.
   ========================================================================== */

.cine { background: #03050a; }

/* Animated values are registered, non-inherited custom properties: GSAP tweens the
   number, CSS composes the transform, and only the owning element restyles. */
@property --cam-x   { syntax: '<angle>';  inherits: false; initial-value: -11deg; }
@property --cam-yaw { syntax: '<angle>';  inherits: false; initial-value: -20deg; }
@property --cam-y   { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --cam-xo  { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --cam-s   { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --lid     { syntax: '<angle>';  inherits: false; initial-value: 14deg; }
@property --mon-y   { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --mon-x   { syntax: '<angle>';  inherits: false; initial-value: 0deg; }
@property --scroll  { syntax: '<length>'; inherits: false; initial-value: 0px; }


/* ---------- scene shell ---------- */
.cine .scene {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  padding-top: calc(var(--hh) + clamp(16px, 3.6vh, 46px));
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 50% 64%, #0f1f3d 0%, rgba(12, 22, 40, 0) 70%),
    linear-gradient(180deg, #070E1B 0%, #050912 62%, #03050a 100%);
}

.cine .scene__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cine .scene__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .055) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 38%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 38%, #000 15%, transparent 72%);
}
.cine .scene__glow { position: absolute; border-radius: 50%; }
.cine .scene__glow--a { width: 46vw; height: 46vw; top: -22%; left: -14%;
  background: radial-gradient(closest-side, rgba(27, 110, 243, .34), transparent); }
.cine .scene__glow--b { width: 38vw; height: 38vw; bottom: -24%; right: -12%;
  background: radial-gradient(closest-side, rgba(78, 146, 255, .22), transparent); }
.cine .scene__glow--c { width: 70vw; height: 46vw; top: 22%; left: 15%;
  background: radial-gradient(closest-side, rgba(27, 110, 243, .2), transparent); }
.cine .scene__glow--d { width: 64vw; height: 44vw; top: 28%; left: 18%;
  background: radial-gradient(closest-side, rgba(78, 146, 255, .18), transparent); }

/* ---------- copy ---------- */
.cine .scene__copy { position: relative; z-index: 6; text-align: center; }
.cine .scene__eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 10px;
}
.cine .scene__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.55rem); line-height: 1.06; letter-spacing: -.035em;
  background: linear-gradient(100deg, #ffffff 30%, #b4cfff 66%, #4E92FF 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.cine .scene__sub {
  margin: 12px auto 0; max-width: 38em;
  font-size: clamp(.95rem, 1.35vw, 1.08rem); line-height: 1.6; color: rgba(255, 255, 255, .7);
}
.cine .scene__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

/* ---------- stage: everything inside is sized in em, so devices scale as one ---------- */
.cine .scene__stage { position: relative; z-index: 2; min-height: 0; display: grid; place-items: center; }
.cine .stage {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: clamp(5px, min(1.02vw, 1.42vh), 15px);
  perspective: 120em; perspective-origin: 50% 40%;
}
.cine .scene__fx { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }

/* floor: a light pool and a receding perspective grid */
.cine .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: radial-gradient(ellipse 42% 48% at 50% 34%, rgba(27, 110, 243, .2), transparent 72%);
  pointer-events: none;
}
.cine .floor__grid {
  position: absolute; left: -60%; right: -60%; top: 22%; height: 160%;
  transform: rotateX(76deg); transform-origin: 50% 0;
  background-image:
    linear-gradient(rgba(110, 160, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 160, 255, .16) 1px, transparent 1px);
  background-size: 4.2em 4.2em;
  -webkit-mask-image: radial-gradient(ellipse 34% 46% at 50% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 34% 46% at 50% 0%, #000 10%, transparent 70%);
}
.cine .bloom {
  position: absolute; left: 50%; top: 50%; width: 76em; height: 46em;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(110, 160, 255, .34), rgba(27, 110, 243, .12) 55%, transparent);
}

/* scroll hint */
.cine .scene__hint {
  position: absolute; left: 50%; bottom: 18px; z-index: 6; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.cine .scene__hint span { width: 1px; height: 34px; background: linear-gradient(transparent, #4E92FF); animation: cine-hint 1.8s ease-in-out infinite; }
@keyframes cine-hint { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ==========================================================================
   SCENE 1 - the laptop (pure CSS 3D)
   Geometry: hinge line at the bottom edge of .rig--laptop. The deck lies flat
   toward the viewer (rotateX 90deg about its back edge); the lid stands on the
   hinge and rotates from -90deg (closed, lying on the deck) to 14deg (open).
   ========================================================================== */
.cine .rig { position: relative; transform-style: preserve-3d; }
.cine .rig--laptop {
  width: 46em; height: 29em;
  /* --cam-xo recentres the projection, which the sideways angle throws to one side;
     closed and open laptops need different amounts, so home.js slides it as the lid opens */
  --cam-x: -11deg; --cam-yaw: -20deg; --cam-y: -7em; --cam-s: 1; --cam-xo: 6em;
  transform-origin: 50% 100%;
  transform: translate(var(--cam-xo), var(--cam-y)) rotateX(var(--cam-x)) rotateY(var(--cam-yaw)) scale(var(--cam-s));
}
.cine .c-laptop { position: absolute; left: 0; top: 100%; width: 100%; height: 0; transform-style: preserve-3d; }

/* --- base deck --- */
.cine .lp-deck {
  position: absolute; left: 0; top: 0; width: 100%; height: 29em;
  transform-origin: 50% 0; transform: rotateX(90deg);
  padding: 2.4em 3.4em 0;
  border-radius: .5em .5em 1.4em 1.4em;
  background: linear-gradient(180deg, #c9d0da 0%, #e3e7ed 38%, #d2d8e0 100%);
  box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .35);
}
.cine .lp-keys {
  display: flex; flex-direction: column; gap: .3em;
  height: 13.6em; padding: .55em;
  border-radius: .55em; background: #1a1f28;
  box-shadow: inset 0 .12em .35em rgba(0, 0, 0, .7);
}
.cine .lp-row { flex: 1; display: flex; gap: .3em; }
.cine .lp-row i {
  flex-basis: 0; border-radius: .28em;
  background: linear-gradient(180deg, #2a303c, #11151c);
  box-shadow: inset 0 .07em 0 rgba(255, 255, 255, .09), 0 .07em 0 #05070a;
}
.cine .lp-pad {
  width: 15em; height: 9.2em; margin: 1.5em auto 0; border-radius: .8em;
  background: linear-gradient(180deg, #d2d8e0, #c3cad4);
  box-shadow: inset 0 0 0 .09em rgba(0, 0, 0, .1), inset 0 .12em .2em rgba(255, 255, 255, .7);
}
/* light from the screen falling on the keyboard */
.cine .lp-spill {
  position: absolute; left: 0; right: 0; top: 0; height: 18em; pointer-events: none;
  background: radial-gradient(ellipse 62% 100% at 50% 0%, rgba(150, 190, 255, .5), rgba(27, 110, 243, .16) 46%, transparent 76%);
  opacity: .55;
}

/* --- base front edge, with the glowing seam and the finger groove --- */
.cine .lp-front {
  position: absolute; left: 0; top: 0; width: 100%; height: 1.2em;
  transform: translateZ(29em);
  border-radius: 0 0 1.3em 1.3em;
  background: linear-gradient(180deg, #c6cdd7 0%, #9aa3b0 55%, #7d8693 100%);
}
.cine .lp-groove {
  position: absolute; left: 50%; top: 0; width: 8em; height: .48em;
  transform: translateX(-50%); border-radius: 0 0 .7em .7em; background: rgba(20, 25, 34, .22);
}
.cine .lp-seam { position: absolute; left: 4%; right: 4%; top: -.06em; height: .16em; opacity: 0; }
.cine .lp-seam::after {
  content: ""; position: absolute; inset: 0; border-radius: 1em;
  background: linear-gradient(90deg, transparent, #8fbaff 20%, #ffffff 50%, #8fbaff 80%, transparent);
  box-shadow: 0 0 1em .25em rgba(78, 146, 255, .7);
  animation: cine-breathe 2.4s ease-in-out infinite;
}
@keyframes cine-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.cine .lp-side {
  position: absolute; left: 100%; top: 0; width: 29em; height: 1.2em;
  transform-origin: 0 0; transform: rotateY(-90deg);
  border-radius: 0 0 .4em 0;
  background: linear-gradient(90deg, #a8b1be, #7c8592);
}
.cine .lp-shadow {
  position: absolute; left: -10%; top: 0; width: 120%; height: 29em;
  transform-origin: 50% 0; transform: translateY(4.5em) rotateX(90deg);
  background: radial-gradient(ellipse 48% 44% at 50% 52%, rgba(0, 0, 0, .7), rgba(0, 0, 0, .25) 55%, transparent 74%);
}

/* --- lid --- */
.cine .lp-lid {
  --lid: 14deg;
  position: absolute; left: 0; bottom: .3em; width: 100%; height: 29em;
  transform-origin: 50% 100%; transform: rotateX(var(--lid));
  transform-style: preserve-3d;
}
.cine .lid-front, .cine .lid-back {
  position: absolute; inset: 0; border-radius: 1.2em 1.2em .55em .55em;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.cine .lid-front {
  transform: translateZ(.28em);
  padding: .8em .8em 1.25em;
  background: #06080d;
  box-shadow: inset 0 0 0 .13em #2b323e;
}
.cine .lid-back {
  transform: rotateY(180deg) translateZ(.28em);
  display: grid; place-items: center;
  background: linear-gradient(160deg, #eef1f5 0%, #cdd4dd 40%, #e2e6eb 66%, #b7bfca 100%);
  box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .5);
}
.cine .lid-logo {
  width: 7em; height: 7em; transform: rotate(180deg);
  filter: drop-shadow(0 0 .7em rgba(78, 146, 255, .55));
}
.cine .lid-edge {
  position: absolute; left: 0; top: 0; width: 100%; height: .56em;
  transform-origin: 50% 0; transform: translateZ(-.28em) rotateX(90deg);
  border-radius: .3em;
  background: linear-gradient(90deg, #8d96a3, #d3d9e1 30%, #edf0f4 50%, #d0d6de 70%, #8d96a3);
}

/* --- screen content: editor on the left, the site building itself on the right --- */
.cine .screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: .35em; background: #0b1220;
  box-shadow: 0 0 2.4em rgba(78, 146, 255, .28);
}
.cine .scr-ui { position: absolute; inset: 0; display: grid; grid-template-columns: 37% 63%; }

.cine .ide {
  display: flex; flex-direction: column; min-width: 0;
  background: #0a1020; border-right: .1em solid #18223a;
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: .62em; color: #c9d6f2;
}
.cine .ide__tabs { display: flex; background: #060b16; }
.cine .ide__tab { padding: .7em 1.1em; color: #5d6b88; }
.cine .ide__tab.is-on { color: #fff; background: #0a1020; box-shadow: inset 0 .16em 0 #4E92FF; }
.cine .ide__code { display: flex; flex-direction: column; gap: .5em; padding: 1em .9em; }
.cine .ln { white-space: nowrap; overflow: hidden; line-height: 1.35; }
.cine .ln i { display: inline-block; width: 2em; color: #3a4762; font-style: normal; }
.cine .ln b { font-weight: 400; }
.cine .ln .t { color: #7FB0FF; } .cine .ln .a { color: #c792ea; } .cine .ln .s { color: #FFC98A; }
.cine .ln .f { color: #7FE7C4; } .cine .ln .k { color: #4E92FF; } .cine .ln .c { color: #56688a; font-style: italic; }

.cine .brw { position: relative; display: flex; flex-direction: column; min-width: 0; background: #e8edf5; }
.cine .brw__bar { display: flex; align-items: center; gap: .55em; padding: .55em .7em; background: #dde3ec; font-size: .6em; }
.cine .brw__dots { display: flex; gap: .32em; }
.cine .brw__dots i { width: .75em; height: .75em; border-radius: 50%; background: #ff5f57; }
.cine .brw__dots i:nth-child(2) { background: #febc2e; } .cine .brw__dots i:nth-child(3) { background: #28c840; }
.cine .brw__url {
  flex: 1; display: flex; align-items: center; gap: .45em; min-width: 0;
  padding: .38em .85em; border-radius: 2em; background: #fff; color: #33425c; white-space: nowrap; overflow: hidden;
}
.cine .brw__url svg { width: 1em; height: 1em; flex: none; color: #16a34a; }
.cine .brw__pub { position: relative; flex: none; padding: .4em 1em; border-radius: 2em; overflow: hidden; color: #fff; font-weight: 600; background: #1B6EF3; }
.cine .pub-b { position: absolute; inset: 0; display: grid; place-items: center; background: #16a34a; }

.cine .brw__page { flex: 1; display: flex; flex-direction: column; gap: 1.05em; padding: 1em 1.2em; overflow: hidden; background: #fff; }
.cine .pg-nav { display: flex; align-items: center; gap: 1em; }
.cine .pg-logo { width: 4.8em; height: .95em; border-radius: .3em; background: #132340; }
.cine .pg-links { display: flex; gap: .75em; margin-left: auto; }
.cine .pg-links i { width: 2.5em; height: .45em; border-radius: .2em; background: #c9d3e3; }
.cine .pg-btn { width: 3.8em; height: 1.35em; border-radius: 2em; background: #1B6EF3; }
.cine .pg-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.1em; align-items: center; }
.cine .pg-h { font-family: var(--font-head); font-weight: 700; font-size: 1.24em; line-height: 1.12; letter-spacing: -.02em; color: #0E1726; white-space: nowrap; }
.cine .pg-h--2 { color: #1B6EF3; }
.cine .pg-line { display: block; width: 92%; height: .42em; margin-top: .6em; border-radius: .2em; background: #d9e0ec; }
.cine .pg-line--s { width: 66%; margin-top: .4em; }
.cine .pg-cta { display: inline-block; margin-top: .85em; padding: .6em 1.25em; border-radius: 2em; font-size: .6em; font-weight: 600; color: #fff; background: #1B6EF3; }
.cine .pg-img { position: relative; height: 8.8em; overflow: hidden; border-radius: .7em; background: linear-gradient(165deg, #2f7bff 0%, #1B6EF3 35%, #132340 100%); }
.cine .pg-sun { position: absolute; right: 18%; top: 16%; width: 2.4em; height: 2.4em; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 1.4em #ffd27a; }
.cine .pg-hill { position: absolute; bottom: -2.6em; border-radius: 50%; }
.cine .pg-hill--a { left: -10%; width: 70%; height: 6em; background: #0f2a5c; }
.cine .pg-hill--b { right: -14%; width: 74%; height: 5em; background: #0a1a3a; }
.cine .pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75em; }
.cine .pg-card { padding: .85em; border-radius: .65em; background: #f2f5fa; box-shadow: 0 .3em .9em rgba(19, 35, 64, .1); }
.cine .pg-ico { display: block; width: 1.6em; height: 1.6em; margin-bottom: .6em; border-radius: .45em; background: #d6e5ff; }
.cine .pg-t { display: block; width: 82%; height: .42em; border-radius: .2em; background: #cdd6e5; }
.cine .pg-t--s { width: 56%; margin-top: .42em; }

.cine .cursor { position: absolute; left: 86%; top: .5em; z-index: 3; width: 1.7em; height: 1.7em; filter: drop-shadow(0 .15em .3em rgba(0, 0, 0, .35)); }
.cine .cursor svg { width: 100%; height: 100%; }
.cine .toast {
  position: absolute; left: 50%; bottom: 1em; z-index: 3; transform: translateX(-50%);
  display: flex; align-items: center; gap: .55em; white-space: nowrap;
  padding: .75em 1.25em; border-radius: 2em; font-size: .56em; font-weight: 600;
  color: #fff; background: #0C1628; box-shadow: 0 .7em 1.8em rgba(0, 0, 0, .3);
}
.cine .toast svg { width: 1.1em; height: 1.1em; color: #4ade80; }

/* power states, glass */
.cine .scr-boot { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #0d2148, #03060d 70%); }
.cine .boot-logo { width: 7.5em; height: 7.5em; filter: drop-shadow(0 0 1.4em rgba(78, 146, 255, .9)); }
.cine .scr-off { position: absolute; inset: 0; background: #020305; opacity: 0; }
.cine .scr-glass, .cine .ph-glass, .cine .mon-glass {
  position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .09) 46%, rgba(255, 255, 255, .02) 52%, transparent 60%);
}

/* ==========================================================================
   SCENE 2 - two phones, the same app
   Each phone stands on a pivot at its bottom edge: rotateX(90deg) is lying
   face-up on the floor, rotateX(0) is standing. Generic devices, no brands.
   ========================================================================== */
.cine .rig--phones { width: 46em; height: 30em; transform: translateY(1em) rotateX(-12deg); }
.cine .slot { position: absolute; bottom: 0; width: 14.6em; height: 30em; transform-style: preserve-3d; }
.cine .slot--ios { left: 3.4em; }
.cine .slot--android { right: 3.4em; }
.cine .ph-pivot { position: absolute; inset: 0; transform-origin: 50% 100%; transform-style: preserve-3d; }
.cine .ph-shadow {
  position: absolute; left: -14%; right: -14%; bottom: 0; height: 100%;
  transform-origin: 50% 100%; transform: rotateX(90deg) scaleY(.16);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, .75), rgba(0, 0, 0, .25) 55%, transparent 72%);
}
.cine .c-phone {
  position: absolute; inset: 0; padding: .55em; border-radius: 2.6em;
  background: linear-gradient(145deg, #9aa3b0 0%, #444c59 30%, #79828f 62%, #2c313a 100%);
  box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .28), inset 0 0 0 .32em #0a0c11, 0 2em 3.5em rgba(0, 0, 0, .55);
}
.cine .c-phone--android {
  border-radius: 2.1em;
  background: linear-gradient(145deg, #2f3542 0%, #12151c 40%, #262b35 70%, #090b0f 100%);
}
.cine .ph-key { position: absolute; right: -.22em; width: .26em; border-radius: 0 .2em .2em 0; background: linear-gradient(90deg, #3a414c, #6b7482); }
.cine .ph-key--a { top: 7em; height: 3.6em; }
.cine .ph-key--b { top: 11.4em; height: 3.6em; }
.cine .ph-key--c { top: 5em; height: 1.6em; right: auto; left: -.22em; border-radius: .2em 0 0 .2em; }
.cine .ph-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2.1em; background: #05070c; }
.cine .c-phone--android .ph-screen { border-radius: 1.65em; }
.cine .ph-status {
  position: absolute; top: 0; left: 0; right: 0; z-index: 8; height: 3.6em;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5em; font-size: .62em; font-weight: 600; color: #fff;
}
.cine .ph-status--android { padding: 0 1.8em; font-weight: 500; }
.cine .ph-icons { display: flex; gap: .3em; }
.cine .ph-icons i { width: .9em; height: .7em; border-radius: .15em; background: #fff; }
.cine .ph-icons i:last-child { width: 1.5em; }
.cine .ph-status--android .ph-icons i { width: .75em; height: .75em; border-radius: 50%; }
.cine .ph-status--android .ph-icons i:last-child { width: .75em; height: 1em; border-radius: .15em; }
.cine .ph-island { position: absolute; top: .6em; left: 50%; z-index: 9; width: 4.6em; height: 1.35em; transform: translateX(-50%); border-radius: 1em; background: #000; }
.cine .ph-punch { position: absolute; top: .8em; left: 50%; z-index: 9; width: .95em; height: .95em; margin-left: -.475em; border-radius: 50%; background: #000; box-shadow: 0 0 0 .12em #15181e; }
.cine .ph-home, .cine .ph-gesture { position: absolute; bottom: .55em; left: 50%; z-index: 9; height: .24em; border-radius: 1em; background: rgba(255, 255, 255, .8); transform: translateX(-50%); }
.cine .ph-home { width: 5.2em; }
.cine .ph-gesture { width: 3.8em; height: .2em; }
.cine .ph-off { position: absolute; inset: 0; z-index: 7; background: #020306; opacity: 0; }
.cine .ph-glass { z-index: 10; }

/* lock screen - slides away when unlocked (finished state: gone) */
.cine .lock {
  position: absolute; inset: 0; z-index: 6; font-size: .66em;
  display: flex; flex-direction: column; align-items: center; padding-top: 6em; color: #fff;
  background: radial-gradient(ellipse at 28% 18%, #2f7bff, transparent 58%), radial-gradient(ellipse at 80% 92%, #1a3a7a, transparent 62%), #0a1530;
  transform: translateY(-100%);
}
.cine .lock__date { opacity: .85; }
.cine .lock__time { font-family: var(--font-head); font-weight: 600; font-size: 5.4em; line-height: 1; letter-spacing: -.03em; }
.cine .lock__note {
  display: flex; align-items: center; gap: .9em; width: 86%; margin-top: 3em;
  padding: 1em 1.1em; border-radius: 1.3em; background: rgba(255, 255, 255, .16); box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .25);
}
.cine .note-logo { width: 2.4em; height: 2.4em; flex: none; padding: .3em; border-radius: .6em; background: #0C1628; }
.cine .lock__note b { display: block; }
.cine .lock__bar { position: absolute; bottom: 1.6em; width: 8em; height: .32em; border-radius: 1em; background: #fff; }

/* the app - identical on both phones */
.cine .app { position: absolute; inset: 0; z-index: 2; font-size: .66em; color: #fff; background: linear-gradient(180deg, #0C1628, #08101f); }
.cine .app__main { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1.1em; padding: 5.2em 1.5em 6em; }
/* fixed-height pieces never shrink; the timetable list absorbs whatever space is left */
.cine .app__main > * { flex-shrink: 0; }
.cine .app__main > .app__list { flex: 1 1 auto; min-height: 4em; }
.cine .app__head { display: flex; align-items: center; justify-content: space-between; }
.cine .app__head small { display: block; color: rgba(255, 255, 255, .55); }
.cine .app__head b { font-family: var(--font-head); font-size: 1.55em; }
.cine .app__avatar { width: 2.7em; height: 2.7em; border-radius: 50%; background: linear-gradient(135deg, #4E92FF, #1B6EF3); box-shadow: 0 0 0 .2em rgba(78, 146, 255, .25); }
.cine .app__card {
  position: relative; overflow: hidden; padding: 1.1em 1.25em; border-radius: 1.3em;
  background: linear-gradient(135deg, #2d7bff, #1B6EF3 45%, #0f4fc0); box-shadow: 0 .9em 2em rgba(27, 110, 243, .38);
}
.cine .app__card small, .cine .app__card > span:not(.app__tap) { display: block; opacity: .82; }
.cine .app__card b { display: block; margin: .2em 0; font-family: var(--font-head); font-size: 1.2em; }
.cine .app__tap { position: absolute; left: 72%; top: 50%; width: 3.2em; height: 3.2em; margin: -1.6em; border-radius: 50%; background: rgba(255, 255, 255, .5); opacity: 0; }
.cine .app__chips { display: flex; gap: .5em; }
.cine .app__chips span { padding: .45em 1em; border-radius: 2em; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }
.cine .app__chips .is-on { color: #0C1628; background: #fff; font-weight: 600; }
.cine .app__list { position: relative; overflow: hidden; border-radius: 1.1em; background: rgba(255, 255, 255, .04); }
.cine .app__scroll { --scroll: -3.3em; padding: .3em 1em; transform: translateY(var(--scroll)); }
.cine .app__row { display: flex; align-items: center; gap: .85em; padding: .78em 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cine .app__row i { width: .7em; height: .7em; flex: none; border-radius: 50%; }
.cine .dot-g { background: #4ade80; } .cine .dot-b { background: #4E92FF; } .cine .dot-o { background: #FFC98A; }
.cine .app__row b { display: block; font-weight: 600; }
.cine .app__row small { color: rgba(255, 255, 255, .5); }
.cine .app__chart { padding: .9em 1.1em; border-radius: 1.1em; background: rgba(255, 255, 255, .05); }
.cine .app__chart small { color: rgba(255, 255, 255, .6); }
.cine .app__bars { display: flex; align-items: flex-end; gap: .55em; height: 4.6em; margin-top: .7em; }
.cine .app__bars span { flex: 1; height: calc(var(--h) * 100%); transform-origin: 50% 100%; border-radius: .4em .4em .15em .15em; background: linear-gradient(180deg, #8fbaff, #1B6EF3); }
.cine .app__nav { position: absolute; left: 1.3em; right: 1.3em; bottom: 2.2em; height: 3.3em; display: flex; align-items: center; justify-content: space-around; border-radius: 1.7em; background: rgba(255, 255, 255, .08); }
.cine .app__nav i { width: 1.35em; height: 1.35em; border-radius: .45em; background: rgba(255, 255, 255, .3); }
.cine .app__nav .is-on { background: #4E92FF; box-shadow: 0 0 .8em rgba(78, 146, 255, .7); }
.cine .app__splash { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; opacity: 0; background: radial-gradient(circle, #12284f, #050a14 70%); }
.cine .splash-logo { width: 6.5em; height: 6.5em; filter: drop-shadow(0 0 1.2em rgba(78, 146, 255, .8)); }

/* the beam linking both phones, with data packets travelling along it */
.cine .beam { position: absolute; left: 18em; right: 18em; top: 42%; height: .3em; transform: translateZ(-1em); }
.cine .beam__line {
  position: absolute; inset: 0; border-radius: 1em;
  background: linear-gradient(90deg, rgba(78, 146, 255, .15), #9cc4ff 50%, rgba(78, 146, 255, .15));
  box-shadow: 0 0 1.2em .25em rgba(78, 146, 255, .55);
}
/* each packet is a beam-wide track, so translateX(100%) carries its dot end to end */
.cine .pkt { position: absolute; inset: 0; animation: cine-pkt 2.6s linear infinite; }
.cine .pkt::after {
  content: ""; position: absolute; left: -.45em; top: 50%; width: .9em; height: .9em; margin-top: -.45em;
  border-radius: 50%; background: #fff; box-shadow: 0 0 .9em .35em #4E92FF;
}
.cine .pkt:nth-child(3) { animation-delay: -.65s; animation-direction: reverse; }
.cine .pkt:nth-child(4) { animation-delay: -1.3s; }
.cine .pkt:nth-child(5) { animation-delay: -1.95s; animation-direction: reverse; }
@keyframes cine-pkt {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* app cards that peel off the screens and orbit (finished state: tucked away) */
.cine .orbit { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.cine .orb-card {
  position: absolute; width: 10em; padding: .8em 1em; border-radius: 1em; opacity: 0;
  font-size: .78em; color: #fff;
  background: linear-gradient(135deg, rgba(27, 110, 243, .92), rgba(15, 40, 90, .92));
  border: 1px solid rgba(150, 190, 255, .45);
  box-shadow: 0 0 2em rgba(78, 146, 255, .45), 0 1em 2em rgba(0, 0, 0, .4);
}
.cine .orb-card small { display: block; opacity: .75; }
.cine .orb-card b { font-family: var(--font-head); font-size: 1.45em; }
.cine .orb-card--a { left: 5.5em; top: 13.5em; }
.cine .orb-card--b { right: 5.5em; top: 13.5em; }
.cine .orb-card--c { left: 50%; top: 22em; margin-left: -6.5em; }
.cine .bloom--orb { width: 40em; height: 40em; opacity: .45; }

/* ==========================================================================
   SCENE 3 - the monitor and its CEO dashboard
   ========================================================================== */
.cine .desk {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background:
    radial-gradient(ellipse 40% 60% at 50% 0%, rgba(78, 146, 255, .22), transparent 70%),
    linear-gradient(180deg, rgba(18, 30, 58, .55), rgba(5, 9, 18, .95));
  border-top: 1px solid rgba(140, 180, 255, .18);
}
.cine .rig--monitor { --mon-y: -.5em; --mon-x: 0deg; width: 60em; height: 40em; transform-origin: 50% 100%;
  transform: translateY(var(--mon-y)) rotateX(var(--mon-x)); }
.cine .monitor {
  position: absolute; left: 0; top: 0; width: 60em; height: 34.4em; padding: .6em; border-radius: 1em;
  background: #06080d;
  box-shadow: inset 0 0 0 .12em #2c3340, 0 0 4em rgba(78, 146, 255, .18), 0 3em 6em rgba(0, 0, 0, .6);
}
.cine .mon-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: .45em; background: #0a1120; }
.cine .mon-off { position: absolute; inset: 0; z-index: 4; background: #020306; opacity: 0; }
.cine .mon-glass { z-index: 5; }
.cine .mon-neck {
  position: absolute; left: 50%; top: 34.2em; width: 6.4em; height: 4.6em; transform: translateX(-50%);
  background: linear-gradient(90deg, #7b8492, #d9dee5 45%, #b8c0cb 62%, #6f7886);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.cine .mon-foot {
  position: absolute; left: 50%; top: 38.7em; width: 21em; height: 1.2em; transform: translateX(-50%);
  border-radius: .6em .6em .4em .4em;
  background: linear-gradient(180deg, #e4e8ee, #9aa3b0);
  box-shadow: 0 1.4em 2.4em rgba(0, 0, 0, .65);
}
.cine .bloom--monitor { width: 90em; height: 52em; opacity: .7; }

/* hologram chart that lifts out of the screen (finished state: hidden) */
.cine .holo {
  position: absolute; right: 8.5em; top: 13.5em; width: 10em; height: 10em; opacity: 0;
  display: grid; place-items: center; transform-style: preserve-3d;
  background: radial-gradient(closest-side, rgba(78, 196, 255, .22), transparent);
}
.cine .holo svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 .5em rgba(120, 210, 255, .9)); }
.cine .holo .dn-bg { stroke: rgba(140, 220, 255, .18); }
.cine .holo .dn-val { stroke: #7fd8ff; }
.cine .holo b { position: absolute; font-family: var(--font-head); font-size: 1.7em; color: #c8f0ff; text-shadow: 0 0 .6em #4fc3ff; }

/* dashboard (sized in its own em so it scales with the monitor) */
.cine .c-dash {
  position: absolute; inset: 0; display: grid; grid-template-columns: 4.8em minmax(0, 1fr);
  font-size: .62em; color: #dbe6ff; background: linear-gradient(180deg, #0b1528, #091020);
}
.cine .c-dash__side {
  display: flex; flex-direction: column; align-items: center; gap: 1.6em; padding: 1.6em 0;
  background: #070d1a; border-right: 1px solid rgba(255, 255, 255, .06);
}
.cine .dash-logo { width: 2.7em; height: 2.7em; margin-bottom: .6em; }
.cine .c-dash__side i { width: 1.55em; height: 1.55em; border-radius: .45em; background: rgba(255, 255, 255, .12); }
.cine .c-dash__side i.is-on { background: #1B6EF3; box-shadow: 0 0 1em rgba(27, 110, 243, .65); }
.cine .c-dash__main {
  position: relative; min-height: 0;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 1.25em; padding: 1.6em 2em;
}
.cine .c-dash__top { display: flex; align-items: center; gap: 1.2em; }
.cine .c-dash__top small { display: block; color: rgba(255, 255, 255, .45); }
.cine .c-dash__hello { display: block; font-family: var(--font-head); font-size: 1.75em; font-weight: 600; color: #fff; white-space: nowrap; }
.cine .c-dash__demo {
  margin-left: auto; padding: .4em 1em; border-radius: 2em; font-size: .82em; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #FFC98A; border: 1px solid rgba(255, 201, 138, .55);
}
.cine .c-dash__avatar { width: 2.7em; height: 2.7em; border-radius: 50%; background: linear-gradient(135deg, #4E92FF, #1B6EF3); }
.cine .c-dash__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em; }
.cine .kpi, .cine .dcard, .cine .c-dash__feed {
  border-radius: .9em; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07);
}
.cine .kpi { padding: 1em 1.2em; }
.cine .kpi small { display: block; color: rgba(255, 255, 255, .52); white-space: nowrap; }
.cine .kpi b { display: block; margin: .2em 0 .1em; font-family: var(--font-head); font-size: 2.1em; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.cine .kpi em { font-style: normal; font-weight: 600; font-size: .9em; color: #4ade80; }
.cine .kpi em.is-warn { color: #FFC98A; }
.cine .c-dash__charts { display: grid; grid-template-columns: 1.6fr 1.1fr .95fr; gap: 1em; min-height: 0; }
.cine .dcard { display: flex; flex-direction: column; min-height: 0; padding: 1em 1.2em; }
.cine .dcard header { display: flex; justify-content: space-between; gap: .5em; font-weight: 600; color: #fff; white-space: nowrap; }
.cine .dcard header span { font-weight: 400; color: rgba(255, 255, 255, .4); }
.cine .dcard svg { flex: 1; width: 100%; min-height: 0; margin-top: .6em; overflow: visible; }
.cine .dl-grid { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cine .dl-line { fill: none; stroke: #4E92FF; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cine .c-bars { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: .7em; margin-top: .8em; }
.cine .c-bars span { flex: 1; height: calc(var(--h) * 100%); transform-origin: 50% 100%; border-radius: .4em .4em .15em .15em; background: linear-gradient(180deg, #8fbaff, #1B6EF3); }
.cine .donut { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.cine .donut svg { width: auto; height: 100%; max-height: 10em; margin: 0; transform: rotate(-90deg); }
.cine .dn-bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 4.2; }
.cine .dn-val { fill: none; stroke: #4E92FF; stroke-width: 4.2; stroke-linecap: round; stroke-dasharray: 82 100; }
.cine .donut b { position: absolute; font-family: var(--font-head); font-size: 1.7em; color: #fff; }
.cine .c-dash__feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55em 2.2em; padding: 1em 1.2em; }
.cine .c-dash__feed header { grid-column: 1 / -1; font-weight: 600; color: #fff; }
.cine .frow { display: flex; align-items: center; gap: .7em; min-width: 0; color: rgba(255, 255, 255, .76); }
.cine .frow span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cine .frow time { color: rgba(255, 255, 255, .35); }
.cine .fd { width: .6em; height: .6em; flex: none; border-radius: 50%; }
.cine .fd--g { background: #4ade80; } .cine .fd--b { background: #4E92FF; } .cine .fd--o { background: #FFC98A; }
.cine .c-dash__toast {
  position: absolute; left: 50%; top: 1.45em; z-index: 3; transform: translateX(-50%); white-space: nowrap;
  padding: .75em 1.3em; border-radius: .8em;
  font-weight: 600; color: #fff; background: #1B6EF3; box-shadow: 0 .9em 2.2em rgba(27, 110, 243, .5);
}

/* ==========================================================================
   Sizing per stage, so each device fits both the width and the height left
   under the copy - including short laptop screens.
   ========================================================================== */
.cine .stage--laptop  { font-size: clamp(5px, min(1vw, 1.3vh), 14px); }
.cine .stage--phones  { font-size: clamp(5px, min(1.2vw, 1.78vh), 17px); }
.cine .stage--monitor { font-size: clamp(4px, min(1.02vw, 1.36vh), 14px); }

@media (max-width: 767px) {
  .cine .scene { min-height: 620px; padding-top: calc(var(--hh) + 18px); }
  .cine .scene__eyebrow { font-size: .68rem; letter-spacing: .24em; }
  .cine .scene__title { font-size: clamp(1.85rem, 8.6vw, 2.4rem); }
  .cine .scene__sub { font-size: .94rem; padding: 0 2px; }
  .cine .scene__actions { gap: 10px; margin-top: 16px; }
  .cine .scene__actions .btn { padding: 12px 18px; font-size: .9rem; }
  .cine .stage--laptop  { font-size: clamp(4px, min(1.5vw, .95vh), 8px); }
  /* a gentler sideways angle keeps the laptop's front corner on a narrow screen */
  .cine .rig--laptop { --cam-yaw: -13deg; --cam-xo: 4em; }
  .cine .stage--phones  { font-size: clamp(4.6px, min(2.05vw, 1.12vh), 9.6px); }
  .cine .stage--monitor { font-size: clamp(3.8px, min(1.42vw, .95vh), 7.4px); }
  .cine .floor__grid { opacity: .6; }
  .cine .scene__hint { display: none; }
}
@media (max-height: 700px) and (min-width: 768px) {
  .cine .scene__sub { display: none; }
}

/* ==========================================================================
   Static mode: reduced motion, or the motion library failed to load.
   Scenes show their finished state and simply fade in as they arrive.
   ========================================================================== */
.cine--static .scene__hint { display: none; }
.cine--static .scene__stage { opacity: 0; transition: opacity .9s ease !important; }
.cine--static .scene.is-in .scene__stage { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .cine .scene__hint span, .cine .lp-seam::after, .cine .pkt { animation: none !important; }
  .cine .pkt { display: none; }
}

/* ==========================================================================
   Scene 1 backdrop: black at first, then a blurred cafe with people walking
   past fades in as the lid opens. The cafe is painted small on a canvas by
   home.js, then scaled up and blurred here - a camera's depth of field.
   ========================================================================== */
.cine .scene--web {
  background: radial-gradient(ellipse 60% 50% at 50% 62%, #0a1020 0%, #020306 62%, #000 100%);
}
.cine .cafe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 1; transform: scale(1.07);
  filter: blur(7px) saturate(1.1);
}
.cine .cafe__shade {
  position: absolute; inset: 0; opacity: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .6) 32%, rgba(0, 0, 0, .22) 58%, rgba(0, 0, 0, .62) 100%),
    radial-gradient(ellipse 46% 42% at 50% 64%, rgba(0, 0, 0, .5), transparent 72%);
}
@media (max-width: 767px) {
  .cine .cafe { filter: blur(4px) saturate(1.1); }
}

/* ==========================================================================
   Scene 2: platform logos beside the phones, plus icons orbiting each phone.
   Layers never share a transform: .plat places it, .plat__in is driven by
   the scroll timeline, .plat__float runs the continuous drift.
   ========================================================================== */
.cine .cine-defs { position: absolute; }
.cine .plat { position: absolute; top: 4em; width: 15em; height: 15em; transform: translateZ(-4em); transform-style: preserve-3d; }
.cine .plat--ios { left: -18em; }
.cine .plat--android { right: -18em; }
.cine .plat__in { width: 100%; height: 100%; transform-style: preserve-3d; }
.cine .plat__float {
  position: relative; width: 100%; height: 100%; display: grid; place-items: center;
  animation: cine-plat-float 7s ease-in-out infinite;
}
.cine .plat--android .plat__float { animation-delay: -3.5s; }
.cine .plat__float::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(78, 146, 255, .32), transparent);
}
.cine .plat--android .plat__float::before { background: radial-gradient(closest-side, rgba(61, 220, 132, .28), transparent); }
.cine .plat__logo { position: relative; width: 66%; height: 66%; filter: drop-shadow(0 0 1.1em rgba(140, 185, 255, .8)); }
.cine .plat--android .plat__logo { filter: drop-shadow(0 0 1.1em rgba(61, 220, 132, .75)); }
.cine .plat__ring {
  position: absolute; inset: 4%; border-radius: 50%;
  border: .14em solid rgba(140, 185, 255, .6); opacity: 0;
  animation: cine-ring 3s ease-out infinite;
}
.cine .plat__ring--b { animation-delay: -1.5s; }
.cine .plat--android .plat__ring { border-color: rgba(61, 220, 132, .55); }
.cine .plat__flash { position: absolute; inset: -25%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .6), transparent); }
@keyframes cine-plat-float {
  0%, 100% { transform: translateY(0) rotateY(-16deg) rotateZ(-3deg); }
  50%      { transform: translateY(-1.5em) rotateY(16deg) rotateZ(3deg); }
}
@keyframes cine-ring {
  0%   { transform: scale(.55); opacity: .9; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* small icons orbiting each phone in 3D - they pass in front of and behind it */
.cine .spin { position: absolute; bottom: 10em; width: 0; height: 0; transform-style: preserve-3d; }
.cine .spin--ios { left: 10.7em; transform: rotateX(-12deg) rotateZ(-9deg); }
.cine .spin--android { left: 35.3em; transform: rotateX(-12deg) rotateZ(9deg); }
.cine .spin__pop, .cine .spin__track { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.cine .spin__track { animation: cine-spin 11s linear infinite; }
.cine .spin--android .spin__track { animation-direction: reverse; animation-duration: 13s; }
.cine .spin__track i {
  position: absolute; left: -1.3em; top: -1.3em; width: 2.6em; height: 2.6em;
  display: grid; place-items: center; transform: rotateY(var(--a)) translateZ(11em);
}
.cine .spin__logo { width: 100%; height: 100%; filter: drop-shadow(0 0 .6em rgba(140, 185, 255, .9)); }
.cine .spin--android .spin__logo { filter: drop-shadow(0 0 .6em rgba(61, 220, 132, .9)); }
.cine .spin__dot { width: .8em; height: .8em; border-radius: 50%; background: #fff; box-shadow: 0 0 .9em .3em #4E92FF; }
.cine .spin--android .spin__dot { box-shadow: 0 0 .9em .3em #3DDC84; }
@keyframes cine-spin { to { transform: rotateY(360deg); } }

@media (max-width: 767px) {
  .cine .plat { top: -6em; width: 9em; height: 9em; transform: translateZ(-8em); }
  .cine .plat--ios { left: 3.4em; }
  .cine .plat--android { right: 3.4em; }
  .cine .spin__track i { transform: rotateY(var(--a)) translateZ(9em); }
}
@media (prefers-reduced-motion: reduce) {
  .cine .plat__float, .cine .plat__ring, .cine .spin__track { animation: none !important; }
  /* frozen orbiting icons would just sit on the screens like a glitch */
  .cine .plat__ring, .cine .spin { display: none; }
}
