/* The Cirrus film as a frameless "cinema" card (homepage hero and /press).
   The film already shows an iPhone, so there is no device frame around it: a 9:16 card
   with continuous corners, a glass rim, and an aura behind it painted from the film's own
   colors (film.js samples a few frames a second into a tiny canvas, blurred here). */
.cinema{position:relative;margin:0;isolation:isolate;--rx:0deg;--ry:0deg;--mx:50%;--my:30%;--hl:0}
.cinema .aura{position:absolute;z-index:-1;left:-16%;top:-9%;width:132%;height:118%;border-radius:38%;pointer-events:none;
  filter:blur(44px) saturate(1.35);opacity:0;transform:translateZ(0);transition:opacity 1.2s var(--ease,ease)}
.cinema.lit .aura{opacity:.62}
.cinema .cframe{position:relative;aspect-ratio:9/16;border-radius:clamp(22px,10.5%,34px);overflow:hidden;
  background:radial-gradient(120% 60% at 50% 50%,#0C2652 0%,#081B40 60%,#06132E 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.06),0 34px 70px -30px rgba(3,10,32,.85),0 18px 40px -24px rgba(0,120,150,.45);
  transform:perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition:transform .6s var(--ease,ease);-webkit-mask-image:-webkit-radial-gradient(white,black)}
@supports (corner-shape:superellipse(1.4)){ .cinema .cframe{corner-shape:superellipse(1.4);border-radius:clamp(28px,13%,42px)} }
.cinema.tilting .cframe{transition:transform .18s linear}
/* Glass rim, and a soft light that follows the pointer */
.cinema .cframe::before{content:"";position:absolute;inset:0;z-index:4;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(160deg,rgba(255,255,255,.55),rgba(255,255,255,.16) 38%,rgba(255,255,255,.06) 62%,rgba(140,245,226,.30));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.cinema .cframe::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:radial-gradient(60% 40% at var(--mx) var(--my),rgba(255,255,255,.12),rgba(255,255,255,0) 70%),
             linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0) 16%,rgba(5,15,38,0) 74%,rgba(5,15,38,.40) 100%);
  opacity:calc(.6 + .4 * var(--hl));transition:opacity .4s}
.cinema .poster,.cinema .film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;max-width:none;display:block}
.cinema .film{z-index:1;visibility:hidden;background:transparent}
.cinema.ready .film{visibility:visible}

/* Floating controls: one glass capsule, low and centered */
.cinema .fctl{position:absolute;z-index:5;left:50%;bottom:clamp(10px,3.6%,16px);transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:4px;border-radius:999px;
  background:rgba(7,22,52,.40);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 24px -12px rgba(3,10,32,.7)}
.cinema .fctl::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,.08));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.cinema .fctl[hidden]{display:none}
.cinema .fctl button{position:relative;-webkit-tap-highlight-color:transparent;cursor:pointer;border:0;color:#fff;background:transparent;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background .2s,transform .2s}
.cinema .fctl button:hover{background:rgba(255,255,255,.12)}
.cinema .fctl button:active{transform:scale(.96)}
.cinema .fctl svg{width:15px;height:15px;flex:none;fill:currentColor}
.cinema .fctl .fsound{height:32px;padding:0 13px 0 11px;border-radius:999px;font:600 13px/1 var(--round);letter-spacing:.01em;white-space:nowrap;background:rgba(255,255,255,.10)}
.cinema .fctl .fsound:hover{background:rgba(255,255,255,.18)}
.cinema .fsound svg{color:var(--mark,#8CF5E2)}
.cinema .fbtn{width:32px;height:32px;border-radius:50%;padding:0}
/* Reduced motion and Save-Data: the poster, and a play button in the middle */
.cinema .fplay{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:50%;border:0;cursor:pointer;color:#fff;
  display:grid;place-items:center;background:rgba(10,42,92,.45);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(255,255,255,.22),0 14px 34px -12px rgba(3,10,32,.7)}
.cinema .fplay[hidden]{display:none}
.cinema .fplay svg{width:24px;height:24px;margin-left:3px;fill:currentColor}
@media (max-width:380px){ .cinema .fctl .fsound{height:30px;font-size:12.5px;padding:0 11px 0 9px} .cinema .fbtn{width:30px;height:30px} }
@media (prefers-reduced-motion:reduce){ .cinema .cframe,.cinema .aura,.cinema .cframe::after{transition:none} }
