/* ==========================================================================
   Alexey Sound — design system
   Dark, prismatic, loud type. Mobile first.
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #07060c;
  --bg-2: #0c0a14;
  --surface: #110f1a;
  --surface-2: #181524;
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.16);
  --ink: #f5f3fc;
  --ink-2: #cdc8dd;
  --muted: #9a95ae;

  --violet: #8b6bff;
  --pink: #ff4fd8;
  --peach: #ffb36b;
  --cyan: #52e1ff;
  --lime: #d6ff3d;
  --rec: #ff3b3b;
  --grad: linear-gradient(95deg, #8b6bff 0%, #ff4fd8 55%, #ffb36b 100%);

  --f-display: "Unbounded", "Readex Pro", "Arial Black", system-ui, sans-serif;
  --f-body: "Geist", "Readex Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", "Readex Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --section-y: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* tactile film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--pink); color: #0a0610; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--lime); color: #0a0a0a;
  font-weight: 600; text-decoration: none; transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--f-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--lime); color: #0b0b0b; box-shadow: 0 8px 32px -8px rgb(214 255 61 / 0.45); }
.btn--primary:hover { background: #e4ff7a; box-shadow: 0 10px 40px -6px rgb(214 255 61 / 0.6); }
.btn--ghost {
  background: rgb(255 255 255 / 0.04);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.3); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.75rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label span { color: var(--lime); }
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 0.75rem/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgb(255 255 255 / 0.03);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgb(7 6 12 / 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 1rem/1 var(--f-display);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo b { font-weight: 600; color: var(--muted); }

.nav { display: none; margin-inline-start: auto; gap: 2px; }
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / 0.07); }

.rec {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 0.75rem/1 var(--f-mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.rec i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px var(--rec);
  animation: blink 1.4s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.header-cta { display: none; }

.menu-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.04);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span { position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: background-color 0.2s; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.menu-btn span::before { transform: translateY(-6px); }
.menu-btn span::after { transform: translateY(6px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }

.mnav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(90% 60% at 100% 0%, rgb(139 107 255 / 0.28), transparent 60%),
    radial-gradient(80% 50% at 0% 100%, rgb(255 79 216 / 0.18), transparent 60%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.menu-open { overflow: hidden; }
.menu-open .mnav { opacity: 1; visibility: visible; }
.mnav ul { list-style: none; display: grid; gap: 4px; }
.mnav li a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  font: 600 clamp(1.75rem, 8vw, 2.5rem)/1.1 var(--f-display);
  letter-spacing: -0.03em;
  text-decoration: none;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.mnav li a small { font: 500 0.75rem/1 var(--f-mono); color: var(--lime); letter-spacing: 0.1em; }
.menu-open .mnav li a { transform: none; opacity: 1; }
.menu-open .mnav li:nth-child(2) a { transition-delay: 0.04s; }
.menu-open .mnav li:nth-child(3) a { transition-delay: 0.08s; }
.menu-open .mnav li:nth-child(4) a { transition-delay: 0.12s; }
.menu-open .mnav li:nth-child(5) a { transition-delay: 0.16s; }
.menu-open .mnav li:nth-child(6) a { transition-delay: 0.2s; }
.mnav-foot { display: grid; gap: 10px; }
.mnav-foot .btn { width: 100%; }

@media (min-width: 1120px) {
  :root { --header-h: 76px; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mnav { display: none; }
}
@media (min-width: 1280px) { .rec { display: inline-flex; } }

/* ---------- burst background ---------- */
.burst {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}
.burst canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
.burst.is-ready canvas { opacity: 1; }
/* home hero: the tracks sit behind the headline, so they are toned down for legibility */
.hero .burst.is-ready canvas { opacity: 0.42; }
.burst::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(7 6 12 / 0.6) 0%, transparent 22%, transparent 50%, var(--bg) 100%);
}
/* no WebGL / reduced data: a still waveform drawn in CSS */
.burst.pb-fallback,
.no-webgl .burst {
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%233b1cff' stop-opacity='.25'/><stop offset='.45' stop-color='%238a2eff'/><stop offset='.75' stop-color='%23ff2fb4'/><stop offset='1' stop-color='%23ff8a3d'/></linearGradient></defs><g fill='none' stroke='url(%23g)' stroke-linecap='round'><path stroke-width='3' d='M0 200 C100 180 150 120 250 190 S400 260 500 200 S650 60 760 200 S900 330 1000 190 S1120 120 1200 200'/><path stroke-width='2' opacity='.6' d='M0 205 C120 230 180 150 280 205 S430 150 540 210 S700 320 800 205 S950 90 1060 210 S1150 240 1200 205'/><path stroke-width='1.5' opacity='.4' d='M0 195 C90 160 170 250 300 195 S470 110 580 196 S720 280 840 190 S980 140 1080 198 S1160 180 1200 195'/></g></svg>") center var(--wy, 40%) / 100% 46% no-repeat,
    radial-gradient(70% 30% at 70% var(--wy, 40%), rgb(139 107 255 / 0.22), transparent 70%),
    var(--bg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 32px) 0 96px;  /* phones: a larger bottom padding lifts the centred block closer to the header */
  overflow: hidden;
}
.hero .burst::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 70% at 0% 100%, rgb(7 6 12 / 0.92), transparent 62%);
}
/* home hero: the tracks run behind the headline, so only the very bottom (lead, buttons, stats) is darkened */
.hero .burst::after { background: linear-gradient(180deg, rgb(7 6 12 / 0.6) 0%, transparent 18%, transparent 66%, rgb(7 6 12 / 0.7) 86%, var(--bg) 100%); }
.hero-inner { display: grid; gap: 22px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(7 6 12 / 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 0.75rem/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero-title {
  font: 600 clamp(2.35rem, 8.6vw, 7.2rem)/0.98 var(--f-display);
  letter-spacing: -0.045em;
  max-width: 12ch;
}
.hero-title .line { display: block; }
.hero-row { display: grid; gap: 24px; align-items: end; }
.hero-lead { max-width: 52ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { flex: 1 1 auto; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.hero-stats div:nth-child(odd) { padding-inline-end: 12px; border-inline-end: 1px solid var(--line); }
.hero-stats div:nth-child(even) { padding-inline-start: 16px; }
.hero-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; border-inline-end: 0; }
.hero-stats dt { font: 500 0.6875rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin: 0; font: 600 clamp(1.5rem, 3vw, 2.25rem)/1 var(--f-display); letter-spacing: -0.03em; }

@media (min-width: 720px) {
  .hero { padding-bottom: 40px; }
  .hero-cta .btn { flex: 0 0 auto; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats div { border-bottom: 0; padding: 20px 20px 4px !important; border-inline-end: 1px solid var(--line); }
  .hero-stats div:first-child { padding-inline-start: 0 !important; }
  .hero-stats div:last-child { border-inline-end: 0; }
}
@media (max-width: 1023px) {
  .hero .burst::before {
    background: linear-gradient(180deg, transparent 0%, transparent 58%, rgb(7 6 12 / 0.6) 76%, var(--bg) 100%);
  }
  .burst.pb-fallback { --wy: 24%; }
}
@media (min-width: 1024px) {
  .hero-row { grid-template-columns: 1fr auto; gap: 48px; }
  .hero .burst::before { background: radial-gradient(70% 45% at 0% 100%, rgb(7 6 12 / 0.75), transparent 70%); }
}

/* ---------- marquee ---------- */
.marquee {
  --gap: 28px;
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gap);
  padding-inline-end: var(--gap);
  animation: marquee 38s linear infinite;
  font: 600 clamp(1.125rem, 2.2vw, 1.75rem)/1 var(--f-display);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--pink); font-size: 0.8em; }
.marquee-track span:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.55); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 72px); }
.sec-head h2, .h2 {
  font: 600 clamp(2rem, 5.4vw, 4.25rem)/1.02 var(--f-display);
  letter-spacing: -0.04em;
  max-width: 18ch;
}
.sec-sub { max-width: 56ch; color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.1875rem); }
.price-note { max-width: 56ch; color: var(--muted); }
.price-note strong { display: block; color: var(--lime); font-weight: 600; font-size: 1.0625rem; }
@media (min-width: 1024px) {
  .sec-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; column-gap: 48px; }
  .sec-head--split .label { grid-column: 1 / -1; }
}

/* ---------- cards / bento ---------- */
.bento { display: grid; gap: 14px; }
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(139 107 255 / 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
@media (hover: hover) { .card:hover::before { opacity: 1; } }
.card h3 { font: 600 clamp(1.25rem, 2vw, 1.625rem)/1.12 var(--f-display); letter-spacing: -0.03em; }
.card p { color: var(--ink-2); }
.card-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.04);
  color: var(--lime);
}
.card-icon svg { width: 22px; height: 22px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card--xl, .card--lg { min-height: 380px; }
.card--xl h3, .card--lg h3 { font-size: clamp(1.625rem, 3.2vw, 2.5rem); letter-spacing: -0.04em; }
.card--xl { background: radial-gradient(120% 90% at 100% 0%, rgb(139 107 255 / 0.22), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card--lg { background: radial-gradient(120% 90% at 0% 100%, rgb(255 79 216 / 0.16), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card .spacer { flex: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.wave { display: flex; align-items: center; gap: 3px; height: 64px; margin-top: auto; }
.wave i {
  flex: 1;
  height: calc(var(--h) * 100%);
  min-height: 3px;
  border-radius: 3px;
  background: var(--grad);
  background-size: 2400% 100%;
  background-position: calc(var(--p) * 100%) 0;
  transform-origin: center;
  animation: wave 1.6s ease-in-out calc(var(--d) * -1s) infinite alternate;
}
@keyframes wave { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

.meter { display: grid; gap: 6px; margin-top: auto; }
.meter div { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; font: 500 0.6875rem/1 var(--f-mono); color: var(--muted); }
.meter span {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3ddc84 0 60%, var(--lime) 60% 80%, #ffb020 80% 92%, var(--rec) 92%);
  -webkit-mask: linear-gradient(90deg, #000 var(--l, 60%), rgb(0 0 0 / 0.12) 0);
  mask: linear-gradient(90deg, #000 var(--l, 60%), rgb(0 0 0 / 0.12) 0);
  animation: meter 0.9s ease-in-out infinite alternate;
}
.meter div:nth-child(2) span { animation-duration: 1.15s; animation-delay: -0.4s; }
.meter div:nth-child(3) span { animation-duration: 0.75s; animation-delay: -0.2s; }
@property --l { syntax: "<percentage>"; inherits: false; initial-value: 60%; }
@keyframes meter { 0% { --l: 38%; } 40% { --l: 72%; } 70% { --l: 55%; } 100% { --l: 84%; } }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl, .card--lg { grid-column: span 2; }
  .bento > .card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .card--xl { grid-column: span 7; min-height: 460px; }
  .card--lg { grid-column: span 5; min-height: 460px; }
  .bento > .card:not(.card--xl):not(.card--lg) { grid-column: span 4; }
  .bento:has(> .card:nth-child(4):last-child) > .card:not(.card--xl):not(.card--lg) { grid-column: span 6; }
}

/* ---------- process ---------- */
.steps { list-style: none; display: grid; gap: 12px; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step-n { font: 500 0.75rem/1 var(--f-mono); color: var(--lime); letter-spacing: 0.1em; }
.step h3 { font: 600 1.375rem/1.1 var(--f-display); letter-spacing: -0.03em; }
.step p { color: var(--ink-2); font-size: 0.975rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .step { border: 0; border-radius: 0; border-inline-end: 1px solid var(--line); background: transparent; padding: 32px 28px 40px; min-height: 280px; align-content: start; }
  .step:last-child { border-inline-end: 0; }
  .step h3 { margin-top: 64px; }
  .step:hover { background: var(--surface); }
}

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; isolation: isolate; margin: 0; max-width: 520px; }
.about-photo picture, .about-photo img { border-radius: var(--radius-lg); }
.about-photo img { width: 100%; aspect-ratio: 600 / 620; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
.about-photo::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 1px);
  background: var(--grad);
  transform: rotate(-3deg) translate(-10px, 10px);
  opacity: 0.85;
}
.badge {
  position: absolute;
  inset-inline-end: -14px;
  bottom: -26px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--lime);
  color: #0b0b0b;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge b { font: 700 1.5rem/1 var(--f-display); letter-spacing: -0.04em; }
.badge b small { display: block; margin-bottom: 3px; font: 600 0.62rem/1 var(--f-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
@keyframes spin { to { transform: rotate(1turn); } }
.about-copy { display: grid; gap: 22px; }
.about-copy h2 { font: 600 clamp(2rem, 4.6vw, 3.75rem)/1.04 var(--f-display); letter-spacing: -0.04em; }
.about-copy h2 .muted { display: block; margin-top: 10px; font-size: 0.5em; line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; }
.about-copy p { color: var(--ink-2); max-width: 60ch; }
.about-copy .about-credits { font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
.signature { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.signature strong { font: 600 1rem/1.2 var(--f-display); letter-spacing: -0.02em; }
.signature span { display: block; font: 500 0.75rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 5fr 7fr; }
}

/* ---------- kit ---------- */
.kit { display: grid; gap: 12px; }
.kit-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  break-inside: avoid;
}
.kit-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kit-group summary::-webkit-details-marker { display: none; }
.kit-group summary h3 { font: 600 1.125rem/1.2 var(--f-display); letter-spacing: -0.02em; }
.kit-group summary .count { margin-inline-start: auto; font: 500 0.75rem/1 var(--f-mono); color: var(--muted); }
.plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--ease);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.kit-group ul { list-style: none; padding: 0 20px 18px; display: grid; }
.kit-group li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.kit-group li .qty { flex: none; min-width: 30px; font: 500 0.75rem/1 var(--f-mono); color: var(--lime); }
.kit-note { margin-top: 18px; font: 500 0.75rem/1.5 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
@media (min-width: 960px) {
  .kit { display: block; columns: 2; column-gap: 14px; }
  .kit-group { margin-bottom: 14px; }
}
@media (min-width: 1240px) { .kit { columns: 3; } }

/* ---------- journal / post cards ---------- */
.posts { display: grid; gap: 18px; }
.post-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  text-decoration: none;
  border-radius: var(--radius);
}
.post-card h3 { font: 600 1.1875rem/1.25 var(--f-display); letter-spacing: -0.025em; transition: color 0.2s; }
@media (hover: hover) { .post-card:hover h3 { color: var(--lime); } }
.post-card p { color: var(--muted); font-size: 0.9375rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font: 500 0.75rem/1.2 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.cover {
  --h: 265;
  --x: 66%;
  --y: 42%;
  --a: 0deg;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0b0914;
  isolation: isolate;
}
.cover::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(closest-side at var(--x) var(--y), #fff 0%, hsl(var(--h) 100% 78% / 0.9) 8%, transparent 42%),
    repeating-conic-gradient(from var(--a) at var(--x) var(--y), hsl(var(--h) 95% 66% / 0.95) 0deg 2.5deg, transparent 4.5deg 13deg),
    repeating-conic-gradient(from calc(var(--a) + 5deg) at var(--x) var(--y), hsl(calc(var(--h) + 55) 95% 64% / 0.7) 0deg 1.5deg, transparent 3deg 21deg);
  -webkit-mask: radial-gradient(closest-side at var(--x) var(--y), #000 0%, rgb(0 0 0 / 0.7) 30%, transparent 75%);
  mask: radial-gradient(closest-side at var(--x) var(--y), #000 0%, rgb(0 0 0 / 0.7) 30%, transparent 75%);
  filter: blur(2px);
  transition: transform 0.9s var(--ease);
}
@media (hover: hover) { .post-card:hover .cover::before { transform: rotate(8deg) scale(1.06); } }
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(7 6 12 / 0.75));
}
.cover-n {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 14px;
  z-index: 1;
  font: 600 clamp(2rem, 4vw, 3rem)/1 var(--f-display);
  letter-spacing: -0.05em;
  color: rgb(255 255 255 / 0.92);
}
.cover-tag { position: absolute; inset-inline-end: 14px; top: 14px; z-index: 1; }
/* illustrated covers (assets/img/covers) */
.cover--img::before { display: none; }
.cover--img picture, .cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover--img img { object-fit: cover; transition: transform 0.9s var(--ease); }
.cover--img .cover-n { font-size: clamp(1.25rem, 2.2vw, 1.625rem); color: rgb(255 255 255 / 0.8); }
@media (hover: hover) { .post-card:hover .cover--img img { transform: scale(1.05); } }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.sec-foot { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 64px); }

/* ---------- faq ---------- */
.faq-grid { display: grid; gap: 36px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: background-color 0.3s, border-color 0.3s; }
.faq details[open] { background: var(--surface-2); border-color: var(--line-2); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); max-width: 70ch; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgb(139 107 255 / 0.3), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgb(255 79 216 / 0.18), transparent 70%);
}
.contact-grid { display: grid; gap: 40px; }
.contact-title { font: 600 clamp(2.5rem, 8vw, 6.5rem)/0.95 var(--f-display); letter-spacing: -0.05em; margin-top: 18px; }
.contact-copy > p { margin-top: 22px; max-width: 46ch; color: var(--ink-2); font-size: 1.125rem; }
.contact-list { list-style: none; display: grid; gap: 10px; margin-top: 32px; }
.contact-list a, .contact-list li > span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.03);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-list a:hover { border-color: var(--line-2); background: rgb(255 255 255 / 0.06); }
.contact-list svg { width: 20px; height: 20px; color: var(--lime); flex: none; }
.contact-list small { display: block; font: 500 0.6875rem/1.3 var(--f-mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list strong { font-weight: 600; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
  .contact-grid > .contact-list { margin-top: 0; }
}

/* ---------- Google reviews (last section of the home page) ---------- */
.reviews { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(56px, 8vw, 104px); }
.reviews-grid { --rg: 14px; display: grid; gap: 20px var(--rg); align-items: center; }
/* the rating: no frame, just the number and stars on the section background */
.reviews-score { display: inline-flex; align-items: center; gap: 18px; justify-self: start; text-decoration: none; }
.reviews-score .reviews-count { transition: color 0.2s; }
.reviews-score:hover .reviews-count { color: var(--ink-2); }
.reviews-num { font: 600 clamp(3rem, 7vw, 4.25rem)/0.9 var(--f-display); letter-spacing: -0.05em; }
.reviews-stars { display: flex; gap: 3px; color: var(--lime); }
.reviews-stars svg { width: 20px; height: 20px; fill: currentColor; }
.reviews-count { display: block; margin-top: 10px; font: 500 0.75rem/1.3 var(--f-mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.reviews-copy h2 { font: 600 clamp(1.75rem, 4.2vw, 3rem)/1.05 var(--f-display); letter-spacing: -0.04em; margin-top: 16px; }
.reviews-copy > p:not(.label) { margin-top: 12px; max-width: 46ch; color: var(--ink-2); }
/* review quotes: one compact row that scrolls sideways (swipe, arrows, slow auto-advance from main.js) */
.reviews-carousel { min-width: 0; }
.reviews-list {
  list-style: none; display: flex; gap: var(--rg); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: var(--radius);
}
.reviews-list::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(84%, 320px); scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 255 255 / 0.03);
}
.review-card .reviews-stars svg { width: 14px; height: 14px; }
.review-card blockquote { margin: 10px 0 0; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }
/* long reviews are cut to six lines; a tap on the card opens the whole text */
.review-card blockquote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.review-card.is-open blockquote p { display: block; overflow: visible; }
.review-by { margin-top: auto; padding-top: 10px; font: 500 0.6875rem/1.3 var(--f-mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
/* under the cards: arrows on one side, the two links on the other, all the same height */
.reviews-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.reviews-nav { display: flex; gap: 8px; }
.reviews-nav .btn { --h: 42px; width: 42px; padding: 0; }
.reviews-nav .btn:disabled { opacity: 0.35; cursor: default; }
.reviews-nav .btn:hover .arrow { transform: none; }
[dir="rtl"] .reviews-nav .btn:hover .arrow { transform: scaleX(-1); }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) { .review-card { flex-basis: calc((100% - var(--rg)) / 2); } }
@media (min-width: 1024px) {
  /* three equal columns: the heading takes two, the rating tile sits to its right above the third card,
     and exactly three cards fit in a row */
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; align-items: stretch; }
  .reviews-copy { grid-area: 1 / 1 / auto / 3; align-self: center; }
  .reviews-score { grid-area: 1 / 3; justify-self: end; align-self: center; }
  .reviews-carousel, .reviews-bar { grid-column: 1 / -1; }
  .review-card { flex-basis: calc((100% - 2 * var(--rg)) / 3); }
}

/* ---------- footer ---------- */
.site-footer { position: relative; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
.footer-grid ul a { display: inline-block; padding: 4px 0; }
@media (max-width: 1119px) { .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); } }
.footer-h { font: 500 0.75rem/1 var(--f-mono); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid address { font-style: normal; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--lime); }
.footer-grid p { color: var(--ink-2); max-width: 36ch; }
.wordmark {
  margin-top: 48px;
  font: 700 calc(min(100vw - 2 * var(--gutter), var(--container)) / 7.4)/0.8 var(--f-display);
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.18);
  user-select: none;
}
.wordmark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; font: 500 0.75rem/1.5 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.8fr 1fr 1.4fr 1.4fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: auto; }
}

/* ---------- mobile action dock ---------- */
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(12 10 20 / 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -12px rgb(0 0 0 / 0.7);
  transform: translateY(calc(100% + 24px));
  transition: transform 0.45s var(--ease);
}
.dock.is-visible { transform: none; }
.dock .btn { --h: 48px; }
.dock .btn--ghost { width: 48px; padding: 0; }
@media (min-width: 1120px) { .dock { display: none; } }

/* ---------- page hero (blog, post, 404) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 clamp(40px, 6vw, 72px);
  min-height: min(72svh, 720px);
  display: flex;
  align-items: flex-end;
}
.page-hero .burst::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(110% 80% at 0% 100%, rgb(7 6 12 / 0.92), transparent 65%);
}
.page-hero h1 { font: 600 clamp(2rem, 5.6vw, 4.75rem)/1.02 var(--f-display); letter-spacing: -0.045em; max-width: 20ch; }
.page-hero .sec-sub { margin-top: 20px; }
.crumbs { margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font: 500 0.75rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--lime); }
.page-hero .post-meta { margin-top: 26px; }

/* ---------- article ---------- */
.article-layout { display: grid; gap: 48px; }
.post-cover { margin: 0 0 clamp(28px, 4vw, 44px); max-width: 760px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #0b0914; }
.post-cover img { display: block; width: 100%; height: auto; }
.prose { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child { font-size: 1.15em; color: var(--ink); line-height: 1.6; }
.prose .tldr {
  margin: 0 0 2em;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-inline-start: 3px solid var(--lime);
  border-radius: var(--radius-sm);
  background: rgb(214 255 61 / 0.05);
  color: var(--ink);
  font-size: 0.95em;
  line-height: 1.65;
}
.prose .tldr p::before {
  content: "In short";
  display: block;
  margin-bottom: 10px;
  font: 500 0.75rem/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.prose > .tldr + p { font-size: 1.08em; color: var(--ink); line-height: 1.65; }
.prose h2 { margin-top: 2.2em; font: 600 clamp(1.375rem, 2.4vw, 1.875rem)/1.2 var(--f-display); letter-spacing: -0.03em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 + * { margin-top: 0.8em; }
.prose h3 { margin-top: 1.8em; font: 600 1.25rem/1.3 var(--f-display); color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-inline-start: 1.3em; display: grid; gap: 0.6em; }
.prose li::marker { color: var(--lime); font-family: var(--f-mono); }
.prose ol > li > strong:first-child { display: block; }
.prose ul.checklist { list-style: none; padding-inline-start: 0; }
.prose ul.checklist li { position: relative; padding-inline-start: 1.9em; }
.prose ul.checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.3em; width: 1.05em; height: 1.05em; border: 2px solid var(--lime); border-radius: 4px; }
.prose a { color: var(--lime); text-underline-offset: 3px; }
/* photos inside an article: full column width, tall ones narrower and centred */
.prose .post-photo { margin: 1.8em 0; }
.prose .post-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #0b0914; }
.prose .post-photo--tall { max-width: 440px; margin-inline: auto; }
.prose .post-photo figcaption { margin-top: 10px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.toc {
  align-self: start;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .count { margin-inline-start: auto; font: 500 0.75rem/1 var(--f-mono); color: var(--muted); }
.toc h2 { font: 500 0.75rem/1 var(--f-mono); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.toc[open] summary { margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; }
.toc a:hover { color: var(--lime); }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); grid-column: 2; grid-row: 1; }
}
.author {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 56px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 70ch;
}
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author strong { font: 600 1.0625rem/1.3 var(--f-display); letter-spacing: -0.02em; }
.author p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.cta-band {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 22px;
  margin-top: 40px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: radial-gradient(80% 120% at 100% 0%, rgb(139 107 255 / 0.35), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgb(255 79 216 / 0.2), transparent 60%), var(--surface);
}
.cta-band h2 { font: 600 clamp(1.75rem, 4vw, 3rem)/1.05 var(--f-display); letter-spacing: -0.04em; max-width: 18ch; }
.cta-band .hero-cta { margin-top: 4px; }

/* ---------- reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- language switcher ---------- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-inline-start: auto;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
}
.lang a {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 999px;
  font: 500 0.75rem/1 var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang a:hover { color: var(--ink); background: rgb(255 255 255 / 0.08); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
@media (min-width: 1120px) { .lang { margin-inline-start: 0; } }
@media (max-width: 359px) { .logo > span { display: none; } }

/* ---------- right-to-left (Arabic) ---------- */
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(100%); } }
[dir="rtl"] .about-photo::before { transform: rotate(3deg) translate(10px, 10px); }
[dir="rtl"] .meter span { transform: scaleX(-1); }
[dir="rtl"] .page-hero .burst::before { background: radial-gradient(110% 80% at 100% 100%, rgb(7 6 12 / 0.92), transparent 65%); }
@media (min-width: 1024px) {
  [dir="rtl"] .hero .burst::before { background: radial-gradient(70% 45% at 100% 100%, rgb(7 6 12 / 0.75), transparent 70%); }
}

/* ---------- language-specific typography ---------- */
html[lang="ar"] * { letter-spacing: normal !important; }
html[lang="ar"] :is(h1, h2, h3, .contact-title, .mnav li a, .marquee-track, .hero-stats dd) { line-height: 1.32; }
html[lang="ar"] .hero-title { line-height: 1.22; font-weight: 700; }
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] .prose { line-height: 1.95; }
html[lang="ru"] :is(h1, h2, h3) { hyphens: auto; overflow-wrap: break-word; }
html[lang="ru"] .hero-title { font-size: clamp(2rem, 7.4vw, 6.4rem); }
html[lang="ru"] .contact-title { font-size: clamp(2.25rem, 7vw, 5.75rem); }
html[lang="ru"] .prose .tldr p::before { content: "Коротко"; }
html[lang="ar"] .prose .tldr p::before { content: "باختصار"; }

/* ---------- service landing pages ---------- */
.page-hero .hero-cta { margin-top: 28px; }
.svc-links { display: grid; gap: 4px; margin-top: 56px; max-width: 70ch; }
.svc-links .footer-h { margin-bottom: 8px; }
.svc-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font: 600 clamp(1.0625rem, 1.6vw, 1.25rem)/1.3 var(--f-display); letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.svc-links a:hover { color: var(--lime); }
.svc-links .arrow { width: 20px; height: 20px; flex: none; transition: transform 0.25s var(--ease); }
.svc-links a:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .svc-links .arrow { transform: scaleX(-1); }
[dir="rtl"] .svc-links a:hover .arrow { transform: scaleX(-1) translateX(4px); }
.card-more {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: 4px; padding: 10px 0;
  font-weight: 600; color: var(--lime); text-decoration: none; text-underline-offset: 4px;
}
.card-more:hover { text-decoration: underline; }
.card-more .arrow { width: 18px; height: 18px; }
[dir="rtl"] .card-more .arrow { transform: scaleX(-1); }
.contact-list a.based { color: inherit; }

/* ---------- collapsible home sections (journal, FAQ) ---------- */
.fold > summary {
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font: 600 clamp(1rem, 1.4vw, 1.125rem)/1.3 var(--f-display); letter-spacing: -0.01em;
  transition: border-color 0.2s, background 0.2s;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { border-color: var(--line-2); background: var(--surface-2); }
.fold > summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.fold[open] > summary { margin-bottom: clamp(24px, 4vw, 40px); }
.fold > summary .when-open, .fold[open] > summary .when-closed { display: none; }
.fold[open] > summary .when-open { display: inline; }
[lang="ar"] .fold > summary { letter-spacing: 0; }

/* ---------- recent from set (videos) ---------- */
.vgrid { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
.vgrid--more { grid-template-columns: repeat(2, 1fr); gap: 10px; }
/* service pages: example videos under the text, same card grid as the portfolio */
.svc-videos { margin-top: clamp(32px, 5vw, 56px); }
.svc-videos .vgrid { margin-top: 14px; }
.svc-videos--top { margin-top: 0; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 700px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .vgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .vgrid--more { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.vfold { margin-top: clamp(20px, 3vw, 28px); }
/* portfolio category filter inside "More videos": toggle chips with a checkbox, all on by default */
.vfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(16px, 2.5vw, 24px); }
.vfilter[hidden] { display: none; }
.vfilter [data-vcat] { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.vfilter [data-vcat]:hover { color: var(--ink); border-color: var(--ink-2); }
.vfilter [data-vcat]:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.vfilter-box { width: 14px; height: 14px; flex: none; border: 1.5px solid currentColor; border-radius: 4px; display: grid; place-items: center; }
.vfilter [aria-pressed="true"] { color: var(--ink); border-color: var(--lime); }
.vfilter [aria-pressed="true"] .vfilter-box { background: var(--lime); border-color: var(--lime); }
.vfilter [aria-pressed="true"] .vfilter-box::after { content: ""; width: 4px; height: 8px; border: solid #0a0a0a; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
[lang="ar"] .vfilter [data-vcat] { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 0.875rem; }
.vcard[hidden] { display: none; }

.vcard-link {
  display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #0b0914;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.vcard-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vgrid--more .vcard-link { border-radius: var(--radius-sm); }
@media (hover: hover) {
  .vcard-link:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 50px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(139 107 255 / 0.25); }
}
.vcard-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.vmodal { padding: 0; border: 0; background: transparent; width: min(92vw, 1120px); max-width: none; max-height: none; overflow: visible; }
.vmodal::backdrop { background: rgb(7 6 12 / 0.88); backdrop-filter: blur(6px); }
.vmodal.is-vertical { width: min(92vw, calc(80vh * 9 / 16), calc(80svh * 9 / 16)); }
.vmodal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: 0 30px 90px rgb(0 0 0 / 0.6); }
.vmodal.is-vertical .vmodal-frame { aspect-ratio: 9 / 16; }
.vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-close {
  position: fixed; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.08); color: #fff; font: 400 26px/1 var(--f-body); cursor: pointer;
}
.vmodal-close:hover { background: rgb(255 255 255 / 0.16); }
/* inner pages: the skyline sits right under the header, so keep the top of the hero light */
.page-hero .burst::after { background: linear-gradient(180deg, rgb(7 6 12 / 0.2) 0%, transparent 16%, transparent 50%, var(--bg) 100%); }

/* ---------- kit: the bag-review short to the left of the list, played in place (never full screen on desktop) ---------- */
.kit-layout { display: grid; grid-template-columns: 1fr minmax(120px, 34%); gap: 14px; align-items: start; }
.kit-layout .kit { display: block; columns: 1; }
.kit-video { order: 2; margin: 0; width: 100%; position: sticky; top: 88px; }
.kit-video-play, .kit-video iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.kit-video-play { position: relative; padding: 0; cursor: pointer; }
.kit-video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-video-icon { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgb(0 0 0 / 0.55); color: #fff; border: 1px solid rgb(255 255 255 / 0.35); backdrop-filter: blur(4px); transition: transform 0.2s; }
.kit-video-play:hover .kit-video-icon { transform: scale(1.08); }
.kit-layout > * { min-width: 0; }
@media (max-width: 559px) { .kit-layout { gap: 10px; } .kit-layout .kit-group summary { padding-inline: 12px; gap: 8px; } .kit-layout .kit-group summary h3 { font-size: 0.95rem; } .kit-layout .kit-group summary .count { font-size: 0.65rem; } .kit-video-icon { width: 44px; height: 44px; } }
@media (min-width: 900px) { .kit-layout { grid-template-columns: 1fr 300px; gap: 28px; } }
@media (min-width: 1200px) { .kit-layout .kit { columns: 2; column-gap: 14px; } }

/* ---------- backstage: strip of set photos after "About" — scrolls by itself, can be dragged or swiped by hand ---------- */
.backstage { padding: 28px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.bs-strip { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.bs-strip::-webkit-scrollbar { display: none; }
.bs-strip.is-dragging { cursor: grabbing; }
.bs-strip.is-dragging img { pointer-events: none; }
.bs-track { display: flex; width: max-content; }
.bs-track figure { margin: 0 14px 0 0; flex: none; height: 220px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.bs-track img { height: 100%; width: auto; display: block; user-select: none; -webkit-user-drag: none; }
@media (max-width: 700px) { .bs-track figure { height: 150px; } }

/* client logo over a portfolio cover (white, top right under the duration pill) */
.vcard-link { position: relative; }
.vcard-link .vlogo { position: absolute; top: 3.2%; right: 15%; width: 30%; height: 8.5%; aspect-ratio: auto; object-fit: contain; object-position: right center; filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgb(0 0 0 / 0.55)); opacity: 0.92; pointer-events: none; }
.vcard--v .vcard-link .vlogo { top: 3.2%; right: 30%; }

/* journal pages: 15 cards per page */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: clamp(36px, 5vw, 56px); font: 500 0.82rem/1 var(--f-mono); letter-spacing: 0.04em; }
.pager-nums { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager-nums a, .pager-nums span, .pager-step { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.pager-nums a:hover, .pager-step:hover { color: var(--ink); border-color: var(--ink-2); }
.pager-nums span[aria-current] { background: var(--lime); border-color: var(--lime); color: #0b0b0b; }
[dir="rtl"] .pager-step span { display: inline-block; transform: scaleX(-1); }

/* Boom Cat shorts block (home, after reviews) */
.boomcat-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .boomcat-grid { grid-template-columns: 1fr auto; gap: 56px; } }
.boomcat-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.boomcat-shorts { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; justify-content: center; }
.boomcat-short { position: relative; display: block; width: min(240px, 62vw); aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.boomcat-short img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boomcat-play { position: absolute; inset: 50% auto auto 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgb(7 6 12 / 0.65); border: 1px solid rgb(255 255 255 / 0.35); }
.boomcat-play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.boomcat-short:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
/* a cover whose face sits top right: the client logo moves to the top centre-left (videos.json "logo_left": true) */
.vcard-link .vlogo.vlogo--left { right: auto; left: 28%; object-position: left center; }
.app-band-box{border:1px solid var(--line,rgba(255,255,255,.12));border-radius:24px;padding:clamp(24px,4vw,44px);background:linear-gradient(135deg,rgba(139,107,255,.12),rgba(255,79,216,.06))}
.app-band-box .hero-cta{margin-top:20px;flex-wrap:wrap}
.app-ios{margin-top:12px;opacity:.7;font-size:.95rem}
/* TC Logger page: phone screenshots float beside the text */
.app-prose .post-photo--tall { float: right; width: min(240px, 42%); max-width: none; margin: 0.3em 0 1.2em 32px; }
[dir="rtl"] .app-prose .post-photo--tall { float: left; margin: 0.3em 32px 1.2em 0; }
.app-prose .post-photo--tall figcaption { font-size: 0.8rem; }
@media (max-width: 600px) { .app-prose .post-photo--tall, [dir="rtl"] .app-prose .post-photo--tall { float: none; width: 200px; margin: 1.4em auto; } }
a.rec { color: inherit; text-decoration: none; cursor: pointer; } a.rec:hover { border-color: var(--lime); }
