/* Page film (see cs-pagefilm.js). Three kinds of things live here:
 * 1. the ways in: a button in the navigation bar, one in the hero and a few call-to-action bands;
 * 2. the film's chrome, built by the script and designed for a phone first: the page frame on top,
 *    then a band with the chapter, the captions and a small blueprint drawing, then the controls;
 * 3. the paused state: the page is the visitor's again and only a small "resume" pill stays.
 * The page underneath is never restyled: the camera only scrolls it. */

/* ============ 1. the ways in ============ */
[data-cs-pagefilm-show][hidden]{display:none!important}
.cs-pf-ico{position:relative;flex:none;display:grid;place-items:center;border-radius:50%;background:#e0c28a;color:#0d1b28}
.cs-pf-ico svg{fill:currentColor;margin-left:8%}
.cs-pf-ico::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1px solid rgba(224,194,138,.65);animation:cs-pf-ring 2.8s ease-out infinite}
@keyframes cs-pf-ring{0%{transform:scale(.9);opacity:.9}100%{transform:scale(1.4);opacity:0}}

/* navigation bar: always in reach. On a phone it is a full-width strip under the bar, one thumb away. */
.cs-pf-nav{appearance:none;display:inline-flex;align-items:center;gap:9px;margin:0 2px 0 0;padding:5px 15px 5px 5px;min-height:40px;border:1px solid rgba(224,194,138,.6);border-radius:999px;
 background:rgba(224,194,138,.08);color:#f6f1e7;font:inherit;font-size:13px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color .2s,border-color .2s}
.cs-pf-nav .cs-pf-ico{width:28px;height:28px}
.cs-pf-nav .cs-pf-ico svg{width:13px;height:13px}
.cs-pf-nav small{display:none;font-size:11px;font-weight:500;color:#bdccd4;font-variant-numeric:tabular-nums}
.cs-pf-nav:hover{background:rgba(224,194,138,.18);border-color:#e0c28a}
.cs-pf-nav:focus-visible,.cs-pf-open:focus-visible,.cs-pf-go:focus-visible{outline:3px solid #1cb0c3;outline-offset:3px}
@media(max-width:760px){
 .cs-pf-nav{position:absolute;left:0;right:0;top:100%;z-index:1;justify-content:center;gap:10px;margin:0;padding:6px 14px;min-height:44px;border:0;border-top:1px solid rgba(224,194,138,.28);border-bottom:1px solid rgba(224,194,138,.28);
  border-radius:0;background:rgba(10,22,34,.94);font-size:14px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
 .cs-pf-nav .cs-pf-ico{width:26px;height:26px}
 .cs-pf-nav small{display:inline;font-size:12px}
 html.cs-pf-on .cs-pf-nav{visibility:hidden}
}

/* hero: the big play control. Wide screens: it lives in the hero's sticky stage, under the elephant on the
 * first screen, and slides to the left beside the text as the hero's chapters scroll by (--q, 0 → 1, is set
 * from the scroll progress by the script; without motion it simply sits by the text). Phones, and the
 * hero's plain layout: a full-width button in the copy; the strip under the navigation bar takes over
 * once the first screen is left. */
.cs-pf-hero{--q:0;appearance:none;position:absolute;z-index:6;left:calc(57% * (1 - var(--q)) + 6.5% * var(--q));top:calc(74% * (1 - var(--q)) + (100% - 126px) * var(--q));
 display:inline-flex;align-items:center;gap:calc(18px - 6px * var(--q));margin:0;padding:10px calc(30px - 8px * var(--q)) 10px 10px;border:1px solid rgba(224,194,138,.75);border-radius:999px;
 background:rgba(8,18,28,.72);color:#fafaf7;font:inherit;font-size:calc(22px - 7px * var(--q));font-weight:600;line-height:1.1;letter-spacing:-.01em;white-space:nowrap;cursor:pointer;
 box-shadow:0 18px 50px -16px rgba(0,0,0,.75),0 0 calc(46px * (1 - var(--q))) -6px rgba(224,194,138,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background-color .25s,border-color .25s}
.cs-pf-hero .cs-pf-ico{width:calc(72px - 30px * var(--q));height:calc(72px - 30px * var(--q))}
.cs-pf-hero .cs-pf-ico svg{width:42%;height:42%}
/* short windows (a phone on its side, a small laptop window): smaller, and clear of the hero's bottom bar */
@media(min-width:761px) and (max-height:600px){
 .cs-pf-hero{top:calc((100% - 148px) * (1 - var(--q)) + (100% - 126px) * var(--q));gap:calc(13px - 3px * var(--q));padding:7px calc(22px - 4px * var(--q)) 7px 7px;font-size:calc(17px - 3px * var(--q))}
 .cs-pf-hero .cs-pf-ico{width:calc(50px - 12px * var(--q));height:calc(50px - 12px * var(--q))}
}
.cs-pf-hero:hover{background:rgba(20,41,56,.92);border-color:#e0c28a}
.cs-pf-hero:hover .cs-pf-ico{transform:scale(1.05)}
.cs-pf-hero .cs-pf-ico{transition:transform .25s}
.cs-pf-hero:focus-visible{outline:3px solid #1cb0c3;outline-offset:4px}
.journey[data-mode="static"] .cs-pf-hero{display:none}
/* while the film runs its own entry points are out of the way; the explainer's button is page content and stays */
html.cs-pf-on .cs-pf-hero,html.cs-pf-on .cs-pf-launch .cs-pf-open:not(.cs-pf-open--how){visibility:hidden}
.cs-pf-launch{display:none;margin:18px 0 0}
/* (not while the film hero is on: journey.js measures the hero text with data-mode still "static",
 * and this button made the text too tall for short windows, which switched the film hero off) */
.journey[data-mode="static"]:not(.is-enhanced) .cs-pf-launch{display:flex;flex-wrap:wrap;gap:10px}
.cs-pf-open{appearance:none;display:inline-flex;align-items:center;gap:14px;margin:0;padding:9px 26px 9px 9px;min-height:64px;border:1px solid rgba(224,194,138,.75);border-radius:999px;
 background:rgba(8,18,28,.7);color:#fafaf7;font:inherit;font-size:17px;font-weight:600;line-height:1.2;text-align:left;cursor:pointer;
 -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background-color .25s,border-color .25s}
.cs-pf-open:hover{background:rgba(20,41,56,.92);border-color:#e0c28a}
.cs-pf-open .cs-pf-ico{width:46px;height:46px}
.cs-pf-open .cs-pf-ico svg{width:20px;height:20px}
/* the explainer's button ("see how each system is put together") lives in the text column, on the left,
 * apart from the film's play control so the two are not taken for one thing. Outlined icon, not filled. */
.cs-pf-open--how .cs-pf-ico{background:transparent;border:1.5px solid #e0c28a;color:#e0c28a}
.cs-pf-open--how .cs-pf-ico::after{display:none}
/* wide screens with the film hero on: only that button shows in the text; the film has its floating control */
@media(min-width:761px){
 .journey.is-enhanced .cs-pf-launch{display:block}
 .journey.is-enhanced .cs-pf-launch .cs-pf-open:not(.cs-pf-open--how){display:none}
 .cs-pf-open--how{min-height:56px;padding:6px 22px 6px 6px;gap:12px;font-size:16px}
 .cs-pf-open--how .cs-pf-ico{width:42px;height:42px}
 .cs-pf-open--how .cs-pf-ico svg{width:17px;height:17px}
}
@media(max-width:760px){
 .cs-pf-hero{display:none}
 /* phones: a card of its own, set apart from the two text buttons above it */
 .cs-pf-launch{display:block;margin:26px 0 6px}
 .cs-pf-open{position:relative;overflow:hidden;width:100%;gap:15px;padding:13px 16px 15px 13px;min-height:84px;border-radius:18px;border-color:rgba(224,194,138,.6);font-size:17.5px;line-height:1.2;
  background:linear-gradient(135deg,rgba(16,38,58,.92),rgba(8,18,28,.9));background-image:linear-gradient(rgba(224,194,138,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(224,194,138,.06) 1px,transparent 1px),linear-gradient(135deg,rgba(16,38,58,.94),rgba(8,18,28,.92));
  background-size:18px 18px,18px 18px,auto;box-shadow:0 18px 40px -18px rgba(0,0,0,.8),inset 0 0 0 1px rgba(255,255,255,.03)}
 .cs-pf-open .cs-pf-ico{width:58px;height:58px}
 .cs-pf-open .cs-pf-ico svg{width:24px;height:24px}
 .cs-pf-open .cs-pf-ico::after{inset:-7px;border-width:1.5px}
 .cs-pf-open small{display:block;margin-top:4px;color:#bdccd4;font-size:13px;font-weight:400;line-height:1.3}
 /* a thin line that keeps playing along the bottom: this is a video */
 .cs-pf-open::after{content:"";position:absolute;left:0;bottom:0;height:3px;width:38%;border-radius:2px;background:linear-gradient(90deg,transparent,#e0c28a 40%,#1cb0c3);animation:cs-pf-run 3.2s cubic-bezier(.4,0,.2,1) infinite}
 html.cs-pf-at-top .cs-pf-nav{display:none}
}
@media(max-width:760px) and (max-height:780px){.cs-pf-launch{margin:18px 0 2px}.cs-pf-open{min-height:72px;padding:10px 14px 12px 11px;font-size:16.5px}.cs-pf-open .cs-pf-ico{width:50px;height:50px}.cs-pf-open small{font-size:12.5px;margin-top:3px}}
/* phones: two buttons now share the place of one, so each is a slimmer card with one line of text */
@media(max-width:760px){
 .cs-pf-launch{display:grid;gap:8px}
 .cs-pf-launch .cs-pf-open{min-height:58px;padding:7px 14px 9px 9px;gap:13px;font-size:16px;border-radius:16px}
 .cs-pf-launch .cs-pf-open .cs-pf-ico{width:42px;height:42px}
 .cs-pf-launch .cs-pf-open .cs-pf-ico svg{width:18px;height:18px}
 .cs-pf-launch .cs-pf-open small{display:none}
 .cs-pf-launch .cs-pf-open--how::after{display:none}
}
@keyframes cs-pf-run{0%{transform:translateX(-100%)}100%{transform:translateX(265%)}}
@media(min-width:761px){.cs-pf-open small{display:none}}

/* call-to-action bands between sections: a card inside the same content column as the section it opens,
   on that section's own background (1 = starting points, 2 = how we work, 3 = contact) */
.cs-pf-cta{margin:0;padding:clamp(36px,5vw,72px) 0 0;background:#fafaf7;color:#f6f1e7}
.cs-pf-cta--2,.cs-pf-cta--3{background:#0d1b28}
.cs-pf-cta-in{width:min(100%,1440px);margin-inline:auto;padding-inline:5.5%}
.cs-pf-cta--1 .cs-pf-cta-in{width:min(100%,1320px);padding-inline:clamp(20px,5.5vw,72px)}
.cs-pf-cta-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px clamp(20px,4vw,56px);
 padding:clamp(22px,2.4vw,34px) clamp(22px,3vw,44px);border:1px solid rgba(224,194,138,.3);border-radius:22px;background:linear-gradient(135deg,#12293e,#0a1622 70%);box-shadow:0 26px 60px -36px rgba(13,27,40,.6)}
.cs-pf-cta--2 .cs-pf-cta-card,.cs-pf-cta--3 .cs-pf-cta-card{background:linear-gradient(135deg,rgba(28,176,195,.1),rgba(255,255,255,.035) 60%);box-shadow:none}
.cs-pf-cta-card::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(224,194,138,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(224,194,138,.08) 1px,transparent 1px);background-size:36px 36px;
 -webkit-mask-image:linear-gradient(90deg,transparent 20%,#000 100%);mask-image:linear-gradient(90deg,transparent 20%,#000 100%)}
.cs-pf-cta p{margin:0;flex:1 1 300px;max-width:52ch;font-size:clamp(19px,1.7vw,26px);line-height:1.22;font-weight:600;letter-spacing:-.012em;color:#fafaf7;text-wrap:balance}
.cs-pf-cta p small{display:block;margin-bottom:7px;color:#e0c28a;font-size:11.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.cs-pf-go{appearance:none;flex:none;display:inline-flex;align-items:center;gap:13px;margin:0;padding:8px 24px 8px 8px;min-height:58px;border:0;border-radius:999px;background:#e0c28a;color:#0d1b28;
 font:inherit;font-size:16px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer;transition:transform .2s,box-shadow .2s}
.cs-pf-go .cs-pf-ico{width:42px;height:42px;background:#0d1b28;color:#e0c28a}
.cs-pf-go .cs-pf-ico svg{width:18px;height:18px}
.cs-pf-go .cs-pf-ico::after{border-color:rgba(13,27,40,.5)}
.cs-pf-go small{display:block;margin-top:1px;font-size:12px;font-weight:500;opacity:.78}
.cs-pf-go:hover{transform:translateY(-2px);box-shadow:0 16px 34px -14px rgba(224,194,138,.75)}
@media(max-width:760px){.cs-pf-cta--2 .cs-pf-cta-in,.cs-pf-cta--3 .cs-pf-cta-in{padding-inline:6%}}
@media(max-width:640px){.cs-pf-cta-card{flex-direction:column;align-items:stretch;text-align:center;border-radius:18px}.cs-pf-cta p{flex:none;max-width:none}.cs-pf-go{justify-content:center}}

/* ============ 2. the film ============ */
.cs-pf{position:fixed;inset:0;z-index:2147483646;color:#f6f1e7;font-family:var(--body,'DM Sans',sans-serif);--pf-top:72px;--pf-bottom:236px;--pf-ink:#060f18;--pf-gold:#e0c28a;--pf-cyan:#1cb0c3}
.cs-pf *,.cs-pf *::before,.cs-pf *::after{box-sizing:border-box}
.cs-pf-hit{position:absolute;inset:var(--pf-top) 0 var(--pf-bottom);cursor:pointer;background:rgba(6,15,24,var(--pf-shade,0));box-shadow:inset 0 0 90px rgba(6,15,24,.45)}
.cs-pf-top,.cs-pf-bottom{position:absolute;left:0;right:0;z-index:2;background:var(--pf-ink)}
.cs-pf-top{top:0;height:var(--pf-top);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 14px;border-bottom:1px solid rgba(224,194,138,.22);
 transition:transform .35s cubic-bezier(.2,.7,.2,1);animation:cs-pf-in-top .4s cubic-bezier(.2,.7,.2,1) both}
.cs-pf-bottom{bottom:0;height:var(--pf-bottom);display:flex;flex-direction:column;padding:8px 14px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(224,194,138,.22);animation:cs-pf-in-bottom .4s cubic-bezier(.2,.7,.2,1) both}
/* the bars arrive once; moving the film into a menu or a dialog and back must not replay it */
.cs-pf.is-set .cs-pf-top,.cs-pf.is-set .cs-pf-bottom{animation:none}
@keyframes cs-pf-in-top{from{transform:translateY(-100%)}}
@keyframes cs-pf-in-bottom{from{transform:translateY(100%)}}
/* while the film walks through the real menus, its own top bar steps aside so the real header shows */
.cs-pf.is-menu .cs-pf-top{transform:translateY(-101%)}
.cs-pf.is-menu .cs-pf-hit{inset:0 0 var(--pf-bottom)}

.cs-pf-brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:500;line-height:1;letter-spacing:-.01em;color:#fafaf7}
.cs-pf-brand img{width:34px;height:34px;display:block}
.cs-pf-brand small{display:block;margin-top:4px;color:var(--pf-gold);font-size:9px;font-weight:500;letter-spacing:.3em;text-transform:uppercase}
.cs-pf-beat{display:none;flex:1;min-width:0;text-align:center;color:#bdccd4;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-pf-btn{appearance:none;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:46px;height:46px;margin:0;padding:0 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;
 background:transparent;color:#f6f1e7;font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background-color .2s,border-color .2s}
.cs-pf-btn svg{width:20px;height:20px;fill:currentColor}
.cs-pf-btn:hover{background:rgba(255,255,255,.08);border-color:rgba(224,194,138,.7)}
.cs-pf-btn:focus-visible,.cs-pf-resume:focus-visible,.cs-pf-end:focus-visible,.cs-pf-unmute:focus-visible,.cs-pf-seek:focus-visible{outline:3px solid var(--pf-cyan);outline-offset:3px}
.cs-pf-exit span{display:none}
.cs-pf-top .cs-pf-exit{display:none}
.cs-pf-play{width:50px;height:50px;padding:0;border-color:var(--pf-gold);background:var(--pf-gold);color:#0d1b28}
.cs-pf-play:hover{background:#ecd3a3;border-color:#ecd3a3}

/* the band: chapter and drawing on one row, captions under them (phone); three columns on wide screens */
.cs-pf-band{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 132px;grid-template-rows:66px minmax(0,1fr);grid-template-areas:"chapter art" "cap cap";column-gap:12px;align-items:center}
.cs-pf-chapter{grid-area:chapter;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:5px;align-items:center}
.cs-pf-chapter b{grid-row:1/3;font-size:34px;font-weight:300;line-height:1;letter-spacing:-.03em;color:var(--pf-gold);font-variant-numeric:tabular-nums}
.cs-pf-chapter span{color:#dbe3e8;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-pf-chapter i{display:block;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--pf-cyan) var(--pf-p,0%),rgba(255,255,255,.14) var(--pf-p,0%));transition:background .3s}
.cs-pf-art{grid-area:art;position:relative;width:132px;height:66px;border:1px solid rgba(224,194,138,.26);border-radius:10px;overflow:hidden;
 background:rgba(16,38,58,.55);background-image:linear-gradient(rgba(224,194,138,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(224,194,138,.07) 1px,transparent 1px);background-size:13px 13px}
.cs-pf-art svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.cs-pf-art .l{fill:none;stroke:var(--pf-gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cs-pf-art .c{fill:none;stroke:var(--pf-cyan);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cs-pf-art .k{fill:none;stroke:#04212a;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.cs-pf-art .k2{fill:#04212a}
.cs-pf-art .k3{fill:#0d1b28;stroke:#0d1b28;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cs-pf-art .fg{fill:var(--pf-gold)}
.cs-pf-art .fc{fill:var(--pf-cyan)}
.cs-pf-art .fp{fill:#faf8f3}
.cs-pf-art .fd{fill:rgba(255,255,255,.13);stroke:rgba(255,255,255,.2);stroke-width:1}
.cs-pf-art text{fill:#0d1b28;font-size:12px;font-weight:700;text-anchor:middle;font-family:inherit}
/* words that complement a drawing: readable in the large illustration and in the wide band, left out of the small phone band */
.cs-pf-art text.w,.cs-pf-stage text.w{fill:#f1ece0;font-size:11.5px;font-weight:500;text-anchor:start;letter-spacing:.01em}
.cs-pf-art text.w[text-anchor=middle],.cs-pf-stage text.w[text-anchor=middle]{text-anchor:middle}
.cs-pf-art text.wb,.cs-pf-stage text.wb{font-weight:700;font-size:12.5px}
.cs-pf-art text.wg,.cs-pf-stage text.wg{fill:#e0c28a}
.cs-pf-art text.wc,.cs-pf-stage text.wc{fill:#5fd3e2}
.cs-pf-art text.wd,.cs-pf-stage text.wd{fill:#9aa9b4}
.cs-pf-art text.wk,.cs-pf-stage text.wk{fill:#04212a;font-weight:700}
@media(max-width:760px){.cs-pf-art text.w{display:none}}
.cs-pf-art .an-g,.cs-pf-art .an-s{transform-box:fill-box;transform-origin:0 50%}
.cs-pf-art .lp{opacity:calc(.75 - var(--pf-loop,0)*.75);transform-box:fill-box;transform-origin:50% 50%;transform:scale(calc(.8 + var(--pf-loop,0)*.5))}

/* captions: the look of our videos */
.cs-pf-cap{grid-area:cap;min-height:0;display:flex;align-items:center;justify-content:center;text-align:center}
.cs-pf-phrase{margin:0;font-size:clamp(22px,6.6vw,30px);line-height:1.2;font-weight:400;letter-spacing:-.012em;color:rgba(246,241,231,.5)}
.cs-pf-w{position:relative;display:inline-block;opacity:0;filter:blur(5px);transform:translateY(3px);transition:opacity .09s linear,filter .09s linear,transform .09s linear}
.cs-pf-w.is-in{opacity:1;filter:none;transform:none}
.cs-pf-w.is-now{color:#fff;font-weight:700}
.cs-pf-w.is-key{padding:0 .16em;margin:0 -.04em}
.cs-pf-w.is-key::before{content:"";position:absolute;inset:.04em 0 .02em;border:2px solid var(--pf-gold);background:rgba(224,194,138,.14);transform-origin:0 50%;transform:scaleX(0);transition:transform .18s cubic-bezier(.2,.7,.2,1)}
.cs-pf-w.is-key.is-in::before{transform:scaleX(1)}
.cs-pf-w.is-key.is-in{color:#fff;font-weight:700}
.cs-pf-w.is-key i{position:absolute;z-index:1;width:9px;height:9px;border-radius:50%;background:#fafaf7;border:2px solid var(--pf-gold);opacity:0;transition:opacity .1s linear .12s}
.cs-pf-w.is-key i:first-of-type{left:-5px;top:calc(.04em - 5px)}
.cs-pf-w.is-key i:last-of-type{right:-5px;bottom:calc(.02em - 5px)}
.cs-pf-w.is-key.is-in i{opacity:1}
.cs-pf-live{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.cs-pf-controls{flex:none;display:flex;align-items:center;gap:10px;margin-top:6px}
.cs-pf-track{position:relative;flex:1;min-width:0;height:46px;display:flex;align-items:center}
.cs-pf .cs-pf-seek{appearance:none;-webkit-appearance:none;display:block;width:100%;height:6px;min-height:0;max-width:none;margin:0;padding:0;border:0;border-radius:3px;box-shadow:none;cursor:pointer;
 background:linear-gradient(90deg,var(--pf-gold) var(--pf-p,0%),rgba(255,255,255,.18) var(--pf-p,0%))}
.cs-pf-seek::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#fafaf7;border:2px solid var(--pf-gold);box-shadow:0 2px 8px rgba(0,0,0,.5)}
.cs-pf-seek::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fafaf7;border:2px solid var(--pf-gold)}
.cs-pf-marks{position:absolute;left:9px;right:9px;top:50%;height:0;pointer-events:none}
.cs-pf-marks i{position:absolute;top:-7px;width:2px;height:14px;margin-left:-1px;background:rgba(6,15,24,.9)}
.cs-pf-time{flex:none;color:#bdccd4;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.cs-pf-unmute{appearance:none;position:absolute;left:50%;top:-58px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:9px;margin:0;padding:11px 18px;min-height:46px;border:0;border-radius:999px;
 background:var(--pf-gold);color:#0d1b28;font:inherit;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;box-shadow:0 12px 30px -8px rgba(0,0,0,.7)}
.cs-pf-unmute[hidden]{display:none}
.cs-pf-unmute svg{width:20px;height:20px;fill:currentColor}

/* the numbered selection box on the page, drawn left to right; everything else dims a little */
.cs-pf-focus{position:fixed;pointer-events:none;opacity:0;border-radius:3px;box-shadow:0 0 0 200vmax rgba(6,15,24,var(--pf-dim,0))}
.cs-pf-focus b{position:absolute;inset:0;border:2px solid var(--pf-gold);border-radius:3px;background:rgba(224,194,138,.07);box-shadow:inset 0 0 24px rgba(224,194,138,.12)}
.cs-pf-focus i{position:absolute;width:10px;height:10px;border-radius:50%;background:#fafaf7;border:2px solid var(--pf-gold)}
.cs-pf-focus i:nth-of-type(1){left:-6px;bottom:-6px}
.cs-pf-focus i:nth-of-type(2){right:-6px;bottom:-6px}
.cs-pf-focus em{position:absolute;left:-13px;top:-13px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#faf8f3;color:#0d1b28;font-style:normal;font-size:14px;font-weight:700;
 box-shadow:0 0 0 3px rgba(250,248,243,.18),0 6px 16px rgba(0,0,0,.55)}
.cs-pf-focus em:empty{display:none}
.cs-pf-tap{position:fixed;width:56px;height:56px;border-radius:50%;border:3px solid var(--pf-gold);background:rgba(224,194,138,.22);opacity:0;pointer-events:none;z-index:1}

/* marks drawn on the page itself while it performs: loops, underlines, arrows, stamps, a spotlight */
.cs-pf-ink{position:fixed;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.cs-pf-ink .ik{fill:none;stroke:var(--pf-gold);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 6px rgba(0,0,0,.55))}
.cs-pf-ink .ik.c{stroke:var(--pf-cyan)}
.cs-pf-ink .ikf{fill:var(--pf-cyan);stroke:#faf8f3;stroke-width:2.5;filter:drop-shadow(0 4px 10px rgba(0,0,0,.6))}
.cs-pf-ink .ikk{fill:none;stroke:#04212a;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.cs-pf-ink .ikd{fill:#060f18}
.cs-pf.is-still .cs-pf-ink{display:none}

/* the large illustration over the free side of the frame (wide screens only; phones keep it in the band) */
.cs-pf-stage{display:none}
@media(min-width:1101px) and (min-height:640px){
 .cs-pf-stage{display:block;position:absolute;z-index:1;right:clamp(24px,4.2vw,72px);top:calc(var(--pf-top) + (100% - var(--pf-top) - var(--pf-bottom)) / 2);width:min(40vw,600px);opacity:0;pointer-events:none;
  padding:16px 18px 18px;border:1px solid rgba(224,194,138,.42);border-radius:20px;background:rgba(8,20,32,.78);
  background-image:linear-gradient(rgba(224,194,138,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(224,194,138,.07) 1px,transparent 1px);background-size:28px 28px;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.85),0 0 80px -24px rgba(28,176,195,.4),inset 0 0 0 1px rgba(255,255,255,.03);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
 .cs-pf-stage::before,.cs-pf-stage::after{content:"";position:absolute;width:22px;height:22px;border:2px solid var(--pf-gold)}
 .cs-pf-stage::before{left:-1px;top:-1px;border-right:0;border-bottom:0;border-radius:20px 0 0 0}
 .cs-pf-stage::after{right:-1px;bottom:-1px;border-left:0;border-top:0;border-radius:0 0 20px 0}
 .cs-pf-stage svg{display:block;width:100%;height:auto;overflow:visible}
 .cs-pf-stage .l{fill:none;stroke:var(--pf-gold);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px rgba(224,194,138,.45))}
 .cs-pf-stage .c{fill:none;stroke:var(--pf-cyan);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(28,176,195,.6))}
 .cs-pf-stage .k{fill:none;stroke:#04212a;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
 .cs-pf-stage .k2{fill:#04212a}
 .cs-pf-stage .k3{fill:#0d1b28;stroke:#0d1b28;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .cs-pf-stage .fg{fill:var(--pf-gold)}
 .cs-pf-stage .fc{fill:var(--pf-cyan)}
 .cs-pf-stage .fp{fill:#faf8f3}
 .cs-pf-stage .fd{fill:rgba(255,255,255,.12);stroke:rgba(255,255,255,.2);stroke-width:.8}
 .cs-pf-stage text{fill:#0d1b28;font-size:11.5px;font-weight:700;text-anchor:middle;font-family:inherit}
 .cs-pf-stage text.w{font-size:11px}
 .cs-pf-stage text.wb{font-size:12.5px}
 .cs-pf-stage .an-g,.cs-pf-stage .an-s{transform-box:fill-box;transform-origin:0 50%}
 .cs-pf-stage .lp{opacity:calc(.75 - var(--pf-loop,0)*.75);transform-box:fill-box;transform-origin:50% 50%;transform:scale(calc(.8 + var(--pf-loop,0)*.5))}
}

/* opening card */
.cs-pf-title{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;background:var(--pf-ink);pointer-events:none}
.cs-pf-title img{width:96px;height:96px}
.cs-pf-title strong{font-size:clamp(26px,3.4vw,44px);font-weight:500;letter-spacing:-.015em;color:#fafaf7}
.cs-pf-title span{color:var(--pf-gold);font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase}

/* reduced motion: the narration with its transcript, no camera */
.cs-pf.is-still .cs-pf-hit{background:rgba(6,15,24,.93);cursor:default}
.cs-pf.is-still .cs-pf-focus,.cs-pf.is-still .cs-pf-tap,.cs-pf.is-still .cs-pf-stage{display:none}
.cs-pf-script{position:absolute;z-index:2;left:50%;top:calc(var(--pf-top) + 20px);bottom:calc(var(--pf-bottom) + 20px);transform:translateX(-50%);width:min(92vw,680px);overflow:auto;padding:4px 6px;-webkit-overflow-scrolling:touch}
.cs-pf-script[hidden]{display:none}
.cs-pf-script h2{margin:0 0 14px;color:var(--pf-gold);font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase}
.cs-pf-script p{margin:0 0 14px;color:#dbe3e8;font-size:17px;line-height:1.6}

html.cs-pf-on{overscroll-behavior:none}

/* ============ 3. paused: the page is yours, the film waits in a pill ============ */
.cs-pf.is-free{pointer-events:none;inset:auto 0 0 0;height:0}
.cs-pf.is-free>*:not(.cs-pf-pill){display:none}
.cs-pf-pill{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px;border:1px solid rgba(224,194,138,.6);border-radius:999px;
 background:rgba(6,15,24,.94);box-shadow:0 18px 44px -10px rgba(0,0,0,.8);pointer-events:auto;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:cs-pf-pill .3s cubic-bezier(.2,.7,.2,1) both}
.cs-pf-pill[hidden]{display:none}
@keyframes cs-pf-pill{from{transform:translate(-50%,24px);opacity:0}}
/* phones: the pill sits above the game button and the chat, which are always there now */
@media(max-width:760px){.cs-pf-pill{bottom:calc(88px + env(safe-area-inset-bottom,0px))}}
.cs-pf-resume{appearance:none;display:inline-flex;align-items:center;gap:11px;margin:0;padding:7px 20px 7px 7px;min-height:52px;border:0;border-radius:999px;background:var(--pf-gold);color:#0d1b28;font:inherit;font-size:15px;font-weight:700;line-height:1.15;text-align:left;white-space:nowrap;cursor:pointer}
.cs-pf-resume svg{width:38px;height:38px;padding:10px 9px 10px 12px;border-radius:50%;background:#0d1b28;fill:var(--pf-gold)}
.cs-pf-resume small{display:block;margin-top:1px;font-size:12px;font-weight:500;opacity:.75;font-variant-numeric:tabular-nums}
.cs-pf-end{appearance:none;display:grid;place-items:center;width:46px;height:46px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#dbe3e8;cursor:pointer}
.cs-pf-end svg{width:20px;height:20px}
.cs-pf-end:hover{background:rgba(255,255,255,.1)}

/* the arcade's full-screen dialogs open without their own fade while the film drives them, so the film's
   chrome, which rides inside them, does not blink at every change */
html.cs-pf-on .csh-dlg[open],html.cs-pf-on .csa-dlg[open],html.cs-pf-on .csm-dlg[open],html.cs-pf-on .csb-dlg[open]{animation:none!important}
/* the caption band is see-through on every screen, so the page keeps running behind the captions,
   the small drawing and the controls; the words carry their own soft backing instead of a darker band */
.cs-pf-hit{inset:var(--pf-top) 0 0}
.cs-pf.is-menu .cs-pf-hit{inset:0}
.cs-pf-bottom{padding-top:30px;border-top:0;background:linear-gradient(180deg,rgba(6,15,24,0) 0,rgba(6,15,24,.6) 40px,rgba(6,15,24,.72) 58%,rgba(6,15,24,.86) 100%);
 -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
 -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 34px);mask-image:linear-gradient(180deg,transparent 0,#000 34px)}
/* a soft, edgeless shade right behind the words: the band itself stays light */
.cs-pf-cap{position:relative;isolation:isolate}
.cs-pf-cap::before{content:"";position:absolute;inset:-10px -48px;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(6,15,24,.5) 0,rgba(6,15,24,.5) 68%,rgba(6,15,24,0) 100%)}
.cs-pf-phrase{color:rgba(246,241,231,.82);text-shadow:0 0 2px rgba(6,15,24,.95),0 1px 3px rgba(6,15,24,.9),0 0 12px rgba(6,15,24,.9),0 0 26px rgba(6,15,24,.8)}
.cs-pf-chapter span{color:#eef2f4;text-shadow:0 1px 6px rgba(6,15,24,.9)}
.cs-pf-chapter b{text-shadow:0 1px 10px rgba(6,15,24,.8)}
.cs-pf-time{text-shadow:0 1px 6px rgba(6,15,24,.9)}
.cs-pf-art{background-color:rgba(10,24,38,.74)}
@media(max-width:760px){
 .cs-pf-bottom{background:linear-gradient(180deg,rgba(6,15,24,0) 0,rgba(6,15,24,.5) 34px,rgba(6,15,24,.62) 58%,rgba(6,15,24,.8) 100%);-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px)}
 .cs-pf{--pf-bottom:258px}
}
@media(max-width:760px) and (max-height:700px){.cs-pf.cs-pf{--pf-bottom:240px}}

/* ============ wider screens ============ */
@media(max-height:700px){.cs-pf{--pf-top:72px;--pf-bottom:216px}.cs-pf-band{grid-template-rows:58px minmax(0,1fr)}.cs-pf-art{height:58px;width:116px}.cs-pf-chapter b{font-size:30px}}
@media(min-width:761px){
 .cs-pf{--pf-top:76px;--pf-bottom:228px}
 .cs-pf-top,.cs-pf-bottom{padding-inline:clamp(18px,3.2vw,48px)}
 .cs-pf-brand{font-size:19px;gap:12px}
 .cs-pf-brand img{width:40px;height:40px}
 .cs-pf-beat{display:block}
 .cs-pf-exit span{display:inline}
 .cs-pf-top .cs-pf-exit{display:inline-flex}
 .cs-pf:not(.is-menu) .cs-pf-out{display:none}
 .cs-pf-band{grid-template-columns:minmax(150px,.7fr) minmax(0,2.2fr) minmax(150px,.7fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"chapter cap art";column-gap:clamp(14px,2.4vw,40px)}
 .cs-pf-chapter b{font-size:clamp(40px,4.4vw,62px)}
 .cs-pf-chapter span{font-size:12.5px;white-space:normal}
 .cs-pf-art{justify-self:end;width:min(100%,280px);height:auto;aspect-ratio:2/1;border-radius:14px;background-size:22px 22px}
 .cs-pf-phrase{font-size:clamp(26px,3.1vw,44px)}
 .cs-pf-time{font-size:14px}
 .cs-pf-focus i{width:12px;height:12px}
}
@media(min-width:761px) and (max-height:620px){.cs-pf{--pf-top:60px;--pf-bottom:170px}.cs-pf-phrase{font-size:24px}}
@media(prefers-reduced-motion:reduce){
 .cs-pf-top,.cs-pf-bottom,.cs-pf-pill{animation:none}
 .cs-pf-ico::after,.cs-pf-open::after{animation:none}
 .cs-pf-w,.cs-pf-w.is-key::before,.cs-pf-w.is-key i{transition:none}
}
@media(forced-colors:active){.cs-pf-focus b,.cs-pf-btn,.cs-pf-open,.cs-pf-nav{border-color:ButtonText}}
@media print{.cs-pf,.cs-pf-launch,.cs-pf-hero,.cs-pf-nav,.cs-pf-cta{display:none!important}}
