/* СКРИНПРОДУКТ: a showreel site. One WebGL world fills a rounded frame; the page scroll drives
   its playhead. Text that has to be read lives in the DOM: titles for assistive tech, captions under
   the screens, the player and the contact block. Without WebGL (or with reduced motion) the same
   HTML reads as a plain document, see "Plain document" below.
   --hue follows the scene: brand blue, lilac for the stage, green for screens. */
/* Pliant by Non Foundry, SIL Open Font License 1.1 (fonts/OFL.txt). One variable file: width 100–125 %, weight 400–900 (700–900 extended from the original masters, scripts/font), Latin and Cyrillic. */
@font-face{font-family:'Pliant';src:url(fonts/pliant.woff) format('woff');font-weight:400 900;font-stretch:100% 125%;font-style:normal;font-display:swap}
:root{--bg:#050608;--bg-deep:#020308;--ink:#f5f6f8;--white:#f7f8fc;--soft:#bcc2ce;--mid:#7f8696;--body:#e4e7ee;
 --blue:#4d93ff;--lilac:#b58cff;--green:#2ee6a8;--hue:var(--blue);
 --w-06:rgba(255,255,255,.06);--w-075:rgba(255,255,255,.075);--w-08:rgba(255,255,255,.08);--w-1:rgba(255,255,255,.1);--w-12:rgba(255,255,255,.12);
 --w-13:rgba(255,255,255,.13);--w-14:rgba(255,255,255,.14);--w-16:rgba(255,255,255,.16);--w-2:rgba(255,255,255,.2);--w-22:rgba(255,255,255,.22);
 --w-3:rgba(255,255,255,.3);--w-34:rgba(255,255,255,.34);--w-5:rgba(255,255,255,.5);--w-66:rgba(255,255,255,.66);--w-8:rgba(255,255,255,.8);--w-82:rgba(255,255,255,.82);
 --k-6:rgba(0,0,0,.6);--k-85:rgba(0,0,0,.85);--panel:#1e212a;--panel-88:rgba(30,33,42,.88);--panel-94:rgba(30,33,42,.94);--tile:#12151c;
 --shine-a:#a9c6ff;--shine-b:#eef4ff;--tg-a:#2c5cc4;--tg-b:#1f428c;
 --fs-xs:12px;--fs-s:13.5px;--fs-m:15px;--fs-l:17px;
 --in:10px;--r:26px;--pad:32px;--ui:1;
 --f:'Pliant',system-ui,sans-serif;--ease:cubic-bezier(.2,0,0,1);--soft-spring:cubic-bezier(.3,1.3,.5,1);
 caret-color:var(--blue);accent-color:var(--blue)}
/* Very large screens (4K, ultrawide): the interface grows with the frame. */
@media(min-width:2300px) and (min-height:1250px){:root{--ui:1.3}}
@media(min-width:3200px) and (min-height:1800px){:root{--ui:1.75}}

*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg-deep);color-scheme:dark;overflow-x:clip}
body{font-family:var(--f);font-stretch:112.5%;font-size:14px;font-weight:400;line-height:1.5;color:var(--ink);background:var(--bg-deep);-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:inherit}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
p,li{text-wrap:pretty}
::selection{background:color-mix(in srgb,var(--blue) 55%,transparent);color:var(--white)}
:focus-visible{outline:2px solid var(--white);outline-offset:3px;border-radius:10px}
.skip{position:fixed;left:16px;top:-60px;z-index:50;padding:8px 16px;background:var(--ink);color:var(--bg);border-radius:10px;text-decoration:none}
.skip:focus{top:16px}

/* Type roles */
.caps{font-size:13px;font-weight:500;line-height:1.4}
.lead{font-size:14px;line-height:1.5;color:var(--body)}
.num b,.brand{font-stretch:125%}
/* Site rule: things sit on the middle of the lowercase letters (к, н, р, л), not of the capitals or the
   letters with tails (ц, у, щ). Labels are trimmed to the x-height; markers are lifted to half of it.
   All-capital labels and figures have no x-height to sit on, so they centre on the capitals. */
.t,.now{display:block;text-box:trim-both ex alphabetic}
.hd .t,.tc{text-box:trim-both cap alphabetic}

/* Glass: thin and clear. A hairline rim, one soft top edge, no bevel and no drop shadow. */
.glass{background:var(--w-075);-webkit-backdrop-filter:blur(16px) saturate(170%);backdrop-filter:blur(16px) saturate(170%);box-shadow:inset 0 0 0 1px var(--w-12),inset 0 1px 0 var(--w-2)}
.glass.tint{background:color-mix(in srgb,var(--hue) 38%,var(--w-06))}
a.glass,button.glass,.pp{transition:background-color .2s,scale .16s var(--ease)}
a.glass:hover{background:var(--w-14)}
a.glass.tint:hover{background:color-mix(in srgb,var(--hue) 52%,var(--w-08))}
a.glass:active,.pp:active{scale:.97}
.lq .glass{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--panel-88)}
.lq .glass.tint{background:color-mix(in srgb,var(--hue) 45%,var(--panel))}
@media(prefers-reduced-transparency:reduce){.glass{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--panel-94)}}

/* Header */
.top{position:fixed;left:calc(var(--in) + 22px);right:calc(var(--in) + 22px);top:calc(var(--in) + 14px);z-index:20;display:flex;align-items:center;justify-content:space-between;min-height:calc(44px*var(--ui))}
.brand{padding:12px 0;margin:-12px 0;font-weight:800;font-size:15px;letter-spacing:-.005em;text-decoration:none;color:var(--white);scale:var(--ui);transform-origin:0 50%}
.brand span{color:var(--blue)}
.nav{position:absolute;left:50%;top:0;translate:-50% 0;display:flex;padding:4px;border-radius:99px;scale:var(--ui);transform-origin:50% 0}
.nav a{position:relative;z-index:1;display:flex;align-items:center;min-height:40px;padding:0 16px;border-radius:99px;text-decoration:none;font-size:13.5px;font-weight:500;color:var(--soft);transition:color .25s}
.nav a:hover,.nav a.is-current{color:var(--white)}
/* The selection is a lens that slides between the items */
.lens{position:absolute;left:0;top:4px;bottom:4px;width:var(--w,0);transform:translateX(var(--x,0));border-radius:99px;background:var(--w-13);box-shadow:inset 0 0 0 1px var(--w-16),inset 0 1px 0 var(--w-34);transition:transform .5s var(--soft-spring),opacity .3s}
.js .lens{opacity:0}
.cta{display:flex;align-items:center;min-height:48px;padding:0 24px;border-radius:99px;text-decoration:none;font-size:13.5px;font-weight:500;scale:var(--ui);transform-origin:100% 50%}

/* Buttons with a light that runs across them now and then */
.cta,.more{position:relative;overflow:hidden;isolation:isolate}
.top .cta{transition:opacity .35s var(--ease),translate .45s var(--ease),background-color .2s,scale .16s var(--ease)}
.top .cta.is-away{opacity:0;translate:0 -8px;pointer-events:none}
.cta:after,.more:after{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
 background:linear-gradient(105deg,transparent 30%,color-mix(in srgb,var(--hue) 55%,transparent) 44%,var(--w-34) 50%,color-mix(in srgb,var(--hue) 55%,transparent) 56%,transparent 70%);
 background-size:250% 100%;background-position:120% 0;animation:shimmer 5.5s var(--ease) infinite}
.more:after{animation-delay:1.2s}
@keyframes shimmer{0%,55%{background-position:120% 0}100%{background-position:-20% 0}}
/* Shimmering labels: Работы in the menu, Все работы, Обсудить проект */
.shine{background:linear-gradient(100deg,var(--shine-a) 0 32%,var(--shine-b) 46%,var(--shine-a) 60% 100%);background-size:260% 100%;background-position:100% 0;
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding:.45em 0;margin:-.45em 0;animation:shine 2.6s var(--ease) infinite}
/* The label box is trimmed to the x-height (see .t), and a shimmering label is drawn as its own background,
   which ends at that box: the padding gives capitals, ascenders and accents (О, б, Й) room to show whole. */
.more .shine{animation-delay:.5s}.cta .shine{animation-delay:1s}
@keyframes shine{0%,18%{background-position:100% 0}100%{background-position:0 0}}

#gl,.player,.invert,.hint{display:none}

/* ---------- Reel mode: everything lives inside one rounded screen ---------- */
.reel{scrollbar-width:none}.reel::-webkit-scrollbar{display:none}
/* Phones: the browser's bar slides away on scroll and the window grows. The picture is sized by the largest
   window (lvh) and everything laid over it by the smallest (svh), so neither moves when that happens:
   the strip that opens under the player just shows more of the scene. */
.reel{--full:100vh;--safe:100vh}
@supports(height:100lvh){.reel{--full:100lvh;--safe:100svh}}
.reel #gl{display:block;position:fixed;left:var(--in);top:var(--in);width:calc(100% - var(--in)*2);height:calc(var(--full) - var(--in)*2);border-radius:var(--r);z-index:0;opacity:0;transition:opacity .9s var(--ease)}
.reel #gl.is-ready{opacity:1}
.reel body:after{content:'';position:fixed;inset:var(--in);border-radius:var(--r);box-shadow:inset 0 0 0 1px var(--w-1);pointer-events:none;z-index:30}
.reel #track{height:1300vh;position:relative}
.reel .chapter{position:fixed;inset:var(--in) var(--in) auto;height:calc(var(--safe) - var(--in)*2);z-index:5;pointer-events:none;visibility:hidden}
.reel .chapter.is-live{visibility:visible}
.reel .chapter.is-live :is(a,button,summary){pointer-events:auto}
.reel .invert{display:block;position:fixed;inset:var(--in);border-radius:var(--r);z-index:25;background:var(--white);mix-blend-mode:difference;pointer-events:none;clip-path:circle(0 at 50% 50%)}
/* Headings and the text on the LED screens are drawn in WebGL; the real ones stay for assistive tech. */
.reel :is(.gl-title,.ch-title h1,.screen-text){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.js.reel .top,.js.reel .player{opacity:0;transform:translateY(-10px);transition:opacity .9s var(--ease),transform 1.1s var(--soft-spring)}
.js.reel .player{transform:translateY(14px);transition-delay:.35s}
.js.reel.is-in :is(.top,.player){opacity:1;transform:none}

/* Captions under the screens, in one voice: the studio's sentence on the title slide and the lists of services.
   Placed by the script at the screen's bottom edge every frame. */
.reel .ch-title .lead{position:absolute;left:0;top:0;translate:-50% 0;transform:translate3d(50vw,62vh,0);transform-origin:50% 0;will-change:transform,opacity;
 width:min(calc(640px*var(--ui)),calc(100% - 48px));text-align:center;font-size:calc(clamp(15px,1.25vw,19px)*var(--ui));line-height:1.3;color:var(--w-8);text-shadow:0 1px 18px var(--k-85);text-wrap:balance;pointer-events:none}
/* Lists of services under the screens: glass capsules in the colour of the scene, narrower than the buttons.
   Two to a row, each row centred under the screen; one centred column on portrait frames. */
.note-list{list-style:none}
.note-list li{padding:.78em 1.25em;border-radius:99px;font-weight:500;line-height:1.25;color:var(--white);background:color-mix(in srgb,var(--hue) 14%,var(--w-075));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--hue) 30%,var(--w-12)),inset 0 1px 0 var(--w-2)}
.js.reel .note-list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;position:absolute;left:0;top:0;translate:-50% 0;transform:translate3d(50vw,70vh,0);transform-origin:50% 0;will-change:transform,opacity;
 width:min(60em,calc(100% - 40px));opacity:0;font-size:calc(clamp(13.5px,1.02vw,16px)*var(--ui));pointer-events:none}
.js.reel .note-list li{white-space:nowrap}
.lq.js.reel .note-list li{background:color-mix(in srgb,var(--hue) 24%,var(--panel))}

/* Works: the catalog's own tiles (shared/tile.css). The script sizes them to fill the room under the title
   and drops them in one by one; the button to the whole catalog stands under the grid. */
.more{display:inline-flex;align-items:center;min-height:48px;padding:0 24px;border-radius:99px;text-decoration:none;font-size:13.5px;font-weight:500}
/* On the home page a tile is its cover with the title on it: nothing else, so more works fit the frame.
   The grid rides up inside its window; the button to the whole catalog stays under it the whole time. */
.reel .home-works{position:absolute;left:0;right:0;top:30%;display:flex;flex-direction:column;align-items:center}
.reel .home-view{position:relative;width:100%;flex:none}
.reel .home-works.is-riding .home-view{overflow:hidden;-webkit-mask-image:linear-gradient(transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.reel .home-rail{display:flex;justify-content:center;will-change:transform}
.reel .home-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--gap,16px);max-width:100%}
.reel .home-grid .item{flex:none;width:var(--tw,300px);visibility:hidden;will-change:transform,opacity}
.reel .home-grid .card{position:relative;display:block;border-radius:16px;overflow:hidden}
.reel .home-grid .meta{position:absolute;inset:auto 0 0;display:block;padding:calc(30px*var(--ui)) calc(14px*var(--ui)) calc(11px*var(--ui));background:linear-gradient(transparent,rgba(2,3,8,.6) 45%,rgba(2,3,8,.9));pointer-events:none}
.reel .home-grid .ttl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:calc(clamp(12.5px,1.05vw,16px)*var(--ui));font-weight:500;line-height:1.25;color:var(--white)}
.reel .home-grid :is(.yr,.sub){display:none}
.reel .home-works .more{flex:none;margin-top:var(--gap,16px);padding:0 28px;zoom:var(--ui);background:color-mix(in srgb,var(--blue) 30%,var(--w-075));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 45%,var(--w-16)),inset 0 1px 0 var(--w-34)}
.reel .home-works .more:hover{background:color-mix(in srgb,var(--blue) 44%,var(--w-1))}
.reel .home-works .more:after{animation-delay:0s}

/* Numbers */
.reel .num{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.4vh;opacity:0;will-change:transform,opacity}
.num b{font-size:clamp(92px,22vw,calc(400px*var(--ui)));font-weight:800;line-height:.82;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--white)}
.num span{font-size:calc(16px*var(--ui));font-weight:500;color:var(--white);text-align:center;max-width:26em}

/* Contact: three equal tiles, icon and text on one centre line, the legal details under them */
.reel .ch-contact{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;padding:0 var(--pad) calc(104px*var(--ui))}
.ch-contact .lead{font-size:calc(16px*var(--ui));color:var(--white);max-width:30em}
.reel .ch-contact .actions,.reel .legal{zoom:var(--ui)}
.actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr);gap:12px;width:min(1080px,100%);margin:28px auto 0}
.tile{position:relative;display:flex;align-items:center;gap:16px;min-height:80px;padding:16px 20px 16px 16px;border-radius:24px;text-decoration:none;text-align:left;overflow:hidden;isolation:isolate}
.tile:before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .25s;
 background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%),var(--w-2),transparent 70%)}
.tile:hover:before{opacity:1}
.tile .ic{flex:none;width:48px;height:48px;padding:12px;border-radius:50%;fill:none;stroke:var(--white);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
 background:var(--w-1);box-shadow:inset 0 0 0 1px var(--w-14);transition:scale .35s var(--soft-spring)}
.tile .ic .fill{fill:var(--white);stroke:none}
.tile:hover .ic{scale:1.08}
.tile .txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.tile small{font-size:12.5px;font-weight:500;line-height:1.2;color:var(--w-66)}
.tile .txt span{font-size:15px;font-weight:500;line-height:1.25;color:var(--white);overflow-wrap:anywhere}
.tile.tg{background:linear-gradient(120deg,color-mix(in srgb,var(--blue) 72%,transparent),color-mix(in srgb,var(--blue) 40%,transparent),color-mix(in srgb,var(--blue) 72%,transparent));background-size:300% 100%;animation:tg 9s linear infinite}
.tile.tg .ic{background:var(--w-2)}
.tile.tg small{color:var(--w-8)}
@keyframes tg{to{background-position:-300% 0}}
.lq .tile.tg{background:linear-gradient(120deg,var(--tg-a),var(--tg-b),var(--tg-a));background-size:300% 100%}
/* Mail and Behance carry their services' colours too, quieter than Telegram (the main way to write):
   a tint across the glass, a ring and the icon set on the full colour. */
.tile:is(.gm,.be){background:linear-gradient(120deg,color-mix(in srgb,var(--brand) 26%,transparent),color-mix(in srgb,var(--brand) 10%,transparent) 70%);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand) 38%,transparent),inset 0 1px 0 var(--w-2);transition:background-color .25s}
.tile.gm{--brand:#ea4335}
.tile.be{--brand:#1769ff}
.tile:is(.gm,.be) .ic{background:color-mix(in srgb,var(--brand) 82%,transparent);box-shadow:none}
.tile:is(.gm,.be):hover{background-color:color-mix(in srgb,var(--brand) 14%,transparent)}
.lq .tile:is(.gm,.be){background:color-mix(in srgb,var(--brand) 18%,var(--panel))}
/* Legal details: plain text, readable with no picture at all. Folded under one line until asked for. */
.legal{margin-top:14px;font-size:12px;line-height:1.45;color:var(--soft)}
.legal summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 16px;list-style:none;cursor:pointer}
.legal summary::-webkit-details-marker{display:none}
.legal summary:focus-visible{outline-offset:0}
.legal-toggle{display:inline-flex;align-items:center;gap:6px;min-height:36px;color:var(--white);text-decoration:underline;text-decoration-color:var(--w-3);text-underline-offset:4px;transition:text-decoration-color .2s}
.legal summary:hover .legal-toggle{text-decoration-color:currentColor}
.legal-toggle svg{width:10px;height:7px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:rotate .3s var(--ease)}
.legal [open] .legal-toggle svg{rotate:180deg}
.legal-text{padding-bottom:2px;animation:legal-in .4s var(--ease)}
.legal-text p{display:flex;flex-wrap:wrap;justify-content:center;gap:0 20px}
@keyframes legal-in{from{opacity:0;translate:0 -6px}}

/* Player: a slim capsule */
.reel .player{display:flex;align-items:center;gap:16px;position:fixed;left:50%;top:calc(var(--safe) - var(--in) - 16px);translate:-50% -100%;width:min(780px,calc(100% - var(--in)*2 - 32px));z-index:20;padding:8px;border-radius:99px;scale:var(--ui);transform-origin:50% 100%}
.pp{position:relative;flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--w-14);box-shadow:inset 0 0 0 1px var(--w-14),inset 0 1px 0 var(--w-3)}
.pp:hover{background:var(--w-22)}
.pp svg{width:18px;height:18px;fill:var(--white);grid-area:1/1}
.pp .i-pause,.pp[aria-pressed=true] .i-play{display:none}
.pp[aria-pressed=true] .i-pause{display:block}
.now{flex:none;width:96px;color:var(--white)}
.scrub{position:relative;flex:1;height:40px}
.reel .scrub{touch-action:none;cursor:pointer}
.rail{position:absolute;left:0;right:0;top:19px;height:2px;border-radius:1px;background:var(--w-2);overflow:hidden}
.rail i{position:absolute;inset:0;background:var(--white);transform-origin:left;transform:scaleX(0);will-change:transform}
.knob{position:absolute;left:-7px;top:13px;width:14px;height:14px;border-radius:50%;background:var(--white);box-shadow:0 0 0 4px var(--w-16);pointer-events:none;will-change:transform;transition:box-shadow .2s var(--ease)}
.reel.is-scrubbing,.reel.is-scrubbing *{cursor:grabbing;user-select:none}
.reel.is-scrubbing .knob{box-shadow:0 0 0 7px var(--w-22)}
/* Each dot sits where a click on it takes you, on the centre line of the rail. */
.marks a{position:absolute;left:calc(var(--s)*100%);top:0;width:24px;height:40px;margin-left:-12px}
.marks a:before{content:'';position:absolute;left:9px;top:17px;width:6px;height:6px;border-radius:50%;background:var(--w-5);transition:scale .2s var(--ease),background-color .2s}
.marks a.is-past:before{background:var(--white)}
.marks a:hover:before{scale:1.8;background:var(--white)}
.marks span{position:absolute;left:50%;bottom:46px;translate:-50% 6px;padding:8px 12px;border-radius:99px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s,translate .2s var(--ease)}
.marks a:is(:hover,:focus-visible) span{opacity:1;translate:-50% 0}
.tc{flex:none;width:7.4em;text-align:right;white-space:nowrap;color:var(--soft);font-variant-numeric:tabular-nums;font-size:13px;letter-spacing:-.01em}
.hd{position:relative;flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:12px;font-weight:700;color:var(--white);background:color-mix(in srgb,var(--hue) 45%,var(--w-08));box-shadow:inset 0 0 0 1px var(--w-16);transition:background-color .3s}
.hd[aria-pressed=false]{color:var(--mid);background:var(--w-06)}
/* Hit areas reach 44px without changing the drawn controls. */
.pp:after,.hd:after{content:'';position:absolute;inset:-4px}

/* First-screen hint: press play or scroll */
.js.reel .hint{display:flex;align-items:center;gap:8px;position:fixed;left:50%;bottom:calc(var(--in) + 96px*var(--ui));translate:-50% 0;z-index:19;white-space:nowrap;pointer-events:none;
 font-size:13.5px;font-weight:500;color:var(--w-82);text-shadow:0 1px 12px var(--k-6);scale:var(--ui);transform-origin:50% 100%;
 opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .5s var(--ease),transform .7s var(--soft-spring),visibility 0s .5s}
.js.reel.is-in.show-hint .hint{opacity:1;visibility:visible;transform:none;transition-delay:1.2s,1.2s,0s}
.hint .k{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;pointer-events:auto;transition:background-color .2s,scale .2s var(--soft-spring);background:var(--w-14);box-shadow:inset 0 0 0 1px var(--w-16)}
.hint .k svg{width:12px;height:12px;fill:var(--white)}
.hint .k:hover{background:var(--w-22)}.hint .k:active{scale:.94}
.hint .k:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* Portrait frames (tablets, 9:16) read the lists and the contact tiles as a column, like a phone. */
@media(max-aspect-ratio:4/5) and (min-width:761px){
 .js.reel .note-list{flex-direction:column;align-items:center}
 .js.reel .note-list li{font-stretch:100%}
 .actions{grid-template-columns:minmax(0,1fr);width:min(520px,100%);gap:8px}
}
@media(max-width:760px){
 :root{--in:6px;--r:20px;--pad:16px}
 .top{left:calc(var(--in) + 14px);right:calc(var(--in) + 14px);top:calc(var(--in) + 10px)}
 .nav{display:none}.cta{min-height:44px;padding:0 20px}
 .more{min-height:44px;padding:0 20px}
 .reel .home-grid .card{border-radius:12px}.reel .home-grid .cv{border-radius:12px}
 .reel .home-grid .meta{padding:22px 10px 8px}
 .reel .ch-contact{padding-bottom:84px}.ch-contact .lead{font-size:14px}
 .reel .player{top:calc(var(--safe) - var(--in) - 10px);width:calc(100% - var(--in)*2 - 20px);gap:8px;padding:4px 16px 4px 4px}.tc,.hd{display:none}.now{width:78px}
 .reel .hint{bottom:calc(var(--in) + 80px);font-size:12.5px}
 .reel .ch-title .lead{font-size:13.5px}
 .js.reel .note-list{flex-direction:column;align-items:center;gap:6px;width:calc(100% - 28px);font-size:14px}
 .js.reel .note-list li{padding:.72em 1.05em;font-stretch:100%}
 .actions{grid-template-columns:minmax(0,1fr);gap:8px}.tile{min-height:68px;padding:12px 16px 12px 12px}.tile .ic{width:44px;height:44px;padding:12px}
 .legal{margin-top:6px;font-size:11.5px}.legal-text p{gap:0 12px}
}

/* ---------- Plain document: no WebGL, or reduced motion ---------- */
html:not(.reel) body{background:var(--bg)}
html:not(.reel) .top{position:static;padding:20px 7vw 0}
html:not(.reel) .nav{position:static;translate:none}
html:not(.reel) .chapter{padding:9vh 7vw 2vh;max-width:1100px}
html:not(.reel) :is(h1,.gl-title){font-size:clamp(28px,5vw,64px);font-weight:800;font-stretch:125%;line-height:1;letter-spacing:-.01em;text-transform:uppercase;margin-bottom:16px;text-wrap:balance}
html:not(.reel) :is(.lead,.screen-text){max-width:38em;margin-bottom:16px}
html:not(.reel) .note-list{display:flex;flex-wrap:wrap;gap:8px;font-size:14px}
html:not(.reel) .ch-stage{--hue:var(--lilac)}html:not(.reel) .ch-screens{--hue:var(--green)}
html:not(.reel) .home-grid{margin:24px 0 8px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
html:not(.reel) .ch-numbers{display:flex;flex-wrap:wrap;gap:6vw}
html:not(.reel) .num b{font-size:clamp(48px,8vw,110px);font-variant-numeric:tabular-nums;display:block}
html:not(.reel) .num span{font-size:16px}
html:not(.reel) .more{margin-top:16px}
html:not(.reel) .legal{margin-top:40px}
html:not(.reel) .legal :is(summary,.legal-text p){justify-content:flex-start}

@media(prefers-reduced-motion:reduce){
 .lens{transition:none}
 .cta:after,.more:after,.tile.tg{animation:none}
 .shine{animation:none;-webkit-text-fill-color:var(--shine-a)}
}
.reel body:after,.reel .invert{inset:var(--in) var(--in) auto;height:calc(var(--full) - var(--in)*2)}
