/* OPE Pixel — Silkscreen (SIL OFL 1.1, assets/fonts/OPE-Pixel-OFL.txt) with the Czech letters it lacks
   (Č Ď Ě Ň Ř Ť Ů, č ď ě ň ř ť ů) drawn on its own pixel grid. Served from this site, not from Google. */
@font-face { font-family: "OPE Pixel"; src: url(assets/fonts/ope-pixel-400.woff2?v=1) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "OPE Pixel"; src: url(assets/fonts/ope-pixel-700.woff2?v=1) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ============ OPE studio · hero v0 ============ */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #ffffff;
  --mute: #8c8c8c;

  /* default palette: Kobalt (Cobalt Blue · Bright White · Deep Black) */
  --bg: #1f3bff;
  --fg: var(--paper);
  --accent: var(--ink);       /* "AI", buttons, window shadows */
  --on-accent: var(--paper);  /* text on accent */
  --line: rgb(255 255 255 / 0.09);
  --win-bg: var(--paper);
  --win-fg: var(--ink);
  --logo-filter: none;
  --glow-1: var(--accent-2, var(--accent));
  --glow-2: var(--accent);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --dw: 860;                /* headline weight */
  --dwdth: "wdth" 62;       /* headline width axis (Archivo only) */
  --bw: 400;                /* body weight */
  --ls-display: 0;          /* headline tracking */
  --ls-body: 0;             /* body tracking */
  --pixel: "OPE Pixel", ui-monospace, monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --nav-h: 72px;
  --px: 4px; /* one "pixel" for UI chrome */
  --robot-scale: 8;
}

/* Midnight Blue · Ice White · Sky Blue */
:root[data-palette="pulnoc"] {
  --bg: #0b1426;
  --fg: #eef3fb;
  --accent: #4da3ff;
  --on-accent: #0b1426;
  --line: rgb(238 243 251 / 0.07);
  --win-bg: #eef3fb;
  --win-fg: #0b1426;
}

/* Sky Blue · Cream · Deep Black (like the retro-windows reference) */
:root[data-palette="nebe"] {
  --bg: #1fa3e6;
  --fg: var(--ink);
  --accent: var(--paper);
  --on-accent: var(--ink);
  --line: rgb(10 10 10 / 0.08);
  --win-bg: #f4f1e8;
  --win-fg: var(--ink);
  --logo-filter: invert(1);
}

/* Deep Black · Bright White · Sakura Pink */
:root[data-palette="sakura"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --accent: #ffb7c5;
  --on-accent: var(--ink);
  --line: rgb(255 255 255 / 0.07);
  --win-bg: var(--paper);
  --win-fg: var(--ink);
}

/* --- Nebe variants --- */

/* Nebe sytě: deeper sky, white type, black accent */
:root[data-palette="nebe-syte"] {
  --bg: #0f86d8;
  --fg: var(--paper);
  --accent: var(--ink);
  --on-accent: var(--paper);
  --line: rgb(255 255 255 / 0.1);
  --win-bg: var(--paper);
  --win-fg: var(--ink);
}

/* Nebe pastel: pale sky, navy type, cobalt accent */
:root[data-palette="nebe-pastel"] {
  --bg: #a8d8f5;
  --fg: #0b1f3a;
  --accent: #1546c8;
  --on-accent: var(--paper);
  --line: rgb(11 31 58 / 0.08);
  --win-bg: var(--paper);
  --win-fg: #0b1f3a;
  --logo-filter: invert(1);
}

/* Nebe citron: sky, black type, lemon accent */
:root[data-palette="nebe-citron"] {
  --bg: #1fa3e6;
  --fg: var(--ink);
  --accent: #f2ff4d;
  --on-accent: var(--ink);
  --line: rgb(10 10 10 / 0.08);
  --win-bg: #f4f1e8;
  --win-fg: var(--ink);
  --logo-filter: invert(1);
}

/* --- orange combos --- */

/* Nebe oranž: sky, black type, orange accent */
:root[data-palette="nebe-oranz"] {
  --bg: #1fa3e6;
  --fg: var(--ink);
  --accent: #ff6b1a;
  --on-accent: var(--ink);
  --line: rgb(10 10 10 / 0.08);
  --win-bg: #f4f1e8;
  --win-fg: var(--ink);
  --logo-filter: invert(1);
}

/* Nebe citron + oranž: sky, neon-yellow "AI" and buttons, orange window shadows */
:root[data-palette="nebe-citron-oranz"] {
  --bg: #1fa3e6;
  --fg: var(--ink);
  --accent: #f2ff4d;
  --on-accent: var(--ink);
  --win-shadow: #ff6b1a;
  --line: rgb(10 10 10 / 0.08);
  --win-bg: #f4f1e8;
  --win-fg: var(--ink);
  --logo-filter: invert(1);
}

/* Oranž citron: orange ground, black type, neon-yellow accent */
:root[data-palette="oranz-citron"] {
  --bg: #ff6b1a;
  --fg: var(--ink);
  --accent: #f2ff4d;
  --on-accent: var(--ink);
  --line: rgb(10 10 10 / 0.09);
  --win-bg: #f4f1e8;
  --win-fg: var(--ink);
  --win-shadow: var(--ink);
  --logo-filter: invert(1);
}

/* Kobalt oranž: cobalt, white type, orange accent */
/* Černá · neonová žlutá · kobalt (výchozí) */
:root[data-palette="cerna-citron-kobalt"] {
  --bg: #0a0a0a;
  --fg: var(--paper);
  --accent: #f2ff4d;
  --accent-2: #1f3bff;
  --on-accent: var(--ink);
  --win-shadow: #1f3bff;
  --line: rgb(255 255 255 / 0.08);
  --win-bg: var(--paper);
  --win-fg: var(--ink);
  --glow-1: #1f3bff;
  --glow-2: #f2ff4d;
}

:root[data-palette="kobalt-oranz"] {
  --bg: #1f3bff;
  --fg: var(--paper);
  --accent: #ff7a1a;
  --on-accent: var(--ink);
  --line: rgb(255 255 255 / 0.09);
  --win-bg: var(--paper);
  --win-fg: var(--ink);
}

/* Nebe večer: dusk blue, cream type, sun-yellow accent */
:root[data-palette="nebe-vecer"] {
  --bg: #2b6fd6;
  --fg: #f4f1e8;
  --accent: #ffcc33;
  --on-accent: var(--ink);
  --line: rgb(244 241 232 / 0.1);
  --win-bg: #f4f1e8;
  --win-fg: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-weight: var(--bw);
  letter-spacing: var(--ls-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background-color .25s, box-shadow .25s;
}
.nav.is-scrolled {
  background: var(--bg);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--fg) 14%, transparent);
}

.nav__logo img {
  width: 128px;
  height: auto;
  filter: var(--logo-filter);
  translate: -2.734% 0; /* the SVG has 3.5 px of empty space on the left: align its ink with the headline */
}

.nav__links { display: flex; gap: 76px; }   /* three items, about 2 cm apart */
.nav__links a {
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--px);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s steps(5);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__end { justify-self: end; display: flex; align-items: center; gap: 18px; }

.lang { display: flex; font-family: var(--pixel); font-size: 12px; }
.lang button { padding: 6px 6px; opacity: .45; }
.lang button.is-on { opacity: 1; }

/* ---------- buttons ---------- */

.btn {
  --sh: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px;
  /* soft drifting gradient: neon yellow ↔ cream, with a white glow underneath */
  --b-cream: color-mix(in srgb, var(--accent) 35%, #fff);
  --b-glow: inset 0 0 0 1px rgb(255 255 255 / .45);
  background-color: var(--accent);
  background-image:
    radial-gradient(55% 90% at 62% 115%, rgb(255 255 255 / .75), transparent 70%),
    linear-gradient(105deg, var(--b-cream) 0%, var(--accent) 22%, var(--accent) 48%,
                    var(--b-cream) 68%, var(--accent) 86%, var(--b-cream) 100%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, 0% 0;
  animation: btn-flow 9s ease-in-out infinite alternate;
  color: var(--on-accent);
  font-weight: 700;
  font-size: 16px;
  font-variation-settings: "wdth" 100;
  box-shadow: var(--px) var(--px) 0 var(--sh), var(--b-glow);
  transition: transform .12s steps(2), box-shadow .12s steps(2);
}
@keyframes btn-flow {
  to { background-position: 0 0, 70% 0; }
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--px) + 2px) calc(var(--px) + 2px) 0 var(--sh), var(--b-glow); animation-duration: 3s; }
.btn:active { transform: translate(var(--px), var(--px)); box-shadow: 0 0 0 var(--sh), var(--b-glow); }

.btn--small { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--ghost { background: transparent; animation: none; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.btn--ghost:hover { transform: none; box-shadow: inset 0 0 0 2px var(--fg); background: var(--fg); color: var(--bg); }

.px-arrow { width: 14px; height: 14px; fill: currentColor; shape-rendering: crispEdges; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}

/* ---------- page background: soft light fields + a few stray pixels ----------
   Large, heavily blurred, low-opacity colour fields drift with scroll (main.js).
   Grain on top keeps the dark gradients from banding. */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-field__blob {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.bg-field__blob--1 { left: 45%; top: -35vmax; background: var(--glow-1); opacity: .24; }
.bg-field__blob--2 { left: -38vmax; top: 55%; width: 55vmax; height: 55vmax; background: var(--glow-1); opacity: .13; }
.bg-field__blob--3 { left: 60%; top: 70%; width: 40vmax; height: 40vmax; background: var(--glow-2); opacity: .08; }
.bg-field::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-field__px { position: absolute; inset: 0; }
.bg-field__px i {
  position: absolute;
  width: var(--s);
  height: var(--s);
  background: var(--c);
  will-change: transform;
}
main { position: relative; z-index: 1; }

.hero__title {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(var(--nav-h) + 3vh);
  margin: 0;
  z-index: 1;
  font-weight: var(--dw);
  font-variation-settings: var(--dwdth);
  font-size: clamp(56px, min(16vw, 24svh), 300px); /* "AI Development" is long: a little smaller leaves room for the windows */
  line-height: .8;
  letter-spacing: var(--ls-display); /* tight, but letters must not touch (r/u in "míru") */
}
.line { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; padding-bottom: .04em; } /* room for the háček */
.line__in { display: inline-block; white-space: nowrap; will-change: transform; }
.line--2 { padding-left: 0; }
/* optical alignment: Archivo "S" (wdth 62, wght 860) has a 0.0235 em left side bearing, "A" has none,
   so line 2 ("Studio.") moves left by exactly that much and both lines start on one vertical */
:root:not([data-font]) .line--2 .line__in { margin-left: -.0235em; }
.hero__title em { font-style: normal; color: var(--accent); }
/* pale accent on a light ground: highlighter block instead of coloured text */
:root[data-marker] .hero__title em,
:root[data-marker] .svcs__title em {
  color: var(--fg);
  background: var(--accent);
  padding-right: .06em;
  box-shadow: -.06em 0 0 var(--accent); /* highlight bleeds left without pushing the letters off the column */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* robot: stands in front of the type, always whole — feet and shadow stay above the hero's bottom edge */
.robot {
  position: absolute;
  z-index: 2;
  left: 83%;
  bottom: max(calc(2px * var(--robot-scale)), 3svh);
  height: calc(68px * var(--robot-scale)); /* whole-number scale keeps every pixel square */
  transform: translateX(-50%);
  cursor: pointer;
}
.robot__img {
  width: auto;
  max-width: none;
  height: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(calc(1px * var(--robot-scale)) calc(1px * var(--robot-scale)) 0 rgb(0 0 0 / .45));
  transition: transform .2s steps(3);
}
.robot:hover .robot__img { transform: translateY(calc(-1px * var(--robot-scale))); }

/* ---------- pixel windows ---------- */

.win {
  position: absolute;
  z-index: 3;
  width: 250px;
  background: var(--win-bg);
  color: var(--win-fg);
  border: var(--px) solid var(--win-fg);
  box-shadow: 8px 8px 0 var(--win-shadow, var(--accent));
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.35;
  touch-action: none;
  user-select: none;
}
.win.is-dragging { box-shadow: 14px 14px 0 var(--win-shadow, var(--accent)); }
/* placeWindows() shrinks the windows in steps when the hero is tight; the robot keeps its size */
.hero .win { scale: var(--win-scale, 1); transform-origin: 0 0; }

.win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  background: var(--win-fg);
  color: var(--win-bg);
  cursor: grab;
}
.win.is-dragging .win__bar { cursor: grabbing; }
.win__bar span { white-space: nowrap; }
.win__bar i {
  flex: 1;
  height: 10px;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 4px);
  opacity: .9;
}
.win__bar b { font-weight: 400; font-size: 16px; line-height: 1; }

.win__body { margin: 0; padding: 14px 14px 16px; }
.win__body--center { text-align: center; }
.win__label { margin: 0 0 10px; font-size: 14px; letter-spacing: .02em; }
.win__small { margin: 8px 0 0; font-size: 10px; opacity: .65; }

.meter {
  height: 22px;
  border: 3px solid currentColor;
  padding: 3px;
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 9px);
}

.pbtn {
  min-width: 96px;
  height: 34px;
  padding: 0 16px;
  border: 3px solid currentColor;
  font-family: var(--pixel);
  font-size: 13px;
  background: transparent;
}
.pbtn:hover { background: var(--win-fg); color: var(--win-bg); }

/* ESHOPMASTER.EXE: products drop in one by one */
.shop { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 5px; min-height: 98px; }
.shop li { display: flex; align-items: center; gap: 8px; font-size: 11px; white-space: nowrap; overflow: hidden; }
.shop li i { flex: none; width: 14px; height: 14px; border: 2px solid currentColor; background: var(--c, transparent); }
.shop li span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.shop li em { font-style: normal; font-size: 10px; opacity: .7; }
.shop li b { font-weight: 400; opacity: 0; }
.shop li.is-done b { opacity: 1; }
.shop li.is-new { animation: shop-in .24s steps(3); }
@keyframes shop-in { from { transform: translateY(-8px); } }

/* ADS.EXE: a pixel bar chart that keeps stepping up */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 58px; margin: 0 0 4px; border-bottom: 3px solid currentColor; }
.bars i { flex: 1; height: var(--h); background: currentColor; transition: height .3s steps(3); }
.bars i:last-child { background: var(--win-shadow, var(--accent)); }

.win__close {
  font: inherit; font-size: 16px; line-height: 1;
  color: inherit; background: none; border: 0; padding: 2px 2px;
  cursor: pointer;
}
.win__close:hover { background: var(--win-bg); color: var(--win-fg); }

.win--lead { left: 53%; top: 47vh; }              /* preferred spots form a loose, uneven triangle */
.win--shop { width: 268px; left: 49%; bottom: 4vh; }
.win--ads  { width: 210px; left: 71%; top: 17vh; }

.win.is-closed { visibility: hidden; }
.hero:not(.is-laid-out) .win { visibility: hidden; } /* until JS has found free spots */

/* ---------- foot ---------- */

.hero__foot {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  bottom: calc(clamp(28px, 6vh, 64px) + .5cm);
  width: min(513px, 40vw);
}
.hero__lede {
  margin: 0 0 calc(22px + .8cm); /* buttons sit 0.8 cm lower; the copy itself stays put */
  font-size: calc(19px * 1.35);
  line-height: 1.35;
  margin-left: var(--lede-optical, -.0073em); /* optical: Archivo's 'A' side bearing, so the ink lines up with the headline */
  text-wrap: pretty;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: none;
}

/* ---------- 02 · služby: a quiet list, one row per service, opens in place ---------- */

.svcs { padding: clamp(170px, 24vh, 290px) var(--gutter) clamp(90px, 14vh, 180px); }

.svcs__head { margin-bottom: clamp(36px, 5vh, 60px); }
.svcs__title {
  margin: 0;
  font-weight: var(--dw);
  font-variation-settings: var(--dwdth);
  letter-spacing: var(--ls-display);
  font-size: clamp(56px, min(10vw, 17svh), 190px);
  line-height: .86;
}
.svcs__title em { font-style: normal; color: var(--accent); }

/* ---------- services as a colour bento ----------
   At rest every tile is dark and its pixel icon grey; when you point at one (on touch screens:
   when it reaches the middle of the screen) it floods with its own colour, ink-black type and icon.
   Colour is the reward for attention, not decoration. Icons are 1-bit pixel art (main.js). */
:root {
  --t-cyan: #5ad8ff; --t-pink: #ff5fd2; --t-coral: #ff7a45; --t-lime: #f2ff4d; --t-mint: #3dffb0;
  --t-rest: #121214;
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
}
.tile {
  position: relative;
  /* six shared rows (object, name, line, text, uses, button): each tile sits on the bento's own row
     tracks, so a longer text in one tile moves that row in all tiles of the row: everything lines up */
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: 28px;
  background: var(--t-rest);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  scroll-margin-top: calc(var(--nav-h) + 24px);
  isolation: isolate;
  overflow: hidden;                              /* clips the drifting gradient layer */
  transition: color .5s var(--ease-tile) .1s, box-shadow .5s var(--ease-tile);
  --ease-tile: cubic-bezier(.23, 1, .32, 1);   /* strong ease-out: starts at once, settles softly */
}
/* the tile's colour is a layer that only fades in (opacity runs on the compositor: smooth even when the page is busy) */
.tile::before {
  /* lit colour as a slowly drifting gradient: two soft companion tones over the tile colour.
     The layer is larger than the tile and only its transform moves (compositor), the gradient never repaints */
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(42% 46% at 26% 30%, var(--tile-2), transparent 72%),
    radial-gradient(40% 44% at 76% 72%, var(--tile-3), transparent 72%),
    var(--tile);
  /* reveal: the colour spreads as a circle from where the cursor came in (--rx/--ry, set in main.js)
     and shrinks back to where it left; only the clip changes, the gradient is never repainted */
  clip-path: circle(0 at var(--rx, 50%) var(--ry, 50%));
  transition: clip-path .55s cubic-bezier(.4, 0, .2, 1);               /* draining back: calm, a touch quicker than the spread */
  animation: tile-drift 9s ease-in-out infinite alternate paused;
}
@keyframes tile-drift {
  from { transform: translate3d(-7%, -5%, 0) rotate(-6deg); }
  to   { transform: translate3d(7%, 6%, 0) rotate(8deg); }
}
.tile--leadflow     { grid-column: span 7; --tile-2: #2f8dff; --tile-3: #b4f4ff; }
.tile--webstudio    { grid-column: span 5; --tile-2: #ff3f86; --tile-3: #ffc2ec; }
.tile--ads          { grid-column: span 3; --tile-2: #ff4a33; --tile-3: #ffc08a; }
.tile--eshopmaster  { grid-column: span 5; --tile-2: #b9f53a; --tile-3: #fffbc4; }
.tile--automatizace { grid-column: span 4; --tile-2: #14c98e; --tile-3: #c4ffe6; }

/* the object sits in the top-right corner at its optical size (make-objects.py), the text starts right below it */
.tile__art { display: flex; justify-content: flex-end; align-items: flex-start; padding-bottom: 20px; --k: 1; }
.tile__body { display: contents; } /* its children take part in the shared rows */
/* the object in colour, with a muted copy on top; lighting up only fades the copy out and lifts the pair */
.obj { position: relative; display: block; transition: transform .5s var(--ease-tile); }
.tile:is(.is-hover, .is-lit, :focus-within) .obj { transition: transform .7s cubic-bezier(.34, 1.4, .5, 1); } /* hop, a gentle overshoot */
.tile__art img {
  display: block; max-width: none;
  width: calc(var(--w) * var(--k) * 1px); height: calc(var(--h) * var(--k) * 1px);
  image-rendering: pixelated;
}
.tile__art .obj__rest {
  position: absolute; inset: 0;
  filter: grayscale(1) brightness(.62);           /* static filter: drawn once, never animated */
  transition: opacity .5s var(--ease-tile) .06s;
}
.tile__name {
  margin: 0 0 6px;
  font-weight: var(--dw); font-variation-settings: var(--dwdth); letter-spacing: var(--ls-display);
  font-size: clamp(40px, 4.4vw, 72px); line-height: .9;
}
.tile__line { margin: 0 0 18px; font-size: 18px; color: color-mix(in srgb, currentColor 72%, transparent); transition: color .5s var(--ease-tile) .1s; }
.tile__text { margin: 0 0 18px; max-width: 40ch; font-size: 16px; line-height: 1.45; color: color-mix(in srgb, currentColor 72%, transparent); text-wrap: pretty; transition: color .5s var(--ease-tile) .1s; }
.tile__uses { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--pixel); font-size: 11px; text-transform: uppercase; }
.tile__uses li { display: flex; align-items: center; gap: 8px; }
.tile__uses li::before { content: ""; width: 6px; height: 6px; background: var(--tile); transition: background-color .5s var(--ease-tile) .1s; }
.tile__cta {
  align-self: end; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--fg); color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background-color .5s var(--ease-tile) .1s, color .5s var(--ease-tile) .1s, transform .12s ease-out;
}
.tile__cta:active { transform: scale(.97); }
.tile__cta:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.px-arrow { width: 12px; height: 12px; fill: currentColor; shape-rendering: crispEdges; }

/* lit: the tile takes its colour */
.tile.is-hover, .tile.is-lit, .tile:focus-within { color: var(--ink); box-shadow: inset 0 0 0 1px transparent; }
.tile:is(.is-hover, .is-lit, :focus-within)::before {
  /* --rr = distance to the tile's farthest corner (main.js): the circle stops exactly as the last corner fills,
     so the whole easing curve is visible, soft landing included (a larger radius ended the motion off-tile, abruptly) */
  clip-path: circle(var(--rr, 120%) at var(--rx, 50%) var(--ry, 50%)); animation-play-state: running;   /* drifts only while lit */
  transition: clip-path .72s cubic-bezier(.25, .1, .1, 1);              /* spreading: quick off the mark, long silky glide */
}
.tile:is(.is-hover, .is-lit, :focus-within) .obj { transform: translateY(-8px) rotate(-3deg); } /* lit: hops up, a slight tilt… */
.tile:is(.is-hover, .is-lit, :focus-within) .obj__rest { opacity: 0; }                     /* …in full colour */
.tile:is(.is-hover, .is-lit, :focus-within) .tile__uses li::before { background: var(--ink); }
.tile:is(.is-hover, .is-lit, :focus-within) :is(.tile__line, .tile__text) { color: #1d1d1f; } /* solid ink: readable on every tile colour */
.tile:is(.is-hover, .is-lit, :focus-within) .tile__cta { background: var(--ink); color: var(--tile); }

@media (max-width: 1100px) {
  .tile--leadflow, .tile--webstudio { grid-column: span 6; }
  .tile--ads, .tile--eshopmaster { grid-column: span 6; }
  .tile--automatizace { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; }
  .tile { min-height: 0; border-radius: 22px; }
  .tile__art { --k: .78; padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile *, .tile::before { transition: none !important; }
  .tile::before { animation: none; }
}

/* ---------- LOADING window (every visit, until the page is ready) ---------- */

body.is-loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .35s ease .25s, visibility 0s linear .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__win {
  --s: 2; /* robot sprite scale */
  width: min(560px, calc(100vw - 32px));
  background: var(--paper);
  color: var(--ink);
  border: var(--px) solid var(--paper);
  box-shadow: 10px 10px 0 var(--accent-2, var(--accent));
  font-family: var(--pixel);
  animation: loader-in .32s steps(4) both;
  transform-origin: 50% 50%;
}
.loader.is-done .loader__win { animation: loader-out .24s steps(3) forwards; }
@keyframes loader-in { from { transform: scale(0); } }
@keyframes loader-out { to { transform: scaleY(0); } }

.loader__bar {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 8px;
  background: var(--ink); color: var(--paper);
  font-size: 12px;
}
.loader__bar i { flex: 1; height: 10px; background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 4px); }
.loader__bar b { font-weight: 400; font-size: 16px; line-height: 1; }

.loader__scene { border-bottom: var(--px) solid var(--ink); background: #e9e9ea; }
.loader__photo { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; }

.loader__body { padding: 14px 16px 16px; }
.loader__label { margin: 0 0 10px; font-size: 16px; letter-spacing: .04em; }
.loader__dots { display: inline-block; width: 3ch; overflow: hidden; vertical-align: bottom; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { from { width: 0; } to { width: 4ch; } }
.loader__win .meter { height: 26px; }
.loader__win .meter span { width: 0; }
.loader__pct { margin: 8px 0 0; font-size: 11px; opacity: .65; }

@media (prefers-reduced-motion: reduce) {
  .loader__win, .loader.is-done .loader__win, .loader__dots { animation: none; }
}

/* ---------- tweaks ---------- */

.tweaks-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  font-family: var(--pixel);
  font-size: 11px;
  padding: 8px 10px;
  background: var(--ink-2);
  color: var(--paper);
  border: 2px solid rgb(255 255 255 / .2);
}
.tweaks {
  position: fixed;
  right: 16px;
  bottom: 56px;
  z-index: 60;
  width: 230px;
  padding: 14px;
  background: var(--ink-2);
  color: var(--paper);
  border: 2px solid rgb(255 255 255 / .2);
  font-size: 13px;
}
.tweaks__title { margin: 0 0 10px; font-family: var(--pixel); font-size: 12px; }
.tweaks__label { margin: 12px 0 6px; opacity: .6; font-size: 12px; }
.tweaks__link { text-decoration: underline; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 30px; height: 30px; background: var(--c); border: 2px solid transparent; }
.swatches button.is-on { border-color: var(--paper); }
.seg { display: flex; gap: 4px; }
.seg button { flex: 1; padding: 6px 0; font-size: 12px; background: rgb(255 255 255 / .08); }
.seg button.is-on { background: var(--paper); color: var(--ink); }
.seg--wrap { flex-wrap: wrap; }
.seg--wrap button { flex: 1 1 45%; }

/* ---------- responsive ---------- */

@media (min-width: 1700px) and (min-height: 1000px) {
  :root { --robot-scale: 10; }
}

@media (max-height: 760px) {
  :root { --robot-scale: 7; }
}

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .win--ads { display: none; }
}


@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__logo img { width: 104px; }
  .lang { display: none; }
  .hero__title { font-size: min(26vw, 22svh); top: calc(var(--nav-h) + 3svh); }
  .line--2 { padding-left: 0; }
  /* robot stands whole inside the screen, right of the copy: its right edge on the gutter */
  .robot { left: calc(100% - var(--gutter) - 21.5px * var(--robot-scale)); }
  .hero__foot { width: calc(100% - 2 * var(--gutter) - 43px * var(--robot-scale) - 12px); bottom: 24px; }
  .hero__lede { font-size: 16px; margin-bottom: 16px; }
  .btn { height: 48px; }
  .btn--ghost { display: none; }
  .win { font-size: 11px; }
  /* windows sit right under the 2-line headline (2 × .8 × 26vw ≈ 42vw) */
  .win--lead { width: 210px; top: calc(var(--nav-h) + 3svh + 48vw); right: auto; left: var(--gutter); }
  .win--shop { width: 200px; left: auto; right: var(--gutter); top: calc(var(--nav-h) + 3svh + 48vw + 116px); }
  .tweaks-toggle { right: 8px; bottom: 8px; }
}

@media (max-width: 760px) and (max-height: 760px) {
  .win--shop, .win--lead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* hero off screen: CSS motion inside it pauses too (main.js stops the timers and the parallax loop) */
.hero.is-offscreen .btn, .hero.is-offscreen .win * { animation-play-state: paused !important; }

/* ---------- KLIENTI: one belt of client logos ----------
   Logos are white, transparent and lightly pixelated (assets/clients/make-logos.py):
   shown 1:1, one logo pixel = 1 CSS px — a fine pixel grain that keeps them readable. */
.clients { padding: clamp(56px, 9vh, 110px) 0 clamp(72px, 11vh, 130px); } /* a banner between chapters, not a chapter */
.clients__title {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .32em;
  margin: 0 var(--gutter) clamp(24px, 4vh, 40px);
  font-weight: 400;
}
.clients__title em {
  font-style: normal; color: var(--accent);
  font-weight: var(--dw); font-variation-settings: var(--dwdth); letter-spacing: var(--ls-display);
  font-size: clamp(56px, 6.4vw, 104px); line-height: .86;
}
.clients__title span { font-size: clamp(20px, 1.9vw, 30px); letter-spacing: var(--ls-body); }

.belt {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.belt__track {
  display: flex; width: max-content;
  list-style: none; margin: 0; padding: 0;
  animation: belt var(--belt-time, 40s) linear infinite;
}
.belt.is-off .belt__track { animation-play-state: paused; } /* runs all the time; only stops while off screen, where nobody sees it */
@keyframes belt { to { transform: translateX(-50%); } }  /* the track holds the set twice */
.belt__item {
  /* every logo is exactly the same height (make-logos.py, HEIGHT_PX), centred:
     first pixels share one line, last pixels share another */
  --belt-h: clamp(130px, 17vh, 170px);
  display: grid; place-items: center;
  height: var(--belt-h);
  padding: 0 clamp(48px, 6vw, 96px);
  border-right: 1px solid var(--line);
}
.belt__item img {
  display: block; width: auto; max-width: none;
  height: auto;
  image-rendering: pixelated;
  opacity: .62;
  transition: opacity .15s steps(2);
}
.belt__item:hover img { opacity: 1; }

@media (max-width: 760px) {
  .belt__item { --belt-h: 130px; padding-inline: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .belt { -webkit-mask: none; mask: none; }
  .belt__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .belt__item[aria-hidden] { display: none; }
}


/* =====================================================================================
   HERO v2 — reference: a big wordmark on a bright field, characters floating around it.
   Here: the OPE logo in real 3D depth on a live gradient from the site palette,
   four OPE robots in zero gravity. Everything that moves is transform/opacity only.
   ===================================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
  /* colour tokens: defaults = the original lime field; variants below recombine the same palette */
  --h-bg: #f2ff4d;
  --h-ink: #0a0a0a;
  --h-b1: #3dffb0; --h-o1: .85;
  --h-b2: #5ad8ff; --h-o2: .75;
  --h-b3: #d6ff2e; --h-o3: .9;
  --h-b4: #1f3bff; --h-o4: .38;
  --h-face: linear-gradient(180deg, #24242b 0%, #0a0a0a 55%, #000 100%);
  --h-side: #1f3bff; --h-side-deep: #050a40;
  --h-glow: #ffffff; --h-glow-o: .5;
  --h-em: #1f3bff;
  --h-grain-blend: multiply; --h-grain-o: .18;
  background: var(--h-bg);
  color: var(--h-ink);
  --ink: var(--h-ink);
}

/* live gradient */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__blob { position: absolute; will-change: transform; }
.hero__blob i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  filter: blur(70px);
  animation: blob-drift var(--t, 22s) ease-in-out infinite alternate;
}
.hero__blob--1 { left: -12%; top: -20%; width: 62vmax; height: 62vmax; }
.hero__blob--1 i { background: var(--h-b1); opacity: var(--h-o1); --t: 24s; }
.hero__blob--2 { right: -18%; top: -10%; width: 52vmax; height: 52vmax; }
.hero__blob--2 i { background: var(--h-b2); opacity: var(--h-o2); --t: 28s; animation-delay: -6s; }
.hero__blob--3 { left: 22%; bottom: -34%; width: 58vmax; height: 58vmax; }
.hero__blob--3 i { background: var(--h-b3); opacity: var(--h-o3); --t: 20s; animation-delay: -11s; }
.hero__blob--4 { right: 4%; bottom: -26%; width: 34vmax; height: 34vmax; }
.hero__blob--4 i { background: var(--h-b4); opacity: var(--h-o4); --t: 26s; animation-delay: -3s; }
@keyframes blob-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6%, 8%, 0) scale(1.08); }
  100% { transform: translate3d(-7%, 3%, 0) scale(.95); }
}
.hero__bg::after {                              /* film grain keeps the soft fields from banding */
  content: ""; position: absolute; inset: 0; opacity: var(--h-grain-o); mix-blend-mode: var(--h-grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero.is-offscreen .hero__blob i { animation-play-state: paused; }
.hero__globe {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: min(52vw, 620px); height: auto;
  color: color-mix(in srgb, var(--h-ink) 16%, transparent);
}

/* frame: corner marks and side ticks, like a viewfinder */
.hero__frame { position: absolute; inset: calc(var(--nav-h) + 12px) var(--gutter) 28px; z-index: 1; pointer-events: none; }
.hero__frame .c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); }
.hero__frame .tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.hero__frame .tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.hero__frame .bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.hero__frame .br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.hero__frame .t { position: absolute; top: 50%; width: 22px; height: 2px; background: var(--ink); }
.hero__frame .t::after { content: ""; position: absolute; left: 10px; top: -10px; width: 2px; height: 22px; background: var(--ink); }
.hero__frame .l { left: 0; } .hero__frame .r { right: 0; }

.hero__kicker, .hero__sign {
  position: absolute; z-index: 2; margin: 0;
  left: calc(var(--gutter) + 40px);
  font-weight: 800; font-variation-settings: "wdth" 100; letter-spacing: .01em; text-transform: uppercase;
}
.hero__kicker { top: calc(var(--nav-h) + 40px); font-size: clamp(16px, 1.6vw, 24px); }
.hero__sign { bottom: 52px; font-size: 12px; font-weight: 600; }
.hero__chev {
  position: absolute; z-index: 2; margin: 0; right: calc(var(--gutter) + 40px); bottom: 50px;
  display: flex; align-items: center; gap: 1px; font-weight: 700; font-size: 18px; line-height: 1;
}
.hero__chev svg { width: 9px; height: 16px; fill: currentColor; shape-rendering: crispEdges; }

/* the stage: logo + tagline, centred */
.hero__stage {
  position: absolute; z-index: 2; inset: 0;
  display: grid; place-content: center; justify-items: center;
  padding-top: var(--nav-h);
  pointer-events: none;
}
.hero__logo { margin: 0; perspective: 1400px; }
.logo3d {
  --w: min(74vw, 1080px);
  position: relative; display: block;
  width: var(--w); aspect-ratio: 4566 / 1138;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.logo3d i {
  position: absolute; inset: 0;
  -webkit-mask: url(assets/logo/ope-full-white.svg) center / contain no-repeat;
          mask: url(assets/logo/ope-full-white.svg) center / contain no-repeat;
}
.logo3d__face {
  transform: translateZ(0);
  background: var(--h-face);
}
/* depth: the same shape repeated backwards in cobalt, darker the deeper it sits */
.logo3d__side {
  transform: translateZ(calc(var(--i) * -2.2px));
  background: color-mix(in srgb, var(--h-side) calc(100% - var(--i) * 6%), var(--h-side-deep));
}
/* a soft halo behind everything, like light through glass. The blur sits on the wrapper and the
   logo shape on the child, so the shape is blurred (a blur on the masked element itself is cut off
   again by the mask and shows as a sharp white copy peeking out at the edges) */
.logo3d i.logo3d__glow {
  -webkit-mask: none; mask: none;
  transform: translateZ(-30px) scale(1.04);
  filter: blur(26px);
  opacity: var(--h-glow-o);
}
.logo3d__glow b {
  position: absolute; inset: 0; display: block;
  background: var(--h-glow);
  -webkit-mask: url(assets/logo/ope-full-white.svg) center / contain no-repeat;
          mask: url(assets/logo/ope-full-white.svg) center / contain no-repeat;
}
.hero__tag {
  margin: clamp(18px, 3vh, 34px) 0 0;
  font-weight: var(--dw); font-variation-settings: var(--dwdth); letter-spacing: var(--ls-display);
  font-size: clamp(28px, 4.2vw, 64px); line-height: .9;
  text-align: center;
}
.hero__tag em { font-style: normal; color: var(--h-em); }

/* robots */
.hero__bots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }   /* the layer lets clicks through to the robot; only the objects themselves catch the pointer */
.hero__bots .hero__bot { pointer-events: auto; }
.hero__bot {
  position: absolute; left: 0; top: 0;
  height: calc(104px * var(--bot-k, .92)); width: auto; max-width: none;   /* the objects are all 104 px tall at 1x */
  image-rendering: pixelated;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 18px 18px rgb(10 10 10 / .22));
  will-change: transform;
}
.hero__bot.is-dragging { cursor: grabbing; }
.hero:not(.is-laid-out) .hero__bot { visibility: hidden; }

.hero .scroll-cue { display: block; left: 50%; translate: -50% 0; bottom: 44px; color: var(--ink); z-index: 4; }
.hero .scroll-cue svg { display: block; width: 21px; height: 21px; fill: currentColor; shape-rendering: crispEdges; }

/* nav over the bright hero: ink type, logo and button flipped for contrast */
html:not([data-hero^="d"]) .nav:not(.is-scrolled) { color: #0a0a0a; }
html:not([data-hero^="d"]) .nav:not(.is-scrolled) .nav__logo img { filter: invert(1); }
html:not([data-hero^="d"]) .nav:not(.is-scrolled) .btn { background: #0a0a0a; color: #f2ff4d; box-shadow: 4px 4px 0 #1f3bff; animation: none; }

@media (max-width: 760px) {
  .logo3d { --w: 86vw; }
  .hero__bot { --bot-k: .62; }
  .hero__kicker { left: calc(var(--gutter) + 14px); font-size: 14px; }
  .hero__sign, .hero__chev { display: none; }
  .hero__globe { width: 120vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__blob i { animation: none; }
}

/* the robot from the waist up: its lower body sits below the hero's bottom edge (the hero clips it) */
.hero__robot {
  --rs: 6;                                       /* whole-number scale: every sprite pixel square */
  position: absolute; z-index: 2;
  right: 8%;
  bottom: calc(-16px * var(--rs));               /* sprite rows 52–67 (hips and legs) stay below the edge */
  padding: 0; border: 0; background: none; cursor: pointer;
}
.hero__robot .robot__img {
  display: block; width: calc(43px * var(--rs)); height: calc(68px * var(--rs));
  image-rendering: pixelated;
  position: relative;
  filter: none;                                  /* no filter layer: it showed as a rectangle against the gradient */
}
/* soft shadow behind the head and shoulders: a radial gradient fades to nothing, so no edge ever shows (a CSS filter left a rectangle) */
.hero__robot::before {
  content: ""; position: absolute; pointer-events: none;
  left: -30%; right: -30%; top: -12%; bottom: 10%;
  background: radial-gradient(closest-side, rgb(10 10 10 / .16), rgb(10 10 10 / .07) 55%, rgb(10 10 10 / 0));
}
.hero__robot:hover .robot__img { translate: 0 calc(var(--rs) * -1px); }
.hero__robot:focus-visible { outline: 3px solid #0a0a0a; outline-offset: 4px; }
@media (max-width: 760px) { .hero__robot { --rs: 3; right: 4%; } }

/* pixel arrow cursor everywhere (12×19 sprite, 2× → 24×38 px, the 4× file for Retina); hotspot = the tip.
   It replaces the hand / grab cursors too, so the arrow stays one consistent pixel object; text fields keep their caret */
html, body, * {
  cursor: url(assets/cursor/arrow.png) 0 0, auto !important;
  cursor: -webkit-image-set(url(assets/cursor/arrow.png) 1x, url(assets/cursor/arrow@2x.png) 2x) 0 0, auto !important;
  cursor: image-set(url(assets/cursor/arrow.png) 1x, url(assets/cursor/arrow@2x.png) 2x) 0 0, auto !important;
}
input:not([type=button], [type=submit], [type=checkbox], [type=radio]), textarea, [contenteditable] { cursor: text !important; }

/* =====================================================================================
   HERO colour variants (pick with ?hero=…). Same palette only: ink #0a0a0a, cobalt #1f3bff,
   cyan #5ad8ff, mint #3dffb0, pink #ff5fd2, coral #ff7a45, lime #f2ff4d (accent only, never the field).
   l* = light field, d* = dark field.
   ===================================================================================== */
/* L1 · Papír a nebe — near-white, cool: cyan and cobalt mist, a breath of mint */
html[data-hero="l1"] .hero {
  --h-bg: #f5f7fb;
  --h-b1: #5ad8ff; --h-o1: .45;
  --h-b2: #1f3bff; --h-o2: .16;
  --h-b3: #3dffb0; --h-o3: .3;
  --h-b4: #5ad8ff; --h-o4: .35;
  --h-glow: #ffffff; --h-glow-o: .7;
}
/* L2 · Ledová máta — pale mint-white, mint and cyan, lime only as a faint warm corner */
html[data-hero="l2"] .hero {
  --h-bg: #e8fbf2;
  --h-b1: #3dffb0; --h-o1: .62;
  --h-b2: #5ad8ff; --h-o2: .32;
  --h-b3: #f2ff4d; --h-o3: .2;
  --h-b4: #1f3bff; --h-o4: .14;
  --h-glow: #ffffff; --h-glow-o: .7;
}
/* L3 · Teplý papír — warm off-white, coral and pink haze balanced by cyan */
html[data-hero="l3"] .hero {
  --h-bg: #f8f5f0;
  --h-b1: #ff7a45; --h-o1: .26;
  --h-b2: #5ad8ff; --h-o2: .35;
  --h-b3: #ff5fd2; --h-o3: .2;
  --h-b4: #1f3bff; --h-o4: .14;
  --h-glow: #ffffff; --h-glow-o: .7;
}
/* shared dark-field settings: white logo face with cobalt depth, light type, grain as soft light */
html[data-hero^="d"] .hero {
  --h-ink: #f5f6fa;
  --h-face: linear-gradient(180deg, #ffffff 0%, #eceef6 55%, #cfd4e8 100%);
  --h-grain-blend: overlay; --h-grain-o: .22;
  --h-em: #5ad8ff;
}
html[data-hero^="d"] .hero__robot::before { background: radial-gradient(closest-side, rgb(90 216 255 / .3), rgb(90 216 255 / .12) 55%, rgb(90 216 255 / 0)); }   /* a cyan halo lifts the dark suit off the dark field */
/* D1 · Půlnoc — ink black, a deep cobalt glow with cyan and a hint of mint */
html[data-hero="d1"] .hero {
  --h-bg: #0a0a0a;
  --h-b1: #1f3bff; --h-o1: .3;
  --h-b2: #5ad8ff; --h-o2: .12;
  --h-b3: #1f3bff; --h-o3: .18;
  --h-b4: #3dffb0; --h-o4: .08;
  --h-glow: #1f3bff; --h-glow-o: .8;
}
/* D2 · Hluboký kobalt — the field itself is night blue; cyan and mint light, lime the faintest spark */
html[data-hero="d2"] .hero {
  --h-bg: #070c3a;
  --h-b1: #1f3bff; --h-o1: .7;
  --h-b2: #5ad8ff; --h-o2: .3;
  --h-b3: #3dffb0; --h-o3: .16;
  --h-b4: #f2ff4d; --h-o4: .08;
  --h-side-deep: #02041c;
  --h-glow: #5ad8ff; --h-glow-o: .55;
  --h-em: #f2ff4d;
}
/* D3 · Polární záře — ink black with soft aurora: mint, cyan, pink, a touch of coral */
html[data-hero="d3"] .hero {
  --h-bg: #0a0a0a;
  --h-b1: #3dffb0; --h-o1: .22;
  --h-b2: #5ad8ff; --h-o2: .2;
  --h-b3: #ff5fd2; --h-o3: .26;
  --h-b4: #1f3bff; --h-o4: .45;
  --h-glow: #5ad8ff; --h-glow-o: .45;
  --h-em: #3dffb0;
  --h-grain-o: .12;
}

/* =====================================================================================
   02 · KDO JSME — light field (hero variant L1 "Papír a nebe": near-white, cool blue mist),
   a big condensed title with a short lede on the right, then three poster panels side by side
   (reference: a strip of tall rectangles, each its own colour). Panels: cobalt / ink / cyan.
   Pictures are the site's own pixel sprites, scaled by whole numbers only.
   ===================================================================================== */
.about {
  position: relative; isolation: isolate;
  padding: clamp(110px, 16vh, 190px) var(--gutter) clamp(90px, 13vh, 160px);
  background: #f5f7fb;
  color: #0a0a0a;
  overflow: clip;
}
.about::before {                                  /* the cool mist: two still, very soft fields */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 60% at 8% 0%, rgb(90 216 255 / .32), transparent 70%),
    radial-gradient(40% 55% at 96% 40%, rgb(31 59 255 / .10), transparent 70%),
    radial-gradient(50% 50% at 60% 100%, rgb(61 255 176 / .14), transparent 70%);
}
.about__head {
  display: grid; grid-template-columns: 1fr minmax(0, 34ch); align-items: end; gap: 24px 48px;
  margin-bottom: clamp(36px, 5vh, 64px);
}
.about__title {
  margin: 0;
  font-weight: var(--dw); font-variation-settings: var(--dwdth); letter-spacing: var(--ls-display);
  font-size: clamp(56px, min(10vw, 17svh), 190px); line-height: .86;
}
.about__lede { margin: 0 0 .4em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; color: #2c2f38; text-wrap: pretty; }

/* the strip: three tall panels, no gaps, rounded only on the outside */
.about__panels {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr auto auto;          /* label · picture · title · text, shared by all three panels */
  border-radius: 22px; overflow: hidden;
}
.panel {
  --s: 5;                                         /* sprite scale (whole numbers only) */
  position: relative;
  display: grid; grid-row: span 4; grid-template-rows: subgrid;   /* titles and texts line up across panels */
  row-gap: 0;
  min-height: clamp(520px, 72svh, 700px);
  padding: clamp(20px, 2vw, 28px);
}
.panel--cobalt { background: #1f3bff; color: #f5f6fa; }
.panel--ink    { background: #0a0a0a; color: #f5f6fa; }
.panel--cyan   { background: #5ad8ff; color: #0a0a0a; }
.panel__label {
  margin: 0;
  font-family: var(--pixel); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  opacity: .8;
}
.panel__art { display: grid; place-items: center; min-height: 0; padding: 24px 0; }
.panel__art img { image-rendering: pixelated; max-width: none; }
.panel__robot { width: calc(43px * var(--s)); height: calc(68px * var(--s)); }
.panel__flyer { width: calc(82px * (var(--s) - 1)); height: calc(52px * (var(--s) - 1)); }
/* a loose pile of everyday work: cart, envelope, chart */
.panel__art--pile { position: relative; }
.pile { position: absolute; height: 104px; width: auto; filter: drop-shadow(0 14px 14px rgb(0 0 0 / .35)); }
.pile--1 { translate: -46% -58%; rotate: -8deg; }
.pile--2 { translate: 22% -8%; rotate: 6deg; }
.pile--3 { translate: -30% 52%; rotate: -3deg; }
.panel__art--pile .pile { left: 50%; top: 50%; margin: -52px 0 0 -70px; }
.panel__title {
  margin: 0;
  font-weight: var(--dw); font-variation-settings: var(--dwdth); letter-spacing: var(--ls-display);
  font-size: clamp(34px, 3.3vw, 54px); line-height: 1.02;   /* room for descenders above the next line's accents (y / ř, p / á) */
  text-wrap: balance;
}
.panel__text { margin: 14px 0 0; max-width: 34ch; font-size: 16px; line-height: 1.45; opacity: .82; text-wrap: pretty; }

@media (max-width: 960px) {
  .about__head { grid-template-columns: 1fr; }
  .about__panels { grid-template-columns: 1fr; grid-template-rows: none; }
  .panel { min-height: 0; --s: 4; grid-row: auto; grid-template-rows: auto auto auto auto; }
  .panel__art { padding: 32px 0; }
  .panel__art--pile { min-height: 300px; }
}

/* 01 · the office scene: five robots at work, heads bob in two-frame pixel steps, eyes blink,
   the wall clock shows the real time in Czechia (main.js). Drawn in the picture's own pixel units. */
.panel__art--scene { padding: 28px 0; }
.office { display: block; width: 100%; height: auto; border-radius: 12px; }   /* same 4:3 card as the clerk in 02 */
.office__head { animation: office-bob calc(1.5s + var(--i) * .23s) infinite; animation-delay: calc(var(--i) * -.71s); }
@keyframes office-bob {
  0%   { transform: translateY(0); animation-timing-function: steps(1, end); }
  50%  { transform: translateY(6px); animation-timing-function: steps(1, end); }   /* one pixel of the art */
  100% { transform: translateY(0); }
}
.office__blink { opacity: 0; }
.office__head.is-blinking .office__blink { opacity: 1; }
.office.is-paused * { animation-play-state: paused; }
.office__ticks line { stroke: #141414; stroke-width: 6; }
.office__hand { stroke: #141414; stroke-linecap: square; transform-box: view-box; transform-origin: 1411.5px 128.6px; }
.office__hand--h { stroke-width: 8; }
.office__hand--m { stroke-width: 5.5; }
.office__hand--s { stroke-width: 2.5; stroke: #1f3bff; }
.office__pin { fill: #e2c418; stroke: #141414; stroke-width: 2.5; }
@media (prefers-reduced-motion: reduce) { .office__head { animation: none; } }

/* 02 · the overworked clerk: steam huffs out on both sides of his head in turn, the scribble of rage
   above him churns, the anger mark on his forehead throbs. Units are the picture's own pixels. */
.desk { display: block; width: 100%; height: auto; border-radius: 12px; }
.desk__puff, .desk__scribble, .desk__vein { transform-box: fill-box; will-change: transform, opacity; }
.desk__puff { animation: desk-huff 2.4s cubic-bezier(.22,.8,.3,1) infinite; opacity: 0; }
.desk__puff--l { --dx0: 70px; --dx1: -30px; transform-origin: 100% 100%; }
.desk__puff--r { --dx0: -70px; --dx1: 30px; transform-origin: 0% 100%; animation-delay: -1.2s; }
@keyframes desk-huff {
  0%   { opacity: 0; transform: translate(var(--dx0), 34px) scale(.5); }
  16%  { opacity: 1; }
  50%  { opacity: 1; transform: translate(0, 0) scale(1); }
  82%  { opacity: 0; transform: translate(var(--dx1), -40px) scale(1.14); }
  100% { opacity: 0; transform: translate(var(--dx1), -40px) scale(1.14); }
}
.desk__scribble { transform-origin: 50% 40%; animation: desk-churn .9s ease-in-out infinite alternate; }
@keyframes desk-churn {
  from { transform: rotate(-6deg) scale(.98); }
  to   { transform: rotate(6deg) scale(1.03); }
}
.desk__vein { opacity: 0; animation: desk-throb 1.6s ease-out infinite; }
@keyframes desk-throb {                         /* a double beat, then rest */
  0%, 30%, 100% { opacity: 0; }
  8%  { opacity: 1; }
  16% { opacity: .15; }
  22% { opacity: .85; }
}
.desk.is-paused * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .desk__puff { animation: none; opacity: 1; }
  .desk__scribble, .desk__vein { animation: none; }
}
.panel__art--scene { place-items: start center; }   /* both picture cards start on the same line */

/* 01 · people on the square outside walk slowly left to right on a loop; seen only through the panes */
.walker { animation: office-walk 180.0s linear infinite; }
.walker--back { animation-direction: reverse; }   /* the same street, walked the other way */
.walker--back img { transform: scaleX(-1); }   /* face where they go */
@keyframes office-walk {   /* one crossing (46.5s), then waiting off-stage until the queue comes round again */
  0% { transform: translateX(515px); }
  25.833% { transform: translateX(1166px); }
  100% { transform: translateX(1166px); }
}
@media (prefers-reduced-motion: reduce) { .walker { animation-play-state: paused; } }

/* paths on the square: the lanes step down to pass in front of the tree + stall (pane 1) and the two trees (pane 3),
   then climb back up (some right away, some later) before the statue. Reverse walkers trace the same path backwards. */
@keyframes walk-352a {
  0.000% { transform: translate(515px, 11px); }
  7.579% { transform: translate(706px, 11px); }
  8.373% { transform: translate(726px, 0px); }
  17.262% { transform: translate(950px, 0px); }
  18.452% { transform: translate(980px, 10px); }
  25.833% { transform: translate(1166px, 10px); }
  100% { transform: translate(1166px, 10px); }
}
@keyframes walk-352b {
  0.000% { transform: translate(515px, 11px); }
  7.579% { transform: translate(706px, 11px); }
  10.992% { transform: translate(792px, 0px); }
  18.214% { transform: translate(974px, 0px); }
  19.008% { transform: translate(994px, 10px); }
  25.833% { transform: translate(1166px, 10px); }
  100% { transform: translate(1166px, 10px); }
}
@keyframes walk-356a {
  0.000% { transform: translate(515px, 9px); }
  7.579% { transform: translate(706px, 9px); }
  8.373% { transform: translate(726px, 0px); }
  17.262% { transform: translate(950px, 0px); }
  18.452% { transform: translate(980px, 8px); }
  25.833% { transform: translate(1166px, 8px); }
  100% { transform: translate(1166px, 8px); }
}
@keyframes walk-356b {
  0.000% { transform: translate(515px, 9px); }
  7.579% { transform: translate(706px, 9px); }
  10.992% { transform: translate(792px, 0px); }
  18.214% { transform: translate(974px, 0px); }
  19.008% { transform: translate(994px, 8px); }
  25.833% { transform: translate(1166px, 8px); }
  100% { transform: translate(1166px, 8px); }
}
@keyframes walk-361a {
  0.000% { transform: translate(515px, 5px); }
  7.579% { transform: translate(706px, 5px); }
  8.373% { transform: translate(726px, 0px); }
  17.262% { transform: translate(950px, 0px); }
  18.452% { transform: translate(980px, 4.5px); }
  25.833% { transform: translate(1166px, 4.5px); }
  100% { transform: translate(1166px, 4.5px); }
}
@keyframes walk-361b {
  0.000% { transform: translate(515px, 5px); }
  7.579% { transform: translate(706px, 5px); }
  10.992% { transform: translate(792px, 0px); }
  18.214% { transform: translate(974px, 0px); }
  19.008% { transform: translate(994px, 4.5px); }
  25.833% { transform: translate(1166px, 4.5px); }
  100% { transform: translate(1166px, 4.5px); }
}
@keyframes walk-366a {
  0.000% { transform: translate(515px, 1.5px); }
  7.579% { transform: translate(706px, 1.5px); }
  8.373% { transform: translate(726px, 0px); }
  17.262% { transform: translate(950px, 0px); }
  18.452% { transform: translate(980px, 0.5px); }
  25.833% { transform: translate(1166px, 0.5px); }
  100% { transform: translate(1166px, 0.5px); }
}
@keyframes walk-366b {
  0.000% { transform: translate(515px, 1.5px); }
  7.579% { transform: translate(706px, 1.5px); }
  10.992% { transform: translate(792px, 0px); }
  18.214% { transform: translate(974px, 0px); }
  19.008% { transform: translate(994px, 0.5px); }
  25.833% { transform: translate(1166px, 0.5px); }
  100% { transform: translate(1166px, 0.5px); }
}

/* 03 · the boss with his feet up: the two robots at the desk keep working (head bob in one-pixel steps, blinks) */
.boss { display: block; width: 100%; height: auto; border-radius: 12px; }
.boss__head { animation: boss-bob calc(1.7s + var(--i) * .35s) infinite; animation-delay: calc(var(--i) * -.9s); }
@keyframes boss-bob {
  0%   { transform: translateY(0); animation-timing-function: steps(1, end); }
  50%  { transform: translateY(7px); animation-timing-function: steps(1, end); }   /* one pixel of the art */
  100% { transform: translateY(0); }
}
.boss__blink { opacity: 0; }
.boss__head.is-blinking .boss__blink { opacity: 1; }
.boss.is-paused * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .boss__head { animation: none; } }

/* 03 · the coffee is hot: three pixel wisps rise from the mug, one after another, and fade out */
.boss__steam { fill: #ffffff; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%;
  animation: boss-steam 2.7s cubic-bezier(.3,.6,.4,1) infinite; animation-delay: calc(var(--i) * -.9s); }
@keyframes boss-steam {
  0%   { opacity: 0;   transform: translateY(6px) scaleY(.7); }
  25%  { opacity: 1; }
  100% { opacity: 0;   transform: translateY(-70px) scaleY(1.15); }
}
@media (prefers-reduced-motion: reduce) { .boss__steam { animation: none; opacity: .7; } }

/* =====================================================================================
   KLIENTI between "Kdo jsme" (light) and the services (ink): colour + shape variants, ?strip=k1..k6.
   field = the band's own background, card = the box holding title + logos (radius/inset make it a card
   that echoes the three panels above, or a full-bleed band). Logos are white PNGs; on light cards they go black.
   ===================================================================================== */
.clients {
  --c-field: transparent; --c-card: transparent; --c-ink: var(--paper); --c-em: var(--accent);
  --c-line: rgb(255 255 255 / .1); --c-logo: none; --c-logo-o: .62;
  --c-inset: 0px; --c-radius: 0px; --c-pad: 0px;
  padding: clamp(40px, 7vh, 90px) 0;
  background: var(--c-field);
}
.clients__card {
  margin-inline: var(--c-inset); border-radius: var(--c-radius); overflow: hidden;
  background: var(--c-card); color: var(--c-ink);
  padding-block: var(--c-pad);
}
.clients .clients__title em { color: var(--c-em); }
.clients .belt { border-color: var(--c-line); }
.clients .belt__item { border-color: var(--c-line); }
.clients .belt__item img { filter: var(--c-logo); opacity: var(--c-logo-o); }

/* K1 · Kobaltový pás — full-bleed cobalt band between the light and the dark part */
html[data-strip="k1"] .clients { --c-field: #1f3bff; --c-em: #f2ff4d; padding-block: clamp(56px, 9vh, 110px); }
/* K2 · Inkoustová karta — the light field goes on, the logos sit on a rounded ink card like the panels above */
html[data-strip="k2"] .clients { --c-field: #f5f7fb; --c-card: #0a0a0a; --c-em: #f2ff4d;
  --c-inset: var(--gutter); --c-radius: 22px; --c-pad: clamp(36px, 6vh, 64px); }
/* K3 · Papír — no box at all: light field, black logos, cobalt number */
html[data-strip="k3"] .clients { --c-field: #f5f7fb; --c-ink: #0a0a0a; --c-em: #1f3bff;
  --c-line: rgb(10 10 10 / .1); --c-logo: brightness(0); --c-logo-o: .72; padding-block: clamp(30px, 5vh, 70px) clamp(80px, 12vh, 140px); }
/* K4 · Tyrkysová karta — rounded cyan card on the light field, black logos */
html[data-strip="k4"] .clients { --c-field: #f5f7fb; --c-card: #5ad8ff; --c-ink: #0a0a0a; --c-em: #1f3bff;
  --c-line: rgb(10 10 10 / .12); --c-logo: brightness(0); --c-logo-o: .75;
  --c-inset: var(--gutter); --c-radius: 22px; --c-pad: clamp(36px, 6vh, 64px); }
/* K5 · Noční kobalt — full-bleed night blue (the hero's colour), cyan number */
html[data-strip="k5"] .clients { --c-field: #070c3a; --c-em: #5ad8ff; padding-block: clamp(56px, 9vh, 110px); }
/* K6 · Přechod — the band straddles the edge: light above, ink below, a cobalt card across the seam */
html[data-strip="k6"] .clients { --c-field: linear-gradient(#f5f7fb 50%, #0a0a0a 50%); --c-card: #1f3bff; --c-em: #f2ff4d;
  --c-inset: var(--gutter); --c-radius: 22px; --c-pad: clamp(36px, 6vh, 64px); }
/* with a light field the about section's bottom padding can be shorter: the band continues it */
html[data-strip="k2"] .about, html[data-strip="k3"] .about, html[data-strip="k4"] .about, html[data-strip="k6"] .about { padding-bottom: clamp(30px, 5vh, 60px); }

/* =====================================================================================
   LIGHT ZONE — "Kdo jsme" + the client strip are one surface with one soft gradient (?zone=g1..g6).
   The sections themselves go transparent; the zone paints a base gradient plus still, very soft fields.
   Palette only: paper #f5f7fb, cyan #5ad8ff, cobalt #1f3bff, mint #3dffb0, warm paper #f8f5f0.
   ===================================================================================== */
.light-zone { position: relative; isolation: isolate; color: #0a0a0a; background: #f5f7fb; }
.light-zone .about { background: transparent; }
.light-zone .about::before { display: none; }
.light-zone .clients { --c-field: transparent; }
.light-zone::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* G1 · Ranní mlha — paper turning a breath cooler towards the strip, cyan mist top-left, mint low right */
html[data-zone="g1"] .light-zone { background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 60%, #e6edf9 100%); }
html[data-zone="g1"] .light-zone::before { background:
  radial-gradient(40% 30% at 6% 0%, rgb(90 216 255 / .30), transparent 70%),
  radial-gradient(36% 26% at 96% 38%, rgb(31 59 255 / .08), transparent 70%),
  radial-gradient(45% 22% at 70% 96%, rgb(61 255 176 / .14), transparent 70%); }

/* G2 · Nebe — pale sky at the top that settles into paper, a faint cobalt floor under the strip */
html[data-zone="g2"] .light-zone { background: linear-gradient(180deg, #e7f5ff 0%, #f5f7fb 45%, #f5f7fb 70%, #e9edff 100%); }
html[data-zone="g2"] .light-zone::before { background:
  radial-gradient(60% 20% at 50% 0%, rgb(90 216 255 / .22), transparent 75%); }

/* G3 · Máta a tyrkys — a slow diagonal from pale mint (top left) to pale cyan (bottom right) */
html[data-zone="g3"] .light-zone { background: linear-gradient(160deg, #eafbf3 0%, #f4f8fb 45%, #e8f4fd 100%); }
html[data-zone="g3"] .light-zone::before { background:
  radial-gradient(38% 26% at 0% 10%, rgb(61 255 176 / .16), transparent 70%),
  radial-gradient(38% 26% at 100% 90%, rgb(90 216 255 / .20), transparent 70%); }

/* G4 · Do soumraku — paper at the top, deepening into a soft blue-grey at the bottom: a lead-in to the dark services */
html[data-zone="g4"] .light-zone { background: linear-gradient(180deg, #f6f8fc 0%, #f1f4fa 50%, #dfe5f3 88%, #d3daee 100%); }
html[data-zone="g4"] .light-zone::before { background:
  radial-gradient(40% 24% at 8% 0%, rgb(90 216 255 / .22), transparent 70%); }

/* G5 · Polární záře — still aurora fields of cyan, mint and cobalt floating over paper */
html[data-zone="g5"] .light-zone { background: #f6f8fc; }
html[data-zone="g5"] .light-zone::before { background:
  radial-gradient(34% 24% at 10% 6%, rgb(90 216 255 / .30), transparent 70%),
  radial-gradient(30% 22% at 88% 28%, rgb(61 255 176 / .20), transparent 70%),
  radial-gradient(36% 22% at 30% 62%, rgb(31 59 255 / .07), transparent 70%),
  radial-gradient(40% 20% at 78% 92%, rgb(90 216 255 / .22), transparent 70%); }

/* G6 · Teplý papír — warm paper at the top cooling into blue-white at the strip */
html[data-zone="g6"] .light-zone { background: linear-gradient(180deg, #f9f6f1 0%, #f6f6f6 45%, #eef3fa 100%); }
html[data-zone="g6"] .light-zone::before { background:
  radial-gradient(40% 24% at 92% 4%, rgb(255 122 69 / .07), transparent 70%),
  radial-gradient(44% 22% at 10% 96%, rgb(90 216 255 / .16), transparent 70%); }

/* ---------- LIGHT ZONE · light blue set (b1..b6): a clear blue-white, not paper ---------- */
/* B1 · Ledová modrá — even ice blue that deepens a touch towards the strip, cyan mist top-left */
html[data-zone="b1"] .light-zone { background: linear-gradient(180deg, #e8f0ff 0%, #dfe9ff 55%, #d4e2fd 100%); }
html[data-zone="b1"] .light-zone::before { background:
  radial-gradient(42% 30% at 6% 0%, rgb(90 216 255 / .35), transparent 70%),
  radial-gradient(40% 26% at 96% 60%, rgb(255 255 255 / .55), transparent 70%); }
/* B2 · Obloha — sky blue with a white glow in the middle, cyan at the top edge */
html[data-zone="b2"] .light-zone { background: linear-gradient(180deg, #d6eefe 0%, #e6f3ff 40%, #e2eefd 75%, #d2e3fa 100%); }
html[data-zone="b2"] .light-zone::before { background:
  radial-gradient(55% 22% at 50% 0%, rgb(90 216 255 / .28), transparent 75%),
  radial-gradient(50% 24% at 50% 55%, rgb(255 255 255 / .5), transparent 70%); }
/* B3 · Kobaltový nádech — blue-white leaning to cobalt, a cyan light top-left */
html[data-zone="b3"] .light-zone { background: linear-gradient(180deg, #e5eaff 0%, #dbe2ff 55%, #cfd8fc 100%); }
html[data-zone="b3"] .light-zone::before { background:
  radial-gradient(40% 28% at 8% 2%, rgb(90 216 255 / .30), transparent 70%),
  radial-gradient(36% 24% at 92% 40%, rgb(31 59 255 / .08), transparent 70%); }
/* B4 · Tyrkysová — cyan-blue diagonal: turquoise top left, soft blue bottom right */
html[data-zone="b4"] .light-zone { background: linear-gradient(155deg, #d8f4fd 0%, #e4f1fe 45%, #d9e6fc 100%); }
html[data-zone="b4"] .light-zone::before { background:
  radial-gradient(40% 26% at 0% 8%, rgb(90 216 255 / .30), transparent 70%),
  radial-gradient(36% 22% at 100% 92%, rgb(31 59 255 / .07), transparent 70%); }
/* B5 · Modrá záře — blue base with still fields of cyan, mint and cobalt */
html[data-zone="b5"] .light-zone { background: #e2ecfd; }
html[data-zone="b5"] .light-zone::before { background:
  radial-gradient(34% 24% at 10% 6%, rgb(90 216 255 / .38), transparent 70%),
  radial-gradient(30% 22% at 88% 30%, rgb(61 255 176 / .16), transparent 70%),
  radial-gradient(36% 22% at 28% 64%, rgb(255 255 255 / .5), transparent 70%),
  radial-gradient(40% 20% at 78% 94%, rgb(31 59 255 / .10), transparent 70%); }
/* B6 · Modrý soumrak — light blue at the top, settling into a deeper blue-grey under the strip (lead-in to the dark services) */
html[data-zone="b6"] .light-zone { background: linear-gradient(180deg, #e7efff 0%, #dde7fb 50%, #c9d6f3 88%, #bccbec 100%); }
html[data-zone="b6"] .light-zone::before { background:
  radial-gradient(40% 24% at 8% 0%, rgb(90 216 255 / .30), transparent 70%); }
html .light-zone .clients { --c-field: transparent; }   /* the strip shows the zone gradient, never its own field */

/* ---------- LIGHT ZONE · blue first (c1..c6): a clearly light-blue field, white only as light inside it ---------- */
/* C1 · Nebeská — sky blue, a white glow top-left and a softer one low right */
html[data-zone="c1"] .light-zone { background: linear-gradient(180deg, #c9e2ff 0%, #bcd9fd 55%, #b2d2fb 100%); }
html[data-zone="c1"] .light-zone::before { background:
  radial-gradient(42% 30% at 6% 0%, rgb(255 255 255 / .75), transparent 70%),
  radial-gradient(40% 24% at 92% 70%, rgb(255 255 255 / .45), transparent 70%); }
/* C2 · Ledová — cool ice blue with a white band of light across the middle */
html[data-zone="c2"] .light-zone { background: linear-gradient(180deg, #c4dcfb 0%, #d4e6fd 45%, #c6dcfb 70%, #b6cff6 100%); }
html[data-zone="c2"] .light-zone::before { background:
  radial-gradient(70% 18% at 50% 46%, rgb(255 255 255 / .55), transparent 75%),
  radial-gradient(40% 24% at 4% 2%, rgb(255 255 255 / .6), transparent 70%); }
/* C3 · Tyrkysová obloha — cyan-blue, white light breaking in from the top */
html[data-zone="c3"] .light-zone { background: linear-gradient(170deg, #bfe8fd 0%, #c3e0fb 50%, #b7d5f7 100%); }
html[data-zone="c3"] .light-zone::before { background:
  radial-gradient(60% 24% at 40% 0%, rgb(255 255 255 / .7), transparent 72%),
  radial-gradient(34% 22% at 100% 85%, rgb(255 255 255 / .35), transparent 70%); }
/* C4 · Kobaltová modř — blue leaning to cobalt, white glows like soft clouds */
html[data-zone="c4"] .light-zone { background: linear-gradient(180deg, #ccd9ff 0%, #c0cffc 55%, #b4c5f8 100%); }
html[data-zone="c4"] .light-zone::before { background:
  radial-gradient(36% 22% at 12% 4%, rgb(255 255 255 / .7), transparent 70%),
  radial-gradient(30% 20% at 80% 34%, rgb(255 255 255 / .4), transparent 70%),
  radial-gradient(40% 20% at 30% 92%, rgb(255 255 255 / .4), transparent 70%); }
/* C5 · Mraky — mid light blue with several white cloud-glows drifting (still) across it */
html[data-zone="c5"] .light-zone { background: #bdd8fb; }
html[data-zone="c5"] .light-zone::before { background:
  radial-gradient(30% 18% at 8% 6%, rgb(255 255 255 / .75), transparent 70%),
  radial-gradient(26% 16% at 70% 14%, rgb(255 255 255 / .5), transparent 70%),
  radial-gradient(32% 18% at 92% 52%, rgb(255 255 255 / .45), transparent 70%),
  radial-gradient(30% 18% at 18% 70%, rgb(255 255 255 / .45), transparent 70%),
  radial-gradient(36% 16% at 60% 96%, rgb(255 255 255 / .4), transparent 70%); }
/* C6 · Hloubka — light blue that deepens into a stronger blue under the strip (lead-in to the dark services) */
html[data-zone="c6"] .light-zone { background: linear-gradient(180deg, #cfe4ff 0%, #bcd6fb 50%, #9fbff2 90%, #93b5ee 100%); }
html[data-zone="c6"] .light-zone::before { background:
  radial-gradient(44% 28% at 8% 0%, rgb(255 255 255 / .7), transparent 70%),
  radial-gradient(36% 20% at 90% 40%, rgb(255 255 255 / .35), transparent 70%); }
html .light-zone .clients { --c-em: #f2ff4d; }   /* the "15+" in lime on the blue field */

/* ---------- LIGHT ZONE · even light blue with light white gradients (d1..d4) ---------- */
/* D1 · Světle modrá — one calm light blue, three soft white washes and a faint diagonal sheen */
html[data-zone="d1"] .light-zone { background:
  linear-gradient(135deg, rgb(255 255 255 / .28) 0%, rgb(255 255 255 / 0) 45%, rgb(255 255 255 / .18) 100%), #d3e6fb; }
html[data-zone="d1"] .light-zone::before { background:
  radial-gradient(45% 30% at 4% 0%, rgb(255 255 255 / .55), transparent 70%),
  radial-gradient(40% 26% at 96% 46%, rgb(255 255 255 / .35), transparent 70%),
  radial-gradient(44% 22% at 22% 100%, rgb(255 255 255 / .35), transparent 70%); }
/* D2 · Světlo shora — light blue with white light falling from the top edge */
html[data-zone="d2"] .light-zone { background:
  linear-gradient(180deg, rgb(255 255 255 / .5) 0%, rgb(255 255 255 / 0) 42%), #cfe3fa; }
html[data-zone="d2"] .light-zone::before { background:
  radial-gradient(50% 20% at 80% 70%, rgb(255 255 255 / .3), transparent 70%); }
/* D3 · Paprsky — light blue crossed by two wide, soft diagonal bands of white */
html[data-zone="d3"] .light-zone { background:
  linear-gradient(120deg, transparent 8%, rgb(255 255 255 / .32) 22%, transparent 38%, transparent 58%, rgb(255 255 255 / .24) 72%, transparent 88%), #d5e7fb; }
/* D4 · Rámované světlem — light blue, white glows along the top and along the strip at the bottom */
html[data-zone="d4"] .light-zone { background:
  linear-gradient(180deg, rgb(255 255 255 / .4) 0%, rgb(255 255 255 / 0) 25%, rgb(255 255 255 / 0) 75%, rgb(255 255 255 / .35) 100%), #cee4fb; }

/* ---------- LIGHT ZONE · E1 "Papír a nebe" (hero L1), blue-heavy: large still fields of the L1 cyan
   #5ad8ff over the L1 paper #f5f7fb, a hint of cobalt and mint; paper shows through only in between ---------- */
html[data-zone="e1"] .light-zone { background: #f5f7fb; }
html[data-zone="e1"] .light-zone::before { background:
  radial-gradient(75% 60% at 12% 8%,  rgb(90 216 255 / .78), transparent 74%),
  radial-gradient(68% 55% at 88% 40%, rgb(90 216 255 / .72), transparent 74%),
  radial-gradient(80% 50% at 38% 98%, rgb(90 216 255 / .70), transparent 74%),
  radial-gradient(55% 40% at 50% 55%, rgb(90 216 255 / .45), transparent 72%),
  radial-gradient(40% 30% at 66% 12%, rgb(31 59 255 / .14), transparent 70%),
  radial-gradient(34% 26% at 4% 66%,  rgb(61 255 176 / .24), transparent 70%); }

/* the three "Kdo jsme" cards: same colours, never flat — a light top-left, a deeper bottom-right, one soft glow */
.panel--cobalt { background:
  radial-gradient(60% 40% at 0% 0%, rgb(255 255 255 / .14), transparent 70%),
  linear-gradient(160deg, #3450ff 0%, #1f3bff 48%, #1830dc 100%); }
.panel--ink { background:
  radial-gradient(70% 45% at 100% 100%, rgb(31 59 255 / .22), transparent 70%),
  linear-gradient(160deg, #1d1f27 0%, #0a0a0a 55%, #060709 100%); }
.panel--cyan { background:
  radial-gradient(60% 40% at 0% 0%, rgb(255 255 255 / .30), transparent 70%),
  linear-gradient(160deg, #7be3ff 0%, #5ad8ff 50%, #42c4f2 100%); }

/* =====================================================================================
   04 · KONTAKT — a pixel clipboard in 3D. Every edge is a whole "pixel" (--px = 6px). The board has real
   thickness (12 slices stepping back in Z, like the OPE logo) and leans towards the cursor (main.js: --rx/--ry).
   Over the form the cursor is a pen.
   ===================================================================================== */
.contact {
  --px: 6px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: clamp(32px, 6vw, 110px); align-items: center;
  padding: clamp(110px, 16vh, 200px) var(--gutter) clamp(120px, 18vh, 220px);
}
.contact__title {
  margin: 0;
  font-weight: var(--dw); font-variation-settings: var(--dwdth); letter-spacing: var(--ls-display);
  font-size: clamp(56px, min(10vw, 17svh), 190px); line-height: .86;
}
.contact__lede { margin: 24px 0 0; max-width: 30ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; opacity: .78; }

/* the 3D stage */
.contact__stage { perspective: 1300px; }
.board3d {
  /* one stepped outline shared by the front and all the depth slices: corners cut 2 pixels deep */
  --step: polygon(
    calc(var(--px)*2) 0, calc(100% - var(--px)*2) 0, calc(100% - var(--px)*2) var(--px), calc(100% - var(--px)) var(--px),
    calc(100% - var(--px)) calc(var(--px)*2), 100% calc(var(--px)*2), 100% calc(100% - var(--px)*2), calc(100% - var(--px)) calc(100% - var(--px)*2),
    calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)*2) calc(100% - var(--px)), calc(100% - var(--px)*2) 100%,
    calc(var(--px)*2) 100%, calc(var(--px)*2) calc(100% - var(--px)), var(--px) calc(100% - var(--px)), var(--px) calc(100% - var(--px)*2),
    0 calc(100% - var(--px)*2), 0 calc(var(--px)*2), var(--px) calc(var(--px)*2), var(--px) var(--px), calc(var(--px)*2) var(--px));
  position: relative;
  transform-style: preserve-3d;
  transform: rotateZ(-1.5deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.board3d__side {                               /* the wood's thickness: the same shape, darker the deeper it sits */
  position: absolute; inset: 0; clip-path: var(--step);
  transform: translateZ(calc(var(--i) * -2.4px));
  background: color-mix(in srgb, #9a6232 calc(100% - var(--i) * 5%), #2a1708);
}
.board3d__side:first-child { background: #0a0a0a; }   /* the back face closes it in black, like the outline */

/* the board front: black outline -> darker wood rim -> wood with pixel grain */
.board {
  position: relative; transform: translateZ(0);
  padding: calc(var(--px) * 6) calc(var(--px) * 5) calc(var(--px) * 5);
  clip-path: var(--step);
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(var(--px) * 5), rgb(150 90 40 / .18) calc(var(--px) * 5) calc(var(--px) * 6)),
    #e9b47a;
  box-shadow: inset 0 0 0 var(--px) #0a0a0a, inset 0 0 0 calc(var(--px) * 2) #c98a4c,
              inset calc(var(--px) * 3) calc(var(--px) * 3) 0 calc(var(--px) * -1) #f4cb98;
}
/* the metal clip: pixel bar with highlight and shadow rows, a ring above it */
.board__clip {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--px) * 1); translate: -50% 0;
  width: calc(var(--px) * 26); height: calc(var(--px) * 7);
  background:
    linear-gradient(180deg, #eef1f6 0 var(--px), #c3c8d2 var(--px) calc(100% - var(--px) * 2), #8b91a0 calc(100% - var(--px) * 2));
  box-shadow: inset 0 0 0 var(--px) #0a0a0a;
  clip-path: polygon(var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% 100%, 0 100%, 0 var(--px), var(--px) var(--px));
}
/* the paper: pixel outline, a hard 1-pixel shadow, faint pixel rows */
.board__paper {
  position: relative;
  display: grid; gap: calc(var(--px) * 4);
  padding: calc(var(--px) * 9) calc(var(--px) * 5) calc(var(--px) * 6);
  background: #fbfbf6; color: #0a0a0a;
  box-shadow: inset 0 0 0 var(--px) #0a0a0a, inset calc(var(--px) * -2) calc(var(--px) * -2) 0 calc(var(--px) * -1) #dcdacd;
}
.board__label {
  justify-self: start;
  margin: 0; padding: 0 0 calc(var(--px) / 2);
  font-family: var(--pixel); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1f3bff;
  border-bottom: calc(var(--px) / 2) solid #1f3bff;
}
.field { display: grid; gap: calc(var(--px) * 1.5); }
.field__name { font-family: var(--pixel); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
/* each field is a pixel box: black outline, cut corners, a hard pixel shadow under it */
.field__input {
  width: 100%; margin: 0;
  padding: calc(var(--px) * 2) calc(var(--px) * 2.5);
  border: 0; border-radius: 0; outline: 0;
  font-family: var(--pixel); font-size: 16px; line-height: 24px; color: #0a0a0a;
  background: #ffffff;
  box-shadow: inset 0 0 0 calc(var(--px) / 2) #0a0a0a, inset 0 calc(var(--px) * 1.5) 0 calc(var(--px) * -1) #e9ecf3;
  clip-path: polygon(calc(var(--px)/2) 0, calc(100% - var(--px)/2) 0, calc(100% - var(--px)/2) calc(var(--px)/2), 100% calc(var(--px)/2),
                     100% calc(100% - var(--px)/2), calc(100% - var(--px)/2) calc(100% - var(--px)/2), calc(100% - var(--px)/2) 100%,
                     calc(var(--px)/2) 100%, calc(var(--px)/2) calc(100% - var(--px)/2), 0 calc(100% - var(--px)/2), 0 calc(var(--px)/2), calc(var(--px)/2) calc(var(--px)/2));
  transition: box-shadow .15s steps(2), background .15s steps(2);
}
.field__input--area {                          /* ruled lines, one per text line */
  resize: none; height: calc(24px * 4 + var(--px) * 4);
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(var(--px) * 2 + 21px), #cfe2fb calc(var(--px) * 2 + 21px) calc(var(--px) * 2 + 24px)),
    #ffffff;
  background-attachment: local;
}
.field__input:focus { box-shadow: inset 0 0 0 calc(var(--px) / 2) #1f3bff, inset 0 calc(var(--px) * 1.5) 0 calc(var(--px) * -1) #dfe6ff; background-color: #f6f8ff; }
.field.is-wrong .field__input { box-shadow: inset 0 0 0 calc(var(--px) / 2) #e01b24, inset 0 calc(var(--px) * 1.5) 0 calc(var(--px) * -1) #ffe1e1; }
.field.is-wrong .field__name { color: #d4141c; }
.board__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: var(--px); }
.board__status { margin: 0; font-family: var(--pixel); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* the pixel button: cut corners, black outline, one pixel of drop that disappears when pressed */
.px-btn {
  --px: 6px;
  position: relative;
  padding: calc(var(--px) * 2.5) calc(var(--px) * 5) calc(var(--px) * 3);
  border: 0; border-radius: 0;
  font-family: var(--pixel); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, #4560ff 0 var(--px), #1f3bff var(--px) calc(100% - var(--px) * 2), #1229b8 calc(100% - var(--px) * 2));
  box-shadow: inset 0 0 0 calc(var(--px) / 2) #0a0a0a;
  clip-path: polygon(calc(var(--px)/2) 0, calc(100% - var(--px)/2) 0, calc(100% - var(--px)/2) calc(var(--px)/2), 100% calc(var(--px)/2),
                     100% calc(100% - var(--px)/2), calc(100% - var(--px)/2) calc(100% - var(--px)/2), calc(100% - var(--px)/2) 100%,
                     calc(var(--px)/2) 100%, calc(var(--px)/2) calc(100% - var(--px)/2), 0 calc(100% - var(--px)/2), 0 calc(var(--px)/2), calc(var(--px)/2) calc(var(--px)/2));
  transition: translate .08s steps(1), filter .15s steps(2);
}
.px-btn:hover { filter: brightness(1.12); }
.px-btn:active { translate: 0 calc(var(--px) / 2); }

/* the pen cursor over the whole form (beats the global arrow and the text caret); 46 px, tip = hotspot */
html .contact-form, html .contact-form *, html .contact-form input, html .contact-form textarea, html .contact-form button {
  /* one image only: with an image-set Safari reads the hotspot in the 2x file's pixels and lands mid-pen.
     60x60 px, hotspot = the nib at the bottom-left corner */
  cursor: url(assets/cursor/pen.png?v=6) 1 67, auto !important;
}

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; --px: 5px; }
}
.contact__lede { opacity: 1; color: rgb(245 246 250 / .78); }   /* dim by colour, so the lime part stays full strength */
.contact__promise { color: #f2ff4d; }
/* optical left edge: the title's "N" carries 0.0426em of side bearing (Archivo 860, wdth 62), the lede's "P" 0.0861em
   (Archivo 400); pull the title left by the difference so both inks start on the same pixel column */
.contact__title { margin-left: calc(-0.0426em + 0.0861 * clamp(16px, 1.25vw, 19px)); }

/* the three cards pop towards the viewer on hover: a little forward (real Z, the strip has perspective), a little up,
   a soft shadow, and the popped card gets its own rounded corners. Individual transform properties (translate)
   so they never fight the GSAP entrance, which writes `transform`. */
.about__panels { overflow: visible; border-radius: 0; perspective: 1400px; }
.panel {
  border-radius: 0; z-index: 0;
  translate: 0 0 0;
  transition: translate .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s cubic-bezier(.2,.8,.2,1), border-radius .35s ease;
}
.panel:first-child { border-radius: 22px 0 0 22px; }
.panel:last-child  { border-radius: 0 22px 22px 0; }
@media (hover: hover) and (pointer: fine) {
  .panel.is-hover {
    z-index: 2;
    translate: 0 -10px 48px;
    border-radius: 22px;
    box-shadow: 0 34px 70px -18px rgb(6 18 70 / .45), 0 10px 24px -10px rgb(6 18 70 / .3);
  }
}
@media (max-width: 960px) {
  .panel:first-child { border-radius: 22px 22px 0 0; }
  .panel:last-child  { border-radius: 0 0 22px 22px; }
}
@media (prefers-reduced-motion: reduce) { .panel { transition: none; } }
/* stronger pop, no shadow: the hovered card grows by a quarter; the outer cards grow inwards so they stay on screen */
.light-zone .about { overflow: visible; }
.panel { transition: scale .55s cubic-bezier(.2,.8,.2,1), translate .55s cubic-bezier(.2,.8,.2,1), border-radius .35s ease; transform-origin: 50% 50%; }
.panel:first-child { transform-origin: 0% 50%; }
.panel:last-child  { transform-origin: 100% 50%; }
@media (hover: hover) and (pointer: fine) {
  .panel.is-hover { box-shadow: none; translate: 0 0 0; scale: 1.03; }
}

/* =====================================================================================
   THANK-YOU POP-UP — a pixel window (cobalt title bar, black outline, cut corners) with the waving robot.
   Opens with a stepped pop; the robot hops in, then waves in two pixel frames.
   ===================================================================================== */
.thanks { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); --px: 6px; }
.thanks[hidden] { display: none; }
.thanks__veil { position: absolute; inset: 0; background: rgb(4 8 32 / .62); animation: thanks-fade .25s ease-out both; }
.thanks.is-closing .thanks__veil { animation: thanks-fade .2s ease-in reverse both; }
@keyframes thanks-fade { from { opacity: 0; } }
.thanks__win {
  position: relative; width: min(640px, 100%);
  background: #fbfbf6; color: #0a0a0a;
  box-shadow: inset 0 0 0 var(--px) #0a0a0a;
  clip-path: polygon(var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)),
                     calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)),
                     0 calc(100% - var(--px)), 0 var(--px), var(--px) var(--px));
  animation: thanks-pop .42s steps(6, end) both;
}
.thanks.is-closing .thanks__win { animation: thanks-pop .22s steps(4, end) reverse both; }
@keyframes thanks-pop {                        /* a pixel-stepped pop: small, overshoot, settle */
  0%   { scale: .55; opacity: 0; }
  60%  { scale: 1.06; opacity: 1; }
  100% { scale: 1; opacity: 1; }
}
.thanks__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--px) * 2) calc(var(--px) * 2) calc(var(--px) * 2) calc(var(--px) * 3);
  background: linear-gradient(180deg, #4560ff 0 var(--px), #1f3bff var(--px));
  color: #ffffff; font-family: var(--pixel); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: inset 0 0 0 var(--px) #0a0a0a;
}
.thanks__x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: #ffffff; }
.thanks__x svg { width: 14px; height: 14px; fill: currentColor; shape-rendering: crispEdges; }
.thanks__x:hover { color: #f2ff4d; }
.thanks__body {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: calc(var(--px) * 6);
  padding: calc(var(--px) * 6) calc(var(--px) * 7) calc(var(--px) * 6) calc(var(--px) * 6);
}
.thanks__bot { position: relative; width: var(--bw); height: var(--bh); animation: thanks-hop .5s steps(5, end) .18s both; }
.thanks__bot img { display: block; image-rendering: pixelated; }
.thanks__bot > img:first-child { width: var(--bw); height: var(--bh); }
.thanks__hand { position: absolute; animation: thanks-wave 1.9s ease-in-out infinite .75s; }
@keyframes thanks-hop { 0% { translate: 0 40px; opacity: 0; } 60% { translate: 0 -8px; opacity: 1; } 100% { translate: 0 0; opacity: 1; } }
@keyframes thanks-wave {                       /* the whole forearm swings from the elbow: two waves, then a short rest */
  0%   { rotate: 0deg; }
  13%  { rotate: -9deg; }
  27%  { rotate: 7deg; }
  41%  { rotate: -9deg; }
  55%  { rotate: 5deg; }
  66%  { rotate: 0deg; }
  100% { rotate: 0deg; }
}
.thanks__title {
  margin: 0;
  font-weight: var(--dw); font-variation-settings: var(--dwdth); letter-spacing: var(--ls-display);
  font-size: clamp(52px, 6vw, 84px); line-height: .9;
}
.thanks__line { margin: 12px 0 calc(var(--px) * 5); font-size: 18px; line-height: 1.45; }
@media (max-width: 560px) { .thanks__body { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .thanks__win, .thanks__veil, .thanks__bot, .thanks__hand { animation: none; } }

/* the happy eyes: they hop with each wave (a little squeeze at the bottom of every hop), then glance left and right */
.thanks__eyes { position: absolute; transform-origin: 50% 100%; animation: thanks-eyes 1.9s ease-in-out infinite .75s; }
@keyframes thanks-eyes {
  0%   { translate: 0 0;     scale: 1 1; }
  10%  { translate: 0 -3px;  scale: 1.04 1.1; }
  19%  { translate: 0 0;     scale: 1.08 .82; }
  27%  { translate: 0 -2px;  scale: 1 1.04; }
  38%  { translate: 0 -3px;  scale: 1.04 1.1; }
  47%  { translate: 0 0;     scale: 1.08 .82; }
  56%  { translate: 0 0;     scale: 1 1; }
  68%  { translate: -2px 0;  scale: 1 1; }
  80%  { translate: 2px 0;   scale: 1 1; }
  90%  { translate: 0 0;     scale: 1 1; }
  100% { translate: 0 0;     scale: 1 1; }
}
@media (prefers-reduced-motion: reduce) { .thanks__eyes { animation: none; } }
/* smoother card pop: a longer, softer ease-out (out-quint) on the way in, a calm ease on the way back,
   and the card kept on its own compositor layer so the scale never re-rasterises mid-motion */
.panel {
  transition: scale .9s cubic-bezier(.22,1,.36,1), border-radius .7s cubic-bezier(.22,1,.36,1);
  will-change: scale; backface-visibility: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .panel.is-hover { transition: scale .75s cubic-bezier(.22,1,.36,1), border-radius .5s cubic-bezier(.22,1,.36,1); }
}

/* the "15" counts up from 0 when the strip comes into view; its box is locked to the final width (digits right-aligned),
   so "úspěšných spoluprací" never shifts while it counts */
.count { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.clients__title .count { font-size: inherit; letter-spacing: inherit; }   /* not the small caption size the title gives its other spans */

/* =====================================================================================
   PATIČKA — one rounded dark card (like the panels and the clipboard, never flat: a soft cobalt light in one corner),
   pixel-font column heads, the operator block required by § 435 OZ, and a thin bar with © and the privacy links.
   ===================================================================================== */
.foot { padding: 0 var(--gutter) clamp(28px, 4vh, 44px); color: var(--paper); }
.foot__card {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr)) minmax(0, 1.3fr); gap: clamp(28px, 3vw, 56px);
  padding: clamp(36px, 5vw, 64px);
  border-radius: 22px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgb(31 59 255 / .22), transparent 70%),
    linear-gradient(160deg, #15171f 0%, #0d0e13 60%, #0a0a0c 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07);
}
.foot__logo img { display: block; width: 168px; height: auto; }
.foot__claim { margin: 18px 0 26px; max-width: 30ch; font-size: 16px; line-height: 1.5; color: rgb(245 246 250 / .72); }
.foot__cta { display: inline-block; text-decoration: none; }
.foot__h {
  margin: 0 0 18px;
  font-family: var(--pixel); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #f2ff4d;
}
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; }
.foot__col p { margin: 0; color: rgb(245 246 250 / .72); }
.foot__col a { color: rgb(245 246 250 / .86); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s cubic-bezier(.22,1,.36,1), color .2s; }
.foot__col a:hover { color: #ffffff; background-size: 100% 1px; }
.foot__legal strong { color: var(--paper); font-weight: 600; }
.foot__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 20px clamp(36px, 5vw, 64px) 0;
  font-size: 13px; color: rgb(245 246 250 / .55);
}
.foot__bar p { margin: 0; }
.foot__bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(245 246 250 / .3); }
.foot__bar a:hover { color: var(--paper); }
@media (max-width: 1100px) { .foot__card { grid-template-columns: 1fr 1fr 1fr; } .foot__brand, .foot__legal { grid-column: span 3; } }
@media (max-width: 640px)  { .foot__card { grid-template-columns: 1fr 1fr; } .foot__brand, .foot__legal { grid-column: span 2; } }

/* the privacy line under the form */
.board__note { margin: calc(var(--px) * -1) 0 0; font-size: 13px; line-height: 1.45; color: #4b4f5c; }
.board__note a { color: #1f3bff; text-underline-offset: 2px; }
.foot__logo img { margin-left: -4.6px; }   /* the logo file has 4.8px of empty margin on the left; the claim's "A" sits 0.1px in: pull the logo onto the same column as the text and the button edge */

/* "15+" odometer. Each digit is a column: an invisible copy of the final digit gives it its width and baseline,
   the wheel (a strip of digits) slides over it and is faded out at the top and bottom like a real drum. */
.roll { display: inline-flex; }
.roll__col { position: relative; display: inline-block; line-height: 1; }
.roll__ghost { visibility: hidden; }
.roll__wheel {
  position: absolute; inset: -.18em -.06em; overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.roll__strip { display: flex; flex-direction: column; align-items: center; padding-top: .18em; will-change: transform, filter; }
.roll__strip span { display: block; height: 1em; line-height: 1; }
.roll__plus { display: inline-block; transform-origin: 40% 60%; }
.roll.is-done ~ .roll__plus, .roll__plus.is-in { opacity: 1; }
.clients__title em span { font-size: inherit; letter-spacing: inherit; }   /* the wheels keep the big number size */

/* footer as a quiet formality: everything about a quarter smaller, no call-to-action button */
.foot__card { gap: clamp(21px, 2.25vw, 42px); padding: clamp(27px, 3.75vw, 48px); border-radius: 18px; }
.foot__logo img { width: 126px; margin-left: -3.45px; }        /* the 4.8px empty margin in the file scales with it */
.foot__claim { margin: 13px 0 0; font-size: 13.5px; }
.foot__h { margin-bottom: 13px; font-size: 10px; }
.foot__col { gap: 8px; font-size: 13px; }
.foot__bar { padding: 15px clamp(27px, 3.75vw, 48px) 0; font-size: 11.5px; }

/* =====================================================================================
   PERFORMANCE — soft colour fields without filter: blur().
   A blurred disc used to be re-blurred by the GPU on every frame it moved (hero fields drift constantly,
   the page fields scale and fade with scroll) — the single most expensive thing on the page, worst in Safari.
   The same soft disc is now a radial gradient on a slightly larger box: identical look (the half-light edge
   sits where the blurred edge sat), but moving it is a plain composited transform.
   ===================================================================================== */
.hero__blob i {
  position: absolute; inset: -14%; width: auto; height: auto;
  filter: none; border-radius: 0;
  background: radial-gradient(closest-side, var(--c) 0%, var(--c) 58%, color-mix(in srgb, var(--c) 50%, transparent) 76%, transparent 100%) !important;
  will-change: transform;
}
.hero__blob--1 i { --c: var(--h-b1); }
.hero__blob--2 i { --c: var(--h-b2); }
.hero__blob--3 i { --c: var(--h-b3); }
.hero__blob--4 i { --c: var(--h-b4); }
.bg-field__blob { filter: none; border-radius: 0; background: none !important; }
.bg-field__blob::before {
  content: ""; position: absolute; inset: -16%;
  background: radial-gradient(closest-side, var(--c) 0%, var(--c) 56%, color-mix(in srgb, var(--c) 50%, transparent) 76%, transparent 100%);
}
.bg-field__blob--1, .bg-field__blob--2 { --c: var(--glow-1); }
.bg-field__blob--3 { --c: var(--glow-2); }
.bg-field__blob { will-change: transform, opacity; }

/* the street outside the office window: an HTML layer laid exactly over the SVG (its own 1672×1254 world, scaled by --k
   from main.js), clipped to the three panes. Walkers are composited transforms, so 50 of them cost the GPU, not the CPU. */
.office-wrap { position: relative; width: 100%; border-radius: 12px; overflow: hidden; }
.street { position: absolute; inset: 0; pointer-events: none; }
.street__world { position: absolute; left: 0; top: 0; width: 1672px; height: 1254px; transform-origin: 0 0; transform: scale(var(--k, .25)); }
.walker { position: absolute; left: 0; will-change: transform; }
.walker img { display: block; width: 100%; height: 100%; }
.street__statue { position: absolute; display: block; }
.office-wrap.is-paused .walker { animation-play-state: paused; }
/* Lenis housekeeping (from its stylesheet): no native smooth-scroll fighting it, nested scrollers stay native */
html.lenis.lenis-stopped { overflow: hidden; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* fewer permanent GPU layers: running animations get a layer on their own while they move */
.walker { will-change: auto; }
html[lang="en"] .contact__title { margin-left: calc(-0.0309em + 0.0073 * clamp(16px, 1.25vw, 19px)); }   /* English: "G" over "A" (side bearings 0.0309em / 0.0073em) */

/* =====================================================================================
   MOBILE (≤ 760 px)
   ===================================================================================== */
@media (max-width: 760px) {
  /* hero: no side crosses, logo + tagline 2 cm higher, the robot centred, no scroll arrow */
  .hero__frame .t { display: none; }
  .hero__stage { top: -76px; bottom: 76px; }             /* shift the box, not its transform: GSAP owns the stage transform (parallax) */
  .hero__robot { --rs: 3.5; right: auto; left: calc(50% - 43px * var(--rs) / 2); }   /* +17 %: 3.5 keeps every sprite pixel whole on 2x screens */
  .hero .scroll-cue { display: none; }
  /* logo + button centred between the screen top and the frame's corner marks (76 px): the bar grows, --nav-h stays */
  .nav { height: calc(var(--nav-h) + 12px); }
  .nav .btn { height: 40px; padding: 0 19px; font-size: 13.6px; }   /* -15 %, still centred on the bar (38 px) */
  /* CZ / EN stays on the phone too, left of the button; taller hit area for a thumb */
  .lang { display: flex; }
  .lang button { padding: 12px 7px; }
  .nav__end { gap: 10px; }
}

/* footer Instagram: icon ink starts exactly on the column's left edge (no side bearing in the SVG), underline under the handle only */
.foot__col a.foot__ig { display: inline-flex; align-items: center; gap: .5em; background: none; }
.foot__ig svg { width: 1.07em; height: 1.07em; flex: none; display: block; margin-left: .069em; }   /* = the side bearing of the "p" above: ink on ink */
.foot__ig span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s cubic-bezier(.22,1,.36,1); }
.foot__ig:hover span { background-size: 100% 1px; }

/* scroll reveal for section headings (main.js splits the words): each word rises out of its own mask */
.rv .w { display: inline-block; clip-path: inset(-.25em -.2em -.46em -.2em); }   /* low enough that descenders (j, p, ý) rise with their word instead of popping in last */
.rv .w__i {
  display: inline-block; transform: translateY(125%) rotate(5deg); transform-origin: 0 100%;
  /* the box itself must hold the whole glyph: Safari paints a moving word as a layer cut to its box, so a j/p tail
     hanging below the line box only appeared once the motion stopped. Padding grows the box, margins give the room back. */
  padding: .12em .12em .34em; margin: -.12em -.12em -.34em;
  opacity: 0;   /* fades in on the way up, so a word passing the line below never shows over it */
  transition: transform 1.3s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 75ms), opacity .7s cubic-bezier(.33, 1, .68, 1) calc(var(--i, 0) * 75ms);
}
.rv.is-in .w__i { transform: none; opacity: 1; }
.contact__lede.rv .w__i { transition-delay: calc(.25s + var(--i, 0) * 35ms), calc(.25s + var(--i, 0) * 35ms); }   /* the small line follows the title, quicker */
