/* ============================================================
   VENUM — iGaming media buying landing
   Black-red symbiote identity. Static, dependency-free. EN/RU.
   ============================================================ */

:root {
  --bg: #050304;
  --bg-2: #0a0608;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --text: #f0eef0;
  --muted: #918a8e;
  --muted-2: #8a8388;

  --accent: #ff2436;        /* arterial red */
  --accent-2: #ff5763;
  --accent-deep: #b80018;
  --accent-glow: rgba(255, 36, 54, 0.45);
  --btn-top: #e8121f;       /* CTA gradient — WCAG AA safe with #fff text */
  --btn-bot: #c80018;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(255, 36, 54, 0.55);

  --maxw: 1180px;
  --gutter: 24px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Latin/Cyrillic stacks — NO Devanagari here, so Latin/numbers never fall back to a wide font */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s;           /* transition tiers (system tokens) */
  --t-base: 0.3s;
  --t-slow: 0.4s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(255, 36, 54, 0.18);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #dcdee3 36%, #8c8f97 60%, #c8cad0 86%, #6f7279 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hindi mode only: add Devanagari font as a fallback (Latin still uses Sora/Inter first) */
html[lang="hi"] {
  --font-head: "Sora", system-ui, "Noto Sans Devanagari", sans-serif;
  --font-body: "Inter", system-ui, "Noto Sans Devanagari", sans-serif;
}

/* ---------- a11y utilities ---------- */
.no-js .reveal { opacity: 1; transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-2); }
.lang__btn:focus-visible { outline-offset: 2px; }
.burger:focus-visible { outline-offset: 4px; }

/* ---------- Background layers ---------- */
.bg-base {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(900px circle at 78% -8%, rgba(255, 36, 54, 0.16), transparent 55%),
    radial-gradient(800px circle at 8% 18%, rgba(184, 0, 24, 0.12), transparent 55%),
    radial-gradient(1000px circle at 50% 110%, rgba(255, 36, 54, 0.10), transparent 55%),
    var(--bg);
}
.bg-veins {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: 0.72;
  mask-image: radial-gradient(ellipse 135% 140% at 50% 45%, #000 60%, rgba(0, 0, 0, 0.32) 100%);
  -webkit-mask-image: radial-gradient(ellipse 135% 140% at 50% 45%, #000 60%, rgba(0, 0, 0, 0.32) 100%);
}
.bg-veins__net { animation: veinPulse 7s ease-in-out infinite; }
.bg-veins__nodes circle { animation: nodePulse 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bg-veins__nodes circle:nth-child(2) { animation-delay: 1.1s; }
.bg-veins__nodes circle:nth-child(3) { animation-delay: 2.2s; }
.bg-veins__nodes circle:nth-child(4) { animation-delay: 0.6s; }
.bg-veins__nodes circle:nth-child(5) { animation-delay: 3.1s; }
.bg-veins__nodes circle:nth-child(6) { animation-delay: 1.7s; }
.bg-veins__nodes circle:nth-child(7) { animation-delay: 2.6s; }
.bg-veins__nodes circle:nth-child(8) { animation-delay: 0.3s; }
.bg-veins__nodes circle:nth-child(9) { animation-delay: 3.6s; }
@keyframes veinPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.95; } }
@keyframes nodePulse { 0%, 100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }

.bg-glow { position: fixed; z-index: -2; border-radius: 50%; filter: blur(130px); pointer-events: none; }
.bg-glow--1 { top: -220px; right: -160px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(255, 36, 54, 0.22), transparent 70%); }
.bg-glow--2 { top: 620px; left: -220px; width: 540px; height: 540px; background: radial-gradient(circle, rgba(184, 0, 24, 0.18), transparent 70%); }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  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='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 3, 4, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--border); background: rgba(5, 3, 4, 0.85); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; letter-spacing: 0.06em; }
.logo__word { font-size: 1.15rem; }
.logo__mark { display: inline-flex; flex: none; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.logo__mark svg { width: 30px; height: auto; }
.logo__mark path { fill: #eef0f2; }
.logo__mark circle { fill: var(--accent); }

.nav { display: flex; gap: 28px; }
.nav__link { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width 0.25s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.lang__btn { color: var(--muted-2); font-weight: 600; transition: color 0.2s; padding: 0 7px; min-height: 44px; display: inline-flex; align-items: center; }
.lang__btn.is-active { color: var(--text); }
.lang__btn:hover { color: var(--accent); }
.lang__sep { color: var(--muted-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn--sm { padding: 11px 20px; font-size: 0.85rem; }
.btn--accent { background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); color: #fff; box-shadow: 0 0 0 rgba(255, 36, 54, 0); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 38px var(--accent-glow); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none; }

/* ---------- Burger ---------- */
.burger { display: none; width: 28px; height: 22px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }
.burger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 150px) 0 clamp(56px, 8vw, 90px); overflow: hidden; }
.hero__tendril { position: absolute; top: -40px; right: -60px; width: min(60vw, 680px); height: auto; z-index: -1; opacity: 0.8; pointer-events: none; }
.hero__eyebrow { font-size: 0.85rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.hero__brand {
  font-family: var(--font-head); font-weight: 800;
  /* cap keeps the "VENUM" wordmark fully inside the container on any width (Sora is narrower than the old Syne) */
  font-size: clamp(2.4rem, 13vw, 11rem); line-height: 0.9; letter-spacing: -0.03em;
  filter: drop-shadow(0 0 70px rgba(255, 36, 54, 0.28));
}
.hero__tagline { margin-top: 26px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.01em; }
.hero__tagline .accent { color: var(--accent); }
.hero__sub { margin-top: 22px; max-width: 56ch; font-size: clamp(1rem, 2vw, 1.18rem); color: var(--muted); }
.hero__cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats { margin-top: clamp(44px, 6vw, 60px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 720px; }
.stat { border-top: 1px solid var(--border); padding-top: 18px; position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.stat__label { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 18px 0; overflow: hidden; background: rgba(10, 6, 8, 0.6); }
.marquee__track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.marquee__track span:nth-child(even) { color: var(--accent); opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(10, 6, 8, 0.5), rgba(8, 5, 6, 0.25)); border-block: 1px solid var(--border); }
.section__head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 52px); }
.section__tag { display: inline-block; font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; margin-bottom: 18px; }
.section__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.0; letter-spacing: -0.03em; }
.section__title .accent { color: var(--accent); }
.section__lead { margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 60ch; }
.section__note { margin-top: 18px; color: var(--muted-2); font-size: 0.88rem; font-style: italic; }

/* ---------- Cards (services) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 52px 32px 32px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 36, 54, 0.12), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: 0 20px 50px rgba(255, 36, 54, 0.08); }
.card:hover::before { opacity: 1; }
.card__index { position: absolute; top: 22px; right: 28px; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--accent); opacity: 0.5; }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin: auto 0 12px; }
.card__text { color: var(--muted); font-size: 0.98rem; }

/* ---------- Why ---------- */
.why { display: grid; }
.why__item { display: flex; gap: 28px; padding: 30px 0; border-top: 1px solid var(--border); align-items: flex-start; transition: transform 0.3s var(--ease); }
.why__item:last-child { border-bottom: 1px solid var(--border); }
.why__item:hover { transform: translateX(10px); }
.why__no { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1; color: var(--accent); flex: none; width: 72px; padding-top: 2px; opacity: 0.9; }
.why__item h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-bottom: 8px; }
.why__item p { color: var(--muted); max-width: 60ch; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { position: relative; background: var(--surface); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.case::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); }
.case:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: 0 20px 50px rgba(255, 36, 54, 0.08); }
.case__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.case__geo { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.case__format { font-size: 0.82rem; color: var(--muted); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.case__metric { display: flex; flex-direction: column; }
.case__val { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--accent); letter-spacing: -0.02em; text-shadow: 0 0 24px var(--accent-glow); }
.case__cap { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.case__text { color: var(--muted); font-size: 0.95rem; }

/* ---------- Steps (approach) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps__item { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color 0.3s, transform 0.3s var(--ease); }
.steps__item::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); }
.steps__item:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.steps__no { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.steps__item h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin: 12px 0 8px; }
.steps__item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Jobs (accordion) ---------- */
.jobs { display: grid; gap: 14px; }
.job { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s, background 0.3s; }
.job:hover { border-color: var(--border-strong); background: var(--surface-2); }
.job.is-open { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 24px rgba(255, 36, 54, 0.16); }
.job__heading { margin: 0; font: inherit; }
.job__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 32px; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: var(--radius); }
.job__head:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-2); }
.job__titles { display: flex; flex-direction: column; }
.job__title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.job__meta { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.job__arrow { font-size: 1.5rem; color: var(--accent); transition: transform 0.35s var(--ease); flex: none; }
.job.is-open .job__arrow { transform: rotate(90deg); }
.job:not(.is-open):hover .job__arrow { transform: translateX(5px); }

.job__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.job.is-open .job__panel { grid-template-rows: 1fr; }
.no-js .job__panel { grid-template-rows: 1fr; } /* JS-off fallback: keep details visible */
.job__panel-inner { overflow: hidden; min-height: 0; }
.job__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; padding: 4px 32px 6px; }
.job__sub { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.job__list { list-style: none; display: grid; gap: 12px; }
.job__list li { position: relative; padding-left: 22px; color: var(--muted-2); font-size: 0.95rem; line-height: 1.5; }
.job__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 1px; background: var(--accent); }
.job__apply { margin: 22px 32px 30px; }

/* ---------- Contact ---------- */
.section--contact { background: linear-gradient(180deg, rgba(10, 6, 8, 0.5), rgba(5, 3, 4, 0.12)); border-top: 1px solid var(--border); }
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.contact__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.0; letter-spacing: -0.025em; }
.contact__title .accent { color: var(--accent); }
.contact__lead { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 44ch; }
.contact__right { display: grid; }
.contact__row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid var(--border); transition: transform 0.3s var(--ease); }
.contact__row:last-child { border-bottom: 1px solid var(--border); }
.contact__row:hover { transform: translateX(10px); }
.contact__row:hover .contact__v { color: var(--accent); }
.contact__k { color: var(--muted); font-size: 0.92rem; }
.contact__v { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; transition: color 0.2s; }

/* contact form */
.contact__form { display: grid; gap: 16px; }
.contact__hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 7px; }
.field__label { font-size: 0.82rem; color: var(--muted); }
.field__input { width: 100%; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text); font: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field__input::placeholder { color: var(--muted-2); }
.field__input:hover { border-color: var(--muted-2); }
.field__input:focus { outline: none; border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 3px var(--accent-glow); }
.field__textarea { resize: vertical; min-height: 84px; }
.field__select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 19px) center, calc(100% - 14px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field__select option { color: #14110f; }
.contact__submit { margin-top: 4px; justify-self: start; }
.contact__formnote { color: var(--muted-2); font-size: 0.82rem; }
.contact__thanks { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--accent); padding: 18px 0; }
.field__label--req::after { content: " *"; color: var(--accent); }
.contact__consent { color: var(--muted-2); font-size: 0.82rem; margin-top: 2px; }
.contact__consent a { color: var(--muted); text-decoration: underline; transition: color 0.2s; }
.contact__consent a:hover { color: var(--accent); }
.footer__link { color: var(--muted); font-size: 0.85rem; text-decoration: underline; transition: color 0.2s; }
.footer__link:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-direction: column; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; letter-spacing: 0.06em; }
.footer__copy { color: var(--muted); font-size: 0.9rem; }
.footer__note { color: var(--muted-2); font-size: 0.82rem; max-width: 70ch; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .burger { display: block; }
  /* invisible expanded tap area → ~52×46px hit target without moving the bars */
  .burger::after { content: ""; position: absolute; inset: -12px -12px; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(8, 5, 6, 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 6px 0;
    transform: translateY(-130%); transition: transform 0.4s var(--ease);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 17px var(--gutter); font-size: 1.05rem; color: var(--text); border-top: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .header__actions { gap: 10px; }
  .header__actions .btn--sm { display: none; }
  /* larger language tap targets */
  .lang { gap: 3px; font-size: 0.95rem; }
  .lang__btn { padding: 9px 7px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cards, .cases, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { gap: 36px; }
  .hero__stats { grid-template-columns: 1fr; max-width: 360px; gap: 18px; }
  .hero__tendril { opacity: 0.35; }
  .hero { padding-top: clamp(56px, 12vw, 90px); }
  .section { padding: clamp(60px, 13vw, 100px) 0; }
  .section__head { margin-bottom: 40px; }
  /* lighten heavy effects on phones (battery / low-end Android) */
  .grain { display: none; }
  .card, .case { backdrop-filter: none; background: linear-gradient(180deg, rgba(14, 9, 11, 0.72), rgba(10, 6, 8, 0.55)); }
  .bg-veins__net { will-change: opacity; }
}

/* phones */
@media (max-width: 560px) {
  .hero__eyebrow { font-size: 0.72rem; letter-spacing: 0.06em; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn { width: 100%; }
  .why__item { gap: 16px; }
  .why__no { width: 46px; }
  .card { padding: 44px 24px 26px; }
  .case { padding: 26px 22px; }
  .job__head { padding: 24px 22px; gap: 14px; } /* >=48px tap target */
  .job__title { font-size: 1.1rem; }
  .job__cols { grid-template-columns: 1fr; gap: 20px; padding: 0 22px 4px; }
  .job__list li { font-size: 0.88rem; overflow-wrap: anywhere; }
  .job__apply { margin: 18px 22px 24px; width: auto; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  /* keep the 3 short metrics in one row (avoids a lonely third cell) */
  .case__metrics { gap: 10px; }
  .case__val { font-size: 1.5rem; }
  .case__cap { font-size: 0.72rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .bg-veins__net, .bg-veins__nodes circle { animation: none; }
}
