/* Verzetron — tech.verzetron.com
   Brand tokens copied verbatim from verzetron-3d-site for exact theme continuity. */

:root {
  --color-bg-dark:    #040810;
  --color-bg-navy:    #0a1020;
  --color-bg-light:   #111827;
  --color-cyan:       #06b6d4;
  --color-cyan-hover: #22d3ee;
  --color-cyan-dim:   rgba(6, 182, 212, 0.15);
  --color-cyan-glow:  rgba(6, 182, 212, 0.5);
  --color-purple:     #a78bfa;
  --color-purple-dim: rgba(167, 139, 250, 0.15);
  --color-amber:      #fbbf24;
  --color-amber-dim:  rgba(251, 191, 36, 0.15);
  --color-text:       #f1f5f9;
  --color-muted:      #94a3b8;
  --color-border:     rgba(255, 255, 255, 0.08);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --text-base: clamp(1rem,     2vw,   1.125rem);
  --text-lg:   clamp(1.125rem, 2.5vw, 1.375rem);
  --text-xl:   clamp(1.5rem,   3.5vw, 2rem);
  --text-2xl:  clamp(2rem,     5vw,   3.25rem);
  --text-hero: clamp(2.75rem,  8vw,   5.5rem);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-section: clamp(5rem, 12vw, 10rem);

  --dur-fast:   200ms;
  --dur-normal: 500ms;
  --dur-slow:   900ms;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--color-bg-dark);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
  /* Nebula field: deep space blues + a purple/cyan bloom, matching brand direction */
  background-image:
    radial-gradient(1100px 700px at 82% -8%, rgba(90, 45, 130, 0.28), transparent 60%),
    radial-gradient(900px 700px at 8% 12%, rgba(6, 182, 212, 0.16), transparent 55%),
    radial-gradient(1000px 900px at 50% 108%, rgba(167, 139, 250, 0.12), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.05; }
:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--color-cyan); color: var(--color-bg-dark);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ── Loading screen ──────────────────────────────────────────────────── */
.pl-lock { overflow: hidden; }
#preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--color-bg-dark);
  transition: opacity 650ms var(--ease-out), visibility 0s linear 650ms;
}
#preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: min(78vw, 340px); text-align: center; }
.preloader__logo { height: 52px; width: auto; filter: drop-shadow(0 0 16px var(--color-cyan-glow)); animation: pl-pulse 2s var(--ease-out) infinite; }
@keyframes pl-pulse { 0%, 100% { opacity: 0.72; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.preloader__brand { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.02em; }
.preloader__track { width: 100%; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; margin-top: 0.5rem; }
.preloader__fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-cyan), var(--color-purple)); box-shadow: 0 0 12px var(--color-cyan-glow); transition: width 220ms linear; }
.preloader__pct { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.preloader__tag { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-cyan); opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { .preloader__logo { animation: none; } }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(4, 8, 16, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.brand img { height: 30px; width: auto; filter: drop-shadow(0 0 10px var(--color-cyan-glow)); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
/* :not(.btn) so the CTA button keeps its own dark-on-cyan text instead of
   inheriting the muted nav-link colour (which gave ~1.06 contrast). */
.nav a:not(.btn) { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; transition: color var(--dur-fast) var(--ease-out); }
.nav a:not(.btn):hover { color: var(--color-text); }
.nav .btn { padding: 0.55rem 1.25rem; }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ── Buttons (verbatim from reference) ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: 8px; border: 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.01em; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn--primary { background: var(--color-cyan); color: var(--color-bg-dark); box-shadow: 0 0 24px rgba(6,182,212,0.4); }
.btn--primary:hover { background: var(--color-cyan-hover); box-shadow: 0 0 40px rgba(6,182,212,0.7); transform: translateY(-2px); }
.btn--ghost { background: rgba(4,8,16,0.34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--color-text); border: 1px solid rgba(255,255,255,0.18); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.28); background: rgba(8,16,32,0.5); transform: translateY(-2px); }
.btn--large { padding: 1rem 2.5rem; font-size: var(--text-base); }
.btn:focus-visible { outline-offset: 4px; }

.section-tag {
  display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-cyan); margin-bottom: 1rem; opacity: 0.9;
}

/* ── Section shell + reveal ──────────────────────────────────────────── */
.section { padding: var(--space-section) clamp(1.25rem, 5vw, 2.5rem); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow-line { width: 64px; height: 2px; background: linear-gradient(90deg, var(--color-cyan), transparent); margin-bottom: var(--space-sm); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* anime.js-driven stagger groups (About / Approach / service cards use their
   own JS-set inline transforms; this is just the pre-JS hidden state so
   there's no flash of fully-visible content before the IntersectionObserver
   in assets/js/motion.js fires). Reduced-motion overrides this at the bottom
   of this file so content is never JS-gated for those users. */
.reveal-stagger > * { opacity: 0; }

/* ── Hero copy ────────────────────────────────────────────────────────── */
.hero__content { position: relative; z-index: 2; max-width: 860px; text-align: center; margin: 0 auto; }
.hero__content h1 { font-size: var(--text-hero); font-weight: 700; }
.hero__content h1 .grad { background: linear-gradient(135deg, var(--color-cyan), var(--color-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Two headline lines revealed as blocks by motion.js (keeps the gradient). */
.hero__content h1 .line, .hero__content h1 .grad { display: inline-block; opacity: 0; }
.hero__sub { color: var(--color-muted); font-size: var(--text-lg); margin: var(--space-md) auto 0; max-width: 620px; }
.hero__actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); }
/* Pre-hidden; assets/js/motion.js reveals with an anime.js stagger. CSS
   fallback below shows them unconditionally under reduced-motion. */
.hero__eyebrow, .hero__sub, .hero__actions .btn { opacity: 0; }

.scroll-cue { position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%); font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; z-index: 2; }
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--color-cyan), transparent); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── Whole-page brand film — ONE fixed canvas behind everything, scrubbed by
   document scroll (assets/js/motion.js → setupFilm). Top of page = frame 0
   (her face), bottom of page = the finale. Every section scrolls over it. ── */
#film-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; background: var(--color-bg-dark); }
.film-scrim {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* NO center darkening — the film plays at full brightness. Only a soft
     edge vignette top & bottom so the fixed header, footer and progress
     readout stay legible; the middle is fully clear. */
  background: linear-gradient(180deg,
    rgba(4,8,16,0.62) 0%, rgba(4,8,16,0.12) 12%,
    transparent 26%, transparent 78%,
    rgba(4,8,16,0.30) 90%, rgba(4,8,16,0.62) 100%);
}
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 8rem clamp(1.25rem, 5vw, 2.5rem) 4rem; }

/* Fixed segmented scroll-progress readout (animejs.com-style). */
.scroll-progress { position: fixed; right: clamp(1.25rem, 4vw, 2.5rem); bottom: clamp(1.25rem, 4vw, 2rem); z-index: 90; pointer-events: none; }
.scroll-progress__ticks { display: flex; align-items: center; gap: 3px; }
.scroll-progress__ticks .tick { width: 3px; height: 14px; border-radius: 1px; background: rgba(255,255,255,0.14); transition: background 200ms ease, box-shadow 200ms ease; }
.scroll-progress__ticks .tick.is-lit { background: var(--color-cyan); box-shadow: 0 0 8px var(--color-cyan-glow); }

@media (max-width: 720px) {
  .hero { align-items: flex-end; text-align: left; padding: 6rem 1.25rem 3.5rem; }
  .hero__content { text-align: left; margin: 0; }
  .hero__actions { justify-content: flex-start; }
}

/* ── Local legibility over the (now undarkened) film ─────────────────────
   No global veil — instead each free-floating text block carries its own
   soft, contained treatment so the film stays bright around it. */
/* Soft glow behind the hero copy, painted on the full-width .hero so it
   never extends past the viewport (a %-inset on the narrower content box
   overflowed on mobile). */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 42% at 50% 48%, rgba(4,8,16,0.80), rgba(4,8,16,0.30) 58%, transparent 78%);
}
.hero__content h1 { text-shadow: 0 2px 30px rgba(4,8,16,0.7); }
.hero__sub, .hero__eyebrow { text-shadow: 0 1px 18px rgba(4,8,16,0.85); }
#services > .section-inner > .section-tag,
.stat-band .section-tag { text-shadow: 0 2px 22px rgba(4,8,16,0.65); }
/* Stats float over the bright city frame — sit them on a slim frost strip. */
.stat-band .stat-row {
  background: rgba(6,12,26,0.55); backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 16px;
  padding: clamp(1.1rem,3vw,1.6rem) clamp(1.5rem,5vw,3rem);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ── Content panels (About / Approach) — the glass-panel copy sections
   that replace the old fused, scroll-scrubbed cinematic beats. Each
   heading/paragraph group carries .reveal-stagger for the anime.js
   IntersectionObserver reveal in motion.js. ─────────────────────────────── */
.content-panel { padding: clamp(1.75rem, 4vw, 3rem); border-radius: 20px; }

/* ── About + Approach ────────────────────────────────────────────────── */
.lead { font-size: var(--text-xl); font-weight: 500; line-height: 1.35; max-width: 26ch; }
.lead .grad { background: linear-gradient(135deg, var(--color-cyan), var(--color-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split p + p { margin-top: var(--space-sm); }
.split p { color: var(--color-muted); }
.split strong { color: var(--color-text); font-weight: 600; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: var(--space-md); } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
.pillar { padding: clamp(1.5rem, 3vw, 2rem); border-radius: 16px; }
.pillar__n { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-cyan); letter-spacing: 0.1em; }
.pillar h3 { font-size: var(--text-lg); margin: 0.75rem 0 0.5rem; }
.pillar p { color: var(--color-muted); font-size: var(--text-sm); }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: var(--space-lg); }
.stat b { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text); }
.stat span { color: var(--color-muted); font-size: var(--text-sm); }

.stat-band { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.stat-band .stat-row { margin-top: 0; justify-content: center; text-align: center; }
.stat-band .stat { flex: 0 1 auto; }

/* ── Services — case-study cards ─────────────────────────────────────────
   Replaces the four pinned, scroll-scrubbed full-viewport service sections.
   Each card zooms out from its own center as it enters the viewport (anime.js,
   see motion.js) and plays its 16:9 frame sequence once on entry / again on
   hover (desktop). data-frames / data-count preserve the folder→service map. */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); margin-top: var(--space-lg); }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  border-radius: 20px; overflow: hidden; transform-origin: center;
  opacity: 0; transform: scale(0.72); /* JS (anime.js) reveals; reduced-motion override below */
}
.service-card__media {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0;
  aspect-ratio: 16 / 9; background: var(--color-bg-navy); overflow: hidden; cursor: zoom-in;
}
.service-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.service-card__expand {
  position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 2; pointer-events: none;
  font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--color-text);
  background: rgba(4,8,16,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 0.35rem 0.7rem;
  opacity: 0; transform: translateY(4px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.service-card__media:hover .service-card__expand,
.service-card__media:focus-visible .service-card__expand { opacity: 1; transform: none; }

/* ── Enlarge modal (looping demo lightbox) ───────────────────────────── */
.vmodal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: clamp(1rem, 4vw, 2.5rem); opacity: 0; transition: opacity 260ms var(--ease-out); }
.vmodal[hidden] { display: none; }
.vmodal.is-open { opacity: 1; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(2,5,12,0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vmodal__inner { position: relative; width: min(1100px, 94vw); padding: clamp(0.85rem, 2vw, 1.35rem); transform: scale(0.95); transition: transform 260ms var(--ease-out); }
.vmodal.is-open .vmodal__inner { transform: none; }
.vmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.vmodal__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.vmodal__close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: var(--color-text); font-size: 1.05rem; cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.vmodal__close:hover { background: rgba(255,255,255,0.14); }
.vmodal__video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 12px; background: #000; }
.service-card__body { padding: clamp(1.5rem, 3.5vw, 2.25rem); }
.service-card .num { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-cyan); letter-spacing: 0.14em; }
.service-card h3 { font-size: var(--text-2xl); font-weight: 700; margin: 0.5rem 0 var(--space-sm); }
.service-card .desc { color: var(--color-muted); font-size: var(--text-base); line-height: 1.6; }
.service-card ul { list-style: none; margin: var(--space-md) 0 0; display: grid; gap: 0.55rem; }
.service-card li { position: relative; padding-left: 1.4rem; font-size: var(--text-sm); color: var(--color-text); }
.service-card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 2px; background: var(--color-cyan); box-shadow: 0 0 8px var(--color-cyan); }
.service-card .agent-tag { display: inline-block; margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-purple); background: var(--color-purple-dim); border: 1px solid rgba(167,139,250,0.25); padding: 0.4rem 0.8rem; border-radius: 999px; letter-spacing: 0.04em; }

/* ── Glass + contact (verbatim from reference) ───────────────────────── */
.glass-panel {
  /* Translucent frost: the film stays visible (blurred, alive) through the
     panel instead of being hidden behind an opaque box — content flows with
     the animation. Low alpha + heavy blur keeps text legible. */
  background: rgba(6, 12, 26, 0.54); border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(30px) saturate(1.2); -webkit-backdrop-filter: blur(30px) saturate(1.2);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.09);
  transition: background var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out);
}
.glass-panel:hover {
  background: rgba(8, 16, 32, 0.54); border-color: rgba(6,182,212,0.28);
  box-shadow: 0 28px 66px rgba(0,0,0,0.48), 0 0 44px rgba(6,182,212,0.14), inset 0 1px 0 rgba(255,255,255,0.12);
}
.section--cta .section-inner { display: grid; place-items: center; text-align: center; }
.cta-inner { max-width: 640px; padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem); }
.cta-inner h2 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--space-sm); }
.cta-sub { color: var(--color-muted); font-size: var(--text-lg); margin-bottom: var(--space-lg); line-height: 1.7; }
.cta-location { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

.audit-form { width: 100%; margin-top: var(--space-md); display: flex; flex-direction: column; gap: 0.75rem; text-align: start; }
.audit-row { display: flex; gap: 0.625rem; }
.audit-input, .audit-textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: var(--color-text); font-family: var(--font-body); font-size: var(--text-base);
  padding: 0.75rem 1rem; outline: none; transition: border-color 200ms ease, background 200ms ease; resize: none;
}
.audit-input::placeholder, .audit-textarea::placeholder { color: rgba(226,232,240,0.62); }
.audit-input:focus, .audit-textarea:focus { border-color: rgba(6,182,212,0.55); background: rgba(6,182,212,0.04); }
.audit-input.invalid, .audit-textarea.invalid { border-color: rgba(248,113,113,0.6); }
.audit-submit { flex-shrink: 0; white-space: nowrap; }
.audit-btn-loading { display: none; }
.audit-form.is-loading .audit-btn-label { display: none; }
.audit-form.is-loading .audit-btn-loading { display: inline; }
.audit-form.is-loading .audit-submit { opacity: 0.7; pointer-events: none; }
.audit-feedback { font-size: var(--text-sm); margin: 0; display: none; }
.audit-form.is-success .audit-success { display: block; color: oklch(76% 0.14 160); }
.audit-form.is-error .audit-error { display: block; color: oklch(72% 0.18 25); }
.audit-error a { color: inherit; text-decoration: underline; }
@media (max-width: 560px) { .audit-row { flex-direction: column; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-border); padding: var(--space-lg) clamp(1.25rem, 5vw, 2.5rem); }
.site-footer .section-inner { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between; align-items: center; color: var(--color-muted); font-size: var(--text-sm); }
.site-footer a:hover { color: var(--color-text); }

.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; }

/* Off-screen honeypot — bots fill it, real users never see or tab to it. */
.hp-field { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Skip-link lands here; offset so the fixed header doesn't cover the target. */
#top { scroll-margin-top: 5rem; }
#top:focus { outline: none; } /* programmatic focus target, not a visible control */

/* ── Pause-demos toggle (WCAG 2.2.2) ─────────────────────────────────── */
.motion-toggle {
  position: fixed; left: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 1.75rem); z-index: 90;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.03em;
  color: var(--color-text); background: rgba(4,8,16,0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16); opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; background: rgba(8,16,32,0.75); border-color: rgba(6,182,212,0.4); }
.motion-toggle__icon { color: var(--color-cyan); font-size: 0.7em; }
@media (max-width: 720px) { .motion-toggle__label { display: none; } .motion-toggle { padding: 0.5rem; } }

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
  .hero__eyebrow, .hero__sub, .hero__actions .btn { opacity: 1; }
  .hero__content h1 .line, .hero__content h1 .grad { opacity: 1; }
  .service-card { opacity: 1; transform: none; }
  .vmodal, .vmodal__inner { transition: none; } /* modal fade/scale off */
  .lang-dropdown { transition: none; }
}

/* ── Header left cluster + Games Publishing link ─────────────────────────
   Games Publishing sits beside the brand in the top-left. Purple tint keeps
   it visually distinct from the cyan "Start a project" CTA on the right. */
.header-left { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.1rem); min-width: 0; }
.games-link {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-purple-dim);
  border: 1px solid rgba(167,139,250,0.28);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.games-link:hover { background: rgba(167,139,250,0.22); border-color: var(--color-purple); transform: translateY(-1px); }
.games-link__icon { width: 20px; height: 20px; color: var(--color-purple); flex: none; }

/* ── Language switcher ───────────────────────────────────────────────────
   Button lives in the nav (visible on mobile, unlike .nav-links). The
   dropdown is portaled to <body> so the header's backdrop-filter stacking
   context doesn't clip it or mis-place touch targets on iOS. */
.lang-mount { display: flex; align-items: center; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.7rem; border-radius: 8px; cursor: pointer;
  color: var(--color-text); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  background: rgba(4,8,16,0.34);
  border: 1px solid rgba(255,255,255,0.14);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.lang-btn:hover { border-color: rgba(255,255,255,0.28); background: rgba(8,16,32,0.5); }
.lang-icon { width: 18px; height: 18px; color: var(--color-cyan); flex: none; }
.lang-current { min-width: 1.5em; text-align: center; font-variant-numeric: tabular-nums; }
.lang-chevron { width: 10px; height: 6px; opacity: 0.7; transition: transform var(--dur-fast) var(--ease-out); }
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: fixed; z-index: 400; margin: 0; padding: 0.4rem; list-style: none;
  min-width: 190px; max-height: 70vh; overflow-y: auto;
  background: rgba(10,16,32,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility var(--dur-fast) var(--ease-out);
}
.lang-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; padding: 0.55rem 0.75rem; border-radius: 8px; cursor: pointer;
  color: var(--color-muted); font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--color-text); }
.lang-option.is-active { color: var(--color-cyan); background: var(--color-cyan-dim); }
[dir="rtl"] .lang-dropdown .lang-option { flex-direction: row-reverse; text-align: right; }

/* ── Header responsive: keep the top bar tidy on small screens ─────────── */
@media (max-width: 720px) {
  .site-header { gap: 0.6rem; padding: 0.7rem clamp(0.85rem, 4vw, 1.25rem); }
  .games-link { padding: 0.42rem 0.5rem; }
  .games-link__label { display: none; } /* icon-only pill; aria-label names it */
  .lang-btn { padding: 0.4rem 0.5rem; }
  .nav .btn { padding: 0.5rem 0.85rem; font-size: var(--text-xs); }
}
@media (max-width: 420px) {
  .brand span { display: none; } /* logo mark only on very small screens */
}
