/* rempace business — same visual language as rempace.com:
   black canvas, white type, white→#6200ff gradient text, glass pills, blur-in reveals. */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #7d8490;
  --soft: #d4d4d8;
  --line: #262626;
  --pill-border: #9ca3af;
  --accent: #6200ff;
  --violet-1: #6a0dad;
  --violet-2: #b266ff;
  --violet-3: #e066ff;
  --leak: #ff4d8d;
  --radius: 12px;
  --gutter: 24px;   /* phones: 24 px, 28 px from 375 px (Matej, 12 Oct 2026: 20 px was too close to the edges) */
  --maxw: 1200px;   /* content width */
  --wrap: max(var(--gutter), calc((100% - var(--maxw)) / 2));   /* side padding that lines things up with the content */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (min-width: 375px) { :root { --gutter: 28px; } }
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }   /* width/height attributes only reserve space; CSS width must not distort */
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 24px; }

/* ---------- Shared pieces ---------- */
.gradient-text {
  background: linear-gradient(to bottom right, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 32px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, .1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  white-space: nowrap;   /* a label never breaks onto two lines; with too little room the whole button moves down */
  transition: transform .35s var(--ease-back), background-color .3s;
}
@media (hover: hover) { .pill:hover { transform: scale(1.05); background: rgba(255, 255, 255, .05); } }
.pill img { height: 24px; width: auto; }

.chip {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--soft);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet-2), transparent);
}

.h2 { font-size: 32px; line-height: 1.1; }
.muted { font-size: 15px; color: var(--muted); }
.bullets { display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.bullets--sm { gap: 8px; font-size: 16px; }
@media (min-width: 1024px) {
  .h2 { font-size: 60px; line-height: 1.05; }
  .muted { font-size: 18px; }
  .bullets { gap: 14px; font-size: 20px; }
  .bullets--sm { gap: 10px; font-size: 18px; }
}

/* ---------- Reveal: blur-in like the framer-motion effect on rempace.com ---------- */
html.js .reveal {
  opacity: 0;
  filter: blur(10px);
  transition: opacity .6s ease, filter .6s ease;
  transition-delay: calc(var(--d, 0) * 90ms + 100ms);
}
html.js .reveal.is-in { opacity: 1; filter: none; }

/* ---------- Fixed UI ---------- */
.lang {
  position: fixed;
  top: 16px;
  right: var(--wrap);
  z-index: 60;
  padding: 8px 16px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 500;
  transition: transform .25s var(--ease-back), background-color .25s;
}
@media (hover: hover) { .lang:hover { background: rgba(0, 0, 0, .4); transform: scale(1.05); } }
.lang:active { transform: scale(.95); }
@media (max-width: 767px) { .lang { position: absolute; } }   /* on phones it stays at the top instead of covering content */
@media (min-width: 1024px) { .lang { top: 24px; } }

.floating {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.floating .pill {
  pointer-events: auto;
  opacity: 0;
  transform: scaleX(0);
  transition: transform .7s var(--ease-back), opacity .4s ease;
}
.floating .pill > * { opacity: 0; transition: opacity .5s ease-in-out; }
.floating.is-visible .pill { opacity: 1; transform: scaleX(1); }
@media (hover: hover) { .floating.is-visible .pill:hover { transform: scale(1.1); } }
.floating.is-visible .pill span { opacity: 1; transition-delay: .5s; }
.floating.is-visible .pill img { opacity: 1; transition-delay: .8s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--wrap) 64px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 90%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  animation: fade-in 2s ease-in 1s forwards;
}
.hero__bg img { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; }

.hero__title { font-size: 40px; line-height: 1.08; letter-spacing: -.01em; }
@media (min-width: 768px) { .hero__title { font-size: 64px; line-height: 1.02; } }
@media (min-width: 1280px) { .hero__title { font-size: 96px; line-height: 1; } }
html.js .hero__title:not(.is-ready) { opacity: 0; }

.blur-word {
  display: inline-block;
  animation: blur-word .9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 80ms + 120ms);
}

.hero__brand {
  margin-top: 12px;
  font-size: 18px;
  opacity: 0;
  animation: fade-in 1s cubic-bezier(.36, 0, .66, -.56) .5s forwards;
}

.division {
  position: absolute;
  top: 16px;
  left: var(--wrap);
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(156, 163, 175, .45);
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 13px;
}
@media (min-width: 1024px) { .division { top: 24px; } }
.division__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .2s;
}
@media (hover: hover) { a.division__item:hover { color: #fff; } }
@media (max-width: 359px) { .division__item { padding-inline: 9px; } }   /* smallest phones: keep clear of the EN button */
.division__item.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.division__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 8px var(--violet-2);
}

/* Phones: the title sits right under the top pills and the first section follows closely,
   instead of a full-screen hero with the title in the middle (the same as on rempace.com) */
@media (max-width: 767px) {
  .hero { min-height: 0; justify-content: flex-start; padding-top: 88px; padding-bottom: 0; }
  .hero + main > .section:first-child { padding-top: 96px; }   /* a bit more than between sections, so the intro stands apart */
}

/* ---------- Sections ---------- */
.section { padding: 96px var(--gutter); }
@media (min-width: 1024px) { .section { padding-block: 160px; } }

.split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .split { flex-direction: row; gap: 64px; }
  .split--reverse { flex-direction: row-reverse; }
  .split > * { flex: 1 1 0; min-width: 0; }
}
.split__text { display: flex; flex-direction: column; width: 100%; }
/* Spacing groups what belongs together: the eyebrow sits on its title, lists and buttons get more air */
.split__text > * + * { margin-top: 20px; }
.split__text > .eyebrow + * { margin-top: 14px; }
.split__text > .bullets, .split__text > .extras, .split__text > .methods { margin-top: 28px; }
@media (min-width: 1024px) {
  .split__text > * + * { margin-top: 24px; }
  .split__text > .eyebrow + * { margin-top: 18px; }
  .split__text > .bullets, .split__text > .extras, .split__text > .methods { margin-top: 36px; }
}
.split__visual { width: 100%; }

/* Phones: the same spacing scale as rempace.com (64 px between sections, 12 / 16 / 24 inside a text block,
   32 px to the illustration). Comes after the rules above. */
@media (max-width: 767px) {
  .section { padding-block: 32px; }
  .split { gap: 32px; }
  .split__text > * + * { margin-top: 16px; }
  .split__text > .eyebrow + * { margin-top: 12px; }
  .split__text > .bullets, .split__text > .extras, .split__text > .methods { margin-top: 24px; }
}

/* ---------- 01 Funnel illustration ---------- */
.fx {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 80% at 100% 0%, rgba(98, 0, 255, .18), transparent 60%), #000;
}
.fx__cap { margin-bottom: 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fx__stage { position: relative; }
.fx__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 40px rgba(98, 0, 255, .35)); }
.fx__layer {
  fill: url(#fxLayer);
  stroke: rgba(178, 102, 255, .55);
  stroke-width: 1;
  stroke-linejoin: round;
  opacity: 0;
  transform: scaleX(.2);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 1s var(--ease-out), opacity .6s ease;
  transition-delay: calc(var(--i) * 140ms + 150ms);
}
.fx__layer--goal { fill: url(#fxGoal); fill-opacity: .6; stroke: rgba(224, 102, 255, .85); }
.fx.is-in .fx__layer { opacity: 1; transform: none; }
.fx__dot { fill: #fff; }
.fx__dot.is-leak { fill: var(--leak); }
.fx__dot.is-drop { fill: #6b7280; }
.fx__dot.is-win { fill: var(--violet-3); }
.fx__label {
  position: absolute;
  left: 66%;
  display: grid;
  gap: 1px;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .6s ease;
  transition-delay: calc(var(--i) * 140ms + 450ms);
}
.fx.is-in .fx__label { opacity: 1; }
.fx__label strong { font-size: 20px; font-weight: 400; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fx__label span { font-size: 13px; line-height: 1.3; color: var(--soft); }
.fx__label em { font-size: 11.5px; font-style: normal; color: var(--violet-2); font-variant-numeric: tabular-nums; }
.fx__label em.is-leak { color: var(--leak); }
.fx__lost {
  position: absolute;
  left: 0;
  padding: 3px 9px;
  border: 1px solid rgba(255, 77, 141, .6);
  border-radius: 999px;
  background: rgba(255, 77, 141, .16);
  font-size: 12px;
  color: #ffd6e5;
  transform: translateY(-50%);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .fx { padding: 18px; }
  .fx__label strong { font-size: 16px; }
  .fx__label span { font-size: 11.5px; }
  .fx__label em { font-size: 10.5px; }
}
.fx__leak {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 77, 141, .7);
  border-radius: 10px;
  background: rgba(255, 77, 141, .08);
  font-size: 13px;
  text-align: center;
  color: #ffd6e5;
}
.fx__fix {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  font-size: 14px;
  color: var(--soft);
  transition: color .2s, border-color .2s;
}
@media (hover: hover) { .fx__fix:hover { color: #fff; border-color: #fff; } }

/* ---------- 02 Funnel picker ---------- */
.picker { width: 100%; max-width: 600px; margin-inline: auto; }
.picker__title { margin-bottom: 16px; font-size: 20px; }
@media (min-width: 1024px) { .picker__title { font-size: 24px; } }
.picker__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.picker__tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color .25s, border-color .25s, background-color .25s;
}
@media (hover: hover) { .picker__tab:hover { color: #fff; } }
.picker__tab[aria-selected="true"] { color: #fff; border-color: var(--pill-border); background: rgba(255, 255, 255, .06); }
.picker__panel.is-switching { animation: panel-in .45s var(--ease-out); }
.picker__funnel { font-size: 26px; line-height: 1.15; }
@media (min-width: 1024px) { .picker__funnel { font-size: 32px; } }
.picker__label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.picker__method { font-size: 16px; }
.picker__why { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.picker__why p { font-size: 15px; color: var(--soft); }
.picker__note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.flow { counter-reset: flow; }
.flow__step {
  position: relative;
  padding: 0 0 18px 40px;
  font-size: 15px;
  color: var(--soft);
  counter-increment: flow;
  animation: step-in .45s var(--ease-out) both;
  animation-delay: calc(var(--i) * 70ms + 80ms);
}
.picker:not(.is-in) .flow__step { animation-play-state: paused; }
.flow__step::before {
  content: counter(flow);
  position: absolute;
  top: -2px;
  left: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(178, 102, 255, .6);
  border-radius: 50%;
  background: rgba(98, 0, 255, .18);
  font-size: 12px;
  color: #fff;
}
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 2px;
  left: 12.5px;
  width: 1px;
  background: linear-gradient(var(--violet-2), rgba(178, 102, 255, .15));
}
.flow__step:last-child { padding-bottom: 0; color: #fff; }
.flow__step:last-child::before { border-color: transparent; background: linear-gradient(135deg, var(--violet-1), var(--violet-3)); }

/* ---------- 03 Ads: method list + phone ---------- */
.methods { display: grid; gap: 10px; margin-top: 6px; }
.method {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color .3s, background-color .3s;
}
@media (hover: hover) { .method:hover { border-color: #3f3f46; } }
.method.is-active {
  border-color: rgba(178, 102, 255, .45);
  border-left-color: var(--violet-2);
  background: linear-gradient(90deg, rgba(98, 0, 255, .16), transparent 75%);
}
.method__name { font-size: 19px; color: var(--soft); transition: color .3s; }
.method.is-active .method__name { color: #fff; }
.method__when { font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) { .method__name { font-size: 22px; } }

.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  container-type: inline-size;
  width: min(300px, 78vw, calc((100vh - 180px) * 9 / 18.5));
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border: 1px solid #34343a;
  border-radius: 46px;
  background: linear-gradient(150deg, #2b2b31, #0c0c0e 55%);
  box-shadow: 0 50px 120px -30px rgba(98, 0, 255, .55);
  cursor: pointer;
}
.phone__screen {
  position: relative;
  isolation: isolate;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 44px 16px 14px;
  border-radius: 36px;
  overflow: hidden;
  background: #07030f;
}
.phone__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/noise.jpg") center / cover;
  opacity: .6;
}
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .75));
}
.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone__progress { display: flex; gap: 4px; }
.phone__seg { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.phone__seg i { display: block; width: 0; height: 100%; background: #fff; }
.phone__seg.is-done i { width: 100%; }
.phone__seg.is-now i { animation: seg-fill var(--dur, 2.8s) linear forwards; }
.phone__profile { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.phone__profile img {
  width: 28px;
  height: 28px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: #000;
  object-fit: contain;
}
.phone__profile small { display: block; font-size: 10px; color: rgba(255, 255, 255, .65); }
.phone__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.phone__body.is-changing > * { animation: blur-in .5s var(--ease-out) both; }
.phone__tag {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.phone__text { font-size: 22px; font-size: 7.6cqi; line-height: 1.2; }
.phone__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
}

.phone-caption { font-size: 13px; text-align: center; color: var(--muted); }

/* ---------- 04 Production: four studio tiles ---------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 560px; margin-inline: auto; }
.craft {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}
.craft__visual {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 9px;
  background: #0b0b10;
}
.craft__copy { display: grid; gap: 4px; padding: 0 2px 2px; }
.craft__title { font-size: 16px; line-height: 1.25; }
.craft__text { font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (max-width: 480px) {
  .studio { grid-template-columns: 1fr; }
  .craft { grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 14px; }
  .craft__copy { padding: 0; }
}

/* a backlit person in a viewfinder */
.film { background: radial-gradient(90% 80% at 50% 115%, rgba(224, 102, 255, .6), transparent 60%), radial-gradient(60% 60% at 15% 5%, rgba(98, 0, 255, .55), transparent 70%), #08040f; }
.film__corners {
  position: absolute;
  inset: 8%;
  z-index: 2;
  opacity: .85;
  background:
    linear-gradient(#fff, #fff) left top / 12% 1.5px no-repeat,
    linear-gradient(#fff, #fff) left top / 1.5px 16% no-repeat,
    linear-gradient(#fff, #fff) right top / 12% 1.5px no-repeat,
    linear-gradient(#fff, #fff) right top / 1.5px 16% no-repeat,
    linear-gradient(#fff, #fff) left bottom / 12% 1.5px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 1.5px 16% no-repeat,
    linear-gradient(#fff, #fff) right bottom / 12% 1.5px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 1.5px 16% no-repeat;
}
.film__rec, .film__time { position: absolute; top: 12%; z-index: 3; font-size: max(8px, 4.2cqi); line-height: 1; }
.film__rec { left: 13%; display: flex; align-items: center; gap: 5px; font-weight: 600; letter-spacing: .12em; }
.film__rec::before { content: ""; width: .8em; height: .8em; border-radius: 50%; background: #ff3b30; animation: rec 1.2s ease-in-out infinite alternate; }
.film__time { right: 13%; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.film__person { position: absolute; left: 50%; bottom: 0; width: 42%; height: 72%; transform: translateX(-50%); animation: breathe 4s ease-in-out infinite alternate; }
.film__person::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #140a22;
  box-shadow: 0 0 18px rgba(224, 102, 255, .5);
  transform: translateX(-50%);
}
.film__person::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  background: #140a22;
  box-shadow: 0 -4px 22px rgba(224, 102, 255, .45);
}

/* a bouncing ball with squash and stretch */
.anim { background: radial-gradient(80% 70% at 50% 0%, rgba(98, 0, 255, .38), transparent 70%), #08040f; }
.anim__floor { position: absolute; left: 12%; right: 12%; bottom: 20%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); }
.anim__ball {
  position: absolute;
  left: 41%;
  bottom: 20%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--violet-3) 35%, var(--accent) 78%);
  transform-origin: 50% 100%;
  animation: bounce 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
}
.anim__shadow {
  position: absolute;
  left: 40%;
  bottom: calc(20% - 4px);
  width: 20%;
  height: 8px;
  border-radius: 50%;
  background: rgba(98, 0, 255, .6);
  filter: blur(4px);
  animation: ball-shadow 1.2s cubic-bezier(.5, 0, .5, 1) infinite;
}

/* kinetic type */
.motion { display: grid; place-items: center; background: linear-gradient(135deg, #1b0a3a, var(--accent) 130%); }
.motion__word {
  position: absolute;
  font-size: 15cqi;
  font-weight: 700;
  letter-spacing: -.02em;
  opacity: 0;
  animation: kinetic 4s var(--ease-out) infinite;
}
.motion__word + .motion__word { animation-delay: 2s; }
.motion__bar { position: absolute; left: 14%; right: 14%; bottom: 16%; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.motion__bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill-bar 2s linear infinite; }

/* a small brand sheet */
.brand {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 6%;
  padding: 11%;
  background: #f3f0fa;
}
.brand__mark {
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 68% 32%, #f3f0fa 0 24%, transparent 25%), linear-gradient(135deg, var(--accent), var(--violet-3));
}
.brand__type { font-size: 21cqi; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: #1b0a3a; }
.brand__swatches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6%; width: 100%; }
.brand__swatches i { height: 11cqi; border-radius: 4px; }
.brand__swatches i:nth-child(1) { background: #1b0a3a; }
.brand__swatches i:nth-child(2) { background: var(--accent); }
.brand__swatches i:nth-child(3) { background: var(--violet-3); }
.brand__swatches i:nth-child(4) { background: #d9d2ea; }
.craft.is-in .brand__swatches i { animation: pop .5s var(--ease-back) both; }
.craft.is-in .brand__swatches i:nth-child(2) { animation-delay: .12s; }
.craft.is-in .brand__swatches i:nth-child(3) { animation-delay: .24s; }
.craft.is-in .brand__swatches i:nth-child(4) { animation-delay: .36s; }

/* ---------- 04 AI call demo ---------- */
.call {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 70% at 0% 0%, rgba(98, 0, 255, .14), transparent 60%), #000;
}
.call__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.call__badge { letter-spacing: .18em; text-transform: uppercase; font-size: 11px; }
.call__status { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-variant-numeric: tabular-nums; }
.call__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-2); animation: pulse 1.6s infinite; }
.call.is-ended .call__dot { background: var(--muted); animation: none; }
.call__who { display: flex; align-items: center; gap: 12px; }
.call__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-1), var(--violet-3));
  font-size: 14px;
}
.call__name { display: block; font-size: 16px; font-weight: 400; }
.call__source { font-size: 13px; color: var(--muted); }

.wave { width: 100%; height: 72px; overflow: visible; }
.wave line {
  stroke: var(--violet-2);
  stroke-width: 2px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: wave 2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 40ms);
}
.call.is-ended .wave line { animation-play-state: paused; opacity: .35; transition: opacity .6s; }

.call__log { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 86%;
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--soft);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: opacity .45s ease, filter .45s ease, transform .45s var(--ease-out);
}
.bubble.is-shown { opacity: 1; filter: none; transform: none; }
.bubble--ai { align-self: flex-start; border: 1px solid rgba(178, 102, 255, .35); border-bottom-left-radius: 4px; background: rgba(98, 0, 255, .14); }
.bubble--lead { align-self: flex-end; border: 1px solid var(--line); border-bottom-right-radius: 4px; background: #0f0f10; }
.bubble__who { display: block; margin-bottom: 2px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.call__result {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(178, 102, 255, .6);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(106, 13, 173, .35), rgba(224, 102, 255, .2));
  font-size: 14px;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .5s ease, transform .6s var(--ease-back);
}
.call__result::before { content: "✓"; }
.call__result.is-shown { opacity: 1; transform: none; }

/* ---------- Contact ---------- */
.contact { position: relative; height: 100vh; height: 100lvh; min-height: 560px; overflow: hidden; }
@media (max-width: 767px) { .contact { height: 100svh; } }   /* copyright and GDPR stay above the browser's toolbar */
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.contact__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: var(--gutter);
  text-align: center;
}
.contact__title { font-size: 36px; line-height: 1.1; }
@media (min-width: 1024px) { .contact__title { font-size: 60px; } }
.contact__email { margin: -8px 0; padding: 8px 4px; font-size: 18px; text-decoration: underline; text-underline-offset: 4px; }   /* a finger-sized target, same layout */
.contact__inner .pill { margin-top: 12px; }
.contact__dev { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.contact__dev a { display: inline-block; margin: -10px 0; padding: 10px 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.contact__copy { position: absolute; left: var(--wrap); bottom: 22px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.contact__gdpr {
  position: absolute;
  right: var(--wrap);
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #000;
  font-size: 14px;
  transition: background-color .2s;
}
@media (hover: hover) { .contact__gdpr:hover { background: #262626; } }

/* ---------- Booking page (rezervacia/) ---------- */
.bk-page { min-height: 100vh; background: radial-gradient(70% 50% at 100% 0%, rgba(98, 0, 255, .22), transparent 70%), #000; }
.bk-top { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 16px var(--gutter) 0; }   /* the back link starts where the page content starts */
@media (min-width: 1024px) { .bk-top { padding-top: 24px; } }   /* level with the EN button */
.bk-top--narrow { max-width: 760px; }   /* GDPR: as wide as the text */
.bk-home {   /* a pill big enough for a thumb, as on rempace.com */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(156, 163, 175, .45);
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 13px;
  color: var(--soft);
  transition: color .2s, border-color .2s;
}
@media (hover: hover) { .bk-home:hover { color: #fff; border-color: var(--pill-border); } }
.bk-page .lang { position: absolute; }   /* stays at the top instead of covering the form while it scrolls */

.bk {
  display: grid;
  gap: 24px;
  max-width: calc(var(--maxw) + 2 * var(--gutter));   /* padding outside the content width, like the sections */
  margin: 0 auto;
  padding: 32px var(--gutter) 96px;
}
@media (min-width: 1024px) {
  .bk { grid-template-columns: 340px minmax(0, 1fr); gap: 48px; padding-top: 56px; align-items: start; }
  .bk-summary { position: sticky; top: 32px; }
}

.bk-summary { gap: 12px; }
.bk-title { font-size: 32px; line-height: 1.1; }
@media (min-width: 1024px) { .bk-title { font-size: 44px; } }
.bk-meta { font-size: 14px; color: var(--muted); }
.bk-sum { display: grid; gap: 16px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.bk-sum dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bk-sum dd { display: grid; gap: 6px; margin: 6px 0 0; font-size: 15px; color: var(--soft); }
.bk-sum dd.is-empty { color: #52525b; }
@media (max-width: 1023px) {   /* phones and tablets: the summary sits above the form, so it only lists what is chosen */
  .bk-sum > div:has(> dd.is-empty) { display: none; }
  .bk-sum:not(:has(dd:not(.is-empty))) { display: none; }
}
.bk-sum__row { display: flex; justify-content: space-between; gap: 12px; }
.bk-sum__price { white-space: nowrap; color: var(--violet-2); }

.bk-steps { display: flex; gap: 8px; margin-bottom: 32px; counter-reset: step; }
.bk-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  counter-increment: step;
  transition: color .3s, border-color .3s;
}
.bk-steps li::before {
  content: counter(step);
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
}
.bk-steps li.is-current { color: #fff; border-color: var(--violet-2); }
.bk-steps li.is-current::before { border-color: var(--violet-2); background: rgba(98, 0, 255, .3); }
.bk-steps li.is-done { color: var(--soft); border-color: rgba(178, 102, 255, .45); }
.bk-steps li.is-done::before { content: "✓"; border-color: transparent; background: var(--accent); color: #fff; }

.bk-status { display: grid; gap: 12px; justify-items: start; margin-bottom: 24px; }
.bk-loading { color: var(--muted); animation: fade-pulse 1.2s ease-in-out infinite alternate; }

.bk-step { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; animation: blur-in .45s var(--ease-out); }
.bk-legend { padding: 0; font-size: 28px; line-height: 1.15; outline: none; }
legend.bk-legend { margin-bottom: 18px; }
@media (min-width: 1024px) { .bk-legend { font-size: 36px; } }
.bk-sub { font-size: 15px; color: var(--muted); }
.bk-label { margin-top: 12px; font-size: 18px; }

.bk-options { display: grid; gap: 10px; }
.bk-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
@media (hover: hover) { .bk-option:hover { border-color: #3f3f46; } }
.bk-option:has(input:checked) {
  border-color: rgba(178, 102, 255, .7);
  background: linear-gradient(90deg, rgba(98, 0, 255, .14), transparent 70%), #000;
}
.bk-option input, .bk-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bk-option__box {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pill-border);
  border-radius: 7px;
  font-size: 13px;
  transition: background-color .2s, border-color .2s;
}
.bk-option input:checked + .bk-option__box { border-color: var(--accent); background: var(--accent); }
.bk-option input:checked + .bk-option__box::after { content: "✓"; }
.bk-option input:focus-visible + .bk-option__box { outline: 2px solid var(--violet-2); outline-offset: 3px; }
.bk-option__body { display: grid; gap: 2px; }
.bk-option__name { font-size: 17px; }
.bk-option__desc { font-size: 14px; color: var(--muted); }
.bk-option__price { grid-column: 2; font-size: 15px; white-space: nowrap; color: var(--violet-2); }
@media (min-width: 600px) {
  .bk-option { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 18px 20px; }
  .bk-option__price { grid-column: 3; grid-row: 1; text-align: right; }
}

.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip { position: relative; cursor: pointer; }
.bk-chip span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--soft);
  transition: color .2s, border-color .2s, background-color .2s;
}
@media (hover: hover) { .bk-chip:hover span { border-color: #3f3f46; color: #fff; } }
.bk-chip input:checked + span { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.bk-chip input:focus-visible + span { outline: 2px solid var(--violet-2); outline-offset: 3px; }

.bk-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pill--solid { border-color: #fff; background: #fff; color: #000; font-weight: 500; }
@media (hover: hover) { .pill--solid:hover { background: #fff; } }
.pill:disabled { opacity: .6; cursor: progress; transform: none; }
.bk-back { padding: 10px 4px; font-size: 15px; color: var(--muted); transition: color .2s; }
@media (hover: hover) { .bk-back:hover { color: #fff; } }
.bk-error { font-size: 14px; color: #ffb3cd; }

.bk-when { display: grid; gap: 24px; }
@media (min-width: 720px) { .bk-when { grid-template-columns: minmax(0, 420px) minmax(160px, 220px); gap: 40px; } }
.bk-cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bk-cal__month { font-size: 18px; }
.bk-cal__nav {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  transition: border-color .2s, opacity .2s;
}
@media (hover: hover) { .bk-cal__nav:hover:not(:disabled) { border-color: var(--pill-border); } }
.bk-cal__nav:disabled { opacity: .25; cursor: default; }
.bk-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-cal__wd { padding-bottom: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--muted); }
.bk-day {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: #3f3f46;
}
.bk-day:disabled { cursor: default; }
.bk-day.is-available {
  border-color: rgba(178, 102, 255, .35);
  background: rgba(98, 0, 255, .16);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
@media (hover: hover) { .bk-day.is-available:hover { background: rgba(98, 0, 255, .35); } }
.bk-day.is-selected { border-color: var(--accent); background: var(--accent); }
.bk-cal__empty { margin-top: 12px; font-size: 14px; color: var(--muted); }
.bk-times { display: grid; align-content: start; gap: 10px; }
.bk-times__day { font-size: 15px; color: var(--soft); }
.bk-times__hint { font-size: 14px; color: var(--muted); }
.bk-times__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
@media (min-width: 720px) { .bk-times__list { grid-template-columns: 1fr; max-height: 380px; padding-right: 4px; overflow-y: auto; } }
.bk-time {
  padding: 11px 8px;
  border: 1px solid rgba(178, 102, 255, .45);
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s, border-color .2s;
}
@media (hover: hover) { .bk-time:hover { background: rgba(98, 0, 255, .25); } }
.bk-time.is-selected { border-color: var(--accent); background: var(--accent); }
.bk-tz { font-size: 12px; color: var(--muted); }

.bk-fields { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .bk-fields { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; align-content: start; gap: 6px; }
.field label { font-size: 13px; color: var(--soft); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0a0b;
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(178, 102, 255, .2); }
.field [aria-invalid="true"] { border-color: var(--leak); }
.field__error { font-size: 13px; color: #ffb3cd; }
.bk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* After the booking: a page of its own, centred (Matej, 20 Oct 2026): the calendar button big in the middle,
   then the film about how we work */
.bk-page.is-done { background: radial-gradient(60% 40% at 50% 0%, rgba(98, 0, 255, .26), transparent 70%), #000; }
.bk-done {
  display: grid;
  justify-items: center;
  max-width: calc(960px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px var(--gutter) 120px;
  text-align: center;
  animation: blur-in .6s var(--ease-out);
}
.bk-done__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-1), var(--violet-3));
  box-shadow: 0 0 0 8px rgba(178, 102, 255, .12), 0 10px 40px rgba(98, 0, 255, .45);
  font-size: 28px;
}
.bk-done__title { margin-top: 28px; font-size: 34px; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; outline: none; }
@media (min-width: 1024px) { .bk-done__title { font-size: 56px; } }
.bk-done__when { margin-top: 20px; font-size: 14px; }
.bk-done__calendar { margin-top: 36px; gap: 12px; padding: 18px 40px; font-size: 18px; box-shadow: 0 12px 48px rgba(98, 0, 255, .45); }
.bk-done__calendar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bk-done__text { margin-top: 16px; font-size: 14px; color: var(--muted); }
.bk-done__home { margin-top: 56px; }

/* ---------- How we work: a short film under the booking confirmation (how-we-work.js) ----------
   The stage keeps its proportions (16:9, 4:3 under 640 px of width, 5:6 under 480 px), the network is SVG
   drawn in the stage's own pixels and the captions are text on top of it. */
.hw { justify-self: stretch; display: grid; justify-items: center; margin-top: 112px; }
.hw .eyebrow::before { content: ""; width: 48px; height: 1px; background: linear-gradient(270deg, var(--violet-2), transparent); }
.hw__title { max-width: 24em; margin-top: 16px; font-size: 24px; line-height: 1.25; text-wrap: balance; }
@media (min-width: 1024px) { .hw__title { font-size: 32px; } }

.hw-player { container-type: inline-size; justify-self: stretch; display: grid; gap: 10px; margin-top: 32px; text-align: left; }
.hw-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(60% 55% at 50% 16%, rgba(98, 0, 255, .24), transparent 72%), #050507;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@container (max-width: 639px) { .hw-stage { aspect-ratio: 4 / 3; } }
@container (max-width: 479px) { .hw-stage { aspect-ratio: 5 / 6; } }
.hw-stage::before {   /* a faint grid of dots behind the network, fading out towards the edges */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 35%, #000 20%, transparent 100%);
  mask-image: radial-gradient(75% 65% at 50% 35%, #000 20%, transparent 100%);
}
.hw-net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hw-string { fill: none; stroke: var(--violet-2); stroke-width: 1.3; }
.hw-string--glow { stroke-width: 6; }
.hw-link { fill: none; stroke: #fff; stroke-width: 1.3; }
.hw-ring { fill: none; stroke: var(--violet-2); stroke-width: 1.5; }
.hw-label {
  font-size: 13px;
  fill: var(--soft);
  text-anchor: middle;
  paint-order: stroke;
  stroke: #050507;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.hw-label--pm { font-size: 14px; fill: #fff; text-anchor: start; }
@container (max-width: 639px) { .hw-label { font-size: 11px; } .hw-label--pm { font-size: 12px; } }
@container (max-width: 359px) { .hw-label { font-size: 10px; } .hw-label--pm { font-size: 11px; } }

.hw-chapter {
  position: absolute;
  top: 16px;
  left: 18px;
  display: flex;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hw-chapter b { font-weight: 400; color: var(--violet-2); }

.hw-cap { position: absolute; inset: auto 0 0; padding: 0 6cqi 5.5cqi; text-align: center; pointer-events: none; }
.hw-cap p { max-width: 24em; margin-inline: auto; text-wrap: balance; }
.hw-cap__title, .hw-cap__then { font-size: clamp(20px, 3.4cqi, 30px); line-height: 1.2; letter-spacing: -.01em; }
.hw-cap__title { transition: color .6s; }
.hw-cap.is-dim .hw-cap__title { color: var(--muted); }
.hw-cap__then { margin-top: 4px; animation: blur-in .8s var(--ease-out) both; }
.hw-cap__then span {
  display: inline-block;
  background: linear-gradient(to right, #fff, var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(178, 102, 255, .45));
}
.hw-cap__sub {
  margin-top: 10px;
  font-size: clamp(14px, 2cqi, 17px);
  color: var(--soft);
  animation: blur-in .7s var(--ease-out) var(--delay, 0s) both;
}

.hw-over {   /* before it starts and while paused: a dimmed frame with the play button in the middle */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 7, .45);
  pointer-events: none;
  transition: background-color .3s;
}
.hw-stage.is-playing .hw-over, .hw-stage.is-ended .hw-over { background: none; }
.hw-stage.is-ended .hw-over { place-items: start end; padding: 12px; }
.hw-big { pointer-events: auto; gap: 12px; }
.hw-big svg { width: 14px; height: 14px; }
.hw-stage.is-ended .hw-big { gap: 8px; padding: 9px 16px; border-color: rgba(156, 163, 175, .45); font-size: 13px; color: var(--soft); }
.hw-stage.is-ended .hw-big svg { width: 12px; height: 12px; }

.hw-bar { display: flex; align-items: center; gap: 14px; }
.hw-toggle {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 163, 175, .45);
  border-radius: 50%;
  color: var(--soft);
  transition: color .2s, border-color .2s, transform .2s;
}
@media (hover: hover) { .hw-toggle:hover { color: #fff; border-color: var(--pill-border); } }
.hw-toggle svg { width: 14px; height: 14px; }
.hw-segs { flex: 1; display: flex; gap: 6px; min-width: 0; }
.hw-seg { flex: var(--len) 1 0; min-width: 0; height: 28px; display: flex; align-items: center; }
.hw-seg i { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: #27272a; transition: background-color .2s; }
.hw-seg i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--violet-2), #fff);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.hw-seg.is-current i { background: #3f3f46; }
@media (hover: hover) { .hw-seg:hover i { background: #52525b; } }

/* Read by screen readers, not shown (the film's transcript) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Keyframes ---------- */
@keyframes fade-pulse { from { opacity: .45; } }
@keyframes rec { from { opacity: 1; } to { opacity: .25; } }
@keyframes breathe { to { transform: translateX(-50%) scale(1.03); } }
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1.25, .8); }
  12% { transform: translateY(-10%) scale(.9, 1.12); }
  50% { transform: translateY(-160%) scale(1); }
  88% { transform: translateY(-10%) scale(.92, 1.1); }
}
@keyframes ball-shadow { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .3; transform: scale(.5); } }
@keyframes kinetic {
  0% { opacity: 0; filter: blur(6px); transform: translateY(40%) scale(.9); }
  10%, 40% { opacity: 1; filter: none; transform: none; }
  50%, 100% { opacity: 0; filter: blur(6px); transform: translateY(-40%) scale(1.05); }
}
@keyframes fill-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes blur-word {
  0% { opacity: 0; filter: blur(10px); transform: translate3d(0, 50px, 0); }
  50% { opacity: .5; filter: blur(5px); transform: translate3d(0, -5px, 0); }
  100% { opacity: 1; filter: none; transform: none; }
}
@keyframes blur-in { from { opacity: 0; filter: blur(8px); transform: translateY(6px); } }
@keyframes panel-in { from { opacity: 0; filter: blur(8px); } }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes seg-fill { to { width: 100%; } }
@keyframes wave {
  0% { transform: scaleY(1); stroke: #fffbbb; }
  50% { transform: scaleY(1.2); stroke: var(--violet-1); }
  100% { transform: scaleY(1); stroke: var(--violet-2); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(178, 102, 255, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(178, 102, 255, 0); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Phones (rezervacia/) ----------
   The same as on rempace.com: under 768 px the summary is a short header and the bar with the main button
   stays at the bottom of the screen while you fill a step in. The computer layout does not change. */
@media (max-width: 767px) {
  .bk { gap: 20px; padding: 24px var(--gutter) 0; }
  .bk-summary { gap: 8px; padding: 18px 20px; }
  .bk-title { font-size: 28px; }
  .bk-steps { margin-bottom: 24px; }
  .bk-step { gap: 16px; }
  legend.bk-legend { margin-bottom: 12px; }
  .bk-legend { font-size: 26px; }
  .bk-label { margin-top: 8px; }
  .bk-option { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 16px; }
  .bk-option__price { grid-column: 3; grid-row: 1; font-size: 14px; text-align: right; }
  .bk-option__desc { font-size: 13px; }
  .bk-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 8px calc(-1 * var(--gutter)) 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .bk-done { padding: 40px var(--gutter) 64px; }
  .bk-done__title { margin-top: 24px; font-size: 32px; }
  .bk-done__calendar { margin-top: 28px; padding: 16px 32px; font-size: 17px; }
  .hw { margin-top: 64px; }
  .hw-player { margin-top: 24px; }
  .bk-done__home { margin-top: 40px; }
}

/* ---------- Touch screens ----------
   With no pointer to hover with, the hover looks (all inside @media (hover: hover)) stay off, so a tap
   no longer leaves a pill enlarged. A short press takes their place. */
@media (hover: none) {
  html { -webkit-tap-highlight-color: transparent; }
  .pill:active, .lang:active, .bk-home:active, .bk-option:active, .bk-time:active, .bk-chip:active span, .division__item:active { transform: scale(.97); }
  .floating.is-visible .pill:active { transform: scale(.98); }
  .bk-day.is-available:active, .hw-toggle:active { transform: scale(.92); }
}
