/* AI Resynapse Motion: the public front page, served at / (03.12.2026; scroll rebuild the same day), and its log-in pop-up.
   One page over a fixed backdrop of dark glass with the brand red light moving behind it (raycast.com, linear.app;
   Research/raycast.com.md, Research/linear.app.md). Four stages, Arsenie's spec answer by answer:
     1  the headline with 20 template cards forming a ring around it (headline first, a row under it, then the ring;
        his pick of the two openings, 03.12.2026)
     2  a pinned stretch where the page's own scroll opens the ring into an arc and walks it sideways (js/entry/scroll.js)
     3  one large video card lit from behind, rising into place and holding (js/entry/reel.js)
     4  the invitation box on its own screen; the page ends there
   One shared light follows the pointer and lights the edge of every card it passes near (.ge), drawn per card from the
   card's own coordinates, so it holds on rotated and scaled cards. Tokens from home-v1/DESIGN.md, dark side. */

:root {
  --font-display: "Bodoni Moda", "Bodoni 72", "Didot", Georgia, serif;
  --font-ui: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-calm: cubic-bezier(0.45, 0, 0.55, 1);    /* sine in-out: the light never hurries */
  --ground: #08080A;
  --red: #E4121F;
  --bone: #F2EDE5; --bone-2: #C4BCB0; --bone-3: #A69D90;
  --card: #151311; --raise: #211E1A; --raise-hover: #2B2722;
  --line: #2E2A25; --line-strong: #6B6358;
  --ink: #16130F; --ink-2: #4E4942; --ink-3: #6B655C; --paper-line: #E0D9CE;
  --fail: #F2A58E; --ok: #A3BF86;
  --plate: #0E0C0C;
  --rim: inset 0 0 0 1px rgba(255, 255, 255, .11), inset 0 1px 0 rgba(255, 255, 255, .09);
  --glass-fill: rgba(255, 255, 255, .045);
  --bar: 76px;                                    /* top bar */
  --foot: 72px;                                   /* the Terms and Privacy strip at the foot of the last screen */
  --pad: clamp(18px, 2.4vw, 36px);
  --hold: 2100px;                                 /* the pinned ring-to-arc stretch: 600 px morph + 1500 px sideways */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); scrollbar-gutter: stable; }
html.has-gate { overflow: hidden; }
body { margin: 0; min-height: 100%; background: var(--ground); color: var(--bone); font: 400 15px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img, video, svg { display: block; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(228, 18, 31, .55); color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Backdrop: the glass and the light. Fixed, so the page scrolls over it (unchanged, his pick) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; transition: filter 240ms ease; }
.glass { position: absolute; inset: 0; overflow: hidden; background: var(--ground); }

/* The light: three parallel soft beams on one diagonal, sliding sideways behind the glass, slow, back and forth.
   Only transform moves. The beams are drawn soft (wide gradient stops), so there is no blur filter to repaint. */
.light, .glow { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; pointer-events: none; will-change: transform; }
.light { transform: rotate(-42deg) translate3d(-30vmax, 0, 0); animation: sweep 34s var(--ease-calm) infinite alternate; }
.beam { position: absolute; top: 0; bottom: 0; display: block;
  -webkit-mask: linear-gradient(180deg, transparent 22%, #000 41%, #000 59%, transparent 78%); mask: linear-gradient(180deg, transparent 22%, #000 41%, #000 59%, transparent 78%); }
.beam-1 { left: 43.2%; width: 5.4%; background: linear-gradient(90deg, rgba(228, 18, 31, 0), rgba(228, 18, 31, .30) 30%, rgba(228, 18, 31, .58) 58%, rgba(228, 18, 31, .22) 82%, rgba(228, 18, 31, 0)); }
.beam-2 { left: 48.6%; width: 3.8%; background: linear-gradient(90deg, rgba(228, 18, 31, 0), rgba(228, 18, 31, .42) 34%, rgba(236, 52, 62, .62) 55%, rgba(228, 18, 31, .30) 80%, rgba(228, 18, 31, 0)); }
.beam-3 { left: 53.4%; width: 6.6%; background: linear-gradient(90deg, rgba(228, 18, 31, 0), rgba(228, 18, 31, .16) 28%, rgba(228, 18, 31, .38) 56%, rgba(228, 18, 31, .12) 84%, rgba(228, 18, 31, 0)); }
/* A wide, faint red behind the beams, drifting at its own pace, so the light has depth rather than a hard cut-out. */
.glow { background: radial-gradient(closest-side, rgba(228, 18, 31, .17), rgba(228, 18, 31, .07) 45%, rgba(228, 18, 31, 0) 78%);
  transform: scale(.42, .3) translate3d(-26vmax, 0, 0); animation: drift 47s var(--ease-calm) infinite alternate; }
@keyframes sweep { to { transform: rotate(-42deg) translate3d(30vmax, 0, 0); } }
@keyframes drift { to { transform: scale(.42, .3) translate3d(26vmax, 0, 0); } }

/* The glass itself: a gloss at the top, one soft diagonal reflection, a darker edge. Smooth, no noise. */
.sheen { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .014) 24%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, .028) 36%, rgba(255, 255, 255, .006) 44%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(130% 105% at 50% 42%, rgba(8, 8, 10, 0) 52%, rgba(4, 4, 6, .62) 100%),
    rgba(8, 8, 10, .22); }

/* ---------- Top bar ---------- */
.top { position: fixed; z-index: 5; left: 0; right: 0; top: 0; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad); pointer-events: none; transition: filter 240ms ease; }
.top > * { pointer-events: auto; }
.maker { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--bone); font: 500 14px/1 var(--font-ui); letter-spacing: .01em; white-space: nowrap; }
.maker img { flex: none; }
.top-actions { flex: none; display: flex; gap: 8px; }
.tbtn { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 200ms ease; }
.tbtn:active { transform: scale(.97); }
.tbtn-glass { background: rgba(255, 255, 255, .06); color: var(--bone); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tbtn-main { background: var(--bone); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 18px -10px rgba(0, 0, 0, .7); }
@media (hover: hover) and (pointer: fine) {
  .tbtn-glass:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .16); }
  .tbtn-main:hover { background: #FFFBF4; }
}

/* ---------- The page: four stages over the fixed backdrop ---------- */
.flow { position: relative; z-index: 4; overflow-x: clip; transition: filter 240ms ease; }   /* clip, not hidden: the pinned stages still stick */

/* 1 + 2. The ring and the arc. The stage is pinned while the section scrolls past it (--hold), and scroll.js writes
   each card's transform from the scroll position; nothing here is a timed scroll animation. */
.morph { position: relative; height: calc(100vh + var(--hold)); height: calc(100svh + var(--hold)); }
.m-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --tcw: 108px; }
.m-copy { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; display: flex; justify-content: center; padding: 0 var(--pad); transform: translateY(-50%); pointer-events: none; }
.m-copy-in { text-align: center; }
.kicker { margin: 0 0 20px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); }
.hero-h { font: 500 clamp(40px, 4.5vw, 76px)/1.03 var(--font-display); font-variation-settings: "opsz" 24; letter-spacing: -.021em; color: var(--bone); text-wrap: balance; }
/* The lead arrives with the arc, near the top under the bar. */
.m-lead { position: absolute; z-index: 3; left: 50%; top: calc(var(--bar) + clamp(18px, 5.5vh, 60px)); width: min(44ch, calc(100% - 2 * var(--pad))); margin: 0; text-align: center; font-size: clamp(16px, 1.32vw, 19px); line-height: 1.6; color: var(--bone-2); text-wrap: pretty; transform: translateX(-50%); }
.js .m-lead { opacity: 0; visibility: hidden; }

/* The template cards. Sized at their largest (60 px x the arc's 1.8, or 1.4 on phones) and scaled down by scroll.js,
   so the picture is never enlarged from a small raster. */
.cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tc { position: absolute; left: 50%; top: 50%; width: var(--tcw); height: calc(var(--tcw) * 1.25); margin: calc(var(--tcw) * -.625) 0 0 calc(var(--tcw) * -.5); padding: 0; border: 0; border-radius: calc(var(--tcw) * .075); background: none; color: var(--bone); text-align: left; cursor: default; opacity: 0; visibility: hidden; pointer-events: auto; perspective: 1000px; will-change: transform, opacity; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.tc:focus-visible { outline: 3px solid var(--bone); outline-offset: 4px; border-radius: calc(var(--tcw) * .075); }
.tc-in { position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d; }
.tc-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tc-front { background: #1A1815; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .75), 0 22px 44px -14px rgba(0, 0, 0, .9); }
.tc-front img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tc-front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08); }
/* The back: dark glass, the template's name and one line on its look. No link. */
.tc-back { display: flex; flex-direction: column; justify-content: center; gap: calc(var(--tcw) * .055); padding: calc(var(--tcw) * .1) calc(var(--tcw) * .09); transform: rotateY(180deg);
  background: linear-gradient(162deg, rgba(42, 37, 34, .985), rgba(17, 15, 14, .99) 58%, rgba(12, 10, 10, .99));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 14px -4px rgba(0, 0, 0, .75), 0 22px 44px -14px rgba(0, 0, 0, .9); }
.tc-name { font: 500 calc(var(--tcw) * .14)/1.08 var(--font-display); font-variation-settings: "opsz" 14; letter-spacing: -.01em; color: var(--bone); }
.tc-line { font-size: calc(var(--tcw) * .093); line-height: 1.34; color: var(--bone-2); text-wrap: pretty; }
.tc.is-turned .tc-front { visibility: hidden; }
.tc.is-turned .tc-back { transform: none; }

/* ---------- The shared light: one pointer, every card's edge ----------
   scroll.js writes --gx/--gy (the pointer in the element's own unscaled pixels; --gxm mirrored for a card's back face)
   and --gr (the light's radius, divided by the element's scale so it is the same size on screen), and adds .is-lit near
   the pointer. Brand red only, no hue drift. Touch screens get a faint static edge instead (no pointer to follow). */
.ge, .gs, .gf { position: absolute; pointer-events: none; opacity: 0; transition: opacity 220ms ease; }
.ge { z-index: 4; inset: 0; border-radius: inherit; padding: var(--gb, 1.5px);
  background: radial-gradient(var(--gr, 150px) circle at var(--gx, -9999px) var(--gy, -9999px), rgba(255, 236, 236, .95) 0, rgba(255, 96, 104, .95) 11%, rgba(228, 18, 31, .92) 28%, rgba(228, 18, 31, .38) 56%, rgba(228, 18, 31, 0) 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.ge-m { background-image: radial-gradient(var(--gr, 150px) circle at var(--gxm, -9999px) var(--gy, -9999px), rgba(255, 236, 236, .95) 0, rgba(255, 96, 104, .95) 11%, rgba(228, 18, 31, .92) 28%, rgba(228, 18, 31, .38) 56%, rgba(228, 18, 31, 0) 80%); }
/* A soft spill outside the edge (big surfaces only) and a faint wash inside a glass box. */
.gs { z-index: 0; inset: -22px; border-radius: calc(var(--gsr, 18px) + 22px); padding: 22px;
  background: radial-gradient(calc(var(--gr, 150px) * 1.15) circle at calc(var(--gx, -9999px) + 22px) calc(var(--gy, -9999px) + 22px), rgba(228, 18, 31, .30), rgba(228, 18, 31, .10) 46%, rgba(228, 18, 31, 0) 76%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.gf { z-index: 0; inset: 0; border-radius: inherit; background: radial-gradient(calc(var(--gr, 150px) * 1.3) circle at var(--gx, -9999px) var(--gy, -9999px), rgba(228, 18, 31, .11), rgba(228, 18, 31, 0) 72%); }
.is-lit > .ge, .is-lit > .gs, .is-lit > .gf, .is-lit .tc-face > .ge { opacity: 1; }
@media (hover: none) {
  .ge, .gs, .gf { display: none; }
  .tc-front::after { box-shadow: inset 0 0 0 1px rgba(228, 18, 31, .34), inset 0 1px 0 rgba(255, 255, 255, .08); }
  .vc-rim { background: rgba(228, 18, 31, .34); }
  .invite-box { box-shadow: inset 0 0 0 1px rgba(228, 18, 31, .3), inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 80px -30px rgba(0, 0, 0, .9) !important; }
}

/* 3. One large card, lit from behind by the red light, rising into place and holding (Raycast's window).
   Each video keeps its own shape: 9:16 for the showreel, 16:9 for the film. The card is laid out at the union of the two
   (--bw x --bh, reel.js) and clipped to the current shape; its rim, the shared light and the spill are rings clipped to
   the same rounded rectangle. Only clip-path and transform change. */
.reel-sec { position: relative; height: calc(100vh + 70vh); height: calc(100svh + 70svh); }
.r-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: var(--bar) var(--pad) 24px; --bw: 1036px; --bh: 667px; --lw: 1036px; }
.r-light, .r-shade { position: absolute; left: 50%; top: 50%; pointer-events: none; opacity: 0; will-change: opacity, transform; }
.r-light { width: calc(var(--lw) * 1.7); height: calc(var(--lw) * 1.05); margin: calc(var(--lw) * -.48) 0 0 calc(var(--lw) * -.85);
  background: radial-gradient(closest-side, rgba(228, 18, 31, .46), rgba(228, 18, 31, .2) 38%, rgba(228, 18, 31, .06) 64%, rgba(228, 18, 31, 0) 80%); }
/* A soft dark shadow under the card: the card's own drop shadow would be cut by its clip. */
.r-shade { width: calc(var(--lw) * 1.16); height: calc(var(--lw) * .74); margin: calc(var(--lw) * -.33) 0 0 calc(var(--lw) * -.58);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, 0) 100%); }
.vcard { position: relative; z-index: 1; width: var(--bw); height: var(--bh); opacity: 0; will-change: transform, opacity; }
.vc-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; isolation: isolate; background: #070607; }
.vc-rim { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: rgba(255, 255, 255, .12); }
.vc-fill { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, #121011 0, #0A0909 55%, #060506 100%); }
/* reel.js places each video at its own shape's rectangle (left, top, width, height: set once per resize, never animated). */
.vc-show, .vc-film { position: absolute; z-index: 1; object-fit: cover; opacity: 0; transition: opacity 320ms ease; }
.vcard[data-phase="show"] .vc-show, .vcard[data-phase="film"] .vc-film { opacity: 1; }
.vc-box { position: absolute; z-index: 3; left: 50%; top: 50%; width: 480px; margin: 0 0 0 -240px; opacity: 0; visibility: hidden; transform-origin: 50% 0; }
.vc-ring { position: absolute; z-index: 3; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; opacity: 0; visibility: hidden; }
.vc-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(242, 237, 229, 0) 0 42%, rgba(242, 237, 229, .22) 58%, var(--bone) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); animation: circle 900ms linear infinite; }
@keyframes circle { to { transform: rotate(360deg); } }
.is-paused .vc-ring::before, .is-paused .caret { animation-play-state: paused; }
.vc-play { position: absolute; z-index: 5; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0; border: 0; border-radius: 50%; color: var(--bone); cursor: pointer;
  background: rgba(14, 12, 12, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 30px -12px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color 160ms ease; }
.vc-play .i-pause, .vc-play.is-playing .i-play { display: none; }
.vc-play.is-playing .i-pause { display: block; }
.vc-play.is-playing { left: auto; top: auto; right: var(--pr, 14px); bottom: var(--pb, 14px); width: 44px; height: 44px; margin: 0; }
@media (hover: hover) and (pointer: fine) { .vc-play:hover { background: rgba(14, 12, 12, .7); } }
.vcard > .ge { z-index: 6; padding: 0; border-radius: 0; -webkit-mask: none; mask: none; }   /* a ring by clip-path (reel.js) */
.vcard > .gs { inset: -22px; padding: 0; border-radius: 0; -webkit-mask: none; mask: none; }

/* The type box from entry-v1, now inside the card: Brand, Template, Send, then the circling, then the film. */
.box { position: relative; width: 100%; padding: 22px 24px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--paper-line), 0 2px 4px rgba(0, 0, 0, .2), 0 34px 70px -28px rgba(0, 0, 0, .85); color: var(--ink); overflow: hidden; }
.box-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.box-row-tpl { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--paper-line); }
.box-k { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.box-v { position: relative; display: flex; align-items: baseline; min-height: 1.14em; font-family: var(--font-display); font-variation-settings: 'opsz' 34; font-weight: 500; line-height: 1.14; white-space: nowrap; }
.box-brand { font-size: 52px; letter-spacing: -.018em; }
.box-tpl { font-size: 26px; font-style: italic; font-weight: 400; color: var(--ink-2); font-variation-settings: 'opsz' 18; }
.ch { display: inline-block; white-space: pre; will-change: transform, opacity; }
.ch.off { display: none; }
.caret { display: inline-block; width: 2px; height: .92em; margin-left: 2px; align-self: center; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.box-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.box-send { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #F8F5F0; font: 600 14px/1 var(--font-ui); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 1px 2px rgba(20, 14, 8, .2), 0 8px 18px -10px rgba(20, 14, 8, .55); }

/* 4. The invitation box, alone on the last screen. */
.sec { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: var(--bar) var(--pad) var(--foot); outline: none; }
.formwrap { width: min(600px, 100%); }
.js .formwrap { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.js .formwrap.is-in { opacity: 1; transform: none; }
.invite-box { position: relative; padding: clamp(20px, 2.6vw, 32px) clamp(18px, 2.6vw, 32px) clamp(10px, 1.4vw, 16px); border-radius: 26px; --gsr: 26px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 80px -30px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.invite-box > .wl-form, .invite-box > .wl-done { position: relative; z-index: 1; }
.invite-box > .ge { --gb: 2px; }
.wl-row { display: flex; gap: 10px; }
.wl-row input { flex: 1; min-width: 0; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--glass-fill); color: var(--bone); font: inherit; font-size: 16px; box-shadow: var(--rim); transition: box-shadow 160ms ease, background-color 160ms ease; }
.wl-row input::placeholder { color: var(--bone-2); opacity: 1; }
.wl-row input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .1); }
.wl-row input:focus { outline: 2px solid var(--bone); outline-offset: 2px; background: rgba(255, 255, 255, .06); }
.wl-row input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--fail); }
.wl-btn { flex: none; height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--bone); color: var(--ink); font: 600 15px var(--font-ui); white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 28px -14px rgba(0, 0, 0, .8); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wl-btn:hover { background: #fff; } }
.wl-btn:active { transform: scale(.97); }
.wl-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-consent { position: relative; display: flex; gap: 10px; margin: 16px 6px 0; font-size: 13px; line-height: 1.5; color: var(--bone-2); cursor: pointer; }
.wl-consent input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 1px 0 0; }
.wl-box { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; color: transparent; background: var(--glass-fill); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); transition: background-color 120ms ease, box-shadow 120ms ease; }
.wl-consent input:checked + .wl-box { background: var(--bone); box-shadow: none; color: var(--ink); }
.wl-consent input:focus-visible + .wl-box { outline: 2px solid var(--bone); outline-offset: 2px; }
.wl-consent a { color: var(--bone); text-underline-offset: 3px; }
.wl-msg { min-height: 22px; margin: 10px 6px 0; font-size: 13.5px; color: var(--fail); }
.wl-done { padding: 14px 8px 18px; text-align: center; outline: none; animation: rise 520ms var(--ease-out) both; }
.wl-done-h { font: 500 28px/1.15 var(--font-display); font-variation-settings: "opsz" 14; }
.wl-done-p { margin-top: 6px; color: var(--bone-2); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.foot { position: absolute; left: 0; right: 0; bottom: 0; height: var(--foot); display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 12.5px; color: var(--bone-2); }
.foot a { padding: 12px 4px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--bone); } }

/* ---------- Behind the pop-up ---------- */
.is-behind .backdrop, .is-behind .top, .is-behind .flow { filter: blur(7px); }
.veil { position: fixed; inset: 0; z-index: 6; background: #050403; opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.is-behind .veil { opacity: .38; }
.gate > .ge { z-index: 10; --gb: 2px; }

/* ---------- Pop-up (unchanged from entry-v2) ---------- */
.gate { position: fixed; inset: 0; width: min(1100px, calc(100vw - 48px)); height: min(760px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 22px; background: var(--card); color: var(--bone); overflow: hidden; box-shadow: 0 0 0 1px rgba(242, 237, 229, .09), 0 2px 6px rgba(0, 0, 0, .4), 0 50px 120px -30px rgba(0, 0, 0, .85); }
.gate::backdrop { background: transparent; }
.gate[open] { animation: gateIn 240ms var(--ease-out) both; }
.gate.is-closing { animation: gateOut 150ms ease both; }
@keyframes gateIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gateOut { to { opacity: 0; transform: scale(.985); } }
.gate-card { display: grid; grid-template-columns: auto minmax(0, 1fr); height: 100%; }

/* Left panel: exactly 4:5 at full height, so a template fills it uncropped */
.reel { position: relative; height: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--plate); }
.reel-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 420ms ease; }
.slide.is-on { opacity: 1; }
.slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.is-on img, .slide.is-on video { animation: drift-slide 6s linear both; }
@keyframes drift-slide { from { transform: scale(1); } to { transform: scale(1.045); } }
.slide figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 104px 30px 28px; background: linear-gradient(180deg, rgba(8, 6, 5, 0), rgba(8, 6, 5, .92) 44%, #080605 62%); }
.slide b { font: 500 27px/1.1 var(--font-display); font-variation-settings: 'opsz' 22; letter-spacing: -.012em; color: #FBF8F3; }
.slide span { max-width: 44ch; color: #DDD6CB; font-size: 14.5px; line-height: 1.42; text-wrap: pretty; }
.reel-bars { position: absolute; z-index: 2; left: 18px; right: 18px; top: 16px; display: flex; gap: 6px; }
.reel-bars i { position: relative; flex: 1; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .28); }
.reel-bars u { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.reel-bars i.is-done u { transform: scaleX(1); }
.reel-bars i.is-on u { animation: fill 5.5s linear both; }
@keyframes fill { to { transform: scaleX(1); } }
.reel.is-still .reel-bars i.is-on u { animation: none; transform: scaleX(1); }

/* Right panel: the form */
.pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(28px, 3.4vw, 46px) 14px; }
.pane-top { flex: none; }
.pane-maker { display: inline-flex; align-items: center; gap: 9px; color: var(--bone-2); font-size: 12.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.pane-maker img { flex: none; }
.pane-body { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding-block: 16px; }
.view { width: 100%; max-width: 372px; margin-inline: auto; animation: viewIn 220ms var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sample { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; background: var(--raise-hover); color: var(--bone-2); font-size: 12px; font-weight: 600; }
.view-h { font: 500 clamp(30px, 2.6vw, 36px)/1.08 var(--font-display); font-variation-settings: 'opsz' 22; letter-spacing: -.016em; outline: none; text-wrap: balance; }
.view-sub { margin-top: 8px; color: var(--bone-2); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.view-sub + .form { margin-top: 20px; }
.view-p { margin-top: 12px; color: var(--bone-2); line-height: 1.6; }
.pane-note { flex: none; color: var(--bone-3); font-size: 12px; line-height: 1.4; text-align: center; }

.close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--bone-2); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.close::after { content: ""; position: absolute; inset: -4px; }
.close:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .close:hover { background: var(--raise); color: var(--bone); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--bone); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 18px -10px rgba(0, 0, 0, .7); }
.btn-google { margin-top: 18px; background: var(--raise); color: var(--bone); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.btn-google svg { flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-main:hover { background: #FFFBF4; }
  .btn-google:hover { background: var(--raise-hover); box-shadow: 0 0 0 1px var(--bone-3) inset; }
}
.or { display: flex; align-items: center; gap: 12px; margin-block: 14px; color: var(--bone-3); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Fields ---------- */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .label-row label { font-size: 13.5px; font-weight: 600; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hint { color: var(--bone-3); font-size: 12.5px; }
.hint-link { position: relative; color: var(--bone-2); font-size: 13px; text-underline-offset: 3px; }
.hint-link::after { content: ""; position: absolute; inset: -12px -6px; }
.field input:not([type="checkbox"]) { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--raise); color: var(--bone); box-shadow: 0 0 0 1px var(--line-strong) inset; transition: box-shadow 140ms ease; }
.field input:not([type="checkbox"]):focus { outline: 2px solid var(--bone); outline-offset: 1px; box-shadow: 0 0 0 1px var(--bone) inset; }
.field input[aria-invalid="true"] { box-shadow: 0 0 0 1px var(--fail) inset; }
.field input[readonly] { background: var(--raise-hover); color: var(--bone-2); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--bone); caret-color: var(--bone); -webkit-box-shadow: 0 0 0 1px var(--line-strong) inset, 0 0 0 60px var(--raise) inset; }
.input-code { font-size: 22px !important; font-weight: 500; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.pass { position: relative; }
.pass input { padding-right: 68px !important; }
.pass-toggle { position: absolute; top: 5px; right: 5px; height: 36px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--bone-2); font-size: 13px; font-weight: 600; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .pass-toggle:hover { background: var(--raise-hover); } }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13.5px !important; font-weight: 400 !important; line-height: 1.42; color: var(--bone-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--bone); cursor: pointer; }
.check a { color: var(--bone); text-underline-offset: 3px; }
.err { color: var(--fail); font-size: 13px; line-height: 1.35; }
.note { color: var(--bone-3); font-size: 12.5px; }
.status { margin-top: 12px; color: var(--ok); font-size: 13.5px; }
.switch { margin-top: 14px; color: var(--bone-2); font-size: 14px; text-align: center; }
.switch a, .link { position: relative; padding: 0; border: 0; background: none; color: var(--bone); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.switch a::after, .link::after { content: ""; position: absolute; inset: -12px -6px; }
.switch .link { margin-right: 14px; }

/* Short laptop windows */
@media (min-width: 960px) and (max-height: 760px) {
  .pane { padding-top: 16px; padding-bottom: 10px; }
  .pane-body { padding-block: 8px; }
  .view-h { font-size: 29px; }
  .view-sub { margin-top: 4px; font-size: 14px; }
  .btn { min-height: 44px; }
  .btn-google { margin-top: 12px; }
  .or { margin-block: 8px; }
  .form { gap: 8px; }
  .view-sub + .form { margin-top: 14px; }
  .field { gap: 3px; }
  .field input:not([type="checkbox"]) { height: 41px; }
  .pass-toggle { top: 3px; height: 35px; }
  .check { font-size: 13px !important; line-height: 1.3; }
  .switch { margin-top: 9px; }
}
@media (max-height: 760px) {
  :root { --bar: 66px; --foot: 60px; }
  .kicker { margin-bottom: 14px; }
}

/* ---------- Under 960: the pop-up is the form only, full screen ---------- */
@media (max-width: 959.98px) {
  .reel { display: none; }
  .gate-card { display: block; }
  .gate { width: 100vw; height: 100dvh; max-width: none; border-radius: 0; box-shadow: none; }
  .pane { padding: 16px 22px 14px; }
  .view { max-width: 440px; }
  .view-h { font-size: 30px; }
  .field input:not([type="checkbox"]) { font-size: 16px; } /* 16px stops iOS zooming on focus */
  .btn-google { margin-top: 14px; }
  .or { margin-block: 10px; }
  .form { gap: 10px; }
  .close { top: 8px; right: 8px; width: 44px; height: 44px; }
  .close::after { inset: 0; }
}

/* ---------- Phones and narrow tablets (under 768, his reference's own switch): the headline at the top, the ring
   below it, the arc with the reference's mobile values (scroll.js) ---------- */
@media (max-width: 767.98px) {
  .m-stage { --tcw: 84px; }
  .m-copy { top: calc(var(--bar) + 18px); transform: none; }
  .hero-h { font-size: clamp(30px, 8.6vw, 44px); }
}
@media (max-width: 640px) {
  :root { --bar: 64px; --foot: 60px; }
  .top { padding: 0 14px; }
  .maker { flex: 1 1 0; gap: 8px; font-size: 13px; }
  .maker span { white-space: normal; line-height: 1.15; }
  .maker img { width: 22px; height: 22px; }
  .tbtn { height: 40px; padding: 0 16px; font-size: 13.5px; }
  .sec { padding-left: 16px; padding-right: 16px; }
  .kicker { margin-bottom: 12px; font-size: 12px; }
  .wl-row { flex-direction: column; }
  .wl-row input { flex: none; width: 100%; }
  .wl-btn { width: 100%; }
  .invite-box { border-radius: 22px; --gsr: 22px; }
  .r-stage { padding-top: calc(var(--bar) + 8px); }
  .box { padding: 16px 18px 14px; border-radius: 14px; }
  .box-row-tpl { margin-top: 8px; padding-top: 7px; }
  .box-foot { margin-top: 8px; }
  .box-send { height: 36px; padding: 0 15px; }
}

/* ---------- Reduced motion: a still ring round the headline, a still arc, the videos on a poster with a play button.
   The card backs fade in place instead of turning. ---------- */
@media (prefers-reduced-motion: reduce) {
  .light, .glow { animation: none; }
  .light { transform: rotate(-42deg) translate3d(-9vmax, 0, 0); }
  .glow { transform: scale(.42, .3) translate3d(-8vmax, 0, 0); }
  .m-stage .cards, .m-copy, .m-lead { transition: opacity 200ms ease; }
  .tc-in { transform: none !important; }
  .tc-back { transform: none; opacity: 0; transition: opacity 160ms ease; }
  .tc.is-flip .tc-back { opacity: 1; }
  .js .formwrap { transform: none; transition: opacity 200ms ease; }
  .wl-done { animation: none; }
  .gate[open] { animation: gateFade 120ms ease both; }
  .gate.is-closing { animation: gateFadeOut 90ms ease both; }
  @keyframes gateFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes gateFadeOut { to { opacity: 0; } }
  .view { animation: viewFade 120ms ease both; }
  @keyframes viewFade { from { opacity: 0; } to { opacity: 1; } }
  .slide { transition: none; }
  .slide.is-on img, .slide.is-on video { animation: none; }
  .tbtn:active, .btn:active, .close:active, .wl-btn:active { transform: none; }
  .caret, .vc-ring::before { animation: none; }
  .vc-show, .vc-film { transition: none; }
}
