/* Bublix landing v2 (conversion-first)
   Typography: Unbounded + Golos Text
   Color direction: ink + sand + acid lime
*/

:root {
  --bg: #07080d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.11);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.70);
  --muted2: rgba(255, 255, 255, 0.52);
  --border: rgba(255, 255, 255, 0.16);

  /* Serious palette: green + violet + red */
  --lime: #b7ff2a;
  --blue: #7c3cff;   /* violet */
  --orange: #ff2c4c; /* red */

  /* RGB helpers for consistent gradients */
  --lime-rgb: 183, 255, 42;
  --violet-rgb: 124, 60, 255;
  --red-rgb: 255, 44, 76;

  --radius: 16px;
  --radius2: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);

  --font-body: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Unbounded", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --pad: 20px;

  /* Hero showreel framing: higher Y moves content down in the frame. */
  --showreel-y: 42%;
}

/* Respect the native `hidden` attribute (otherwise `.modal { display: grid; }` will override it). */
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  background: radial-gradient(1200px 600px at 18% 10%, rgba(var(--violet-rgb), 0.30), transparent 60%),
              radial-gradient(900px 550px at 78% 0%, rgba(var(--lime-rgb), 0.20), transparent 55%),
              radial-gradient(1100px 600px at 78% 72%, rgba(var(--red-rgb), 0.10), transparent 58%),
              radial-gradient(900px 600px at 45% 90%, rgba(var(--violet-rgb), 0.14), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* A bit of premium texture without extra assets. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.05), transparent 35%),
    radial-gradient(circle at 70% 0%, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(255,255,255,0.04), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px);
  opacity: 0.22;
  mix-blend-mode: overlay;
  z-index: 0;
}

@keyframes hazeMove {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-18px, 22px, 0) scale(1.02); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(closest-side at var(--mx, 35%) var(--my, 22%), rgba(var(--lime-rgb), 0.06), transparent 46%),
    radial-gradient(closest-side at 65% 20%, rgba(var(--violet-rgb), 0.10), transparent 70%),
    radial-gradient(closest-side at 72% 78%, rgba(var(--red-rgb), 0.05), transparent 72%);
  filter: blur(14px);
  opacity: 0.54;
  animation: hazeMove 10s ease-in-out infinite;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 10px;
  top: 10px;
  transform: translateY(-160%);
  padding: 10px 12px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 999;
}
.skip:focus { transform: translateY(0); outline: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 65;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 13, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--lime-rgb),0.0), rgba(var(--lime-rgb),0.55), rgba(var(--violet-rgb),0.42), rgba(var(--lime-rgb),0.0));
  opacity: 0.55;
  pointer-events: none;
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand__mark {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: conic-gradient(from 180deg, var(--lime), var(--blue), var(--orange), var(--lime));
  box-shadow: 0 0 0 4px rgba(var(--lime-rgb), 0.10);
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__dot { color: var(--lime); font-weight: 800; }

.nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.nav__link {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--lime-rgb),0.0), rgba(var(--lime-rgb),0.70), rgba(var(--violet-rgb),0.55), rgba(var(--lime-rgb),0.0));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav__link:hover::after { opacity: 0.9; transform: translateY(0); }

.header__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0; /* allow CTA to truncate instead of stretching header */
}

/* Header CTA: keep it on one line without changing header height. */
.header__right .btn--primary { white-space: nowrap; }

@media (max-width: 1180px) {
  .header__right .btn--primary { font-size: 13px; padding: 10px 14px; }
  .nav { gap: 12px; }
  .nav__link { padding: 8px 8px; }
}

.lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.lang__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang__btn.is-active { background: rgba(255, 255, 255, 0.10); color: var(--text); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  position: relative;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  position: absolute;
  left: 10px;
  right: 10px;
  background: var(--text);
  border-radius: 99px;
  transition: transform .18s ease, opacity .18s ease;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile {
  position: fixed;
  inset: 0;
  z-index: 75;
  padding-top: 82px;
  background: rgba(7, 8, 13, 0.68);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transition: opacity .22s ease, transform .22s ease;
  display: grid;
  align-content: start;
  overflow: auto;
}
.mobile.is-open { opacity: 1; transform: none; }
.mobile__inner { padding: 18px 0 22px; display: grid; gap: 10px; }
.mobile__link {
  position: relative;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.10));
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  overflow: hidden;
}
.mobile__link::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, rgba(200,255,61,0.0), rgba(200,255,61,0.30), rgba(47,107,255,0.26), rgba(255,77,46,0.22), rgba(200,255,61,0.0));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.mobile__link > * { position: relative; z-index: 1; }
.mobile__link:hover::before { opacity: 1; }
.mobile__link:hover { border-color: rgba(255,255,255,0.18); }
.mobile__cta { padding-top: 6px; }
.mobile__lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  justify-self: start;
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.06); }
.btn--full { width: 100%; }
.btn--primary {
  border-color: rgba(var(--lime-rgb), 0.34);
  background: linear-gradient(135deg, rgba(var(--lime-rgb), 0.18), rgba(var(--violet-rgb), 0.10)), rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 60px rgba(var(--lime-rgb), 0.08);
}
.btn--primary:hover { border-color: rgba(var(--lime-rgb), 0.52); }
.btn--ghost { background: transparent; }

/* Hero */
.hero { position: relative; padding: clamp(34px, 5vw, 52px) 0 34px; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: -40% -40%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotate(-12deg);
  opacity: 0.16;
}

@keyframes gridShift {
  0% { transform: rotate(-12deg) translate3d(0, 0, 0); }
  100% { transform: rotate(-12deg) translate3d(-60px, 40px, 0); }
}
.hero__grid { animation: gridShift 14s linear infinite; }
.hero__orb {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.38;
}

@keyframes orbFloat {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(10px, 18px, 0); }
  100% { transform: translate3d(0,0,0); }
}
.hero__orb { animation: orbFloat 8s ease-in-out infinite; }
.hero__orb--b { animation-duration: 10s; }
.hero__orb--a { left: -180px; top: -180px; background: radial-gradient(circle at 40% 30%, rgba(var(--violet-rgb), 0.92), transparent 60%); }
.hero__orb--b { right: -220px; top: -220px; background: radial-gradient(circle at 40% 30%, rgba(var(--lime-rgb), 0.88), transparent 60%); }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 13px;
}
.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(var(--lime-rgb), 0.12);
}

.h1, .h2, .h3 { font-family: var(--font-head); letter-spacing: -0.03em; margin: 0; }
.h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; margin-top: 14px; }
.h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.h3 { font-size: 18px; line-height: 1.2; }

.hero .h1 {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.96),
    rgba(var(--lime-rgb),0.96),
    rgba(var(--violet-rgb),0.96)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: headlineShift 6.5s ease-in-out infinite;
}
@keyframes headlineShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 60ch; }
.hero__line {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  max-width: 72ch;
}
.hero__fine {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}
.hero__micro {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

.hero__actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.trust {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust__item {
  padding: 9px 12px 9px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255,255,255,0.78);
  position: relative;
}
.trust__item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: rgba(var(--lime-rgb), 0.92);
}

.card {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showreel {
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(600px 240px at 30% 20%, rgba(47,107,255,0.26), transparent 60%),
    radial-gradient(520px 240px at 80% 30%, rgba(200,255,61,0.16), transparent 60%),
    rgba(0,0,0,0.18);
}
.showreel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.showreel__label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.showreel__dots { display: flex; gap: 6px; }
.showreel__dots span { width: 10px; height: 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); }
.showreel__dots span:nth-child(1) { background: rgba(var(--red-rgb),0.30); border-color: rgba(var(--red-rgb),0.40); }
.showreel__dots span:nth-child(2) { background: rgba(var(--lime-rgb),0.24); border-color: rgba(var(--lime-rgb),0.40); }
.showreel__dots span:nth-child(3) { background: rgba(var(--violet-rgb),0.22); border-color: rgba(var(--violet-rgb),0.40); }
.showreel__stage { padding: 0 14px 14px; }
.showreel__frame {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
  background: rgba(0,0,0,0.22);
  box-shadow: 0 18px 70px rgba(0,0,0,0.55);
}
.showreel__frame video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: 50% var(--showreel-y);
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .65s ease;
}
.card:hover .showreel__frame video { transform: scale(1.035); }
.card__top { padding: 18px 18px 0; }
.card__kicker { margin: 0; font-size: 12px; color: rgba(var(--lime-rgb), 0.95); text-transform: uppercase; letter-spacing: 0.12em; }
.card__title { margin: 10px 0 0; font-family: var(--font-head); font-size: 22px; }
.card__sub { margin: 8px 0 0; color: var(--muted); }

.form { padding: 14px 18px 18px; display: grid; gap: 12px; }
.form__hint { margin: 0; font-size: 12px; color: var(--muted2); }
.quiz-teaser {
  padding: 14px 18px 18px;
  display: grid;
  gap: 12px;
}
.quiz-teaser__title {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  font-size: 14px;
  color: rgba(255,255,255,0.90);
}
.quiz-teaser__list { display: grid; gap: 10px; }
.quiz-teaser__item {
  padding: 10px 12px 10px 26px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  position: relative;
}
.quiz-teaser__item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(var(--lime-rgb), 0.08);
}

.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; color: var(--muted); }
.field__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  color-scheme: dark;
  outline: none;
}
.field__input:focus { border-color: rgba(var(--lime-rgb), 0.50); box-shadow: 0 0 0 5px rgba(var(--lime-rgb), 0.10); }
textarea.field__input { resize: vertical; min-height: 110px; }

/* Remove default white arrows and draw our own for selects. */
select.field__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(200,255,61,0.86) 50%),
    linear-gradient(135deg, rgba(200,255,61,0.86) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}
select.field__input::-ms-expand { display: none; }
select.field__input option,
select.field__input optgroup {
  background: #0b0c12;
  color: rgba(255,255,255,0.92);
}

.logos { padding-top: 16px; }
.logos__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  opacity: 0.84;
}
.logo {
  height: 56px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  /* Dark plate; logos are rendered in white for a consistent row. */
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.14));
  box-shadow: 0 14px 44px rgba(0,0,0,0.44);
}
.logo img {
  width: 100%;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1) contrast(1.05) drop-shadow(0 10px 22px rgba(0,0,0,0.45));
  opacity: 0.94;
}
.logos__row .logo:nth-child(4) img {
  /* Keep the 4th logo original (no forced whitening). */
  filter: none;
  opacity: 0.92;
}

/* Sections */
.section { padding: 56px 0; }
.section--alt {
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(var(--lime-rgb),0.07), transparent 60%),
    radial-gradient(900px 420px at 80% 30%, rgba(var(--violet-rgb),0.08), transparent 60%),
    rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.section__head { max-width: 78ch; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin: 0 0 12px;
}
.muted { color: var(--muted); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.tile {
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.list { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--muted); }
.list li { margin: 8px 0; }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.price {
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}
.price__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--lime-rgb), 0.12);
  border: 1px solid rgba(var(--lime-rgb), 0.40);
  color: rgba(var(--lime-rgb), 0.92);
  font-size: 12px;
}
.price__meta { margin: 6px 0 0; color: var(--muted); }
.price__value { margin: 14px 0 0; font-size: 16px; color: var(--muted); }
.price__value strong { color: var(--text); font-size: 28px; font-family: var(--font-head); letter-spacing: -0.03em; }
.price--featured {
  background: linear-gradient(180deg, rgba(var(--lime-rgb), 0.12), rgba(var(--violet-rgb), 0.06), rgba(255, 255, 255, 0.04));
  border-color: rgba(var(--lime-rgb), 0.26);
  box-shadow: 0 26px 90px rgba(var(--lime-rgb), 0.06);
}

.pricing .btn { margin-top: auto; }

.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.cases-more { margin-top: 14px; display: flex; justify-content: center; }
.cases-more .btn { min-width: min(340px, 100%); }
.case {
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.case__art {
  height: 130px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 12px;
}
.case__art--a { background: radial-gradient(circle at 30% 30%, rgba(var(--violet-rgb), 0.80), transparent 60%), linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.00)); }
.case__art--b { background: radial-gradient(circle at 30% 30%, rgba(var(--red-rgb), 0.78), transparent 60%), linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.00)); }
.case__art--c { background: radial-gradient(circle at 30% 30%, rgba(var(--lime-rgb), 0.72), transparent 60%), linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.00)); }

.link { color: rgba(var(--lime-rgb), 0.92); font-weight: 600; display: inline-flex; margin-top: 10px; }
.link:hover { text-decoration: underline; }

.cases-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.filter {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}
.filter.is-active {
  color: var(--text);
  border-color: rgba(var(--lime-rgb), 0.34);
  background: rgba(var(--lime-rgb), 0.10);
}

.case-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px auto;
  cursor: pointer;
  position: relative;
  isolation: isolate;
}
.case-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.9,.2,1);
  background:
    radial-gradient(520px 320px at var(--cx, 50%) var(--cy, 35%), rgba(var(--violet-rgb),0.14), transparent 64%),
    radial-gradient(460px 300px at calc(var(--cx, 50%) + 10%) calc(var(--cy, 35%) - 8%), rgba(var(--lime-rgb),0.12), transparent 66%),
    radial-gradient(480px 320px at calc(var(--cx, 50%) - 12%) calc(var(--cy, 35%) + 10%), rgba(var(--red-rgb),0.05), transparent 66%);
  mix-blend-mode: screen;
  z-index: 0;
}
.case-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transform: rotate(0deg);
  background: conic-gradient(from 180deg,
    rgba(var(--lime-rgb), 0.62),
    rgba(var(--violet-rgb), 0.56),
    rgba(var(--red-rgb), 0.22),
    rgba(var(--lime-rgb), 0.62)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(0.2px);
  z-index: 0;
}
@keyframes caseBorderSpin {
  to { transform: rotate(360deg); }
}
.case-card:hover::before { opacity: 1; transform: scale(1); }
.case-card:hover::after { opacity: 1; animation: caseBorderSpin 2.8s linear infinite; }
.case-card__thumb {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: flex-end;
  padding: 16px 16px 14px;
  min-height: 160px;
  background:
    radial-gradient(700px 260px at 20% 30%, rgba(var(--violet-rgb),0.14), transparent 65%),
    radial-gradient(520px 240px at 80% 20%, rgba(var(--lime-rgb),0.10), transparent 60%),
    radial-gradient(620px 260px at 70% 90%, rgba(var(--violet-rgb),0.14), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.10));
}
.case-card__thumb,
.case-card__meta { position: relative; z-index: 1; }
.case-card__thumb::before,
.case-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.case-card__thumb::before {
  background:
    radial-gradient(600px 220px at 20% 20%, rgba(0,0,0,0.10), transparent 55%),
    radial-gradient(520px 220px at 80% 30%, rgba(0,0,0,0.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.40));
}
.case-card__thumb::after {
  opacity: 0.75;
  background: radial-gradient(circle at 30% 30%, rgba(var(--lime-rgb),0.18), transparent 60%),
              radial-gradient(circle at 70% 20%, rgba(var(--violet-rgb),0.16), transparent 55%),
              radial-gradient(circle at 60% 90%, rgba(var(--red-rgb),0.06), transparent 55%);
  mix-blend-mode: screen;
}
.case-card[data-cat="ads"] .case-card__thumb::after {
  background: radial-gradient(circle at 30% 30%, rgba(var(--red-rgb),0.18), transparent 60%),
              radial-gradient(circle at 70% 20%, rgba(var(--violet-rgb),0.16), transparent 55%);
}
.case-card[data-cat="sites"] .case-card__thumb::after {
  background: radial-gradient(circle at 30% 30%, rgba(var(--violet-rgb),0.18), transparent 60%),
              radial-gradient(circle at 70% 20%, rgba(var(--lime-rgb),0.14), transparent 55%);
}
.case-poster { width: 100%; display: grid; gap: 10px; position: relative; z-index: 1; }
.case-poster__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.case-poster__title { font-family: var(--font-head); font-size: 18px; letter-spacing: -0.02em; }
.case-poster__sub { color: rgba(255,255,255,0.74); font-size: 13px; }
.case-poster__metric {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case-poster__metric span {
  background: linear-gradient(90deg, rgba(var(--lime-rgb),0.95), rgba(var(--violet-rgb),0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-poster__metric span + span {
  font-size: 14px;
  letter-spacing: -0.01em;
  opacity: 0.96;
}

.case-card {
  transform: perspective(900px) translate3d(0, var(--ty, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform .22s cubic-bezier(.2,.9,.2,1), border-color .18s ease, background .18s ease;
  will-change: transform;
}
.case-card:hover { --ty: -6px; --s: 1.01; border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
.case-card__meta {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.badge {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge--site { border-color: rgba(var(--violet-rgb), 0.40); color: rgba(var(--violet-rgb), 0.92); background: rgba(var(--violet-rgb), 0.10); }
.badge--ads { border-color: rgba(var(--red-rgb), 0.40); color: rgba(var(--red-rgb), 0.92); background: rgba(var(--red-rgb), 0.10); }
.badge--creative { border-color: rgba(var(--lime-rgb), 0.40); color: rgba(var(--lime-rgb), 0.92); background: rgba(var(--lime-rgb), 0.10); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip2 {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 999px;
}
.case-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* Case modal */
.case-modal__panel { width: min(980px, 100%); }
.case-modal__head { display: grid; gap: 8px; padding-right: 44px; }
.case-modal__sub { color: var(--muted); margin: 0; }
.case-modal__desc { margin: 0; color: var(--muted); }
.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.case-fact {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 10px 12px;
}
.case-fact__k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.case-fact__v { margin-top: 6px; font-family: var(--font-head); letter-spacing: -0.02em; color: rgba(255,255,255,0.92); }
.case-modal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.case-modal__box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 14px;
}
.case-modal__box h3 { margin: 0; font-family: var(--font-head); font-size: 14px; letter-spacing: -0.02em; }
.case-modal__box ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.case-modal__box li { margin: 6px 0; }
.gallery { margin-top: 14px; display: grid; gap: 10px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery__grid button {
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.16);
  display: block;
  cursor: zoom-in;
}
.gallery__grid img { width: 100%; height: 190px; object-fit: cover; display: block; filter: saturate(0.90) contrast(1.06) brightness(0.94); }
.gallery__more { align-self: start; }

.cta {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.12), rgba(var(--lime-rgb), 0.09), rgba(var(--red-rgb), 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cta__title { margin: 0; font-family: var(--font-head); font-weight: 600; }
.section__cta { margin-top: 14px; display: grid; gap: 8px; align-items: start; }

/* Quiz modal */
.quiz__panel { width: min(760px, 100%); }
.quiz__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Prevent overlap with the absolute close button on the right. */
  padding-right: 56px;
}
.quiz__kicker {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--lime-rgb), 0.95);
}
.quiz__progress { color: rgba(255,255,255,0.62); font-size: 12px; }
.quiz__title { margin-top: 12px; }
.quiz__sub { margin: 8px 0 0; }
.quiz__bullets { margin-top: 10px; display: grid; gap: 6px; color: rgba(255,255,255,0.74); }
.quiz__q { margin-top: 14px; font-family: var(--font-head); font-size: 18px; letter-spacing: -0.02em; }
.quiz__opts { margin-top: 12px; display: grid; gap: 10px; }
.quiz__opt {
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  padding: 14px 14px;
  cursor: pointer;
  color: rgba(255,255,255,0.90);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.quiz__opt:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.quiz__opt.is-active {
  border-color: rgba(var(--lime-rgb), 0.34);
  background: linear-gradient(135deg, rgba(var(--lime-rgb), 0.10), rgba(var(--violet-rgb), 0.08)), rgba(255,255,255,0.04);
}
.quiz__input { margin-top: 12px; }
.quiz__nav { margin-top: 14px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.quiz__nav .btn { min-width: 140px; }
.quiz__fine { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,0.62); }

/* FAQ */
.faq { margin-top: 18px; display: grid; gap: 10px; }
.faq__item {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.faq__q {
  cursor: pointer;
  padding: 16px 18px;
  font-family: var(--font-head);
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.78);
}
details[open] > .faq__q::after { content: "–"; }
.faq__a { padding: 0 18px 16px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.contact__panel {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  padding: 16px;
}
.contact__hint { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,0.62); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}
.chip__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 12px;
}
.form--big { padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__loc { margin-top: 14px; }

/* Footer */
.footer {
  position: relative;
  padding: 14px 0 18px;
  border-top: 0;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--lime-rgb),0.0), rgba(var(--lime-rgb),0.55), rgba(var(--violet-rgb),0.42), rgba(var(--red-rgb),0.22), rgba(var(--lime-rgb),0.0));
  opacity: 0.70;
  pointer-events: none;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.footer__brand { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; }
.footer__sub { font-size: 13px; color: rgba(255,255,255,0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(56ch, 52vw); }
.footer__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.86);
  font-weight: 650;
  font-size: 13px;
}
.footer__pill:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }
.footer__copy { font-size: 12px; color: rgba(255,255,255,0.52); }

/* Modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; z-index: 80; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); z-index: 0; }
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 16, 18, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 1;
  max-height: min(86vh, 920px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--lime-rgb),0.42) rgba(255,255,255,0.06);
}
.modal__panel::-webkit-scrollbar { width: 12px; }
.modal__panel::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 999px; }
.modal__panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--lime-rgb),0.58), rgba(var(--violet-rgb),0.42));
  border: 3px solid rgba(15, 16, 18, 0.92);
  border-radius: 999px;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.modal__msg {
  margin: 14px 0 0;
  white-space: pre-wrap;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  color: rgba(255, 255, 255, 0.88);
  max-height: 240px;
  overflow: auto;
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--violet-rgb),0.42) rgba(255,255,255,0.06);
}
.modal__msg::-webkit-scrollbar { width: 10px; }
.modal__msg::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 999px; }
.modal__msg::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--violet-rgb),0.50), rgba(var(--red-rgb),0.40));
  border: 3px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

/* Sticky CTA for mobile */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(15, 16, 18, 0), rgba(15, 16, 18, 0.92) 48%, rgba(15, 16, 18, 0.96));
  z-index: 70;
}

.noscript { padding: 10px 12px; background: #111; border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--muted); }

/* UGC block */
.ugc { margin-top: 26px; }
.ugc__head { max-width: 78ch; }
.video-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.video-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 240px at 30% 20%, rgba(var(--lime-rgb),0.14), transparent 55%),
              radial-gradient(520px 240px at 80% 30%, rgba(var(--violet-rgb),0.14), transparent 60%),
              radial-gradient(600px 260px at 65% 90%, rgba(var(--red-rgb),0.10), transparent 62%);
  opacity: 0;
  transition: opacity .18s ease;
}
.video-card:hover::after { opacity: 1; }
.video-card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.06) brightness(0.96);
}

/* Image lightbox */
.img-modal__panel { width: min(1100px, 100%); padding: 14px; }
.img-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Leave space for the absolute close button (top-right). */
  padding-right: 56px;
  min-height: 48px;
}
.img-modal__meta { display: grid; gap: 2px; }
.img-modal__title { font-family: var(--font-head); font-size: 14px; letter-spacing: -0.02em; }
.img-modal__nav { display: flex; gap: 10px; }
.img-modal__nav .btn { width: 44px; height: 44px; padding: 0; border-radius: 16px; }
.img-modal__nav svg { display: block; }
.img-modal__stage {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.img-modal__stage img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; display: block; }

/* Animation */
[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .hero__grid, .hero__orb { animation: none; }
  .hero .h1 { animation: none; }
}

@media (max-width: 980px) {
  .header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .burger { display: inline-block; }
  .hero__inner { grid-template-columns: 1fr; }
  .logos__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo { height: 60px; }
  .logo img { height: 34px; }
  .grid3 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: stretch; }
  .case-modal__cols { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__grid img { height: 150px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-card video { height: 190px; }

  /* Case cards: make actions read as buttons (not as text) on mobile. */
  .case-card__actions { flex-direction: column; align-items: stretch; }
  .case-card__actions .btn { width: 100%; justify-content: center; }
  .case-card__actions .btn--ghost {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
  }
}

@media (max-width: 560px) {
  /* Prevent header controls from wrapping/overflowing on small phones. */
  .header__right > .btn { display: none; }
  .header__right > .lang { display: none; }
  .header__right { gap: 8px; }

  .mobile { padding-top: calc(76px + env(safe-area-inset-top, 0px)); }

  .showreel__frame video { height: 160px; }
  .btn { padding: 11px 14px; }
  .lang__btn { padding: 6px 9px; }

  /* On very small screens keep image modal bar clear of the close button. */
  .img-modal__bar { padding-right: 0; padding-top: 42px; }

  /* Quiz: avoid close button overlapping the step counter. */
  .quiz__head { padding-right: 0; padding-top: 42px; }

  .footer__sub { display: none; }
}
