/* TwinNest VStudio — public landing page (landing.html: Arabic/RTL, landing.en.html: English/LTR).
 * Concept «القَطع» / "the cut": a broadcast timeline, an in/out bracket, hairline rules, numbered rows,
 * monospace timecodes and rationed gold. Hand-written CSS with logical properties; no framework.
 *
 * Motion: one set of durations and curves (below), used everywhere. Only transform and opacity are
 * animated (plus stroke-dashoffset to draw icons, and the FAQ's measured height). The hero's opening
 * sequence is pure CSS so it starts with the first paint; everything else is added by landing.js and the
 * page is complete without it. prefers-reduced-motion: reduce gets the finished states and no movement. */

@font-face { font-family: 'Cairo'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/static/vendor/cairo/cairo-arabic-wght-normal.woff2) format('woff2-variations'), url(/static/vendor/cairo/cairo-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/static/vendor/cairo/cairo-latin-wght-normal.woff2) format('woff2-variations'), url(/static/vendor/cairo/cairo-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/static/vendor/cairo/cairo-latin-ext-wght-normal.woff2) format('woff2-variations'), url(/static/vendor/cairo/cairo-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: 'Reem Kufi'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/static/vendor/reem-kufi/reem-kufi-arabic-wght-normal.woff2) format('woff2-variations'), url(/static/vendor/reem-kufi/reem-kufi-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
/* The space (U+0020) is left to Cairo so Arabic headings never download the Latin display file. */
@font-face { font-family: 'Reem Kufi'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/static/vendor/reem-kufi/reem-kufi-latin-wght-normal.woff2) format('woff2-variations'), url(/static/vendor/reem-kufi/reem-kufi-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0021-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --ink: #101014;
  --ivory: #fff8ec;
  --ivory-2: #d8d1c4;
  --mute: #9a958c;
  --rule: rgba(255, 248, 236, 0.15);
  --hair: rgba(255, 248, 236, 0.09);
  --gold: #e3b341;
  --wave: #5d5953;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --display: 'Reem Kufi', 'Cairo', system-ui, sans-serif;
  --w: min(1280px, 100vw - 64px);

  /* motion: five durations, three curves, one stagger step. Nothing else is used. */
  --t-xs: 120ms;   /* press, small state flips */
  --t-s: 200ms;    /* hover, fades of small things */
  --t-m: 360ms;    /* entrances, crossfades */
  --t-l: 640ms;    /* travel: rules, crops, regions */
  --t-xl: 900ms;   /* icon strokes drawing on */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);   /* arrive */
  --ease-io: cubic-bezier(0.6, 0, 0.2, 1);      /* travel */
  --ease-snap: cubic-bezier(0.3, 0, 0, 1);      /* in/out marks landing */
  --stagger: 60ms;
  --dir: 1;        /* reading direction: entrances come from the reading start */
  --start: 0%;     /* transform-origin x of the reading start */
}
html[dir='rtl'] { --dir: -1; --start: 100%; }
@media (prefers-reduced-motion: reduce) {
  :root { --t-xs: 0ms; --t-s: 0ms; --t-m: 0ms; --t-l: 0ms; --t-xl: 0ms; --stagger: 0ms; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body { margin: 0; background: var(--ink); color: var(--ivory); font-family: 'Cairo', system-ui, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang='en'] body { line-height: 1.6; }
h1, h2, h3, p, ol, ul, dl, dd, figure, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--w); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 30; padding: 8px 14px; background: var(--ivory); color: var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- icons (one sprite, drawn by CSS) */
.i { display: inline-block; flex: none; width: 20px; height: 20px; overflow: visible; vertical-align: -4px;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes fade-in { from { opacity: 0; } }

/* ---------------------------------------------------------------- links and keys */
.link, .nav a, .foot-links a, .lang, .lang-f { position: relative; text-decoration: none; }
.link { display: inline-block; padding-bottom: 5px; }
.link::before, .link::after, .nav a::after, .foot-links a::after, .lang::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; pointer-events: none; }
.link::before { background: var(--rule); }
.link::after, .nav a::after, .foot-links a::after, .lang::after { background: currentColor; transform: scaleX(0); transform-origin: var(--start) 50%;
  transition: transform var(--t-m) var(--ease-io); }
.nav a::after, .foot-links a::after, .lang::after { bottom: -5px; }
.lang::after { inset-inline-end: 24px; }
.link:hover::after, .link:focus-visible::after, .nav a:hover::after, .nav a:focus-visible::after,
.foot-links a:hover::after, .foot-links a:focus-visible::after, .lang:hover::after, .lang:focus-visible::after { transform: scaleX(1); }
.key { padding: 9px 16px; border: 1px solid var(--ivory); text-decoration: none; line-height: 1; white-space: nowrap;
  transition: background-color var(--t-s) linear, color var(--t-s) linear; }
.key:hover { background: var(--ivory); color: var(--ink); }
.key:active { transform: translateY(1px); }
/* the primary action: in/out marks close on it when it is pointed at, focused or pressed */
.primary { position: relative; display: inline-block; padding: 15px 26px; background: var(--ivory); color: var(--ink); font-weight: 800; text-decoration: none; line-height: 1.25; border-radius: 2px;
  transition: background-color var(--t-s) linear, transform var(--t-xs) var(--ease-out); }
.primary::before, .primary::after { content: ''; position: absolute; top: -7px; bottom: -7px; width: 9px; border: 2px solid var(--gold); opacity: 0; pointer-events: none;
  transition: opacity var(--t-s) linear, transform var(--t-m) var(--ease-snap); }
.primary::before { left: -10px; border-right: 0; transform: translateX(-6px); }
.primary::after { right: -10px; border-left: 0; transform: translateX(6px); }
.primary:hover { background: #fff; }
.primary:hover::before, .primary:hover::after, .primary:focus-visible::before, .primary:focus-visible::after { opacity: 1; transform: none; }
.primary:focus-visible { outline: 0; }
.primary:active { transform: scale(0.985); }
.primary:active::before { opacity: 1; transform: translateX(3px); }
.primary:active::after { opacity: 1; transform: translateX(-3px); }
.closed { display: inline-block; padding: 14px 0; line-height: 1.25; color: var(--ivory-2); font-weight: 700; border-block: 1px solid var(--rule); }
.swap { animation: fade-in var(--t-m) linear both; }

/* ---------------------------------------------------------------- header (sticky; tightens after the first screen) */
.head { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--hair); transition: transform var(--t-m) var(--ease-out); }
.head-row { display: flex; align-items: center; gap: 36px; height: 76px; transition: transform var(--t-m) var(--ease-out); }
.head.tight { transform: translateY(-12px); }
.head.tight .head-row { transform: translateY(6px); }
.logo { flex: none; }
.logo img { width: 150px; height: auto; transform-origin: var(--start) 50%; transition: transform var(--t-m) var(--ease-out); }
.head.tight .logo img { transform: scale(0.86); }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--ivory-2); }
.nav a { transition: color var(--t-s) linear; }
.nav a:hover { color: var(--ivory); }
.head-end { margin-inline-start: auto; display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 700; }
.lang { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ivory-2); padding-inline-end: 24px; border-inline-end: 1px solid var(--rule); transition: color var(--t-s) linear; }
.lang .i { width: 17px; height: 17px; }
.lang:hover { color: var(--ivory); }
/* page progress: a hairline playhead with the page's running timecode (left to right, like the timeline) */
.prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow-x: clip; direction: ltr; pointer-events: none; opacity: 0; transition: opacity var(--t-m) linear; }
.head.tight .prog { opacity: 1; }
.prog-bar { position: absolute; inset: 0; background: var(--ivory-2); opacity: 0.5; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.prog-head { position: absolute; left: 0; top: 0; width: 100%; height: 1px; transform: translateX(calc(var(--p, 0) * 100%)); }
.prog-head i { position: absolute; left: -1px; top: -3px; width: 2px; height: 7px; background: var(--gold); }
.prog-tc { position: absolute; left: 7px; top: 5px; padding: 2px 4px; background: var(--ink); font: 600 10px/1 var(--mono); color: var(--ivory-2); white-space: nowrap; opacity: 0; transition: opacity var(--t-m) linear; }
.prog-head.flip .prog-tc { left: auto; right: 7px; }
.head.scrolling .prog-tc { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .prog-bar { animation: prog-bar linear both; animation-timeline: scroll(root block); }
  .prog-head { animation: prog-head linear both; animation-timeline: scroll(root block); }
}
@keyframes prog-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes prog-head { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: 44px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; }
.copy { width: calc(var(--w) * 0.6); display: flex; flex-direction: column; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.1vw, 90px); line-height: 1.08; }
html[lang='en'] h1 { font-size: clamp(38px, 4.55vw, 66px); line-height: 1.06; letter-spacing: -0.015em; }
h1 > span { display: block; }
/* Arabic pages: the full stop comes from Cairo, so the display face's Latin file is not needed */
html[lang='ar'] .pt { font-family: 'Cairo', sans-serif; }
h1 .l2 { padding-inline-start: 1.6em; color: var(--ivory-2); }
h1 .l3 { padding-inline-start: 0.6em; }
html[lang='en'] h1 .l2 { padding-inline-start: 1.2em; }
html[lang='en'] h1 .l3 { padding-inline-start: 2.2em; }
/* the in/out marks around a word: an editor's brackets, not a highlight */
.cut { position: relative; display: inline-block; padding-inline: 0.16em; }
.cut .in, .cut .out { position: absolute; top: 0.12em; bottom: 0.02em; width: 0.16em; border: 3px solid var(--gold); }
.cut .in { inset-inline-start: -0.06em; border-inline-end: 0; }
.cut .out { inset-inline-end: -0.06em; border-inline-start: 0; }
html[lang='en'] .cut .in, html[lang='en'] .cut .out { top: 0.06em; bottom: -0.02em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 16px; font-weight: 800; }
.copy .cta { order: 3; margin-top: 34px; }
.note { font-size: 13.5px; color: var(--mute); margin-top: 14px; }
.copy .note { order: 4; }
/* the invitation state arrives with the page's one request; the actions settle in a beat later so a
   closed registration never flashes an open "create account" first */
.copy .cta, .copy .note { animation: fade-in var(--t-m) linear 280ms both; }
.lead { order: 2; margin-top: 30px; max-width: 34em; font-size: 18px; line-height: 1.9; color: var(--ivory-2); }
html[lang='en'] .lead { line-height: 1.65; max-width: 36em; }

/* the output frame: 9:16 cut from the 16:9 broadcast (an illustration) */
.frame { container-type: inline-size; position: relative; flex: none; margin-inline-end: calc(var(--w) * 0.08); width: calc(var(--w) * 0.22); aspect-ratio: 9 / 16; overflow: hidden; background: #0b0b0e; }
.cam, .crop { position: absolute; inset: 0; }
.crop { transition: transform var(--t-l) var(--ease-io); }
.crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transform-origin: 50% 30%; }
/* face-tracking reticle, sitting on the speaker's face in the illustration */
.reticle { position: absolute; left: 30%; width: 40%; top: 36.5%; height: 27%; }
.reticle i { position: absolute; width: 11%; aspect-ratio: 1; border: 0 solid rgba(255, 248, 236, 0.75); }
.reticle i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.reticle i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.reticle i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.reticle i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ivory); }
.corner.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; --cx: -7px; --cy: -7px; }
.corner.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; --cx: 7px; --cy: -7px; }
.corner.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; --cx: -7px; --cy: 7px; }
.corner.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; --cx: 7px; --cy: 7px; }
.tag { position: absolute; left: 36px; top: 14px; font: 600 clamp(9px, 4.2cqw, 11px)/1 var(--mono); color: var(--ivory); white-space: nowrap; direction: ltr; opacity: 0.85; }
/* burned-in caption as the renderer draws it: white bold Cairo, black outline, lower third */
.cue { position: absolute; inset-inline: 8%; bottom: 25%; text-align: center; color: #fff; font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 7.4cqw; line-height: 1.3;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 3px 6px rgba(0, 0, 0, 0.5); }
.cue > span { display: inline-block; }
.frame-cap { position: absolute; inset-inline: 34px; bottom: 9px; padding: 3px 6px; font-size: clamp(8.5px, 3.6cqw, 10.5px); line-height: 1.35; color: var(--ivory-2);
  text-align: center; background: rgba(0, 0, 0, 0.6); }
.frame-note { display: none; }

/* projection from the marked region up to the frame */
.beam { display: block; width: 100%; height: 64px; transform-origin: 50% 100%; }
.beam polygon { fill: rgba(227, 179, 65, 0.07); }
.beam line { stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.beam-phone { display: none; }

/* timeline (time runs left to right in both languages) */
.timeline { position: relative; border-block: 1px solid var(--rule); --rl: 16.042%; --ph: 29%; }
html[dir='ltr'] .timeline { --rl: 75.208%; --ph: 88%; }
.readout { display: none; }
.ruler { display: grid; grid-template-columns: repeat(8, 1fr); height: 30px; font: 500 11px/30px var(--mono); color: var(--mute);
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(100% / 48)) 0 100% / 100% 7px no-repeat; }
.ruler span { padding-left: 6px; border-left: 1px solid var(--rule); }
.track { position: relative; height: 112px; overflow-x: clip; }
.wave-clip { position: absolute; inset: 14px 0; overflow: hidden; }
.wave { width: 100%; height: 100%; max-width: none; fill: var(--wave); }
.wave-m { display: none; }
html[dir='ltr'] .wave { transform: scaleX(-1); }
.wipe { position: absolute; inset: 0; background: var(--ink); transform-origin: 100% 50%; transform: scaleX(0); }
/* the marked region: a full-width layer moved with transform, so dragging never touches layout */
.reg { position: absolute; inset: 0; pointer-events: none; transform: translateX(var(--rl)); }
.region { position: absolute; top: 0; bottom: 0; left: 0; width: 9%; }
.region::before { content: ''; position: absolute; inset: 0; background: rgba(227, 179, 65, 0.1); }
.mk { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.mk.in { left: 0; }
.mk.out { right: 0; }
.flag { position: absolute; font: 700 10.5px/1 var(--mono); color: var(--ink); background: var(--gold); padding: 4px 6px; white-space: nowrap; }
.flag.fin { left: 0; top: 0; }
.flag.fout { right: 0; bottom: 0; }
.playhead { position: absolute; inset: 0; pointer-events: none; transform: translateX(var(--ph)); }
.playhead::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--ivory); }
.playhead::before { content: ''; position: absolute; top: -1px; left: -5px; border: 5px solid transparent; border-top: 7px solid var(--ivory); }
/* near the playhead the waveform is lit and breathes: a window onto a second copy, counter-moved */
.ph-win { position: absolute; top: 14px; bottom: 14px; left: -36px; width: 72px; overflow: hidden; opacity: 0; transition: opacity var(--t-l) linear; }
.ph-wave { position: absolute; top: 0; bottom: 0; left: 36px; width: var(--w); transform: translateX(calc(-1 * var(--ph))); }
.ph-wave .wave { fill: var(--ivory-2); }
.ph-tc { position: absolute; left: 7px; top: 3px; padding: 2px 4px; font: 600 10px/1 var(--mono); color: var(--ivory); background: var(--ink); white-space: nowrap; opacity: 0; transition: opacity var(--t-m) linear; }
.amb .ph-win, .amb .ph-tc { opacity: 1; }
.ph-tc.flip { left: auto; right: 7px; }
/* pointer readout */
.hover { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--t-s) linear; }
.hover::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(255, 248, 236, 0.45); }
.hover-tc { position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%); padding: 3px 5px; font: 700 10.5px/1 var(--mono); color: var(--ink); background: var(--ivory); white-space: nowrap; }
.track.hovering .hover { opacity: 1; }
.live { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--ink); font: 700 12px/1 'Cairo', sans-serif; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ivory); animation: pulse 1.6s var(--ease-io) infinite alternate; }
@keyframes pulse { to { opacity: 0.25; } }
/* with script: the region is a slider you can drag, tap or move with the keys */
.js .track { cursor: crosshair; touch-action: pan-y; }
.js .region { pointer-events: auto; cursor: grab; touch-action: pan-y; }
.js .region:focus-visible { outline: 2px solid var(--ivory); outline-offset: -2px; }
.track.dragging, .track.dragging .region { cursor: grabbing; }
.reg.ease { transition: transform var(--t-m) var(--ease-snap); }

/* ---------------------------------------------------------------- the hero's opening sequence (once, about 3 s) */
@media (prefers-reduced-motion: no-preference) {
  .wipe { animation: wipe 700ms var(--ease-io) both; }
  .playhead { animation: ph-in 1000ms var(--ease-io) 250ms both; }
  .live { animation: fade-in var(--t-m) linear 600ms both; }
  .mk.in { animation: mk-in var(--t-m) var(--ease-snap) 1100ms both; }
  .mk.out { animation: mk-out var(--t-m) var(--ease-snap) 1100ms both; }
  .region::before { animation: fade-in 300ms linear 1250ms both; }
  .readout span { animation: fade-in var(--t-m) linear 1150ms both; }
  .beam { animation: beam-in 500ms var(--ease-out) 1400ms both; }
  .cam { animation: cam-in 600ms var(--ease-out) 1650ms both; }
  .corner { animation: corner-in 500ms var(--ease-snap) 1700ms both; }
  .tag { animation: fade-in 300ms linear 1900ms both; }
  .reticle { animation: ret-in 420ms var(--ease-snap) 2200ms both; }
  .cue .w1 { animation: cue-in 220ms var(--ease-out) 2150ms both; }
  .cue .w2 { animation: cue-pop 280ms var(--ease-snap) 2450ms both; }
  .hero .cut .in { animation: br-in 320ms var(--ease-snap) 2700ms both; }
  .hero .cut .out { animation: br-in 320ms var(--ease-snap) 2800ms both; }
}
@keyframes wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes ph-in { from { transform: translateX(0); } }
@keyframes mk-in { from { opacity: 0; transform: translateX(-26px); } }
@keyframes mk-out { from { opacity: 0; transform: translateX(26px); } }
@keyframes beam-in { from { opacity: 0; transform: scaleY(0); } }
@keyframes cam-in { from { opacity: 0; transform: scale(1.06); } }
@keyframes corner-in { from { opacity: 0; transform: translate(var(--cx), var(--cy)); } }
@keyframes ret-in { from { opacity: 0; transform: scale(1.35); } }
@keyframes cue-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes cue-pop { from { opacity: 0; transform: scale(0.88); } }
@keyframes br-in { from { opacity: 0; transform: scaleY(0); } }

/* ---------------------------------------------------------------- sections */
main { counter-reset: sec; }
.sec { padding: 112px 0 0; }
.sec-head { position: relative; display: flex; align-items: baseline; gap: 18px 40px; flex-wrap: wrap; padding-bottom: 20px; counter-increment: sec; }
.sec-head::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--ivory); transform-origin: var(--start) 50%; }
.sec-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; }
html[lang='en'] .sec-head h2 { letter-spacing: -0.01em; }
.sec-head h2::before { content: counter(sec, decimal-leading-zero); display: inline-block; margin-inline-end: 0.5em; font: 600 14px/1 var(--mono); color: var(--mute); vertical-align: 0.6em; unicode-bidi: isolate; }
.sec-head p { color: var(--mute); max-width: 30em; margin-inline-start: auto; }
.aside { margin-top: 14px; font-size: 13px; color: var(--mute); }

/* the cut list (edit decision list) beside the stage that plays it */
.edl li { position: relative; display: grid; grid-template-columns: 90px minmax(180px, 0.8fr) 2fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.edl li::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: var(--start) 50%; transition: transform var(--t-l) var(--ease-io); }
.edl .n { justify-self: start; font: 600 14px/1 var(--mono); color: var(--mute); direction: ltr; unicode-bidi: isolate; transition: color var(--t-s) linear; }
.edl li:first-child .n { color: var(--gold); }
.edl h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; line-height: 1.4; }
.edl h3 .i { width: 22px; height: 22px; color: var(--ivory-2); }
.edl p { color: var(--ivory-2); max-width: 46em; }
.staged .edl li .n { color: var(--mute); }
.staged .edl li.on .n { color: var(--gold); }
.staged .edl li.on::after { transform: scaleX(1); }

.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); column-gap: 64px; align-items: start; }
.how .edl li { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 0; padding: 40px 0 42px; }
.how .edl li p { grid-column: 2; }
.stage { position: sticky; top: 120px; margin-top: 40px; }

/* the stage: one persistent picture of the pipeline; data-step (1–4) is set by script while you scroll.
   Without script, or with reduced motion, it shows every step at once. */
.stage { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 3.25fr) minmax(0, 1fr); grid-template-areas: 'bar bar' 'src out' 'strip strip' 'sched sched';
  gap: 14px; padding: 18px; border: 1px solid var(--rule); background: #0c0c10; }
.st-bar { grid-area: bar; display: flex; justify-content: space-between; align-items: center; font: 600 11px/1 var(--mono); color: var(--mute); }
.st-step { color: var(--gold); }
.st-ticks { display: flex; gap: 4px; }
.st-ticks i { width: 18px; height: 2px; background: var(--gold); transition: background-color var(--t-m) linear; }
.stage[data-step='1'] .st-ticks i:nth-child(n + 2), .stage[data-step='2'] .st-ticks i:nth-child(n + 3), .stage[data-step='3'] .st-ticks i:nth-child(4) { background: var(--rule); }
.st-src { grid-area: src; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.st-src img, .st-out-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-shade { position: absolute; top: 0; bottom: 0; left: 0; width: 34.18%; background: rgba(0, 0, 0, 0.58); }
.st-shade.e { left: auto; right: 0; }
.st-crop { position: absolute; top: 0; bottom: 0; left: 34.18%; width: 31.64%; border: 1.5px solid var(--gold); --from: scale(1.5); }
.st-ret { position: absolute; left: 27%; width: 46%; top: 33%; height: 28%; }
.st-ret i { position: absolute; width: 22%; aspect-ratio: 1; border: 0 solid var(--gold); }
.st-ret i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.st-ret i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.st-ret i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.st-ret i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.st-rec, .st-tc { position: absolute; top: 8px; display: flex; align-items: center; gap: 5px; padding: 3px 5px; background: rgba(0, 0, 0, 0.55); font: 700 10px/1 var(--mono); color: var(--ivory); }
.st-rec { left: 8px; }
.st-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--ivory); }
.st-tc { right: 8px; color: var(--ivory-2); }
.st-meter { position: absolute; right: 10px; top: 32px; bottom: 36px; display: flex; align-items: flex-end; gap: 2px; }
.st-meter i { width: 3px; height: 100%; background: var(--ivory-2); opacity: 0.7; transform-origin: 50% 100%; transform: scaleY(0.55); }
.st-meter i:nth-child(2) { transform: scaleY(0.8); }
.st-meter i:nth-child(3) { transform: scaleY(0.65); }
.st-meter i:nth-child(4) { transform: scaleY(0.4); }
.st-meter i:nth-child(5) { transform: scaleY(0.3); }
.st-url { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: rgba(12, 12, 16, 0.86); border-top: 1px solid var(--rule); font: 600 10.5px/1.2 var(--mono); color: var(--ivory-2); transition: color var(--t-m) linear, border-color var(--t-m) linear; }
.st-url .i { width: 14px; height: 14px; }
.stage[data-step='1'] .st-url { color: var(--ivory); border-top-color: var(--gold); }
.st-out { grid-area: out; position: relative; align-self: start; aspect-ratio: 9 / 16; overflow: hidden; background: #0b0b0e; outline: 1px solid var(--rule); }
.st-out-img { position: absolute; inset: 0; --from: translateX(calc(var(--dir) * 30%)) scale(1.2); }
.st-out-img img { transform: scale(1.14); transform-origin: 50% 30%; }
.st-cue { position: absolute; inset-inline: 5%; bottom: 22%; display: grid; text-align: center; color: #fff; font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 2.2cqw; line-height: 1.3;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; --from: translateY(6px); }
.st-cue span { grid-area: 1 / 1; }
.st-cue span + span { opacity: 0; }
.st-916 { position: absolute; top: 6px; left: 6px; font: 700 9px/1 var(--mono); color: var(--ivory); opacity: 0.85; }
.st-lab { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font: 600 10.5px/1 var(--mono); color: var(--mute); }
.st-lab .i { width: 15px; height: 15px; }
.st-strip { grid-area: strip; margin-bottom: 18px; }
.st-slices { position: relative; height: 46px; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--rule); }
.st-wave { position: absolute; left: 0; top: 7px; width: 100%; height: calc(100% - 14px); fill: var(--wave); }
.sl { position: relative; border-right: 1px solid var(--rule); background: rgba(255, 248, 236, 0.07); transform-origin: 0 50%; --from: scaleX(0); }
.sl:last-of-type { border-right: 0; }
.sl.now { background: rgba(255, 248, 236, 0.12); }
.st-pick { position: absolute; top: -3px; bottom: -3px; left: 42.7%; width: 2.7%; border-inline: 2px solid var(--gold); background: rgba(227, 179, 65, 0.2); --from: translateY(-14px); }
.st-pick .flag { top: calc(100% + 4px); bottom: auto; padding: 3px 4px; font-size: 9.5px; }
.st-pick .fin { left: auto; right: 50%; }
.st-pick .fout { left: 50%; right: auto; }
.st-sched { grid-area: sched; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.slot { position: relative; height: 58px; padding: 6px; border: 1px solid var(--rule); display: flex; align-items: flex-end; justify-content: flex-end; }
.slot b { font: 600 10px/1 var(--mono); color: var(--mute); }
.slot i { position: absolute; top: 6px; left: 6px; width: 17px; height: 30px; background: rgba(216, 209, 196, 0.28); --from: translateY(-16px); }
.slot:first-child i { background: var(--gold); }
/* step states: anything belonging to a later step waits, then arrives in order */
.stage[data-step] :is(.s2, .s3, .s4) { transition: opacity var(--t-m) var(--ease-out) var(--sd, 0ms), transform var(--t-l) var(--ease-snap) var(--sd, 0ms); }
.stage[data-step='1'] :is(.s2, .s3, .s4), .stage[data-step='2'] :is(.s3, .s4), .stage[data-step='3'] .s4 { opacity: 0; transform: var(--from, none); transition-delay: 0ms; }
.sl:nth-of-type(2) { --sd: 110ms; } .sl:nth-of-type(3) { --sd: 220ms; } .sl:nth-of-type(4) { --sd: 330ms; } .sl:nth-of-type(5) { --sd: 440ms; } .sl:nth-of-type(6) { --sd: 550ms; }
.st-rec, .st-tc { --sd: 0ms; } .st-meter { --sd: 120ms; }
.st-shade { --sd: 0ms; } .st-crop { --sd: 0ms; } .st-out-img { --sd: 380ms; } .st-cue { --sd: 760ms; }
.slot:nth-child(1) i { --sd: 1000ms; } .slot:nth-child(2) i { --sd: 1240ms; } .slot:nth-child(3) i { --sd: 1480ms; }
/* the stage is alive only while you can see it */
.stage.run .st-rec i { animation: pulse 1.2s var(--ease-io) infinite alternate; }
.stage.run .st-meter i { animation: meter 700ms var(--ease-io) infinite alternate; }
.stage.run .st-meter i:nth-child(2) { animation-duration: 560ms; animation-delay: -200ms; }
.stage.run .st-meter i:nth-child(3) { animation-duration: 820ms; animation-delay: -420ms; }
.stage.run .st-meter i:nth-child(4) { animation-duration: 640ms; animation-delay: -90ms; }
.stage.run .st-meter i:nth-child(5) { animation-duration: 900ms; animation-delay: -510ms; }
@keyframes meter { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
.stage.run .sl.now::after { content: ''; position: absolute; inset: 0; background: rgba(255, 248, 236, 0.1); transform-origin: 0 50%; animation: rec-fill 4.2s linear infinite; }
@keyframes rec-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stage.run[data-step='4'] .st-ret { animation: hunt 2.4s var(--ease-io) infinite alternate; }
@keyframes hunt { 0% { transform: translate(0, 0); } 50% { transform: translate(3%, -2%); } 100% { transform: translate(-2%, 1%); } }
.stage.run[data-step='4'] .st-cue span:first-child { animation: cue-a 5.6s linear 1.4s infinite; }
.stage.run[data-step='4'] .st-cue span + span { animation: cue-b 5.6s linear 1.4s infinite; }
@keyframes cue-a { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cue-b { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* specifications: a two-column spec sheet */
.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.specs > div { padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.specs dt { font-size: 19px; font-weight: 800; line-height: 1.4; }
.specs .code { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 600 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--mute); }
.specs .code .i { width: 22px; height: 22px; color: var(--ivory-2); }
.specs .code b { font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.specs dd { margin-top: 8px; color: var(--ivory-2); }
/* the choices a row describes, drawn as a selector strip (the sentence above already says it) */
.modes { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-top: 14px; border: 1px solid var(--rule); }
.modes > span { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 13.5px; line-height: 1.3; color: var(--ivory-2); }
.modes > span + span { border-inline-start: 1px solid var(--rule); }
.modes .i { width: 18px; height: 18px; color: var(--mute); }

/* sources table */
.sources { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.sources th, .sources td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: start; vertical-align: baseline; }
.sources thead th { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--mute); padding-top: 18px; white-space: nowrap; }
.sources thead .i { width: 16px; height: 16px; margin-inline-end: 7px; vertical-align: -3px; }
.sources th:first-child, .sources td:first-child { padding-inline-start: 0; }
.sources tbody th { font-weight: 800; font-size: 17px; }
.sources td .i { width: 18px; height: 18px; margin-inline-end: 8px; vertical-align: -3px; }
.sources td.y { color: var(--ivory); }
.sources td.y .i { color: var(--ivory); }
.sources td.n { color: var(--mute); }
.sources td .col { display: none; }
.sources td:last-child { color: var(--ivory-2); }

/* who it is for */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.who li { padding: 26px 0 8px; padding-inline-end: 32px; }
.who li + li { padding-inline-start: 32px; border-inline-start: 1px solid var(--rule); }
.who li > .i { display: block; width: 26px; height: 26px; margin-bottom: 14px; color: var(--ivory-2); }
.who h3 { font-size: 20px; font-weight: 800; line-height: 1.4; }
.who p { margin-top: 8px; color: var(--ivory-2); }
.rights { margin-top: 40px; padding: 4px 0 4px; padding-inline-start: 20px; border-inline-start: 3px solid var(--ivory); color: var(--ivory-2); max-width: 60em; }
.rights strong { color: var(--ivory); }

/* pricing: a specification table, one column per plan */
.plans { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.plan { position: relative; padding: 26px 24px 30px; border-inline-start: 1px solid var(--rule); border-top: 3px solid transparent; min-width: 0; }
/* the featured plan's gold rule is drawn on when the column arrives */
.plan::before { content: ''; position: absolute; inset-inline: 0; top: -3px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: var(--start) 50%; }
.plan.featured::before { transform: scaleX(1); transition: transform var(--t-l) var(--ease-io) calc(var(--d, 0ms) + 220ms); }
.plan.featured.pre::before { transform: scaleX(0); }
/* one row per part, shared across plans (subgrid), so prices, limits and bullets line up */
@supports (grid-template-rows: subgrid) {
  .plans { grid-template-rows: repeat(5, auto); }
  .plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-content: start; }
}
.plan .void { margin: 0; padding: 0; border: 0; height: 0; overflow: hidden; }
.plan-body > :first-child:not(.void), .plan-body > .void + :not(.void) { margin-top: 18px; }
.plan:first-child { border-inline-start: 0; padding-inline-start: 0; }
.plan:first-child::before { inset-inline-start: 0; }
.plan-flag { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 12px; line-height: 1; color: var(--gold); margin-bottom: 10px; }
.plan-name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.plan-price { margin-top: 10px; font-size: 20px; font-weight: 800; color: var(--ivory); overflow-wrap: anywhere; }
.plan-desc { margin-top: 8px; color: var(--ivory-2); font-size: 15px; overflow-wrap: anywhere; }
.plan-limits { border-top: 1px solid var(--rule); }
.plan-limits > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.plan-limits dt { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.plan-limits dt .i, .plan-sub .i { width: 16px; height: 16px; color: var(--mute); }
.plan-limits dd { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-features { font-size: 14px; }
.plan-limits:not(.void) + .plan-features { margin-top: 14px; }
.plan-sub { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 12.5px; }
.plan-feat-list { margin-top: 4px; color: var(--ivory-2); }
.plan-bullets { display: grid; gap: 8px; font-size: 15px; }
.plan-body > :not(.void) + .plan-bullets { margin-top: 16px; }
.plan-bullets li { position: relative; padding-inline-start: 18px; overflow-wrap: anywhere; }
.plan-bullets li::before { content: '–'; position: absolute; inset-inline-start: 0; color: var(--mute); }
.plans[data-n='1'] .plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto auto auto auto 1fr; grid-row: auto; column-gap: 56px; padding-inline: 0; align-content: start; }
.plans[data-n='1'] .plan > :not(.plan-body) { grid-column: 1; }
.plans[data-n='1'] .plan-body { grid-column: 2; grid-row: 1 / span 5; }
.plans[data-n='1'] .plan-body > :first-child { margin-top: 0; }
.pricing-note { margin-top: 16px; color: var(--mute); font-size: 14px; max-width: 60em; }
/* manager text may fall back to the other language (dir=auto): keep it on the page's reading edge */
html[dir='ltr'] [data-plans] [dir='auto'], html[dir='ltr'] [dir='auto'][data-pricing-note], html[dir='ltr'] [dir='auto'][data-invite-text], html[dir='ltr'] .contacts [dir='auto'] { text-align: left; }
html[dir='rtl'] [data-plans] [dir='auto'], html[dir='rtl'] [dir='auto'][data-pricing-note], html[dir='rtl'] [dir='auto'][data-invite-text], html[dir='rtl'] .contacts [dir='auto'] { text-align: right; }

/* FAQ (answers open with a measured height animation added by script) */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: baseline; gap: 22px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-inline-start: auto; font: 400 22px/1 var(--mono); color: var(--mute); transition: transform var(--t-m) var(--ease-io), color var(--t-s) linear; }
.faq details[open] summary::after { content: '−'; color: var(--gold); }
.faq details.opening summary::after { transform: rotate(180deg); }
.faq .q { flex: none; width: 56px; font: 600 13px/1 var(--mono); color: var(--mute); direction: ltr; text-align: start; }
html[dir='rtl'] .faq .q { text-align: right; }
.faq details p { padding: 0 0 22px; padding-inline-start: 78px; color: var(--ivory-2); max-width: 52em; }

/* contact / invite */
.sec-head p[data-invite-text] { color: var(--ivory-2); max-width: 36em; }
.contacts li { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.c-type { display: flex; align-items: center; gap: 9px; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--mute); }
.c-type .i { width: 18px; height: 18px; color: var(--ivory-2); }
.c-label { color: var(--ivory-2); }
.c-value { position: relative; font-size: 19px; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; justify-self: start; border-bottom: 1px solid var(--rule); unicode-bidi: isolate; transition: border-color var(--t-s) linear; }
.c-value:hover, .c-value:focus-visible { border-bottom-color: var(--gold); }
.c-value .i { width: 15px; height: 15px; margin-inline-start: 8px; vertical-align: -1px; color: var(--mute); transition: transform var(--t-s) var(--ease-out); }
.c-value:hover .i { transform: translate(2px, -2px); }

/* closing */
.closing { padding: 140px 0 130px; }
.closing-row { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-top: 40px; }
.closing-row::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--ivory); transform-origin: var(--start) 50%; }
.closing h2 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 72px); line-height: 1.12; }
html[lang='en'] .closing h2 { letter-spacing: -0.015em; }

/* footer */
.foot { padding: 30px 0 40px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--mute); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { color: var(--ivory); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--ivory-2); }
.lang-f { display: inline-flex; align-items: center; gap: 6px; }
.lang-f .i { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- entrances (script marks rows that are still below the fold) */
.pre { opacity: 0; transform: translateX(calc(var(--dir) * -14px)); }
.enter { transition: opacity var(--t-m) var(--ease-out) var(--d, 0ms), transform var(--t-l) var(--ease-out) var(--d, 0ms); }
.pre .i { opacity: 0; stroke-dashoffset: 1; }
.enter .i { transition: opacity var(--t-s) linear calc(var(--d, 0ms) + 140ms), stroke-dashoffset var(--t-l) var(--ease-io) calc(var(--d, 0ms) + 140ms); }
.sec-head.pre, .closing-row.pre { transform: none; }
.sec-head.pre::after, .closing-row.pre::before { transform: scaleX(0); }
.sec-head.enter::after, .closing-row.enter::before { transition: transform var(--t-l) var(--ease-io) var(--d, 0ms); }
.sources tr.pre { transform: none; }
.sources tr.pre > * { opacity: 0; transform: translateX(calc(var(--dir) * -10px)); }
.sources tr.enter > * { transition: opacity var(--t-m) var(--ease-out) var(--d, 0ms), transform var(--t-l) var(--ease-out) var(--d, 0ms); }
/* small marks tick in (scale and opacity) rather than drawing their strokes: drawing is kept for the
   row icons, where it reads; dozens of strokes at once would cost main-thread time for nothing */
.sources tr.pre .i, .pre .modes .i { stroke-dashoffset: 0; transform: scale(0.4); }
.sources tr.enter .i, .enter .modes .i { transition: opacity var(--t-s) linear calc(var(--d, 0ms) + 160ms), transform var(--t-m) var(--ease-snap) calc(var(--d, 0ms) + 160ms); }

/* language switch: the two pages cross-fade (same-origin view transition) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out var(--t-s) var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in var(--t-m) var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateX(calc(var(--dir) * -10px)); } }

/* ---------------------------------------------------------------- tablets */
@media (max-width: 1100px) {
  .nav { display: none; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { position: relative; top: auto; grid-row: 1; margin: 34px 0 8px; max-width: 620px; }
  .plans { grid-template-columns: repeat(min(var(--n, 3), 2), minmax(0, 1fr)); }
  .plan:nth-child(2n + 1) { border-inline-start: 0; padding-inline-start: 0; }
  .plans .plan:nth-child(n + 3) { border-top-color: var(--rule); border-top-width: 1px; }
  .plans .plan.featured:nth-child(n + 3) { border-top: 3px solid transparent; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  :root { --w: calc(100vw - 40px); }
  html { scroll-padding-top: 76px; }
  .head-row { height: 62px; gap: 14px; }
  .head.tight { transform: translateY(-8px); }
  .head.tight .head-row { transform: translateY(4px); }
  .logo img { width: 118px; }
  .head-end { gap: 14px; font-size: 13.5px; }
  .head-end .key { display: none; }
  .lang { padding-inline-end: 14px; gap: 6px; }
  .lang::after { inset-inline-end: 14px; }
  .lang .i { width: 15px; height: 15px; }
  .hero { padding-top: 30px; }
  .hero-wrap { display: flex; flex-direction: column; }
  .hero-top, .copy { display: contents; }
  h1 { order: 1; font-size: 46px; line-height: 1.12; }
  html[lang='en'] h1 { font-size: 40px; line-height: 1.06; }
  h1 .l2 { padding-inline-start: 0.9em; }
  h1 .l3 { padding-inline-start: 0.35em; }
  html[lang='en'] h1 .l2 { padding-inline-start: 0.7em; }
  html[lang='en'] h1 .l3 { padding-inline-start: 1.4em; }
  .copy .cta { order: 2; margin-top: 24px; flex-direction: column; align-items: stretch; gap: 10px; }
  .primary { text-align: center; padding: 16px 18px; }
  .cta .link { align-self: center; padding: 4px 4px 6px; }
  .copy .note { order: 3; text-align: center; margin-top: 6px; }
  .timeline { order: 4; margin-top: 30px; }
  .beam { order: 5; height: 44px; transform-origin: 50% 0; }
  .frame { order: 6; align-self: center; margin: 0; width: calc(var(--w) * 0.4); }
  .lead { order: 8; margin-top: 26px; font-size: 16.5px; }
  .beam-desk { display: none; }
  .beam-phone { display: inline; }
  .readout { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); font: 700 10.5px/1 var(--mono); }
  .readout span { padding: 4px 6px; color: var(--ink); background: var(--gold); }
  .ruler { grid-template-columns: repeat(4, 1fr); font-size: 10px; }
  .ruler span:nth-child(even) { display: none; }
  .wave-d { display: none; }
  .wave-m { display: block; }
  .flag { display: none; }
  .st-pick .flag { display: block; font-size: 8.5px; }
  .track { height: 96px; }
  .frame-cap { display: none; }
  .frame-note { display: block; order: 7; margin-top: 10px; text-align: center; font-size: 12px; color: var(--mute); }
  .sec { padding-top: 76px; }
  .sec-head { flex-direction: column; gap: 6px; }
  .sec-head p { margin-inline-start: 0; }
  .edl li, .how .edl li { grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 22px 0; }
  .edl li p { grid-column: 2; }
  .edl h3 { font-size: 18.5px; gap: 10px; }
  .edl h3 .i { width: 20px; height: 20px; }
  .stage { padding: 12px; gap: 10px; margin-top: 26px; }
  .st-cue { font-size: 2.6cqw; }
  .slot { height: 50px; }
  .slot b { font-size: 9px; }
  .specs { grid-template-columns: 1fr; }
  .modes > span { padding: 6px 9px; font-size: 13px; gap: 6px; }
  .sources thead { display: none; }
  .sources, .sources tbody, .sources tr, .sources th, .sources td { display: block; }
  .sources tr { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .sources th, .sources td { border: 0; padding: 2px 0; }
  .sources tbody th { grid-column: 1 / -1; margin-bottom: 4px; }
  .sources td:last-child { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; }
  .sources td.y, .sources td.n { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
  .sources td .i { width: 15px; height: 15px; margin: 0; }
  .sources td .col { display: inline; }
  .sources td .val { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sources td.n .col { text-decoration: line-through; text-decoration-color: var(--rule); }
  .who { grid-template-columns: 1fr; }
  .who li, .who li + li { padding: 22px 0 18px; border-inline-start: 0; border-bottom: 1px solid var(--rule); }
  .plans, .plans[data-n] { grid-template-columns: 1fr; }
  .plan, .plans[data-n='1'] .plan { display: block; grid-row: auto; padding: 24px 0 26px; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .plan:first-child { border-top: 0; }
  .plan.featured, .plans .plan.featured:nth-child(n + 3) { border-top: 3px solid transparent; }
  .plans[data-n='1'] .plan-body > :first-child:not(.void) { margin-top: 18px; }
  .faq summary { gap: 12px; font-size: 16.5px; }
  .faq .q { width: 40px; font-size: 12px; }
  .faq details p { padding-inline-start: 52px; }
  .contacts li { grid-template-columns: 1fr; gap: 2px; }
  .closing { padding: 96px 0 90px; }
  .closing-row .cta { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .live i { animation: none; }
}
