/* =========================================================================
   akApp Studio
   Light paper, navy from the logo, teal as the studio accent.
   Each product brings its own colour, and only inside its own section.
   The hero phone is drawn from the logo: same outline, same notch.
   Pixel art is only ever shown at whole multiples (2x, 3x).
   ========================================================================= */

:root {
  --paper: #FAFAF7;
  --paper-2: #F3F2ED;
  --card: #FFFFFF;
  --ink: #13284D;
  --text: #26324F;
  --text-2: #586380;
  --text-3: #8790A6;
  --line: rgba(19, 40, 77, 0.10);
  --line-2: rgba(19, 40, 77, 0.18);

  --teal: #0D9488;
  --teal-2: #0B7C72;
  --teal-bg: rgba(13, 148, 136, 0.09);

  --gold: #E9A93B;
  --gold-ink: #85570A;
  --gold-bg: #FBF0D9;
  --sea: #0D2226;

  --rap: #03B989;
  --rap-ink: #027A5B;
  --rap-navy: #012E57;
  --rap-paper: #F2F5F3;

  --ts: #00C9CF;
  --ts-bg: #080C1A;
  --ts-pink: #F259C8;

  --film: #E5484D;

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;

  --f-display: 'Bricolage Grotesque', 'Arial Narrow', Georgia, sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --nav-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
html.has-dialog { overflow: hidden; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
.px { image-rendering: pixelated; max-width: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
p { max-width: 68ch; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- buttons & small parts ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: var(--f-body); font-weight: 700; font-size: 15.5px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #0B1D3D; box-shadow: 0 10px 24px rgba(19, 40, 77, 0.18); transform: translateY(-1px); }
.btn--line { border: 1.5px solid var(--line-2); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); background: rgba(19, 40, 77, 0.03); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-2); }
.btn--rap { background: var(--rap); color: #03261d; }
.btn--rap:hover { background: #04CC97; box-shadow: 0 10px 24px rgba(3, 185, 137, 0.25); transform: translateY(-1px); }

.link { color: var(--teal-2); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { color: var(--ink); }

.kind { display: inline-block; padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.kind--gold { background: var(--gold-bg); color: var(--gold-ink); }
.kind--teal { background: var(--teal-bg); color: var(--teal-2); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pill--gold { background: var(--gold); color: #2B1B02; }

.motion-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-3);
  transition: color 0.2s, background-color 0.2s;
}
.motion-btn:hover { color: var(--ink); background: rgba(19, 40, 77, 0.05); }
.motion-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.motion-btn .i-play { display: none; fill: currentColor; stroke: none; }
.motion-btn[aria-pressed="true"] .i-play { display: block; }
.motion-btn[aria-pressed="true"] .i-pause { display: none; }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: clamp(32px, 4vw, 48px); }
.sec-title { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.03em; font-stretch: 92%; margin-bottom: 16px; max-width: 18ch; }
.sec-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 46ch; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: rgba(250, 250, 247, 0.84);
  -webkit-backdrop-filter: saturate(1.3) blur(18px);
  backdrop-filter: saturate(1.3) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 21px; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-2); transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--ink); background: rgba(19, 40, 77, 0.05); }
.nav__links a[aria-current="page"] { color: var(--ink); background: rgba(19, 40, 77, 0.07); }
.nav__end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.lang__btn { padding: 6px 11px; border-radius: 7px; font-weight: 700; font-size: 13px; color: var(--text-3); transition: color 0.2s, background-color 0.2s; }
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-on { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { display: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding: calc(var(--nav-h) + clamp(24px, 5vh, 56px)) 0 clamp(40px, 6vh, 72px); }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy device" "remote device";
  column-gap: clamp(32px, 6vw, 100px);
  align-items: center;
}
.hero__copy { grid-area: copy; align-self: end; }
.hero__title {
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-stretch: 86%;
  margin-bottom: 28px;
  max-width: 10.5em;
}
.hw {
  --hw-c: var(--teal);
  background-image: linear-gradient(var(--hw-c), var(--hw-c));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 0.13em;
  transition: background-size 0.6s var(--ease);
}
.hw.is-on { background-size: 100% 0.13em; }
.hero__lead { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--text-2); max-width: 34em; margin-bottom: 34px; }
.hero__device { grid-area: device; justify-self: center; }

/* channel switcher */
.remote { grid-area: remote; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(32px, 5vh, 56px); }
.remote__btn {
  --c: var(--teal);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 12px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-weight: 600; font-size: 14.5px; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.remote__btn:hover { color: var(--ink); border-color: var(--line-2); }
.remote__btn img, .remote__btn svg { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.remote__btn[data-ch="xebeka"] { --c: var(--gold); }
.remote__btn[data-ch="tetspeed"] { --c: var(--ts); }
.remote__btn[data-ch="raporton"] { --c: var(--rap); }
.remote__btn[data-ch="film"] { --c: var(--film); }
.remote__film rect { fill: var(--film); }
.remote__film path { fill: #fff; }
.remote__btn[aria-pressed="true"] { color: var(--ink); border-color: var(--line-2); box-shadow: 0 6px 16px rgba(19, 40, 77, 0.08); }
.remote__bar { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2.5px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity 0.2s; }
.remote__bar i { position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: left center; }
.remote__btn[aria-pressed="true"] .remote__bar { opacity: 1; }
.remote__btn[aria-pressed="true"] .remote__bar i { transform: scaleX(1); }
.remote.is-auto .remote__btn[aria-pressed="true"] .remote__bar i { animation: bar var(--dur, 6.5s) linear both; }
.remote.is-held .remote__bar i { animation-play-state: paused !important; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- the phone (geometry taken from the logo) ---------- */
.phone {
  position: relative;
  width: 280px;
  width: max(230px, min(300px, calc((100svh - 190px) * 0.485), 76vw));
  aspect-ratio: 320 / 660;
}
.phone::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 15% / 7.27%;
  box-shadow: 0 40px 70px -20px rgba(19, 40, 77, 0.28), 0 14px 24px -12px rgba(19, 40, 77, 0.18);
}
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.phone__body { fill: none; stroke: var(--ink); stroke-width: 12; }
.phone__notch { fill: var(--ink); }
.phone__screen {
  position: absolute; left: 3.75%; right: 3.75%; top: 1.82%; bottom: 1.82%;
  border-radius: 12.2% / 5.67%;
  overflow: hidden; isolation: isolate;
  background: #fff;
  container-type: size;
}

/* boot: the logo draws itself, then the screen turns on */
.boot { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: #fff; transition: opacity 0.4s ease, visibility 0.4s; }
.boot__mark { width: 44%; overflow: visible; }
.boot__mark path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.phone.is-booting .phone__body { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) forwards; }
.phone.is-booting .phone__notch { opacity: 0; animation: fade-in 0.4s ease 0.7s forwards; }
.phone.is-booting .boot__mark path { animation: draw 0.8s var(--ease) forwards; }
.phone.is-booting .boot__mark path:nth-child(1) { animation-delay: 0.2s; }
.phone.is-booting .boot__mark path:nth-child(2) { animation-delay: 0.55s; }
.phone.is-booting .boot__mark path:nth-child(3) { animation-delay: 0.8s; animation-duration: 0.35s; }
.phone.is-booting .boot__mark path:nth-child(4) { animation-delay: 0.85s; animation-duration: 0.5s; }
.phone.is-booting .boot__mark path:nth-child(5) { animation-delay: 0.95s; animation-duration: 0.5s; }
.phone.is-booted .boot { opacity: 0; visibility: hidden; }
.phone.is-booted .boot__mark path { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* channels: a new one slides up like the next reel */
.ch { position: absolute; inset: 0; visibility: hidden; transform: translate3d(0, 100%, 0); transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.ch.is-on { visibility: visible; transform: none; z-index: 2; }
.ch.is-out { visibility: visible; transform: translate3d(0, -16%, 0); filter: brightness(0.55); z-index: 1; }
.ch.no-anim { transition: none; }

/* channel: Xebeka */
.ch--xebeka { background: var(--sea); }
.xbc__world { position: absolute; left: 0; top: 0; width: 880px; height: 640px; will-change: transform; transition: opacity 0.3s; }
.xbc__world > img { width: 880px; height: 640px; }
.xbc__walker {
  position: absolute; left: 0; top: 446px; width: 128px; height: 128px;
  background: url(xebeka/hero-walk.png) 0 0 / 1024px 128px no-repeat;
  image-rendering: pixelated;
  will-change: transform, opacity;
}
.ch--xebeka.is-live .xbc__walker { animation: stride 1s steps(8) infinite; }
@keyframes stride { to { background-position: -1024px 0; } }
.xbc__logo { position: absolute; left: 50%; top: 9cqh; width: 114px; height: 100px; transform: translateX(-50%); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35)); }
.xbc__badge { position: absolute; left: 50%; bottom: 5.5cqh; transform: translateX(-50%); padding: 0.45em 1em; border-radius: 999px; background: var(--gold); color: #2B1B02; font-weight: 700; font-size: max(11px, 4.4cqw); white-space: nowrap; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }

/* channel: TetSpeed */
.ch--tetspeed {
  background: radial-gradient(120% 60% at 50% 0%, #17204a 0%, var(--ts-bg) 60%);
  color: #EEF2FF;
  display: flex; flex-direction: column; align-items: center;
  padding: 10cqw 6cqw 6cqw;
  font-size: 4.4cqw;
}
.tsc__top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.tsc__logo { font-family: var(--f-display); font-weight: 800; font-size: 1.5em; letter-spacing: -0.02em; }
.tsc__logo b { color: var(--ts); font-weight: 800; }
.tsc__mult { padding: 0.25em 0.6em; border-radius: 0.6em; background: var(--ts-pink); color: #24061c; font-weight: 800; font-size: 0.95em; opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.25s var(--ease); }
.tsc__mult small { font-size: 0.8em; font-weight: 700; }
.tsc__mult.is-on { opacity: 1; transform: none; }
.tsc__hud { width: 100%; display: flex; justify-content: space-between; margin: 0.9em 0 0.8em; color: #AEB8D9; font-variant-numeric: tabular-nums; }
.tsc__hud small { font-size: 0.85em; }
.tsc__hud b { color: #fff; font-weight: 700; }
.tsc__board { flex: none; border-radius: 0.5em; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.12); }
.tsc__pad { margin-top: auto; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; padding-top: 4cqw; }
.tsc__pad span { display: grid; place-items: center; aspect-ratio: 1.35; border-radius: 0.7em; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.14); }
.tsc__pad svg { width: 46%; fill: none; stroke: #CFE9FF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* RaportON form (used in the hero phone and in the RaportON section) */
.ch--raporton { background: var(--rap-paper); }
.rpf { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 4.25cqw; color: #0E2338; background: var(--rap-paper); overflow: hidden; }
.rpf__bar { display: flex; align-items: center; gap: 0.5em; padding: 3.2em 1.1em 0.7em; background: #fff; border-bottom: 1px solid #DCE3E0; }
.rpf__back { width: 1.3em; height: 1.3em; fill: none; stroke: #0E2338; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rpf__title { flex: 1; font-size: 1.05em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpf__no { padding: 0.2em 0.5em; border-radius: 0.5em; background: #E7F7F1; color: var(--rap-ink); font-size: 0.8em; font-weight: 700; }
.rpf__seg { display: flex; margin: 0.8em 1.1em 0.2em; padding: 0.25em; border-radius: 0.8em; background: #E3E8E6; font-size: 0.9em; font-weight: 600; }
.rpf__seg span { flex: 1; text-align: center; padding: 0.35em 0; border-radius: 0.6em; color: #4A5D70; }
.rpf__seg .is-on { background: #fff; color: #0E2338; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.rpf__body { flex: 1; padding: 0.6em 1.1em 0; display: flex; flex-direction: column; gap: 0.55em; }
.rpf__field { display: flex; flex-direction: column; gap: 0.25em; }
.rpf__label { font-size: 0.8em; color: #4A5D70; font-weight: 600; }
.rpf__input { display: flex; align-items: center; min-height: 2.4em; padding: 0 0.8em; border: 1.5px solid #D7DFDC; border-radius: 0.7em; background: #fff; font-size: 0.95em; transition: border-color 0.2s; }
.rpf__input.is-typing { border-color: var(--rap); }
.rpf__input.is-typing::after { content: ""; width: 1.5px; height: 1.1em; margin-left: 1px; background: var(--rap-ink); animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.rpf__val { white-space: nowrap; overflow: hidden; }
.rpf__h { margin-top: 0.35em; font-weight: 700; font-size: 0.95em; padding-bottom: 0.3em; border-bottom: 2px solid #CDEFE3; max-width: none; }
.rpf__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; padding: 0.45em 0.6em; border-radius: 0.6em; background: #fff; font-size: 0.85em; }
.rpf__row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpf__chips { display: flex; gap: 0.25em; flex: none; }
.rpf__chips i { display: grid; place-items: center; width: 1.9em; height: 1.6em; border-radius: 0.4em; background: #EEF1F4; color: #8191A3; font-style: normal; font-size: 0.8em; font-weight: 700; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.rpf__chips svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rpf__row.is-ok .rpf__ok { background: var(--rap); color: #fff; transform: scale(1.08); }
.rpf__sign { position: relative; margin-top: 0.2em; height: 3.6em; border: 1.5px dashed #C9D4D0; border-radius: 0.7em; background: #fff; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.25em; }
.rpf__sign svg { position: absolute; left: 10%; right: 10%; top: 6%; width: 80%; height: 72%; }
.rpf__sig { fill: none; stroke: #1B2A55; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rpf.is-signed .rpf__sig { transition: stroke-dashoffset 0.85s ease-in-out; stroke-dashoffset: 0; }
.rpf__sign > span { font-size: 0.7em; color: #8191A3; }
.rpf__foot { padding: 0.8em 1.1em 1.4em; }
.rpf__gen { display: block; padding: 0.85em; border-radius: 0.8em; background: var(--rap); color: #fff; text-align: center; font-weight: 700; transition: transform 0.15s, background-color 0.15s; }
.rpf.is-pressed .rpf__gen { transform: scale(0.96); background: var(--rap-ink); }
.rpf__sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0.7em 1.1em 1.6em; background: #fff; border-radius: 1.2em 1.2em 0 0; box-shadow: 0 -10px 30px rgba(1, 46, 87, 0.18); transform: translateY(105%); transition: transform 0.5s var(--ease); }
.rpf.is-sent .rpf__sheet { transform: none; }
.rpf__grab { display: block; width: 2.6em; height: 0.3em; margin: 0 auto 0.9em; border-radius: 1em; background: #D2DAD7; }
.rpf__file { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.9em; }
.rpf__file b { display: block; font-size: 1em; }
.rpf__file small { display: block; font-size: 0.75em; color: #4A5D70; word-break: break-all; }
.rpf__pdficon { flex: none; display: grid; place-items: center; width: 2.6em; height: 3em; border-radius: 0.45em; background: #D93A33; color: #fff; font-size: 0.75em; font-weight: 800; }
.rpf__send { display: block; padding: 0.8em; border-radius: 0.8em; background: #25D366; color: #06331a; text-align: center; font-weight: 700; }

/* channel: film */
.ch--film { background: #000; }
.flc__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flc__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22cqw 6cqw 8cqw; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; font-size: 4.4cqw; display: flex; flex-direction: column; gap: 0.7em; align-items: flex-start; }
.flc__cap b { font-family: var(--f-display); font-size: 1.35em; line-height: 1.1; }
.flc__open { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.6em 1em 0.6em 0.8em; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 1em; }
.flc__open svg { width: 1.2em; height: 1.2em; fill: var(--film); }

/* =========================================================================
   GAMES
   ========================================================================= */
.games { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 112px); }

/* the pixel stage: Xebeka's creatures on a strip of grass, a player walking past */
.stage { position: relative; height: 176px; overflow: hidden; container-type: inline-size; }
.stage__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: url(xebeka/ground.png) 0 0 / 192px 32px repeat-x; image-rendering: pixelated; }
.stage__mobs { position: absolute; left: 50%; bottom: 0; z-index: 2; width: min(1160px, 100%); height: 100%; transform: translateX(-50%); display: flex; justify-content: space-around; align-items: flex-end; }
.mob { --i: 0; --hp: 1; position: relative; width: 104px; height: 128px; flex: none; border-radius: 12px; }
.mob:focus-visible { outline-offset: -2px; }
.mob__sprite { position: absolute; inset: 0; background: url(xebeka/creatures-sheet.png) calc(var(--i) * -104px) 0 / 728px 128px no-repeat; image-rendering: pixelated; transition: opacity 0.45s, transform 0.45s var(--ease); }
.mob:hover .mob__sprite { transform: translateY(-3px); }
.mob__hp { position: absolute; left: 50%; top: -2px; width: 52px; height: 7px; margin-left: -26px; border: 2px solid #1d1305; background: #3a2a10; opacity: 0; transition: opacity 0.2s; }
.mob__hp i { position: absolute; inset: 0; background: #5bd34a; transform-origin: left center; transform: scaleX(var(--hp)); transition: transform 0.3s, background-color 0.3s; }
.mob.is-hurt .mob__hp { opacity: 1; }
.mob.is-low .mob__hp i { background: #e4502f; }
.mob.is-hit .mob__sprite { animation: hit 0.3s steps(2) 1; }
@keyframes hit { 0%, 100% { filter: none; } 50% { filter: brightness(2.4) saturate(0); } }
.mob.is-down .mob__sprite { opacity: 0; transform: translateY(8px); }
.mob.is-down .mob__hp { opacity: 0; }
.fx { position: absolute; left: 50%; bottom: 34px; width: 96px; height: 96px; margin-left: -48px; pointer-events: none; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; z-index: 3; }
@keyframes fx { to { background-position: var(--end) 0; } }
.pop { position: absolute; left: 50%; top: -14px; z-index: 4; transform: translateX(-50%); pointer-events: none; font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1; color: #fff; white-space: nowrap; text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink); animation: pop 0.9s ease-out forwards; }
.pop--xp { color: var(--gold); font-size: 18px; animation-duration: 1.3s; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 6px) scale(0.8); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -38px) scale(1); } }
.stage__walker {
  --walk: 18s;
  position: absolute; left: 0; bottom: 6px; z-index: 3;
  width: 128px; height: 128px; pointer-events: none;
  background: url(xebeka/hero-walk.png) 0 0 / 1024px 128px no-repeat;
  image-rendering: pixelated;
  animation: stride 1s steps(8) infinite, walk var(--walk) linear infinite;
}
@keyframes walk { from { transform: translateX(-140px); } to { transform: translateX(calc(100cqw + 12px)); } }
.stage__hint { margin-top: 18px; font-size: 15px; color: var(--text-3); }

/* complex game: Xebeka */
.xb { margin-top: clamp(56px, 7vw, 88px); }
.xb__intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.xb__logo { width: 228px; height: 200px; filter: drop-shadow(0 6px 0 rgba(19, 40, 77, 0.12)); }
.xb__title { font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -0.03em; margin-bottom: 14px; }
.xb__copy > p:not(.kind) { color: var(--text-2); margin-bottom: 20px; max-width: 58ch; }
.xb__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 26px; font-size: 15px; color: var(--text-2); }

.journey {
  display: grid; grid-template-columns: repeat(3, 376px); gap: 20px;
  width: max-content; max-width: 100%; margin: clamp(40px, 5vw, 56px) auto 0;
  padding: 0 var(--pad) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  scrollbar-width: thin;
}
.journey__stop { scroll-snap-align: start; width: 376px; }
.journey__art { width: 376px; height: 256px; border-radius: 14px; overflow: hidden; background: var(--sea); }
.journey__art img { width: 400px; height: 256px; margin-left: -12px; }
.journey h4 { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 21px; letter-spacing: -0.01em; }
.journey__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--gold); color: #2B1B02; font-size: 15px; font-weight: 800; }
.journey p { font-size: 15.5px; color: var(--text-2); }
.xb__credits { margin-top: 22px; font-size: 13.5px; color: var(--text-3); }
.xb__credits a { color: var(--text-2); text-underline-offset: 3px; }

/* simple games */
.simple { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.simple__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.simple__head .kind { margin-bottom: 0; }
.simple__head p:not(.kind) { color: var(--text-2); }
.tile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.tile__img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #E9F5F3, #F6EFDF); overflow: hidden; }
.tile__img--dark { background: radial-gradient(120% 90% at 50% 0%, #1b2450, var(--ts-bg)); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.03); }
.tile__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile__body h3 { font-size: 24px; letter-spacing: -0.02em; }
.tile__body p { color: var(--text-2); font-size: 16px; }
.tile__body .link { margin-top: auto; padding-top: 6px; }

/* =========================================================================
   RAPORTON
   ========================================================================= */
.rap { padding: clamp(72px, 10vw, 128px) 0; background: var(--paper-2); }
.rap__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.rap__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--rap-navy); letter-spacing: -0.02em; }
.rap__brand img { width: 40px; height: 40px; }
.rap__brand b { color: var(--rap); }
.rap .sec-title { max-width: 14ch; }
.rap__text > p { color: var(--text-2); font-size: 18px; margin-bottom: 18px; }
.rap__facts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.rap__facts li { position: relative; padding-left: 28px; color: var(--text); font-size: 16px; }
.rap__facts li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 5px; background: var(--rap) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

.flow { position: relative; }
.flow__stage {
  position: relative;
  display: grid; grid-template-columns: 236px minmax(40px, 1fr) 300px minmax(40px, 1fr) 270px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 44px) 24px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
}
.flow__col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.flow__cap { font-size: 14.5px; font-weight: 600; color: var(--text-2); text-align: center; }
.flow__wire { position: relative; height: 2px; margin-bottom: 36px; background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 0); background-size: 10px 2px; }
.flow__wire i { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--rap); box-shadow: 0 0 0 5px rgba(3, 185, 137, 0.18); opacity: 0; }
.flow__wire.is-go i { animation: wire 0.7s var(--ease) forwards; }
@keyframes wire { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.mini { position: relative; width: 236px; aspect-ratio: 320 / 640; padding: 9px; border-radius: 34px; background: var(--ink); box-shadow: 0 24px 40px -18px rgba(19, 40, 77, 0.4); }
.mini::before { content: ""; position: absolute; left: 50%; top: 9px; z-index: 3; width: 34%; height: 16px; margin-left: -17%; border-radius: 0 0 12px 12px; background: var(--ink); }
.mini__screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; container-type: size; }

.pdf { position: relative; width: 300px; aspect-ratio: 1 / 1.3; padding: 22px 22px 18px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(19, 40, 77, 0.08), 0 22px 44px -18px rgba(19, 40, 77, 0.32); font-size: 10px; line-height: 1.4; color: #1E2A38; display: flex; flex-direction: column; gap: 11px; transform: rotate(-1.5deg); }
.pdf::after { content: ""; position: absolute; inset: 7px -7px -7px 7px; z-index: -1; border-radius: 6px; background: #fff; box-shadow: 0 10px 24px -14px rgba(19, 40, 77, 0.35); }
.pdf [data-step] { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.pdf [data-step].is-in { opacity: 1; transform: none; }
.pdf__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--rap); }
.pdf__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: #1E2A38; color: #fff; font-weight: 800; font-size: 12px; flex: none; }
.pdf__head b { display: block; font-size: 11.5px; }
.pdf__head small { display: block; font-size: 8.5px; color: #66727F; }
.pdf__title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pdf__title b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; max-width: 70%; line-height: 1.25; }
.pdf__title span { color: #66727F; font-weight: 600; }
.pdf__meta { display: grid; grid-template-columns: 38% 1fr; gap: 6px; padding: 6px 8px; background: #F4F7F6; border-radius: 4px; }
.pdf__meta span { color: #66727F; }
.pdf__table { border: 1px solid #DDE3E1; border-radius: 4px; overflow: hidden; }
.pdf__tr { display: flex; justify-content: space-between; padding: 5px 8px; border-top: 1px solid #E6EBE9; }
.pdf__tr:first-child { border-top: 0; }
.pdf__tr--h { background: #1E2A38; color: #fff; font-weight: 700; }
.pdf__tr b { color: var(--rap-ink); }
.pdf__photos > span { display: block; font-weight: 700; margin-bottom: 5px; }
.pdf__photos div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pdf__photos i { aspect-ratio: 4 / 3; border-radius: 3px; background: linear-gradient(160deg, #cfd8dc 0%, #b3c0c6 55%, #9aa9b0 100%); position: relative; overflow: hidden; }
.pdf__photos i::after { content: ""; position: absolute; left: 22%; right: 22%; top: 28%; bottom: 22%; border-radius: 3px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 -6px 0 rgba(30, 42, 56, 0.15); }
.pdf__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; color: #66727F; }
.pdf__sign { width: 46%; text-align: center; }
.pdf__sign svg { width: 100%; height: 30px; border-bottom: 1px solid #C9D2CF; }
.pdf__sign path { fill: none; stroke: #1B2A55; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pdf__foot.is-in .pdf__sign path { transition: stroke-dashoffset 0.8s ease-in-out 0.2s; stroke-dashoffset: 0; }
.pdf__sign small { font-size: 8px; }

.wa { width: 270px; border-radius: 22px; overflow: hidden; background: #EFE7DE; box-shadow: 0 1px 2px rgba(19, 40, 77, 0.08), 0 22px 44px -18px rgba(19, 40, 77, 0.32); font-size: 13px; }
.wa__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075E54; color: #fff; }
.wa__top b { display: block; font-size: 13.5px; line-height: 1.2; }
.wa__top small { display: block; font-size: 11px; opacity: 0.8; }
.wa__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #F2A60C; color: #3a2400; font-weight: 800; font-size: 12px; flex: none; }
.wa__chat { min-height: 250px; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; background-image: radial-gradient(rgba(7, 94, 84, 0.06) 1px, transparent 1.5px); background-size: 14px 14px; }
.wa__msg { max-width: 88%; padding: 7px 9px 5px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity 0.35s, transform 0.4s var(--ease); }
.wa__msg.is-in { opacity: 1; transform: none; }
.wa__msg--out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 3px; }
.wa__msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.wa__file { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 7px; background: rgba(0, 0, 0, 0.05); }
.wa__file b { display: block; font-size: 11.5px; word-break: break-all; line-height: 1.3; }
.wa__file small { display: block; font-size: 10.5px; color: #667781; }
.wa__pdf { display: grid; place-items: center; width: 30px; height: 36px; border-radius: 4px; background: #D93A33; color: #fff; font-size: 9px; font-weight: 800; flex: none; }
.wa__time { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; color: #667781; }
.wa__ticks { width: 17px; height: 12px; fill: none; stroke: #8696A0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.wa__msg.is-read .wa__ticks { stroke: #53BDEB; }
.wa__msg--in > span:first-child { display: block; font-size: 13px; line-height: 1.4; }

.flow__pause { margin: 12px 0 0 auto; display: flex; }

/* =========================================================================
   FILMS
   ========================================================================= */
.films { padding: clamp(72px, 10vw, 128px) 0; overflow: hidden; }
.films__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 96px); align-items: center; }
.films__copy .sec-lead { margin-bottom: 30px; }
.films__reels { display: flex; gap: clamp(16px, 2vw, 28px); align-items: flex-start; }
.reel { width: clamp(200px, 21vw, 270px); }
.reel:nth-child(2) { margin-top: clamp(40px, 6vw, 80px); }
.reel__media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0F1A2E; box-shadow: 0 30px 50px -24px rgba(19, 40, 77, 0.45); }
.reel__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.reel__media:hover video { transform: scale(1.03); }
.reel__play { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease); }
.reel__play svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--film); }
.reel__media:hover .reel__play { transform: scale(1.08); }
.reel figcaption { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 2px; }
.reel figcaption b { font-family: var(--f-display); font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.reel figcaption span { font-size: 14px; color: var(--text-3); }

/* =========================================================================
   OTHER APPS
   ========================================================================= */
.apps { padding: clamp(72px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.apps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.app { display: flex; gap: 18px; align-items: flex-start; }
.app__icon { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.app__icon b { font-family: var(--f-display); font-size: 26px; color: var(--ink); }
.app__icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.app__body h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.app__body p { font-size: 15.5px; color: var(--text-2); }
.app__tech { margin-top: 8px; font-size: 13.5px !important; color: var(--text-3) !important; }
.app__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.app__links a { font-size: 14.5px; font-weight: 700; color: var(--teal-2); text-underline-offset: 3px; }
.app__links a:hover { color: var(--ink); }

/* =========================================================================
   SERVICES & PROCESS
   ========================================================================= */
.services { padding: clamp(72px, 9vw, 112px) 0; background: var(--paper-2); }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.svc { padding-top: 20px; border-top: 3px solid var(--c, var(--ink)); }
.svc--gold { --c: var(--gold); }
.svc--teal { --c: var(--teal); }
.svc--ink { --c: var(--ink); }
.svc--red { --c: var(--film); }
.svc h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 8px; }
.svc p { font-size: 15.5px; color: var(--text-2); }
.process__title { margin: clamp(64px, 8vw, 96px) 0 28px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.process li { position: relative; counter-increment: step; padding-top: 56px; }
.process li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 2px solid var(--teal); color: var(--teal-2); font-family: var(--f-display); font-weight: 800; font-size: 17px; z-index: 1; }
.process li::after { content: ""; position: absolute; left: 48px; right: -12px; top: 19px; height: 2px; background: linear-gradient(90deg, rgba(13, 148, 136, 0.35), rgba(13, 148, 136, 0.08)); }
.process li:last-child::after { display: none; }
.process b { display: block; font-family: var(--f-display); font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.process p { font-size: 15px; color: var(--text-2); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { padding: clamp(72px, 10vw, 128px) 0; }
.contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__info .sec-lead { margin-bottom: 30px; }
.contact__mail { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 700; font-size: 18px; color: var(--ink); }
.contact__mail svg { width: 48px; height: 48px; padding: 13px; border-radius: 14px; background: var(--teal-bg); fill: none; stroke: var(--teal-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__mail:hover span { text-decoration: underline; text-underline-offset: 4px; }
.form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card); box-shadow: 0 24px 50px -30px rgba(19, 40, 77, 0.25); }
.form__group { margin-bottom: 18px; }
.form__group label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.form__input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--text); font: inherit; font-size: 15.5px; transition: border-color 0.2s, box-shadow 0.2s; }
.form__input::placeholder { color: var(--text-3); }
.form__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14); }
textarea.form__input { min-height: 140px; resize: vertical; }
.form__btns { display: flex; gap: 12px; }
.form__btns .btn { flex: 1; }
#form-status { margin-bottom: 18px; padding: 13px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; background: var(--paper-2); color: var(--text-2); border: 1px solid var(--line); }
#form-status.is-ok { background: var(--teal-bg); color: var(--teal-2); border-color: rgba(13, 148, 136, 0.25); }
#form-status.is-err { background: rgba(220, 38, 38, 0.07); color: #B91C1C; border-color: rgba(220, 38, 38, 0.2); }

/* =========================================================================
   FOOTER, COOKIE, PLAYER
   ========================================================================= */
.foot { padding: 48px 0 28px; border-top: 1px solid var(--line); }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand img { width: 38px; height: 38px; border-radius: 50%; }
.foot__brand strong { color: var(--ink); }
.foot__brand p { font-size: 13.5px; color: var(--text-2); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { font-size: 14.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__bottom { padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--text-3); }

.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 14px 0; background: var(--ink); color: rgba(255, 255, 255, 0.82); transform: translateY(100%); transition: transform 0.5s var(--ease); }
.cookie.is-on { transform: none; }
.cookie__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie p { font-size: 13.5px; line-height: 1.5; }
.cookie .btn { min-height: 42px; padding: 10px 24px; white-space: nowrap; }

.player { margin: auto; padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.player::backdrop { background: rgba(8, 14, 28, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player[open] { animation: player-in 0.35s var(--ease); }
@keyframes player-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.player__box { display: flex; flex-direction: column; gap: 12px; }
.player__video { height: min(78svh, 860px); width: auto; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.player__title { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.player__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; transition: background-color 0.2s; }
.player__close:hover { background: rgba(255, 255, 255, 0.22); }
.player__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

@media (max-width: 480px) {
  .stage__mobs .mob:nth-child(1) { display: none; }
}

/* =========================================================================
   FILMS PAGE (/filmy/)
   ========================================================================= */
.fhero { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(40px, 5vw, 56px); }
.fhero h1 { font-size: clamp(52px, 8vw, 104px); letter-spacing: -0.045em; font-stretch: 86%; line-height: 0.95; margin-bottom: 22px; }
.flist { padding-bottom: clamp(56px, 8vw, 96px); }
.flist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.film { display: grid; grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.film .reel__media { border-radius: 20px; }
.film__body h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; margin-bottom: 12px; }
.film__body > p { color: var(--text-2); font-size: 16px; margin-bottom: 18px; }
.film__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-bottom: 22px; font-size: 14.5px; }
.film__meta dt { color: var(--text-3); }
.film__meta dd { color: var(--ink); font-weight: 600; }
.fcta { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper-2); }
.fcta__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.fcta h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; font-stretch: 92%; margin-bottom: 12px; max-width: 16ch; }
.fcta p { color: var(--text-2); }

/* =========================================================================
   MOTION: user pause and reduced motion
   ========================================================================= */
.motion-paused .stage__walker,
.motion-paused .xbc__walker,
.motion-paused .rpf__input::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage__walker { animation: none; transform: translateX(42vw); }
  .ch { transition: none; }
  .btn, .tile__img img, .reel__media video { transition: none; }
  .motion-btn { display: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1180px) {
  .flow__stage { grid-template-columns: 210px minmax(24px, 1fr) 270px minmax(24px, 1fr) 240px; }
  .mini { width: 210px; }
  .pdf { width: 270px; }
  .wa { width: 240px; }
}

@media (max-width: 1020px) {
  .flow__stage { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); row-gap: 28px; }
  .flow__col--phone { display: none; }
  .flow__wire[data-wire="1"] { display: none; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process li { padding: 0 0 26px 60px; }
  .process li::after { left: 19px; right: auto; top: 44px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(rgba(13, 148, 136, 0.35), rgba(13, 148, 136, 0.08)); }
  .process li:last-child { padding-bottom: 0; }
  .apps__list { grid-template-columns: 1fr; max-width: 640px; }
  .films__in { grid-template-columns: 1fr; }
  .films__reels { justify-content: center; }
  .flist__grid { grid-template-columns: 1fr; max-width: 720px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .burger { display: flex; }
  .mnav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    padding: 6px var(--pad) 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(19, 40, 77, 0.28);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .mnav.is-open { transform: none; opacity: 1; visibility: visible; }
  .mnav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 17px; color: var(--text); }
  .mnav a:last-child { border-bottom: 0; }

  .hero__in { grid-template-columns: 1fr; grid-template-areas: "copy" "device" "remote"; }
  .hero__copy { align-self: auto; }
  .hero__device { margin-top: 48px; }
  .phone { width: min(290px, 74vw); }
  .remote { justify-content: center; margin-top: 28px; }
  .rap__head { grid-template-columns: 1fr; }
  .xb__intro { grid-template-columns: 1fr; }
  .xb__logo { width: 114px; height: 100px; }
  .simple { grid-template-columns: 1fr; }
  .contact__in { grid-template-columns: 1fr; }
  .fcta__in { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .stage__mobs .mob:nth-child(3), .stage__mobs .mob:nth-child(5), .stage__mobs .mob:nth-child(7) { display: none; }
  .btn { padding: 12px 18px; }
  .flow__stage { grid-template-columns: 1fr; padding: 24px 16px; }
  .flow__wire { display: none; }
  .pdf { width: min(300px, 100%); }
  .wa { width: min(290px, 100%); }
  .journey { grid-template-columns: repeat(3, 320px); }
  .journey__stop { width: 320px; }
  .journey__art { width: 320px; }
  .journey__art img { margin-left: -40px; }
  .film { grid-template-columns: 1fr; }
  .film .reel__media { max-width: 300px; }
  .reel { width: min(44vw, 220px); }
  .services__grid { grid-template-columns: 1fr; }
  .form__btns { flex-direction: column; }
  .cookie__in { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .player__video { height: auto; width: min(92vw, calc(78svh * 0.5625)); }
}
