/* heypetr.com, round 2 · "Petr's Tour" (2026-11-10).
   Petr himself guides the scroll. One live orb lives in a fixed layer above the page and flies, by transform only,
   to the anchor of the scene you're in (data-anchor): big beside his words, riding the playhead while he builds,
   sweeping the frames while he checks, huge while he listens, small only inside his own app. Each scene is a pinned
   stage (sticky); scrolling advances the conversation. Sides and shapes alternate:
     hello (Petr top-left, short right) · talk (card left, Petr right) · plan (Petr left, script right) ·
     build (short left, Petr rides the timeline) · check (Petr sweeps a full-bleed band) · change (Petr centre,
     then left) · films (Petr left, three players) · app (the window opens around Petr) · price (centred) ·
     questions (Petr left, chat) · end (centred, the wall).
   Spacing only on the scale (4 6 8 12 16 20 24 32 40 48 64 80 96 128 160). Motion: transform and opacity only. */

:root {
  --tile-w: 168px; --tile-h: 299px; --tile-gap: 14px;
  --lean: perspective(2400px) rotateX(10deg) rotateY(-14deg) rotateZ(-12deg);
  --rule: rgba(255, 255, 255, 0.08);
  --c-scene-studio: #6a5a1e; --c-scene-studio-bar: #c9a93a; --c-scene-xray: #74394a; --c-scene-xray-bar: #e0788f;
  --orb-box: 340px;
  --pad-x: max(var(--pad-page), calc((100vw - 1200px) / 2));
}

html { scroll-behavior: auto; }
body { background: var(--c-ground); }
main { position: relative; z-index: 1; }

/* ---- Petr: the one live orb, fixed above the page, placed by transform (tour.js) */
.petr-layer { position: fixed; inset: 0; z-index: 25; pointer-events: none; }
.petr-move { position: absolute; left: 0; top: 0; width: var(--orb-box); height: var(--orb-box); will-change: transform; transform: translate3d(-999px, -999px, 0); }
.petr-orb { --s: var(--orb-box); position: absolute; inset: 0; }
/* thinking (the app's own): the drop shrinks a little, and a ring of Petr's colours chases round its rim */
.petr-orb { transition: scale 520ms var(--ease-calm); }
.petr-move[data-state="thinking"] .petr-orb { scale: 0.84; }
.petr-move .ring { position: absolute; inset: -8%; border-radius: 50%; opacity: 0; transition: opacity 400ms var(--ease-calm);
  background: conic-gradient(from 0deg, transparent 0turn 0.5turn, rgb(47 91 255 / 0.6) 0.68turn, #9b7bff 0.84turn, #ffd34d 0.96turn, #fff 1turn);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--orb-box) * 0.035), #000 calc(100% - var(--orb-box) * 0.03));
  mask: radial-gradient(closest-side, transparent calc(100% - var(--orb-box) * 0.035), #000 calc(100% - var(--orb-box) * 0.03));
  animation: turn 1.1s linear infinite; }
.petr-move[data-state="thinking"] .ring { opacity: 1; }
@keyframes turn { to { rotate: 1turn; } }
/* he arrives like a drop of liquid (the app's porb-drop) */
.petr-orb { animation: porb-drop 760ms var(--ease-calm) both; }
@keyframes porb-drop { 0% { opacity: 0; transform: translateY(-14%) scale(0.3, 0.42); } 45% { opacity: 1; transform: translateY(0) scale(1.07, 0.93); } 70% { transform: scale(0.97, 1.03); } 100% { transform: none; } }
html[data-shot] .petr-orb { animation: none; }
/* his light on the page: a soft cobalt pool under everything, following him */
.petr-light { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* his light on the page takes his mood: cobalt at rest, violet and lilac while he listens or thinks, warm peach and
   gold while he works (three pools, crossfaded by opacity) */
.petr-light .pool { position: absolute; left: 0; top: 0; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; will-change: transform; transform: translate3d(-2000px, -2000px, 0); }
.petr-light .pool i { position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity 0.9s var(--ease-calm); }
.petr-light .l-rest { background: radial-gradient(closest-side, rgba(47, 91, 255, 0.2), rgba(93, 82, 255, 0.08) 45%, rgba(47, 91, 255, 0) 100%); }
.petr-light .l-cool { background: radial-gradient(closest-side, rgba(155, 123, 255, 0.24), rgba(201, 166, 255, 0.08) 45%, rgba(255, 143, 177, 0.03) 70%, rgba(155, 123, 255, 0) 100%); }
.petr-light .l-warm { background: radial-gradient(closest-side, rgba(255, 211, 77, 0.08), rgba(234, 154, 120, 0.12) 30%, rgba(155, 123, 255, 0.07) 60%, rgba(47, 91, 255, 0) 100%); }
html:not([data-pstate]) .l-rest, html[data-pstate="rest"] .l-rest { opacity: 1; }
html[data-pstate="listening"] .l-cool, html[data-pstate="thinking"] .l-cool { opacity: 1; }
html[data-pstate="working"] .l-warm { opacity: 1; }
/* droplets that broke off him, drifting past at different depths as you scroll (parallax) */
.drift { position: absolute; inset: 0; }
.drop { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); border-radius: 50%; will-change: transform;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0 8%, var(--hi) 22%, var(--c) 52%, var(--lo) 100%);
  box-shadow: 0 0 calc(var(--s) * 0.8) var(--glow), inset 0 calc(var(--s) * -0.08) calc(var(--s) * 0.2) rgba(20, 10, 40, 0.35); opacity: var(--o, 0.8); }
.drop.soft { background: radial-gradient(closest-side, var(--c), transparent); box-shadow: none; }
.drop > i { position: absolute; inset: 0; border-radius: inherit; animation: bob var(--bt, 7s) ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-10px); } }
/* a ripple of light where Petr lands, like a drop meeting water */
.ripple { position: absolute; left: 0; top: 0; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(201, 166, 255, 0.7), 0 0 24px rgba(143, 168, 255, 0.5), inset 0 0 24px rgba(143, 168, 255, 0.35); }
.ripple.go { animation: ripple 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes ripple { 0% { opacity: 0.8; transform: var(--at) scale(0.55); } 100% { opacity: 0; transform: var(--at) scale(2.6); } }
/* Petr's world, where the wall used to be: deep liquid light, violet and cobalt pools that slowly drift and merge,
   and his pink, peach and gold droplets floating in depth */
.liquid { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(90% 80% at 70% 45%, #1a1b2e 0%, #151515 70%); will-change: transform, opacity; }
.liquid .lb { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); will-change: transform; animation: pool var(--t, 20s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes pool { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(var(--dx), calc(var(--dy) * -0.6)) scale(1.12); } 100% { transform: translate(calc(var(--dx) * -0.5), var(--dy)) scale(0.94); } }
.liquid .sheen { position: absolute; left: 52%; top: -30%; width: 1100px; height: 700px; border-radius: 50%; opacity: 0.5;
  background: radial-gradient(closest-side, rgba(255,255,255,0.05), rgba(255,255,255,0)); transform: rotate(-18deg); }
.liquid .drop { left: var(--x); top: var(--y); }
html[data-shot] .liquid .lb, html[data-shot] .drop > i { animation: none; }
.anchor { position: absolute; display: block; pointer-events: none; }
/* what Petr is doing, right now (follows him) */
.petr-tag { position: fixed; left: 0; top: 0; z-index: 26; pointer-events: none; display: inline-flex; align-items: center; gap: var(--s-8); height: 30px; padding: 0 var(--s-12); border-radius: var(--r-pill); background: rgba(31,31,31,0.92); box-shadow: var(--shadow-float); font-size: var(--fs-13); font-weight: 600; color: var(--c-petr-text); white-space: nowrap; opacity: 0; transition: opacity .3s linear; will-change: transform, opacity; translate: -50% 0; }
.petr-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand-text); box-shadow: 0 0 8px var(--c-brand-text); animation: blink 1.2s ease-in-out infinite; }
.petr-tag.on { opacity: 1; }
.petr-tag[data-side="above"] { translate: -50% -100%; }
.petr-tag[data-side="right"] { translate: 0 -50%; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---- nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(21,21,21,0.94); box-shadow: 0 1px 0 var(--c-line); opacity: 0; transition: opacity var(--t-calm) var(--ease-calm); }
html[data-scrolled] .nav::before { opacity: 1; }
.nav-in { max-width: var(--w-page); margin: 0 auto; height: 72px; padding: 0 var(--pad-page); display: flex; align-items: center; gap: var(--s-8); }
.nav-in > a:first-child { margin-right: auto; }
.nav .btn { margin-left: var(--s-12); }
html[data-appwin] .nav .btn.primary { background: var(--c-control); color: var(--c-text); }
html[data-appwin] .nav .btn.primary:hover { background: var(--c-control-hover); }

/* ---- the tour's map (the five steps), bottom-left while you're in them */
/* it lives in the nav bar, beside the wordmark, so it never covers the story */
.hud { position: fixed; left: calc(max(0px, (100vw - var(--w-page)) / 2) + var(--pad-page) + 67px + var(--s-40)); top: 12px; z-index: 31; display: flex; align-items: center; gap: var(--s-16); height: 48px; padding: 0 var(--s-16); border-radius: var(--r-pill); background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .4s var(--ease-calm), transform .4s var(--ease-calm); }
html[data-hud] .hud { opacity: 1; transform: none; pointer-events: auto; }
.hud-t { display: flex; align-items: baseline; gap: var(--s-8); min-width: 148px; font-size: var(--fs-14); color: var(--c-text); font-weight: 600; white-space: nowrap; }
.hud-t b { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; color: var(--c-text-2); }
.hud-bars { display: flex; gap: var(--s-4); }
.hud-bars a { position: relative; display: block; width: 40px; padding: 12px 0; }
.hud-bars a i { display: block; height: 4px; border-radius: 2px; background: #3a3a3a; overflow: hidden; position: relative; }
.hud-bars a i::after { content: ''; position: absolute; inset: 0; background: var(--petr-gradient); background-size: 400% 100%; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.hud-bars a.done i::after { background: #e6e6e6; }
.hud-bars a span { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); font-size: var(--fs-12); color: var(--c-text-2); opacity: 0; transition: opacity var(--t-fast) linear; white-space: nowrap; }
.hud-bars a:hover span, .hud-bars a:focus-visible span { opacity: 1; }
.hud-bars a:hover i { background: #555; }

/* ---- scenes: a tall section and a pinned stage */
.scene { position: relative; height: calc(var(--len, 300) * 1svh); }
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene .pin > * { will-change: auto; }
[data-step] { scroll-margin-top: 0; }

/* shared type */
.mark { display: flex; align-items: center; gap: var(--s-12); font-size: var(--fs-13); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-2); }
.mark b { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; color: var(--c-brand-text); }
h2.serif { font-size: var(--fs-56); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.intro { font-size: var(--fs-18); line-height: 1.55; color: #bdbdbd; text-wrap: pretty; }
.mark + h2 { margin-top: var(--s-16); }
h2 + .intro { margin-top: var(--s-20); }
.who { display: block; font-size: var(--fs-13); font-weight: 650; letter-spacing: 0.01em; color: var(--c-brand-text); }
.speech { position: absolute; max-width: 340px; padding: var(--s-16) var(--s-20); border-radius: var(--r-card); background: var(--c-float); box-shadow: var(--shadow-float); }
.speech p { margin-top: var(--s-6); font-size: var(--fs-20); line-height: 1.4; color: var(--c-petr-text); text-wrap: pretty; }

/* ---- your question, top right: the conversation moves on as you scroll */
.ask { position: absolute; right: var(--pad-x); top: 104px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-6); will-change: transform, opacity; }
.ask .meta { font-size: var(--fs-13); color: var(--c-text-2); }
.talk .side .ask { right: 0; top: 0; }
.price-head .ask { right: auto; left: calc(50% + 112px); top: 24px; align-items: flex-start; }
.price-head .ask .bubble { border-radius: var(--r-card) var(--r-card) var(--r-card) var(--s-4); }
.price-head .ask .meta { padding-left: var(--s-4); }
.talk .side { padding-top: 0; }

/* ---- a player: the films are unmistakably videos (a frame with its own shadow, controls, a title and a length) */
.player { position: relative; width: var(--pw, 320px); margin: 0; }
.player .glow { position: absolute; z-index: -1; left: -70%; top: -35%; width: 240%; height: 170%; max-width: none; opacity: 0.5; pointer-events: none; -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); }
.player .frame { position: relative; padding: var(--s-8) var(--s-8) 0; border-radius: 26px; background: #0e0e0f; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.07), 0 40px 100px rgba(0,0,0,0.6); }
.player .screen { cursor: pointer; border-radius: var(--r-video); box-shadow: none; }
.player .screen::after { content: 'Tap for sound'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96); height: 36px; padding: 0 var(--s-16); display: flex; align-items: center; border-radius: var(--r-pill); background: rgba(14,14,15,0.86); color: #fff; font-size: var(--fs-14); font-weight: 600; opacity: 0; transition: opacity var(--t-fast) linear, transform var(--t-calm) var(--ease-calm); pointer-events: none; }
.player .screen:hover::after { opacity: 1; transform: translate(-50%, -50%); }
.player.loud .screen::after { content: 'Tap to mute'; }
.player .tag { position: absolute; left: var(--s-12); top: var(--s-12); z-index: 2; display: inline-flex; align-items: center; gap: var(--s-6); height: 26px; padding: 0 var(--s-8); border-radius: var(--r-pill); background: rgba(14,14,15,0.8); font-size: var(--fs-12); font-weight: 600; color: #fff; }
.player .tag i { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9a6ff, #2f5bff); }
.ctrl { display: flex; align-items: center; gap: var(--s-12); height: 48px; padding: 0 var(--s-4); }
.ctrl button { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-6); height: 32px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--c-text); transition: background-color var(--t-fast) linear; }
.ctrl button:hover { background: var(--c-control-hover); }
.ctrl button:active { background: var(--c-control-press); }
.ctrl button svg { width: 16px; height: 16px; fill: currentColor; }
.ctrl .pp { width: 32px; }
.ctrl .pp .i-play, .player.paused .ctrl .pp .i-pause { display: none; }
.player.paused .ctrl .pp .i-play { display: block; }
.ctrl .snd { padding: 0 var(--s-8); background: var(--c-control); font-size: var(--fs-13); font-weight: 600; }
.ctrl .snd .i-on, .player.loud .ctrl .snd .i-off { display: none; }
.player.loud .ctrl .snd .i-on { display: block; }
.player.loud .ctrl .snd { background: var(--c-brand); }
.ctrl .prog { flex: 1; height: 4px; border-radius: 2px; background: #3a3a3a; overflow: hidden; }
.ctrl .prog i { display: block; height: 100%; background: #f2f2f2; transform-origin: 0 50%; transform: scaleX(0); }
.ctrl .time { flex: none; font-size: var(--fs-12); color: var(--c-text-2); }
.player figcaption { margin-top: var(--s-16); display: flex; flex-direction: column; gap: var(--s-4); }
.player figcaption b { font-size: var(--fs-15); font-weight: 600; line-height: 1.35; }
.player figcaption span { font-size: var(--fs-13); color: var(--c-text-2); }

/* ================= 0 · hello ================= */
.hello { --len: 340; } /* round 5: the dive takes its time (it was 135) */
.wall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wall .plane { position: absolute; left: 50%; top: 50%; width: 2600px; height: 2000px; margin: -1000px 0 0 -1300px; transform: var(--lean); }
.wall-in { position: absolute; inset: 0; will-change: transform, opacity; }
.wcol { position: absolute; top: 0; width: var(--tile-w); display: flex; flex-direction: column; gap: var(--tile-gap); animation: drift var(--dur, 300s) linear infinite; animation-delay: var(--delay, 0s); will-change: transform; }
.wcol.down { animation-direction: reverse; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(calc(-50% - var(--tile-gap) / 2)); } }
html[data-shot] .wcol { animation: none; transform: translateY(var(--shot-y, 0)); }
.tile { position: relative; width: var(--tile-w); height: var(--tile-h); border-radius: 12px; overflow: hidden; background: #1c1c1c; box-shadow: var(--shadow-poster); flex: none; opacity: 0.42; transition: opacity 1.4s var(--ease-calm), transform 1.4s var(--ease-calm); }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.live { opacity: 0.72; }
.tile.lit { opacity: 1; transform: scale(1.06); z-index: 2; box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 24px 60px rgba(0,0,0,0.6); }
.hello .scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(21,21,21,0.94) 0%, rgba(21,21,21,0.82) 36%, rgba(21,21,21,0.22) 64%, rgba(21,21,21,0.05) 82%),
  linear-gradient(rgba(21,21,21,0.92), rgba(21,21,21,0.7) 72px, rgba(21,21,21,0) 200px),
  linear-gradient(0deg, #151515 0%, rgba(21,21,21,0) 220px); }
.hello-in { position: relative; z-index: 2; height: 100%; padding: 0 var(--pad-x); display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); align-items: center; }
.words { padding-top: var(--s-48); will-change: transform, opacity; }
.hi { position: relative; display: flex; align-items: center; gap: var(--s-24); height: 176px; }
.hi .anchor { position: static; width: 176px; height: 176px; flex: none; }
.say-hi { padding: var(--s-12) var(--s-20) var(--s-16); border-radius: var(--r-card) var(--r-card) var(--r-card) var(--s-4); background: var(--c-float); box-shadow: var(--shadow-float); font-size: var(--fs-20); color: var(--c-petr-text); }
.say-hi .who { margin-bottom: var(--s-4); }
.hello h1 { margin-top: var(--s-32); font-size: 78px; line-height: 1; letter-spacing: -0.025em; }
.hello h1 > span { display: block; white-space: nowrap; }
/* the second line in Petr's own colours: his cobalt into his violet and lilac (no pink-to-orange) */
.hello h1 .two { color: transparent; background: linear-gradient(100deg, #9db2ff 0%, #b49cff 55%, #d4b8ff 100%); -webkit-background-clip: text; background-clip: text; }
.hello .lede { margin-top: var(--s-24); max-width: 540px; font-size: var(--fs-20); line-height: 1.5; color: #cfcfcf; }
.start { margin-top: var(--s-40); display: flex; align-items: center; gap: var(--s-12); width: fit-content; max-width: 100%; height: 72px; padding: 0 var(--s-12) 0 var(--s-16); border-radius: var(--r-pill); background: var(--c-float); box-shadow: var(--shadow-float); }
.start .appicon { width: 40px; height: 40px; border-radius: 10px; }
.start .t { display: flex; flex-direction: column; gap: 2px; padding-right: var(--s-12); }
.start .t1 { font-size: var(--fs-16); font-weight: 600; }
.start .t2 { font-size: var(--fs-13); color: var(--c-text-2); white-space: nowrap; }
.clay { color: var(--c-clay-light); }
.start .btn { height: 48px; }
.act-phone { display: none; }
.fine { font-size: var(--fs-13); line-height: 1.6; color: var(--c-text-2); }
.hero-player { --pw: 340px; justify-self: center; margin-top: var(--s-48); will-change: transform, opacity; }
.hero-player .frame { transform: rotate(3deg); }
.hero-player figcaption { transform: rotate(3deg); transform-origin: 0 0; padding-left: var(--s-12); }
.cue { position: absolute; left: 50%; bottom: var(--s-32); transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: var(--s-8); height: 44px; padding: 0 var(--s-16); border-radius: var(--r-pill); background: var(--c-float); box-shadow: var(--shadow-float); font-size: var(--fs-15); color: var(--c-petr-text); white-space: nowrap; }
.cue .who { display: inline; }
.cue svg { width: 16px; height: 16px; color: var(--c-text-2); animation: nudge 1.8s var(--ease-calm) infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* ================= 1 · talk ================= */
.talk { --len: 330; }
.talk-in { height: 100%; padding: 96px var(--pad-x) var(--s-48); display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); column-gap: var(--s-64); align-items: center; }
.talk .col > * { will-change: transform, opacity; }
.talk h2 { max-width: 640px; }
.talk .intro { max-width: 600px; }
.talk .side { position: relative; height: 100%; }
.talk .side .anchor { left: 50%; top: 38%; width: 300px; height: 300px; transform: translate(-50%, -50%); }
.talk .speech { left: 50%; top: calc(38% + 190px); transform: translateX(-50%); width: 320px; }
.vcard { margin-top: var(--s-32); padding: var(--s-20) var(--s-24) var(--s-24); border-radius: var(--r-sheet); background: var(--c-bg); box-shadow: var(--shadow-panel); }
.vrow { display: flex; align-items: center; gap: var(--s-12); height: 28px; font-size: var(--fs-14); }
.vlab { color: var(--c-text-2); }
.vfile { display: inline-flex; align-items: center; gap: var(--s-6); font-weight: 600; }
.vfile svg { width: 14px; height: 14px; color: var(--c-voice-wave); }
.vlen { margin-left: auto; font-size: var(--fs-14); color: var(--c-text-2); }
.vlen b { color: var(--c-text); font-weight: 600; }
.takes { position: relative; height: 56px; margin-top: var(--s-12); }
.takes .tk { position: absolute; top: 0; height: 100%; border-radius: 4px; transform-origin: 0 50%; will-change: transform, opacity; transition: opacity .25s linear; }
.takes .tk svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.takes .tk rect { fill: #6f6f6f; }
.takes .tk.keep rect { fill: var(--c-voice-wave); }
.takes .tk::before { content: ''; position: absolute; inset: -4px -1px; border-radius: 4px; background: rgba(255,255,255,0.05); opacity: var(--hl, 0); }
.takes .tk.keep::before { background: rgba(107,140,255,0.18); box-shadow: inset 0 0 0 1px rgba(143,168,255,0.5); }
.vhead { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.5); will-change: transform, opacity; }
.vstat { margin-top: var(--s-12); }
.hear { height: 24px; margin-top: var(--s-12); display: flex; align-items: center; gap: var(--s-12); font-size: var(--fs-14); color: #cfcfcf; white-space: nowrap; overflow: hidden; will-change: opacity; }
.hear .mono { flex: none; font-size: var(--fs-12); color: var(--c-brand-text); }
.hear q { overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: var(--s-6); height: 28px; padding: 0 var(--s-12); border-radius: var(--r-pill); background: var(--c-control); font-size: var(--fs-13); color: var(--c-text-2); will-change: transform, opacity; }
.pill b { color: var(--c-text); font-weight: 650; }
.pill.keep { background: var(--c-brand-soft); color: var(--c-petr-text); }
.pill.keep b { color: #fff; }
.cut { position: relative; height: 40px; margin-top: var(--s-12); border-radius: 6px; outline: 1px dashed rgba(143,168,255,0.28); outline-offset: 2px; }
.cut-ph { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: var(--fs-13); color: var(--c-text-2); white-space: nowrap; will-change: opacity; }
.cut .cs { position: absolute; top: 0; height: 100%; transform-origin: 0 50%; will-change: transform, opacity; opacity: 0; }
.cut .cs svg { width: 100%; height: 100%; display: block; }
.cut rect { fill: var(--c-voice-wave); }
.lines { margin-top: var(--s-20); display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-24); row-gap: var(--s-6); font-size: var(--fs-14); line-height: 1.4; color: #cfcfcf; }
.lines li { position: relative; display: flex; gap: var(--s-8); min-height: 20px; }
.lines li > * { will-change: opacity; }
.lines li::before { content: ''; position: absolute; left: 40px; right: 24%; top: 7px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); opacity: var(--ph, 1); }
.lines .t { flex: none; width: 32px; font-family: var(--font-mono); font-size: var(--fs-12); color: var(--c-text-2); padding-top: 1px; }

/* ================= 2 · plan ================= */
.plan { --len: 340; }
.plan-in { height: 100%; padding: 96px var(--pad-x) var(--s-48); display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: var(--s-80); align-items: center; }
.plan .side { position: relative; padding-top: 236px; }
.plan .side .anchor { left: 0; top: 0; width: 212px; height: 212px; }
.plan .side h2 { font-size: var(--fs-44); }
.plan .side .intro { font-size: var(--fs-17); }
.script { font-family: var(--font-serif); font-variation-settings: var(--display-axes); font-weight: 600; font-size: 30px; line-height: 1.72; letter-spacing: -0.01em; color: #6e6e6e; text-wrap: pretty; }
/* round 6: the words light up and their underline appears with a fade, never a snap */
.script .w { transition: color .3s linear, text-decoration-color .3s linear; }
.script .w.hit { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.script .w.lit { color: #f2f2f2; }
.script .w.hit.lit { text-decoration-color: var(--c-brand-text); }
.script .ln { display: inline-block; width: 34px; font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--c-text-2); vertical-align: 5px; }
.script .mv { position: relative; display: inline-flex; align-items: center; height: 28px; margin: 0 2px; padding: 0 var(--s-12); border-radius: var(--r-pill); outline: 1px dashed rgba(143,168,255,0.28); outline-offset: -1px; color: var(--c-petr-text); font-family: var(--font-ui); font-size: var(--fs-14); font-weight: 600; letter-spacing: 0; line-height: 1; vertical-align: 4px; white-space: nowrap; }
.script .mv i { position: absolute; inset: 0; border-radius: inherit; background: #2b3352; opacity: 0; transform: scale(0.6); transition: opacity .3s var(--ease-calm), transform .45s cubic-bezier(.34,1.56,.64,1); }
.script .mv b { position: relative; font-weight: 600; opacity: 0; transition: opacity .3s var(--ease-calm); }
.script .mv.on i, .script .mv.on b { opacity: 1; transform: none; }
.legend { margin-top: var(--s-32); display: flex; flex-wrap: wrap; gap: var(--s-8); will-change: transform, opacity; }
.legend span { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-12); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--c-line-strong); font-size: var(--fs-14); color: var(--c-text-2); }

/* ================= 3 · build ================= */
.build { --len: 380; }
.build-in { height: 100%; padding: 104px var(--pad-x) var(--s-48); display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: var(--s-80); align-items: center; }
.preview { align-self: center; }
.stage-head { display: inline-flex; align-items: center; gap: var(--s-8); height: 32px; padding: 0 var(--s-12); border-radius: var(--r-pill); background: var(--c-bg); box-shadow: var(--shadow-panel); font-size: var(--fs-13); color: var(--c-text-2); }
.stage-head b { color: var(--c-text); font-weight: 600; }
.preview .short { margin-top: var(--s-16); width: 340px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 30px 80px rgba(0,0,0,0.55); }
.build .col { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.build .col h2 { font-size: var(--fs-44); }
.build .callout { display: none; }
.build .col .intro { max-width: 640px; font-size: var(--fs-17); }
.ride { position: relative; flex: none; height: 184px; }
.ride .anchor { left: 0; bottom: 4px; width: 128px; height: 128px; transform: translateX(calc(var(--ph, 0px) - 50%)); }
/* the timeline (the app's dock): ruler, moves, scenes, captions, voice; ahead of the playhead it's still empty */
.tl { border-radius: var(--r-sheet); background: var(--c-bg); box-shadow: var(--shadow-panel); padding: var(--s-12) var(--s-16) var(--s-16); user-select: none; }
.tl-head { display: flex; align-items: center; gap: var(--s-12); height: 32px; font-size: var(--fs-13); color: var(--c-text-2); }
.tl-head .tc { margin-left: auto; font-size: var(--fs-14); color: var(--c-text); }
.tl-head .tc i { font-style: normal; color: var(--c-text-2); }
.tl-st { display: inline-flex; align-items: center; gap: var(--s-8); }
.tl-st b { color: var(--c-text); font-weight: 600; }
.dotw { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9a6ff, #2f5bff); box-shadow: 0 0 8px rgba(143,168,255,0.8); }
.tl-grid { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--s-8); row-gap: var(--s-6); margin-top: var(--s-12); }
.tl-ico { display: grid; place-items: center; color: #8a8a8a; }
.tl-ico svg { width: 14px; height: 14px; }
.lane { position: relative; height: 22px; }
.lane.ruler { height: 18px; border-bottom: 1px solid var(--rule); }
.lane.ruler span { position: absolute; z-index: 2; bottom: 3px; padding: 0 2px; background: var(--c-bg); font-family: var(--font-mono); font-size: 11px; color: var(--c-text-2); transform: translateX(-50%); }
.lane.ruler span:first-child { transform: none; }
.lane.ruler i { position: absolute; bottom: 0; width: 1px; height: 4px; background: #3a3a3a; }
.lane.ruler i.big { height: 8px; background: #555; }
.lane.plan .dm { position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); border-radius: 2px; background: #3b4466; transition: background-color .3s linear, transform .3s var(--ease-calm); }
.lane.plan .dm.done { background: var(--c-brand-text); }
.lane.plan .dm.on { background: #fff; transform: rotate(45deg) scale(1.35); box-shadow: 0 0 12px rgba(143,168,255,0.8); }
.lane.scenes { height: 56px; }
.lane .scn { position: absolute; top: 0; bottom: 0; border-radius: 8px; overflow: hidden; display: flex; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); background: #1a1a1a; }
.lane .scn .fill { position: absolute; inset: 0; display: flex; transform-origin: 0 50%; }
.lane .scn.studio .fill { background: var(--c-scene-studio); }
.lane .scn.xray .fill { background: var(--c-scene-xray); }
.lane .scn img { height: 100%; width: auto; flex: none; opacity: 0.92; }
.lane .scn .lbl { position: absolute; left: 4px; top: 4px; z-index: 1; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 20px; padding: 0 5px; border-radius: 5px; background: rgba(0,0,0,0.8); font-size: 12px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; }
.lane.caps { height: 8px; }
.lane.caps b { position: absolute; top: 0; height: 8px; border-radius: 3px; background: rgba(107,140,255,0.16); transition: background-color .2s linear; }
.lane.caps b.done { background: rgba(107,140,255,0.4); }
.lane.caps b.on { background: var(--c-brand-text); }
.lane.voice { height: 26px; }
.lane.voice svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lane.voice rect { fill: #3a4260; }
.lane.voice .done rect, .lane.voice rect.done { fill: var(--c-voice-wave); }
.lane.voice .vdone { position: absolute; inset: 0; transform-origin: 0 50%; overflow: hidden; }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; pointer-events: none; will-change: transform; box-shadow: 0 0 8px rgba(255,255,255,0.4); }
.playhead::before { content: ''; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 3px; background: #fff; }
.callout { position: absolute; bottom: calc(100% + 8px); left: 0; white-space: nowrap; display: flex; align-items: center; gap: var(--s-8); height: 30px; padding: 0 var(--s-12); border-radius: var(--r-pill); background: #2a2f45; box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(143,168,255,0.35); font-size: var(--fs-13); color: var(--c-text-2); pointer-events: none; will-change: transform; transition: opacity .25s linear; }
.callout q { color: #fff; font-weight: 600; quotes: '\201C' '\201D'; }
.callout em { font-style: normal; color: var(--c-petr-text); font-weight: 600; }
.callout.off { opacity: 0; }

/* ================= 4 · check ================= */
.check { --len: 290; }
.check-in { position: relative; z-index: 2; padding: 104px var(--pad-x) 0; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-64); }
.check .head { max-width: 660px; }
.check h2 { font-size: var(--fs-44); }
.report { width: 400px; flex: none; padding: var(--s-20) var(--s-24); border-radius: var(--r-sheet); background: var(--c-bg); box-shadow: var(--shadow-panel); will-change: transform, opacity; }
.report .top { display: flex; align-items: center; gap: var(--s-12); font-size: var(--fs-15); }
.report .top .mono { margin-left: auto; font-size: var(--fs-13); color: var(--c-text-2); }
.report .ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(95,224,168,0.16); color: var(--c-pass); }
.report .ok svg { width: 14px; height: 14px; }
.report ul { margin-top: var(--s-12); display: flex; flex-direction: column; gap: var(--s-6); font-size: var(--fs-14); color: #cfcfcf; }
.report li { padding-left: var(--s-20); position: relative; }
.report li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-pass); }
.band { position: absolute; left: 0; right: 0; top: 300px; bottom: 0; }
.band .anchor { left: 50%; top: 0; width: 150px; height: 150px; margin-left: -75px; }
.band .beam { position: absolute; left: 50%; top: 120px; width: 300px; height: 360px; margin-left: -150px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(201, 166, 255, 0.26), rgba(143, 168, 255, 0.1) 55%, rgba(143, 168, 255, 0) 100%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); opacity: var(--beam, 1); }
.frames { position: absolute; left: 0; top: 230px; display: flex; gap: 14px; will-change: transform; }
.frames figure { position: relative; flex: none; width: 124px; height: 220px; margin: 0; border-radius: 10px; overflow: hidden; background: #1a1a1a; opacity: 0.32; transform: scale(var(--k, 1)); will-change: transform, opacity; transition: opacity .35s linear; box-shadow: var(--shadow-poster); }
.frames figure.lit { opacity: 1; box-shadow: 0 0 0 2px rgba(201, 166, 255, 0.85), 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(155, 123, 255, 0.35); z-index: 2; }
.frames figure img { width: 100%; height: 100%; object-fit: cover; }
.frames figure .tick { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-pass); color: #0e2a1e; display: grid; place-items: center; opacity: 0; transform: scale(0.4); transition: opacity .25s linear, transform .35s cubic-bezier(.34,1.56,.64,1); }
.frames figure .tick svg { width: 11px; height: 11px; }
.frames figure.seen { opacity: 1; }
.frames figure.seen .tick { opacity: 1; transform: none; }

/* ================= 5 · change ================= */
.change { --len: 360; }
.edge { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; border-radius: 0; will-change: opacity; }
.edge::before { content: ''; position: absolute; inset: 0; padding: 2px; background: var(--petr-gradient); -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 exclude, linear-gradient(#000 0 0); }
.edge::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(107,140,255,0.28), inset 0 0 40px rgba(201,166,255,0.18); }
.change-in { position: relative; height: 100%; padding: 96px var(--pad-x) var(--s-48); }
.change .a1 { left: 50%; top: 41%; width: 340px; height: 340px; transform: translate(-50%, -50%); }
.change .a2 { left: var(--pad-x); top: 50%; width: 216px; height: 216px; transform: translateY(-50%); }
.listen-top { position: absolute; left: 0; right: 0; top: 104px; display: flex; flex-direction: column; align-items: center; gap: var(--s-16); will-change: transform, opacity; }
.hold { display: flex; align-items: center; gap: var(--s-12); font-size: var(--fs-15); color: var(--c-text-2); }
.lis { display: inline-flex; align-items: center; gap: var(--s-8); height: 32px; padding: 0 var(--s-12); border-radius: var(--r-pill); background: var(--c-talk-on); box-shadow: inset 0 0 0 1px rgba(143,168,255,0.45); color: var(--c-petr-text); font-weight: 600; font-size: var(--fs-14); }
.bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 50%; animation: eq 0.9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -0.3s; } .bars i:nth-child(3) { animation-delay: -0.6s; } .bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.said { position: absolute; left: 0; right: 0; top: calc(41% + 200px); width: min(980px, calc(100vw - 80px)); margin: 0 auto; text-align: center; font-size: 44px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: #fff; text-wrap: balance; will-change: transform, opacity; }
.said .wd { opacity: 0.18; transition: opacity .12s linear; }
.ex { position: absolute; inset: 96px var(--pad-x) var(--s-48) calc(var(--pad-x) + 216px + var(--s-64)); display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: var(--s-64); align-items: center; }
.ex .ex-col > * { will-change: transform, opacity; }
.ex h2 { font-size: var(--fs-44); max-width: 560px; }
.ex .intro { max-width: 540px; font-size: var(--fs-17); }
.thread { margin-top: var(--s-32); display: flex; flex-direction: column; gap: var(--s-24); }
.thread .you { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-6); max-width: 440px; }
.bubble { padding: var(--s-12) var(--s-16); border-radius: var(--r-card) var(--r-card) var(--s-4) var(--r-card); background: var(--c-control); font-size: var(--fs-16); line-height: 1.45; color: var(--c-text); }
.thread .meta { font-size: var(--fs-13); color: var(--c-text-2); }
.petr-msg { max-width: 500px; }
.petr-msg p { margin-top: var(--s-6); font-size: var(--fs-18); line-height: 1.45; color: var(--c-petr-text); }
.petr-msg .ver { margin-top: var(--s-12); display: inline-flex; align-items: center; gap: var(--s-8); height: 28px; padding: 0 var(--s-12); border-radius: var(--r-pill); background: var(--c-bg); box-shadow: var(--shadow-panel); font-size: var(--fs-13); color: var(--c-text-2); }
.petr-msg .ver b { color: var(--c-brand-text); }
.compose { margin-top: var(--s-32); max-width: 500px; padding: var(--s-12) var(--s-12) var(--s-12) var(--s-16); border-radius: var(--r-card); background: var(--c-bg); box-shadow: var(--shadow-panel); transition: box-shadow var(--t-calm) var(--ease-calm); }
.compose.on { box-shadow: inset 0 0 0 1.5px var(--c-brand-text), 0 0 32px rgba(107,140,255,0.25); }
.field { min-height: 24px; font-size: var(--fs-16); color: var(--c-text); }
.field .ph { color: var(--c-text-2); }
.compose .row { margin-top: var(--s-8); display: flex; align-items: center; gap: var(--s-12); }
.hint { font-size: var(--fs-13); color: var(--c-text-2); }
.tbtn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 136px; gap: var(--s-8); height: 40px; padding: 0 var(--s-16); border: 0; border-radius: var(--r-pill); background: var(--c-control); color: var(--c-text); font-size: var(--fs-15); font-weight: 600; touch-action: none; user-select: none; -webkit-user-select: none; transition: background-color var(--t-fast) linear; }
.tbtn:hover { background: var(--c-control-hover); }
.tbtn.on, .tbtn:active { background: var(--c-talk-on); color: var(--c-petr-text); box-shadow: inset 0 0 0 1px rgba(143,168,255,0.45); }
.tbtn .mic { width: 15px; height: 15px; }
.v2 { margin: 0; will-change: transform, opacity; }
.v2 .short { width: 260px; }
.v2 .tag.v { position: absolute; left: var(--s-12); top: var(--s-12); z-index: 2; display: inline-flex; align-items: center; gap: var(--s-6); height: 26px; padding: 0 var(--s-8); border-radius: var(--r-pill); background: rgba(14,14,15,0.82); font-size: var(--fs-12); color: #fff; }
.v2 .tag.v b { color: var(--c-brand-text); }
.v2 figcaption { margin-top: var(--s-12); font-size: var(--fs-13); color: var(--c-text-2); }

/* ================= 6 · films ================= */
.films { --len: 220; }
.films-in { height: 100%; padding: 96px var(--pad-x) var(--s-48); display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: var(--s-64); align-items: center; }
.films .side { position: relative; padding-top: 192px; }
.films .side .anchor { left: 0; top: 0; width: 168px; height: 168px; }
.films .side h2 { font-size: var(--fs-44); }
.films .side .intro { font-size: var(--fs-17); }
.styles { margin-top: var(--s-32); display: grid; gap: var(--s-8); }
.styles li { display: flex; align-items: center; gap: var(--s-12); height: 32px; font-size: var(--fs-15); font-weight: 600; }
.styles .chip, .chip { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s-8); border-radius: var(--r-pill); background: var(--c-control); font-size: var(--fs-12); font-weight: 600; color: #c4c4c4; white-space: nowrap; }
.styles .chip { margin-left: auto; }
.chip.ready { background: rgba(95,224,168,0.14); color: var(--c-pass); }
.chip.brand { background: var(--c-brand-soft); color: var(--c-brand-text); }
.sw { width: 14px; height: 24px; border-radius: 4px; flex: none; box-shadow: var(--shadow-poster); }
.s3d { background: linear-gradient(160deg, #f1c84a, #d77b55 55%, #7a2f3a); }
.satlas { background: var(--c-swatch-atlas); }
.shaze { background: var(--c-swatch-haze); }
.scount { background: linear-gradient(160deg, #f3d9a8, #a8713d); }
.films .row { display: flex; align-items: center; justify-content: center; gap: var(--s-40); }
.films .player.lead { --pw: 316px; }
.films .player.sm { --pw: 248px; }
.films .player { will-change: transform, opacity; }

/* ================= 7 · the app ================= */
.app { --len: 420; }
.app-head { position: absolute; left: 0; right: 0; top: 88px; z-index: 2; text-align: center; will-change: transform, opacity; }
.app-head .mark { justify-content: center; }
.app-head h2 { margin-top: var(--s-12); font-size: var(--fs-44); position: relative; height: 1.1em; }
.app-head h2 span { position: absolute; left: 0; right: 0; transition: opacity .45s var(--ease-calm), transform .45s var(--ease-calm); }
.app-head h2 [data-apph="2"] { opacity: 0; transform: translateY(12px); }
.app[data-phase="editor"] .app-head h2 [data-apph="1"] { opacity: 0; transform: translateY(-12px); }
.app[data-phase="editor"] .app-head h2 [data-apph="2"] { opacity: 1; transform: none; }
.app-notes { display: none; }
.win-wrap { position: absolute; left: 50%; top: var(--win-top, 200px); width: 1200px; height: 750px; margin-left: -600px; transform-origin: 50% 0; transform: scale(var(--k, 0.9)); }
/* the window: native 1200 x 750 (the app's window), drawn at the page's scale; the corner is macOS 27's own, measured
   on Petr's real window (22 px, superellipse 1.5; plain 22 px round where corner-shape isn't supported) */
.win { position: absolute; inset: 0; border-radius: 22px; corner-shape: superellipse(1.5); overflow: hidden; background: #171717; box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 50px 140px rgba(0,0,0,0.7), 0 0 0 10px rgba(255,255,255,0.02); transform-origin: 632px 165px; will-change: transform, opacity; font-size: 12px; color: var(--c-text); }
.win svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.win .kbd { height: 16px; padding: 0 4px; font-size: 9.5px; border-radius: 4px; }
.win-bar { position: absolute; left: 0; right: 0; top: 0; height: 44px; z-index: 5; display: flex; align-items: center; }
.lights { position: absolute; left: 16px; top: 15px; display: flex; gap: 9px; }
.lights i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.win-bar .logo { position: absolute; left: 90px; top: 13px; height: 17px; width: auto; }
.crumb { position: absolute; left: 164px; top: 14px; font-size: 12.5px; color: var(--c-text-2); opacity: 0; transition: opacity .4s linear; }
.app[data-phase="editor"] .crumb { opacity: 1; }
.claude { position: absolute; right: 12px; top: 7px; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); background: rgba(21,21,21,0.6); font-size: 11.5px; color: #d8d8d8; }
.claude > i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-clay); }
.claude .sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); }
.claude .uc { display: inline-flex; align-items: center; gap: 6px; }
.claude .uc b { font-weight: 600; }
.mbar { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.18); overflow: hidden; }
.mbar i { display: block; height: 100%; background: #fff; }
.rail { position: absolute; left: 0; top: 44px; bottom: 0; width: 64px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 0; }
.rail span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #9a9a9a; transition: background-color .4s linear, color .4s linear; }
.rail span svg { width: 16px; height: 16px; }
.rail span.on { background: rgba(255,255,255,0.08); color: #fff; }
/* Home */
.home { position: absolute; inset: 0; will-change: opacity, transform; }
.hwall { position: absolute; inset: 0; overflow: hidden; }
.hwall .plane { position: absolute; left: 50%; top: 50%; width: 1700px; height: 1300px; margin: -650px 0 0 -850px; transform: perspective(2400px) rotateX(10deg) rotateY(-14deg) rotateZ(-12deg) scale(1.02); }
.hwall .wcol { width: 132px; gap: 12px; --tile-gap: 12px; }
.hwall .tile { width: 132px; height: 235px; border-radius: 8px; opacity: 0.34; }
.hscrim { position: absolute; inset: 0; background: radial-gradient(42% 46% at 52% 34%, rgba(23,23,23,0.72), rgba(23,23,23,0.3) 70%, rgba(23,23,23,0.15)), linear-gradient(0deg, #171717 0%, rgba(23,23,23,0.94) 24%, rgba(23,23,23,0) 46%); }
.hstage { position: absolute; left: 64px; right: 0; top: 44px; height: 420px; display: flex; flex-direction: column; align-items: center; }
.hstage .anchor { left: calc(50% - 45px); top: 76px; width: 90px; height: 90px; }
.greet { margin-top: 210px; font-size: 36px; line-height: 1.1; }
.hline { position: relative; margin-top: 8px; width: 380px; height: 46px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--c-petr-text); }
.hline span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease-calm), transform .45s var(--ease-calm); }
.hline span.on { opacity: 1; transform: none; }
.hline b { color: #fff; font-weight: 600; }
.cap { margin-top: 30px; display: flex; align-items: center; gap: 10px; width: 566px; height: 52px; padding: 0 9px 0 10px; border-radius: 999px; background: rgba(31,31,31,0.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 0 18px 50px rgba(0,0,0,0.35); transition: box-shadow .45s var(--ease-calm); }
.cap.hl, .hfoot.hl { box-shadow: inset 0 0 0 1.5px var(--c-brand-text), 0 0 36px rgba(107,140,255,0.35); }
.cap .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.07); color: #d8d8d8; }
.cap .ico svg { width: 15px; height: 15px; }
.cap .ct { display: flex; flex-direction: column; gap: 1px; margin-right: auto; }
.cap .ct b { font-size: 13px; font-weight: 600; }
.cap .ct span { font-size: 10.5px; color: #a8a8a8; }
.cap .tell, .cap .new { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.cap .tell { background: rgba(255,255,255,0.07); }
.cap .tell svg, .cap .new svg { width: 13px; height: 13px; }
.cap .new { background: var(--c-look); color: var(--c-look-ink); }
.cap .new .kbd { background: var(--c-look-kbd); color: var(--c-look-ink); }
.shelf { position: absolute; left: 86px; right: 34px; top: 520px; }
.sh-head { display: flex; justify-content: space-between; font-size: 11.5px; color: #cfcfcf; }
.sh-row { margin-top: 10px; display: flex; gap: 40px; }
.item { display: flex; gap: 12px; width: 300px; }
.item .poster { width: 72px; height: 128px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-poster); }
.item .poster img { width: 100%; height: 100%; object-fit: cover; }
.item.on .poster { box-shadow: 0 0 0 2px #fff; }
.item .it { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.item .it b { font-size: 11.5px; font-weight: 600; line-height: 1.35; }
.item .st, .item .mt { font-size: 10.5px; color: #b0b0b0; display: flex; align-items: center; gap: 5px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot.look { background: var(--c-look); } .dot.pass { background: var(--c-pass); } .dot.clay { background: var(--c-clay); }
.hfoot { position: absolute; left: 76px; right: 12px; bottom: 10px; height: 34px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: #b0b0b0; transition: box-shadow .45s var(--ease-calm); }
.hfoot .w { color: #e0e0e0; }
.hfoot .meter { width: 80px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); overflow: hidden; }
.hfoot .meter i { display: block; width: 47%; height: 100%; background: var(--c-clay-light); }
.hfoot .grow { flex: 1; }
.hs { display: inline-flex; align-items: center; gap: 5px; color: #e0e0e0; }
.hs .sw { width: 9px; height: 15px; border-radius: 3px; }
.hs.off { color: #8a8a8a; }
.hs .soon { margin-left: 2px; height: 16px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,0.07); font-size: 9.5px; display: inline-flex; align-items: center; }
/* the editor */
.editor { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 30%, rgba(122,58,70,0.3), rgba(23,23,23,0) 70%), #171717; }
.editor > * { will-change: transform, opacity; }
.e-left { position: absolute; left: 76px; top: 52px; width: 248px; padding: 16px; border-radius: 14px; background: #1f1f1f; box-shadow: var(--shadow-panel); }
.e-kind { font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; color: #a8a8a8; }
.e-title { margin-top: 6px; font-size: 19px; line-height: 1.15; }
.e-state { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.e-state span { margin-left: auto; color: #a8a8a8; }
.e-steps { margin-top: 8px; display: flex; gap: 3px; }
.e-steps i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.14); }
.e-steps i.d { background: #e6e6e6; } .e-steps i.c { background: linear-gradient(90deg, #2f5bff, #9b7bff); }
.e-step { margin-top: 8px; display: flex; font-size: 10.5px; color: #cfcfcf; } .e-step span { margin-left: auto; color: #a8a8a8; } .e-step b { font-weight: 500; }
.e-export { margin-top: 14px; height: 34px; border-radius: 999px; background: var(--c-look); color: var(--c-look-ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 650; }
.e-export .kbd { background: var(--c-look-kbd); color: var(--c-look-ink); }
.e-ver { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: #262626; font-size: 11px; }
.e-ver img { width: 18px; height: 32px; border-radius: 3px; object-fit: cover; }
.e-ver > span { display: flex; flex-direction: column; } .e-ver b { font-weight: 600; } .e-ver span span { color: #a8a8a8; font-size: 10px; }
.e-mid { position: absolute; left: 344px; width: 500px; top: 52px; display: flex; flex-direction: column; align-items: center; }
.e-head { display: inline-flex; gap: 8px; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #1f1f1f; box-shadow: var(--shadow-panel); font-size: 11px; color: #a8a8a8; }
.e-head b { color: #fff; } .e-head .mono { font-size: 10px; }
.e-video { position: relative; margin-top: 8px; width: 249px; height: 443px; border-radius: 14px; overflow: hidden; background: #0d0d0e; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.e-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.e-trans { margin-top: 8px; display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 12px; border-radius: 999px; background: #1f1f1f; box-shadow: var(--shadow-panel); font-size: 11px; color: #d0d0d0; }
.e-trans svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.e-trans .play { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; }
.e-trans .x { color: #a8a8a8; }
.e-petr { position: absolute; right: 12px; top: 52px; width: 300px; height: 520px; border-radius: 14px; background: #1c1c1c; box-shadow: var(--shadow-panel); }
.ep-head { position: absolute; left: 16px; top: 14px; font-size: 13px; }
.e-petr .anchor { left: 50%; top: 92px; width: 112px; height: 112px; margin-left: -56px; }
.ep-msgs { position: absolute; left: 16px; right: 16px; top: 250px; }
.ep-meta { font-size: 10.5px; color: #a8a8a8; } .ep-meta b { color: var(--c-brand-text); font-weight: 600; }
.ep-text { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: #e8e8e8; }
.ep-show { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(217,119,87,0.14); color: var(--c-clay-light); font-size: 11px; }
.ep-show i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-clay); }
.ep-compose { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px; border-radius: 12px; background: #242424; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 6px; }
.ep-about { align-self: flex-start; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 10px; color: #a8a8a8; display: inline-flex; align-items: center; gap: 4px; } .ep-about b { color: #fff; font-weight: 600; }
.ep-ph { font-size: 12px; color: #8a8a8a; }
.ep-row { display: flex; align-items: center; } .ep-hint { font-size: 10px; color: #8a8a8a; }
.ep-talk { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,0.07); font-size: 11px; font-weight: 600; } .ep-talk svg { width: 12px; height: 12px; }
.e-tl { position: absolute; left: 76px; right: 12px; bottom: 10px; height: 150px; padding: 6px 12px 10px; border-radius: 14px; }
.e-tl .tl-head { height: 26px; font-size: 11px; }
.e-tl .tl-head .tc { margin-left: 0; font-size: 12px; }
.e-tl .tl-tools { margin-left: auto; display: flex; gap: 14px; color: #a8a8a8; }
.e-tl .tl-grid { margin-top: 4px; row-gap: 4px; grid-template-columns: 18px minmax(0, 1fr); }
.e-tl .lane.ruler { height: 14px; } .e-tl .lane.ruler span { font-size: 9px; bottom: 3px; }
.e-tl .lane.plan { height: 14px; } .e-tl .lane.plan .dm { top: 3px; width: 8px; height: 8px; margin-left: -4px; }
.e-tl .lane.scenes { height: 40px; } .e-tl .lane .scn .lbl { height: 16px; font-size: 10px; top: 3px; left: 3px; }
.e-tl .lane.caps { height: 6px; } .e-tl .lane.caps b { height: 6px; }
.e-tl .lane.voice { height: 18px; }
.e-tl .tl-ico svg { width: 11px; height: 11px; }
.e-tl .callout { display: none; }


/* ================= 8 · price ================= */
.sec { position: relative; padding: 0 var(--pad-x); }
.pricing { padding-top: var(--s-160); padding-bottom: var(--s-128); display: flex; flex-direction: column; align-items: center; }
.price-head { position: relative; padding-top: 196px; text-align: center; max-width: 760px; }
.price-head .anchor { left: 50%; top: 0; width: 164px; height: 164px; margin-left: -82px; }
.price-head .mark { justify-content: center; }
.price-head .intro { margin-top: var(--s-16); }
.ptable { margin-top: var(--s-48); width: 100%; max-width: 880px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-sheet); background: var(--c-bg); box-shadow: var(--shadow-panel); overflow: hidden; }
.pcol { padding: var(--s-32); display: flex; flex-direction: column; transition: background-color var(--t-calm) linear; }
.pcol + .pcol { border-left: 1px solid var(--c-line); }
.pcol.main { background: linear-gradient(180deg, rgba(47,91,255,0.1), rgba(47,91,255,0) 60%); }
.pcol .name { display: flex; align-items: center; justify-content: space-between; height: 24px; font-size: var(--fs-18); font-weight: 650; }
.pcol .pr { margin-top: var(--s-20); display: flex; align-items: baseline; gap: var(--s-8); }
.pcol .pr b { font-family: var(--font-serif); font-weight: 800; font-variation-settings: var(--display-axes); font-size: var(--fs-72); line-height: 1; letter-spacing: -0.02em; }
.pcol .pr span { font-size: var(--fs-16); color: var(--c-text-2); }
.pcol .for { margin-top: var(--s-12); font-size: var(--fs-15); color: var(--c-text-2); }
.pcol dl { margin: var(--s-24) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; font-size: var(--fs-15); }
.pcol dt, .pcol dd { margin: 0; padding: var(--s-12) 0; border-top: 1px solid var(--c-line); }
.pcol dt { color: var(--c-text-2); }
.pcol dd { font-weight: 600; text-align: right; }
.pcol .btn { margin-top: var(--s-24); }
.pfoot { margin-top: var(--s-20); width: 100%; max-width: 880px; display: flex; align-items: center; justify-content: center; gap: var(--s-24); flex-wrap: wrap; }
.needs { display: inline-flex; align-items: center; gap: var(--s-8); height: 36px; padding: 0 var(--s-16); border-radius: var(--r-pill); background: var(--c-clay-soft); color: var(--c-clay-light); font-size: var(--fs-14); }
.needs i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-clay); }

/* ================= 9 · good to know ================= */
.qa-in { max-width: calc(760px + 2 * var(--pad-page)); margin: 0 auto; padding: var(--s-128) var(--pad-page) var(--s-160); }
.head-c { position: relative; text-align: center; padding-top: 164px; margin-bottom: var(--s-48); }
.head-c .anchor { left: 50%; top: 0; width: 132px; height: 132px; margin-left: -66px; }
.head-c .mark { justify-content: center; }
.head-c .intro { margin-top: var(--s-16); }
.chat { display: flex; flex-direction: column; gap: var(--s-12); }
.q summary { list-style: none; display: flex; justify-content: flex-end; cursor: pointer; }
.q summary::-webkit-details-marker { display: none; }
.qb { display: inline-flex; align-items: center; gap: var(--s-12); min-height: 48px; padding: var(--s-12) var(--s-12) var(--s-12) var(--s-20); border-radius: 22px 22px 6px 22px; background: rgba(44, 44, 44, 0.96); font-size: var(--fs-17); font-weight: 500; color: var(--c-text); transition: background-color var(--t-fast) linear; }
.qb::after { content: ''; width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23f2f2f2' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat; transition: transform var(--t-calm) var(--ease-calm); }
.q summary:hover .qb { background: var(--c-control-hover); }
.q summary:active .qb { background: var(--c-control-press); }
.q[open] .qb { background: var(--c-talk-on); }
.q[open] .qb::after { transform: rotate(45deg); }
.q .a { position: relative; margin: var(--s-12) 0; max-width: 560px; }
.a-orb { position: absolute; left: -96px; top: 0; width: 64px; height: 64px; pointer-events: none; }
.a-say { padding: var(--s-16) var(--s-20); border-radius: 22px 22px 22px 6px; background: rgba(31, 31, 31, 0.96); box-shadow: var(--shadow-panel); transition: opacity 0.4s var(--ease-calm), transform 0.4s var(--ease-calm); }
.a-say .who { font-size: var(--fs-14); }
.a-say p:not(.who) { margin-top: var(--s-6); font-size: var(--fs-17); line-height: 1.55; color: var(--c-petr-text); }
/* he thinks first: three dots in his bubble, then the answer */
.a-think { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: var(--s-6); height: 48px; padding: 0 var(--s-20); border-radius: 22px 22px 22px 6px; background: rgba(31, 31, 31, 0.96); box-shadow: var(--shadow-panel); opacity: 0; transition: opacity 0.25s linear; }
.a-think span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand-text); animation: think 1s ease-in-out infinite; }
.a-think span:nth-child(2) { animation-delay: 0.15s; } .a-think span:nth-child(3) { animation-delay: 0.3s; }
@keyframes think { 0%, 100% { transform: translateY(0); opacity: 0.45; } 50% { transform: translateY(-4px); opacity: 1; } }
.q.thinking .a-think { opacity: 1; }
.q.thinking .a-say { opacity: 0; transform: translateY(8px); }
.q[open]:not(.thinking) .a-say { animation: answer 0.65s cubic-bezier(0.3, 0.6, 0.3, 1); }
@keyframes answer { from { opacity: 0; transform: translateY(8px); } }

/* ================= 10 · end ================= */
.end { --len: 170; }
/* the end (round 3's): the Tour's light over Petr's glossy liquid, moments from your shorts rising through it */
.end .liquid { background: radial-gradient(60% 60% at 50% 45%, rgba(40, 36, 92, 0.55) 0%, rgba(21, 21, 21, 0) 75%); }
.end-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad-page); }
.end-in .anchor { position: relative; width: 240px; height: 240px; margin-bottom: var(--s-32); }
.end-in h2 { font-size: var(--fs-88); line-height: 1; }
.end-in .intro { margin-top: var(--s-16); font-size: var(--fs-20); }
.end-in .btn { margin-top: var(--s-40); }
.end-in .fine { margin-top: var(--s-12); color: #cfcfd8; } /* round 6: lighter, over the brighter liquid at the foot */
.end-in .fine .link { color: #c3cdff; }
.end-in > * { will-change: transform, opacity; }
.end .liquid::after { content: ''; position: absolute; inset: 0; background: radial-gradient(46% 30% at 50% 66%, rgba(20,20,23,0.84), rgba(20,20,23,0)); }
.moments { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.moments img { position: absolute; left: 0; top: 0; width: 84px; height: 150px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 20px 50px rgba(0,0,0,0.5); opacity: 0; will-change: transform, opacity; }

/* ---- the phone's bottom bar */
.bar { display: none; }

/* ---- screenshots (?shot): no transitions */
html[data-shot] .nav { position: fixed; }

/* =============================== phones =============================== */
@media (max-width: 900px) {
  :root { --orb-box: 220px; --tile-w: 112px; --tile-h: 199px; --tile-gap: 10px; }
  .nav-in { height: 56px; }
  .navlink, .nav .btn { display: none; }
  h2.serif { font-size: 34px; }
  .intro { font-size: var(--fs-16); }
  .mark + h2 { margin-top: var(--s-12); }
  h2 + .intro { margin-top: var(--s-12); }
  .speech p { font-size: var(--fs-17); }
  .hud { left: calc(var(--pad-page) + 67px + var(--s-16)); top: 10px; height: 36px; padding: 0 var(--s-12); gap: var(--s-12); }
  .hud-t { min-width: 0; font-size: var(--fs-13); }
  .hud-bars a { width: 22px; padding: 8px 0; }
  .hud-bars a span { display: none; }

  .ask { display: none; }
  /* his light stays behind the words: a little shade where the small print sits */
  .hello .liquid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,21,21,0.72) 0%, rgba(21,21,21,0.62) 52%, rgba(21,21,21,0) 74%); }
  /* hello */
  .hello { --len: 120; }
  .hello-in { display: block; padding: 72px var(--pad-page) 0; }
  .words { padding-top: 0; }
  .hi { height: 96px; gap: var(--s-16); }
  .hi .anchor { width: 96px; height: 96px; }
  .say-hi { font-size: var(--fs-16); padding: var(--s-8) var(--s-16) var(--s-12); }
  .hello h1 { margin-top: var(--s-16); font-size: 34px; }
  .hello .lede { margin-top: var(--s-12); font-size: var(--fs-16); }
  .hello .lede .long { display: none; }
  .start { display: none; }
  .act-phone { display: block; margin-top: var(--s-20); }
  .act-phone .btn { width: 100%; }
  .act-phone .fine { margin-top: var(--s-8); }
  .hero-player { --pw: 176px; position: absolute; right: var(--pad-page); top: auto; bottom: 20px; margin: 0; }
  .hero-player .ctrl { height: 40px; gap: var(--s-8); }
  .hero-player .ctrl .snd-l, .hero-player .ctrl .time { display: none; }
  .hero-player figcaption { display: none; }
  .cue { left: var(--pad-page); bottom: 28px; transform: none; max-width: 140px; height: auto; padding: var(--s-8) var(--s-12); white-space: normal; font-size: var(--fs-14); line-height: 1.35; border-radius: var(--r-card); flex-wrap: wrap; }

  /* talk */
  .talk { --len: 260; }
  .talk-in { display: block; padding: 112px var(--pad-page) var(--s-24); }
  .talk .side { position: absolute; left: 0; right: 0; top: 0; height: 0; }
  .talk .side .anchor { left: auto; right: 20px; top: 112px; width: 96px; height: 96px; transform: none; }
  .talk .speech { display: none; }
  .talk h2 { padding-right: 112px; }
  .talk .intro { display: none; }
  .vcard { margin-top: var(--s-20); padding: var(--s-16); }
  .vrow { font-size: var(--fs-13); }
  .vstat { flex-wrap: wrap; height: auto; gap: var(--s-8); }
  .vstat .vlen { margin-left: 0; }
  .lines { grid-template-columns: 1fr; font-size: var(--fs-13); }
  .lines li:nth-child(n + 7) { display: none; }

  /* plan */
  .plan { --len: 280; }
  .plan-in { display: block; padding: 112px var(--pad-page) var(--s-24); }
  .plan .side { padding-top: 0; padding-left: 112px; min-height: 96px; }
  .plan .side .anchor { width: 96px; height: 96px; }
  .plan .side h2 { font-size: 30px; }
  .plan .side .intro { display: none; }
  .plan .col { margin-top: var(--s-20); }
  .script { font-size: 19px; line-height: 1.7; color: #8c8c8c; }
  .script .ln { width: 24px; font-size: 11px; }
  .script .mv { height: 22px; font-size: 12px; padding: 0 var(--s-8); vertical-align: 2px; }
  .legend { margin-top: var(--s-16); gap: var(--s-6); }
  .legend span { height: 28px; font-size: var(--fs-13); }

  /* build */
  .build { --len: 300; }
  .build-in { display: flex; flex-direction: column; padding: 112px var(--pad-page) var(--s-24); }
  .preview { display: flex; gap: var(--s-16); align-items: flex-start; order: 2; margin-top: var(--s-16); }
  .preview .short { width: 132px; margin-top: 0; }
  .stage-head { order: 2; flex-direction: column; align-items: flex-start; height: auto; padding: var(--s-8) var(--s-12); border-radius: var(--r-lg); gap: 2px; }
  .build .col { display: contents; }
  .build .col .mark, .build .col h2 { order: 1; }
  .build .col h2 { font-size: 30px; }
  .build .col .intro { display: none; }
  .ride { order: 3; flex: none; height: 104px; min-height: 0; }
  .ride .anchor { width: 84px; height: 84px; bottom: -6px; }
  .tl { order: 4; padding: var(--s-8) var(--s-12) var(--s-12); }
  .tl-head { font-size: var(--fs-12); }
  .tl-head .tc { font-size: var(--fs-12); }
  .tl-head .tc i { display: none; }
  .tl-st { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lane.scenes { height: 44px; }
  .lane .scn .lbl { display: none; }
  .callout { display: none; }

  /* check */
  .check { --len: 230; }
  .check-in { display: block; position: static; padding: 112px var(--pad-page) 0; }
  .check .head { position: relative; z-index: 2; }
  .check h2 { font-size: 30px; }
  .check .intro { display: none; }
  .report { position: absolute; z-index: 3; left: var(--pad-page); right: var(--pad-page); bottom: 24px; width: auto; padding: var(--s-16); }
  .report ul { font-size: var(--fs-13); }
  .band { top: 230px; bottom: 0; }
  .band .anchor { width: 96px; height: 96px; margin-left: -48px; }
  .band .beam { top: 80px; width: 200px; height: 220px; margin-left: -100px; }
  .frames { top: 150px; gap: 10px; }
  .frames figure { width: 96px; height: 170px; border-radius: 8px; }
  .frames figure .tick { width: 16px; height: 16px; right: 5px; top: 5px; }

  /* change */
  .change { --len: 300; }
  .change-in { padding: 104px var(--pad-page) var(--s-24); }
  .change .a1 { top: 36%; width: 200px; height: 200px; }
  .change .a2 { left: var(--pad-page); top: 112px; width: 84px; height: 84px; transform: none; }
  .listen-top { top: 112px; }
  .listen-top .hold { font-size: var(--fs-13); }
  .said { top: calc(36% + 128px); font-size: 26px; width: calc(100vw - 40px); }
  .ex { inset: 112px var(--pad-page) var(--s-24); display: block; }
  .ex h2 { font-size: 28px; padding-left: 100px; min-height: 84px; }
  .ex .intro { display: none; }
  .thread { margin-top: var(--s-20); gap: var(--s-16); }
  .bubble { font-size: var(--fs-15); }
  .petr-msg p { font-size: var(--fs-16); }
  .compose { margin-top: var(--s-20); }
  .v2 { display: none; }

  /* films: not pinned on phones; a stack you swipe past */
  .films { height: auto; }
  .films .pin { position: relative; height: auto; overflow: visible; }
  .films-in { display: block; padding: 96px var(--pad-page) var(--s-64); }
  .films .side { padding-top: 0; padding-left: 112px; min-height: 96px; }
  .films .side .anchor { width: 96px; height: 96px; }
  .films .side h2 { font-size: 30px; }
  .films .side .intro { padding-left: 0; }
  .styles { margin-left: -112px; grid-template-columns: 1fr 1fr; column-gap: var(--s-16); }
  .styles li { font-size: var(--fs-14); }
  .films .row { margin-top: var(--s-32); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-32) var(--s-16); }
  .films .player.lead { --pw: auto; grid-column: 1 / -1; width: 78%; justify-self: center; order: -1; }
  .films .player.sm { --pw: auto; width: 100%; }
  .films .player.sm .ctrl .time { display: none; }
  .films .player.sm figcaption b { font-size: var(--fs-14); }

  /* the app: the window cropped to what matters, at a readable scale */
  .app { --len: 300; }
  .app-head { top: 64px; padding: 0 var(--pad-page); }
  .app-head h2 { font-size: 26px; height: 2.3em; }
  .win-wrap { left: 0; margin-left: 0; transform-origin: 0 0; }

  /* price */
  .pricing { padding-top: var(--s-96); padding-bottom: var(--s-96); }
  .price-head { padding-top: 132px; }
  .price-head .anchor { width: 112px; height: 112px; margin-left: -56px; }
  .ptable { grid-template-columns: 1fr; }
  .pcol { padding: var(--s-24); }
  .pcol + .pcol { border-left: 0; border-top: 1px solid var(--c-line); }
  .pcol .btn { width: 100%; }
  .pfoot { flex-direction: column; gap: var(--s-12); }

  /* questions */
  .qa-in { padding-top: var(--s-64); padding-bottom: var(--s-96); }
  .head-c { padding-top: 120px; }
  .head-c .anchor { width: 96px; height: 96px; margin-left: -48px; }
  .qb { font-size: var(--fs-16); }
  .a-orb { display: none; }
  .a-say p:not(.who) { font-size: var(--fs-16); }

  /* end */
  .end { --len: 130; }
  .end-in .anchor { width: 150px; height: 150px; margin-bottom: var(--s-24); }
  .end-in h2 { font-size: 48px; }
  .end-in .intro { font-size: var(--fs-17); }
  .end-in .btn { width: 100%; }
  .moments img { width: 64px; height: 114px; }
  .end .liquid::after { background: radial-gradient(110% 40% at 50% 66%, rgba(20,20,23,0.94), rgba(20,20,23,0)); }

  .bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; padding: var(--s-40) var(--pad-page) calc(var(--s-12) + env(safe-area-inset-bottom)); background: linear-gradient(rgba(21,21,21,0), rgba(21,21,21,0.86) 48%, rgba(21,21,21,0.96)); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s linear, transform .5s var(--ease-calm); }
  .bar .btn { width: 100%; }
  /* round 5: a taller fade, so text runs out before the button instead of under it; only the button takes taps */
  html[data-cta-away]:not([data-hud]):not([data-appwin]):not([data-inprice]) .bar { opacity: 1; transform: none; }
  html[data-cta-away]:not([data-hud]):not([data-appwin]):not([data-inprice]) .bar .btn { pointer-events: auto; }
}

/* =============================== Reduce motion: the same story, calm, nothing pinned =============================== */
html.calm .scene { height: auto; }
html.calm .pin { position: relative; height: auto; min-height: 100svh; overflow: visible; }
html.calm .wcol { animation: none; }
html.calm .petr-layer, html.calm .petr-light, html.calm .hud { display: none; }
html.calm .anchor { --orb: url(img/orb/orb-144-rest.png); }
html.calm .anchor::before { content: ''; position: absolute; inset: -50%; background: var(--orb) center / contain no-repeat; }
html.calm .talk .side .anchor, html.calm .change .a1 { --orb: url(img/orb/orb-144-listening.png); }
html.calm .plan .side .anchor, html.calm .build .anchor, html.calm .check .anchor { --orb: url(img/orb/orb-144-working.png); }
html.calm .change .a2, html.calm .e-petr .anchor { display: none; }
html.calm .listen-top, html.calm .said, html.calm .edge { display: none; }
html.calm .change-in { min-height: 0; }
html.calm .change .a1 { top: 50%; left: var(--pad-x); transform: translateY(-50%); width: 216px; height: 216px; }
html.calm .ex { position: relative; inset: auto; margin-left: calc(216px + var(--s-64)); min-height: 700px; }
html.calm .band { position: relative; top: auto; bottom: auto; height: 520px; overflow: hidden; }
html.calm .band .anchor { display: none; }
html.calm .frames figure { opacity: 1; }
html.calm .frames figure .tick { opacity: 1; transform: none; }
html.calm .app .pin { min-height: 1040px; }
html.calm .editor { display: none; }
html.calm .ride { min-height: 140px; }
html.calm .ride .anchor { display: none; }


/* =============================== round 4 =============================== */
.foot { position: relative; z-index: 2; background: var(--c-ground); }
/* Petr's liquid (round 3's), only behind Good to know and the end */
#liquid { position: fixed; left: 0; top: 0; width: 100%; height: 100lvh; z-index: 0; opacity: 0; pointer-events: none; will-change: opacity; }

/* the headline's second line: Petr's gradient, with a soft glow of his light round it */
.hello h1 .two { width: fit-content; padding-bottom: 0.06em; background: linear-gradient(100deg, #a8bbff 0%, #b49cff 48%, #d4b8ff 78%, #ffc2d6 100%); -webkit-background-clip: text; background-clip: text;
}

/* the opening: the app's title wall, filmed by one camera (Into the Wall's) */
.dive { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dive .cam { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; transform-style: preserve-3d; will-change: transform; }
.dive .plane { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.dc { position: absolute; top: 0; will-change: transform, opacity; }
.dt { position: absolute; left: 0; overflow: hidden; border-radius: 12px; background: #1c1c1c; box-shadow: var(--shadow-poster); opacity: 0.86; }
.dt img, .dt video, .dft img, .dft video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the Tour's light, washed over the wall: cobalt and violet pools, soft pink and peach (smooth, no grain) */
.dwash { position: absolute; left: 0; top: 0; pointer-events: none; will-change: opacity; background:
  radial-gradient(22% 26% at 54% 46%, rgba(47, 91, 255, 0.36), rgba(47, 91, 255, 0) 100%),
  radial-gradient(18% 22% at 62% 62%, rgba(155, 123, 255, 0.32), rgba(155, 123, 255, 0) 100%),
  radial-gradient(14% 16% at 46% 34%, rgba(201, 166, 255, 0.16), rgba(201, 166, 255, 0) 100%),
  radial-gradient(12% 14% at 58% 74%, rgba(255, 143, 177, 0.14), rgba(255, 143, 177, 0) 100%),
  radial-gradient(12% 14% at 66% 30%, rgba(234, 154, 120, 0.12), rgba(234, 154, 120, 0) 100%),
  linear-gradient(rgba(21, 21, 25, 0.34), rgba(21, 21, 25, 0.34)); }
.dft { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: var(--r-video); background: #0d0d0e; transform-origin: 50% 50%; will-change: transform, opacity; box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 40px 100px rgba(0,0,0,0.55); }
.dft .poster { z-index: 1; transition: opacity .3s linear; }
.dft.playing .poster { opacity: 0; }
.dfl { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 12px; background: #1c1c1c; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 50px rgba(0,0,0,0.5); will-change: transform, opacity; }
.dfl img { width: 100%; height: 100%; object-fit: cover; }
.dglow { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.dglow img { width: 100%; height: 100%; object-fit: cover; -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); }
.reticle { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; opacity: 0; will-change: transform, opacity; }
.reticle i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255,255,255,0.75); }
.reticle i:nth-child(1) { left: -12px; top: -12px; border-width: 1.5px 0 0 1.5px; }
.reticle i:nth-child(2) { right: -12px; top: -12px; border-width: 1.5px 1.5px 0 0; }
.reticle i:nth-child(3) { left: -12px; bottom: -12px; border-width: 0 0 1.5px 1.5px; }
.reticle i:nth-child(4) { right: -12px; bottom: -12px; border-width: 0 1.5px 1.5px 0; }
/* the words keep a dark ground over the wall (it goes with the wall) */
.dscrim { position: absolute; inset: 0; pointer-events: none; will-change: opacity; background:
  linear-gradient(90deg, rgba(21,21,21,0.94) 0%, rgba(21,21,21,0.84) 36%, rgba(21,21,21,0.2) 58%, rgba(21,21,21,0) 74%),
  linear-gradient(rgba(21,21,21,0.92), rgba(21,21,21,0.6) 72px, rgba(21,21,21,0) 220px),
  linear-gradient(0deg, rgba(21,21,21,0.8), rgba(21,21,21,0) 200px); }
/* while the tile is landing, the player's frame gathers round it (its own picture waits) */
.hero-player.dive-in .screen { background: transparent; box-shadow: none; }
.hero-player.dive-in .screen video, .hero-player.dive-in .made { opacity: 0; }
.hero-player .screen video { transition: opacity .2s linear; }

/* the Made by Petr card: who made it, from what */
.player .made { position: absolute; left: var(--s-12); top: var(--s-12); z-index: 2; display: flex; align-items: center; gap: var(--s-8); padding: var(--s-6) var(--s-12) var(--s-6) var(--s-8); border-radius: var(--r-card); background: rgba(14, 14, 15, 0.84); box-shadow: inset 0 0 0 1px rgba(143, 168, 255, 0.28), 0 8px 24px rgba(0, 0, 0, 0.35); transition: opacity .3s linear; }
.player .made .mo { width: 22px; height: 22px; flex: none; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0 9%, #c9a6ff 26%, #5b7bff 62%, #2f5bff 100%); box-shadow: 0 0 12px rgba(124, 139, 255, 0.7); }
.player .made .mt { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.player .made b { font-size: var(--fs-13); font-weight: 650; color: #fff; }
.player .made .mt span { font-size: var(--fs-12); color: var(--c-petr-text); }
/* a film at the side asks to be tapped */
.films .player.sm { cursor: pointer; }
.films .player.sm:hover .frame { box-shadow: 0 0 0 1px rgba(143,168,255,0.4), inset 0 1px 0 rgba(255,255,255,0.07), 0 40px 100px rgba(0,0,0,0.6); }

@media (max-width: 900px) {
  .dscrim { background: linear-gradient(rgba(21,21,21,0.95) 0%, rgba(21,21,21,0.88) 56%, rgba(21,21,21,0.3) 72%, rgba(21,21,21,0.1) 100%); }
  .player .made { left: var(--s-8); top: var(--s-8); padding: var(--s-4) var(--s-8) var(--s-4) var(--s-6); gap: var(--s-6); }
  .player .made .mo { width: 16px; height: 16px; }
  .player .made .mt span { display: none; }
}
html.calm .dive .reticle { display: none; }
html.calm .dive { opacity: 1; }
.films .player.sm .screen::after { content: 'Tap to play it here'; }


/* =============================== round 5 =============================== */
.hello .lede .short-l { display: none; }
/* round 7: Petr's cursor is its own module (cursor/cursor.css). While it's on (html.has-cursor), the film's own hover
   pill ("Tap for sound", "Tap to play it here") goes: the cursor's capsule says it. Touch has no custom cursor, so
   the pill stays there. */
html.has-cursor .player .screen::after { display: none; }

@media (max-width: 900px) {
  /* the phone's own hero: Petr and his line, the headline, the short big in the middle, the button at the bottom */
  .hello { --len: 300; }
  .hello-in { display: flex; flex-direction: column; align-items: stretch; height: 100%; padding: 68px var(--pad-page) 0; }
  .words { display: contents; }
  .hi { order: 1; height: 72px; gap: var(--s-12); }
  .hi .anchor { width: 72px; height: 72px; }
  .say-hi { font-size: var(--fs-16); padding: var(--s-8) var(--s-16) var(--s-12); }
  .hello h1 { order: 2; margin-top: var(--s-12); font-size: 34px; line-height: 1.04; }
  .hello .lede { order: 3; margin-top: var(--s-8); font-size: var(--fs-15); line-height: 1.45; color: #cfcfcf; }
  .hello .lede .short-l { display: inline; }
  .hero-player { --pw: 216px; order: 4; position: relative; right: auto; bottom: auto; align-self: center; margin: var(--s-16) 0 0; }
  .hero-player figcaption { display: none; }
  .hello .act-phone { order: 5; position: relative; z-index: 2; margin-top: auto; padding-bottom: var(--s-24); }
  .dscrim { background: linear-gradient(rgba(21,21,21,0.95) 0%, rgba(21,21,21,0.88) 36%, rgba(21,21,21,0.3) 48%, rgba(21,21,21,0.2) 70%, rgba(21,21,21,0.9) 84%, rgba(21,21,21,0.96) 100%) !important; }
  .hello .act-phone .fine { text-align: center; }
  /* the button and its small print sit on their own dark ground, whatever the wall or the player's glow does behind */
  .hello .act-phone::before { content: ''; position: absolute; z-index: -1; left: calc(-1 * var(--pad-page)); right: calc(-1 * var(--pad-page)); top: calc(-1 * var(--s-32)); bottom: 0; background: linear-gradient(rgba(21,21,21,0), rgba(21,21,21,0.82) 38%, rgba(21,21,21,0.94)); pointer-events: none; }
  .cue { display: none; }
  /* build: the short bigger, beside its scene label */
  .preview { gap: var(--s-12); }
  .preview .short { width: 160px; }
  /* check: the strip bigger and in the middle; the report closer under it */
  .band { top: 220px; bottom: 0; }
  .frames { top: 168px; gap: 12px; }
  .frames figure { width: 120px; height: 213px; border-radius: 10px; }
  .band .beam { top: 84px; height: 240px; }
  /* change, answered: the result plays under the conversation */
  .v2 { display: block; margin: var(--s-20) auto 0; width: 112px; }
  .v2 .short { width: 112px; }
  .v2 .tag.v { left: var(--s-6); top: var(--s-6); height: 22px; font-size: 11px; }
  .v2 figcaption { margin-top: var(--s-8); text-align: center; }
}


/* =============================== round 6 =============================== */
/* ---- the headline's second line. Default: Petr's liquid light, lit from above like his drop (lilac at the top,
   violet, deep cobalt at the foot) with a soft reflection across the top of the letters; the full stop is one of his
   warm droplets. No glow. ?h=2: "Get the finished short." in a quiet lavender grey, only "finished" lit. ?h=3: an
   inline vertical short in the line. */
.hello h1 .two { background: none; -webkit-text-fill-color: currentColor; }
.hello h1 .two .tx { background:
    linear-gradient(176deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.5) 29%, rgba(255, 255, 255, 0) 43%),
    linear-gradient(180deg, #f1e9ff 0%, #cdb6ff 28%, #9f88ff 52%, #6d6cff 76%, #3e5cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hello h1 .pd { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.05em; overflow: hidden; color: transparent; -webkit-text-fill-color: transparent; line-height: 0; border-radius: 50%; vertical-align: baseline;
  background: radial-gradient(circle at 34% 30%, #fff 0 10%, #ffd7c6 24%, #ff9f8e 50%, #e9739d 80%, #a9497d 100%);
  box-shadow: 0 0 0.16em rgba(255, 143, 177, 0.55), inset 0 -0.02em 0.04em rgba(80, 20, 60, 0.35); }
html[data-h="2"] .hello h1 .two { background: none; color: #a7a2c4; -webkit-text-fill-color: currentColor; }
html[data-h="2"] .hello h1 .two .lg { background: linear-gradient(176deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.5) 29%, rgba(255, 255, 255, 0) 43%), linear-gradient(180deg, #f1e9ff 0%, #cdb6ff 28%, #9f88ff 52%, #6d6cff 76%, #3e5cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html[data-h="3"] .hello h1 .two { background: none; color: #cdbcff; -webkit-text-fill-color: currentColor; }
.hello h1 .chip9 { display: inline-block; width: 0.5em; height: 0.84em; margin: 0 0.14em 0 0.02em; vertical-align: -0.1em; border-radius: 0.09em; overflow: hidden; rotate: -5deg;
  box-shadow: 0 0 0 0.025em rgba(255, 255, 255, 0.35), 0 0.12em 0.3em rgba(0, 0, 0, 0.55), 0 0 0.4em rgba(124, 139, 255, 0.35); }
.hello h1 .chip9 img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Good to know: no margin collapses through an answer while its height eases (nothing pops at the end) */
.q { display: flow-root; }

/* ---- the pricing beat: a short pin (desktop), a sticky question (phone) */
.price { --len: 230; }
.price .pin { display: flex; align-items: center; justify-content: center; padding: 64px var(--pad-x) 0; }
.price-in { width: 100%; max-width: 880px; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 50%; }
.price .price-head { padding-top: 132px; }
.price .price-head .anchor { width: 116px; height: 116px; margin-left: -58px; }
.price-head .ask { top: 8px; }
.p-think { position: absolute; left: 50%; top: 150px; translate: -50% 0; display: inline-flex; align-items: center; gap: var(--s-6); height: 44px; padding: 0 var(--s-20); border-radius: 22px 22px 22px 6px; background: rgba(31, 31, 31, 0.96); box-shadow: var(--shadow-panel); }
.p-think span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand-text); animation: think 1s ease-in-out infinite; }
.p-think span:nth-child(2) { animation-delay: 0.15s; } .p-think span:nth-child(3) { animation-delay: 0.3s; }
.price .ptable { margin-top: var(--s-40); overflow: visible; background: none; box-shadow: none; gap: 0; }
.price .pcol { background: var(--c-bg); box-shadow: var(--shadow-panel); will-change: transform, opacity; }
.price .pcol:first-child { border-radius: var(--r-sheet) 0 0 var(--r-sheet); }
.price .pcol:last-child { border-radius: 0 var(--r-sheet) var(--r-sheet) 0; }
.price .pcol.main { background: linear-gradient(180deg, rgba(47,91,255,0.1), rgba(47,91,255,0) 60%), var(--c-bg); }
html.calm .price .pin { padding-top: var(--s-96); padding-bottom: var(--s-96); }
html.calm .p-think { display: none; }

/* ---- the buttons: premium pills with a light layer (tour.js adds .bfx) */
.btn.fx { isolation: isolate; transition: color .35s linear, transform .55s cubic-bezier(0.34, 1.5, 0.64, 1); }
.btn.fx.primary { background: var(--c-control); }
.btn .bfx { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn .bfx .by { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .4s linear;
  background: linear-gradient(180deg, #ffe66b 0%, #ffd500 46%, #f4c300 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(140, 92, 0, 0.3), inset 0 -8px 14px -10px rgba(170, 110, 0, 0.45); }
.btn .bfx .by::before { content: ''; position: absolute; left: 8%; right: 8%; top: 1px; height: 50%; border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 90%); }
.btn.primary .bfx .by { opacity: 1; }
.btn .bfx .bs { position: absolute; top: -30%; bottom: -30%; left: 0; width: 42%; opacity: 0; transform: translateX(-140%) skewX(-18deg);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 35%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0.16) 65%, rgba(255, 255, 255, 0) 100%); }
.btn.primary .bfx .bs { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 38%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.55) 62%, rgba(255, 255, 255, 0) 100%); }
.btn .bfx .bs.go { animation: sheen 0.95s cubic-bezier(0.3, 0.6, 0.2, 1) both; }
@keyframes sheen { 0% { opacity: 0; transform: translateX(-140%) skewX(-18deg); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateX(360%) skewX(-18deg); } }
/* the quieter buttons (Choose Starter, the grey nav button): glass, with Petr's gradient rim on hover */
.btn.fx:not(.primary) { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.btn.fx:not(.primary)::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s linear; pointer-events: none;
  background: linear-gradient(100deg, #2f5bff, #9b7bff 45%, #c9a6ff 75%, #ff8fb1);
  -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 exclude, linear-gradient(#000 0 0); }
/* the main action's glow: warm, always a little; Petr's light joins it under the pointer */
.btn.fx::after { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; opacity: 0; transition: opacity .45s linear; pointer-events: none;
  box-shadow: 0 8px 26px -6px rgba(255, 196, 0, 0.6), 0 0 34px rgba(255, 208, 40, 0.28); }
.btn.fx.primary::after { opacity: 0.6; }
.btn .glow2 { display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn.fx:hover { transform: scale(1.035); }
  .btn.fx.primary:hover::after { opacity: 1; }
  .btn.fx:not(.primary):hover::before { opacity: 1; }
  .btn.fx:not(.primary):hover { background: rgba(255, 255, 255, 0.1); }
  .btn.fx:hover .arr { transform: translateX(4px); }
  .btn.fx .arr { transition: transform .55s cubic-bezier(0.34, 1.5, 0.64, 1); }
}
.btn.fx:active { transform: scale(0.965); transition-duration: .12s; }
.btn.fx.primary:active .bfx .by { opacity: 0.9; }
/* while the app's window is on screen, the nav's button is the grey one */
html[data-appwin] .nav .btn.fx.primary .by, html[data-appwin] .nav .btn.fx.primary::after { opacity: 0; }
html[data-appwin] .nav .btn.fx.primary { background: rgba(255, 255, 255, 0.07); color: var(--c-text); }

@media (max-width: 900px) {
  /* phone: no pin; the question sticks while the plans dock under it */
  .price { height: auto; }
  .price .pin { position: relative; height: auto; overflow: visible; display: block; padding: var(--s-96) var(--pad-page) var(--s-96); }
  .price-in { max-width: none; }
  /* the room the question sticks through (content, not padding: a sticky box can't move into its parent's padding) */
  .ph-wrap { width: 100%; }
  .ph-wrap::after { content: ''; display: block; height: 42svh; }
  .price .price-head { position: sticky; top: 64px; padding-top: 156px; }
  /* a chat: Petr on the left thinks, your question on the right */
  .price .price-head .anchor { left: 0; width: 88px; height: 88px; margin-left: 0; }
  .price-head .ask { display: flex; left: auto; right: 0; top: 8px; align-items: flex-end; }
  .p-think { left: 4px; top: 100px; translate: 0 0; }
  .price .ptable { margin-top: var(--s-24); position: relative; z-index: 2; gap: var(--s-12); }
  .price .pcol, .price .pcol:first-child, .price .pcol:last-child { border-radius: var(--r-sheet); }
  .pcol + .pcol { border-top: 0; }
}
