/* ============================================
   OVERCHENKO STUDIO — main.css
   Design tokens · reset · base · components
   ============================================ */

:root {
  /* COLORS */
  --color-bg:              #1f1f1f;
  --color-bg-secondary:    #F4F2EE;
  --color-bg-tertiary:     #1c1c28;
  --color-text-primary:    #FAFAFA;
  --color-text-on-light:   #1f1f1f;
  --color-text-secondary:  rgba(250, 250, 250, 0.62);
  --color-text-muted:      rgba(250, 250, 250, 0.52);
  --color-text-muted-dark: rgba(31, 31, 31, 0.55);
  --color-accent:          #1800AD;
  --color-accent-light:    #4D2EFF;
  --color-accent-dark:     #0D0066;
  --color-border:          rgba(250, 250, 250, 0.12);
  --color-border-strong:   rgba(250, 250, 250, 0.25);
  --color-border-dark:     rgba(31, 31, 31, 0.12);
  --color-glow:            rgba(77, 46, 255, 0.55);
  --color-overlay:         rgba(31, 31, 31, 0.85);

  /* TYPOGRAPHY */
  --font-display:   'Space Grotesk', 'Inter', sans-serif;
  --font-heading:   'Space Grotesk', 'Inter', sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;
  --font-accent:    'Instrument Serif', Georgia, serif;

  --text-hero:      clamp(64px, 11.5vw, 200px);
  --text-display:   clamp(44px, 7vw, 128px);
  --text-heading:   clamp(32px, 4.5vw, 80px);
  --text-subhead:   clamp(20px, 2.5vw, 36px);
  --text-body:      clamp(15px, 1.15vw, 18px);
  --text-small:     clamp(13px, 1vw, 15px);
  --text-caption:   clamp(11px, 0.85vw, 13px);

  --tracking-tight:  -0.04em;
  --tracking-normal: -0.012em;
  --tracking-wide:    0.08em;
  --tracking-widest:  0.22em;

  --leading-tight:   0.95;
  --leading-snug:    1.15;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  /* SPACING */
  --space-2xs:  0.25rem;
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   8rem;
  --space-2xl:  12rem;
  --space-3xl:  20rem;

  --gutter:     clamp(20px, 4vw, 64px);

  /* RADIUS */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* EASING */
  --ease-smooth:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo:     cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart:    cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce:       cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* DURATIONS — doubled for premium, cinematic feel */
  --dur-instant:    200ms;
  --dur-fast:       500ms;
  --dur-normal:    1000ms;
  --dur-slow:      1600ms;
  --dur-xslow:     2400ms;
  --dur-cinematic: 4000ms;

  /* Z-INDEX */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:    10;
  --z-nav:       50;
  --z-overlay:  100;
  --z-modal:    200;
  --z-cursor:  9999;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Hide scrollbar — Firefox */
  scrollbar-width: none;
  /* Hide scrollbar — IE/Edge legacy */
  -ms-overflow-style: none;
}

/* Hide scrollbar — Chrome, Safari, Edge, and any scrollable element */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  width: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  cursor: none;
  -webkit-tap-highlight-color: transparent;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

::selection {
  background: var(--color-accent);
  color: var(--color-text-primary);
}

/* ============================================
   100% WIDTH LAW
   ============================================ */
section,
header,
footer,
nav,
main {
  width: 100%;
  max-width: none !important;
}

/* Inner wrapper якщо потрібно обмежити ТЕКСТ */
.inner {
  width: 100%;
  padding-inline: var(--gutter);
}

.inner--narrow {
  max-width: 1400px;
  margin: 0 auto;
}

/* Screen-reader-only — visually hide but keep accessible to AT/SEO */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.t-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.t-heading {
  font-family: var(--font-heading);
  font-size: var(--text-heading);
  font-weight: 500;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
}

.t-subhead {
  font-family: var(--font-heading);
  font-size: var(--text-subhead);
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
}

.t-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

.t-mono {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.t-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

/* ============================================
   THEME SECTIONS (dark / light)
   ============================================ */
.section--light {
  background: var(--color-bg-secondary);
  color: var(--color-text-on-light);
}

.section--light .t-mono { color: var(--color-text-muted-dark); }

.section--dark {
  background: var(--color-bg);
  color: var(--color-text-primary);
}

.section--deep {
  background: var(--color-bg-tertiary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.05em 1.8em;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  transition: color var(--dur-slow) var(--ease-smooth),
              border-color var(--dur-slow) var(--ease-smooth);
  isolation: isolate;
  --fill-x: 50%;
  --fill-y: 50%;
  --fill-color: #4D2EFF;
}

.btn__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  position: relative;
  z-index: 1;
}

/* Slow accent fill — single color (#4D2EFF) bursts from cursor entry point */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fill-color);
  clip-path: circle(0% at var(--fill-x) var(--fill-y));
  transition: clip-path 1.4s var(--ease-out-expo);
  z-index: 0;
}

.btn:hover::before {
  clip-path: circle(160% at var(--fill-x) var(--fill-y));
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-text-primary);
  box-shadow: 0 12px 40px -12px var(--color-glow);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--color-border-strong);
}

.section--light .btn--ghost { border-color: var(--color-border-dark); }

.btn--big {
  padding: 1.3em 2.4em;
  font-size: var(--text-body);
}

/* Telegram icon inside CTA buttons — sits flush after the label */
.btn__tg-icon {
  flex-shrink: 0;
  margin-left: 0.1em;
  vertical-align: -2px;
  transition: transform var(--dur-fast) var(--ease-out-expo);
}

.btn:hover .btn__tg-icon { transform: translate(2px, -2px); }

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out-quart);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ============================================
   LINKS WITH UNDERLINE REVEAL
   ============================================ */
.link {
  position: relative;
  display: inline-block;
}

.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-normal) var(--ease-in-out-quart);
}

.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   FOCUS-VISIBLE — keyboard accessibility
   Single source of truth: keyboard focus only,
   mouse/touch clicks stay clean (:focus-visible).
   ============================================ */
:where(a, button, .btn, .nav__link, .link,
       .faq-item__btn, .work-card,
       [data-magnetic], [data-carousel-prev], [data-carousel-next],
       .nav__lang button, .mobile-menu__lang button,
       .nav__burger, input, textarea, select):focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* On light sections the accent stays visible; nudge offset so the ring
   clears the underline-reveal on .link. */
.section--light :where(a, button, .link):focus-visible {
  outline-color: var(--color-accent);
}

/* ============================================
   SPLIT TEXT HELPERS
   ============================================ */
.split-line {
  overflow: hidden;
  display: block;
}

.split-word, .split-char {
  display: inline-block;
  will-change: transform;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: transparent;            /* фон тепер дають панелі-жалюзі */
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--gutter);
}

html.os-instant .preloader { display: none !important; }

/* Панелі-жалюзі — вертикальні колони, що злітають угору по черзі (інжект з JS) */
.preloader__panels {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  pointer-events: none;
}

.preloader__panel {
  flex: 1 1 0;
  height: 100%;
  background: var(--color-bg);
  /* Закрити суб-піксельні шви між сусідніми колонами фоном — інакше при підйомі
     шторки крізь них просвічує hero. ±1px по горизонталі перекриває межі сусідів. */
  box-shadow: 1px 0 0 var(--color-bg), -1px 0 0 var(--color-bg);
  will-change: transform;
}

/* Вордмарк OVERCHENKO STUDIO — центрований masked-reveal (інжект з JS) */
.preloader__brand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.04em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  pointer-events: none;
}

.preloader__line {
  display: block;
  white-space: nowrap;
}

.preloader__char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.preloader__char {
  display: inline-block;
  will-change: transform;
}

.preloader__counter {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  transform: translateX(var(--rider, 0px));
  will-change: transform;
}

.preloader__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  align-self: flex-end;
}

.preloader__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 2;
  background: var(--color-border);
  overflow: hidden;
}

.preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent-light);
  box-shadow: 0 0 12px var(--color-glow);
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { box-shadow: 0 0 10px var(--color-glow); }
  50%      { box-shadow: 0 0 22px var(--color-glow), 0 0 40px var(--color-glow); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__fill { animation: none; }
  .preloader__char { transform: none !important; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Dot stays crisp on any background via difference blend */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #FAFAFA;
  border-radius: 50%;
  mix-blend-mode: difference;
}

/* Brand ring — true-colour violet glow (no blend so the accent reads honestly) */
.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-accent-light);
  border-radius: 50%;
  background: rgba(77, 46, 255, 0.04);
  box-shadow: 0 0 20px var(--color-glow);
  opacity: 0.8;
  transition: opacity var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  /* No infinite box-shadow pulse — it repainted a fixed element every frame.
     The static glow above is enough; hover/down states still animate via transition. */
}

/* Hover over any interactive element — accent fill + brighter glow */
.cursor-follower.is-active {
  background: rgba(77, 46, 255, 0.15);
  border-color: var(--color-accent-light);
  box-shadow: 0 0 26px var(--color-glow);
}

/* Mouse press — tactile squeeze (JS owns the base transform via scale) */
.cursor-follower.is-down {
  background: rgba(77, 46, 255, 0.28);
}

.cursor-follower__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #FAFAFA;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

/* Project cards — accent fill + ↗ arrow, old VIEW label hidden */
.cursor-follower.is-view {
  background: var(--color-accent-light);
  border-color: transparent;
  box-shadow: 0 0 32px var(--color-glow);
}

.cursor-follower.is-view::before {
  content: '↗';
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: #FAFAFA;
}

.cursor-follower.is-view .cursor-follower__label {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-follower { animation: none; }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-follower { display: none; }
  body, a, button { cursor: auto; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-block: 1.2rem;
  transition: transform var(--dur-normal) var(--ease-out-expo),
              background var(--dur-normal) var(--ease-smooth),
              backdrop-filter var(--dur-normal) var(--ease-smooth);
}

.nav.is-hidden {
  transform: translateY(-110%);
}

.nav.is-scrolled {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  position: relative;
}

/* LEFT: logo image + wordmark */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FAFAFA;
  line-height: 1;
  flex-shrink: 0;
}

.nav__brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 14px var(--color-glow);
}

.nav__brand-name {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #FAFAFA;
  white-space: nowrap;
}

/* Backwards compat — старі класи лишаються як аліаси на бренд */
.nav__logo { display: inline-flex; align-items: center; color: #FAFAFA; line-height: 0; }
.nav__logo-img { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 18px var(--color-glow); }

/* CENTER: capsule pill with links — абсолютне центрування у viewport, незалежно від ширин brand/actions
   `width: auto` потрібен щоб перебити глобальний "100% WIDTH LAW" для <nav>-елементів (рядок 165) */
.nav__pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  padding: 10px clamp(16px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
}

/* Legacy alias — на випадок якщо десь лишився .nav__links */
.nav__links {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  padding: 10px clamp(16px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.7);
  position: relative;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.nav__link:hover { color: #FAFAFA; }

.nav__link.is-active {
  color: #FAFAFA;
}

.nav__link.is-active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--color-accent-light);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--color-glow);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #FAFAFA;
}

.nav__lang button {
  color: var(--color-text-muted);
  padding: 4px 2px;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.nav__lang button.is-active {
  color: #FAFAFA;
}

.nav__lang-sep {
  opacity: 0.4;
}

.nav__cta {
  padding: 0.85em 1.4em;
  font-size: var(--text-caption);
}

/* Hamburger button — hidden on desktop, shown ≤860px */
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
  margin-left: var(--space-xs);
}
.nav__burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: #FAFAFA;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.25s var(--ease-smooth), top 0.35s var(--ease-out-expo);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu overlay — fullscreen slide-down */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-height, 72px) + var(--space-lg)) var(--gutter) var(--space-lg);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  visibility: hidden;
  overscroll-behavior: contain;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 2vw, 1.2rem);
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 500;
  line-height: 1;
  color: #FAFAFA;
  letter-spacing: var(--tracking-tight);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.mobile-menu.is-open .mobile-menu__links a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.34s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.42s; }
.mobile-menu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth) 0.5s;
}
.mobile-menu.is-open .mobile-menu__footer { opacity: 1; }
.mobile-menu__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.mobile-menu__lang button {
  color: var(--color-text-muted);
  padding: 4px 2px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.mobile-menu__lang button.is-active { color: #FAFAFA; }
.mobile-menu__lang-sep { opacity: 0.4; }

.mobile-menu__close {
  position: absolute;
  top: calc((var(--nav-height, 72px) - 40px) / 2);
  right: var(--gutter);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: #FAFAFA;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s var(--ease-smooth) 0.15s,
              transform 0.45s var(--ease-out-expo) 0.15s,
              background 0.2s, border-color 0.2s;
}
.mobile-menu.is-open .mobile-menu__close {
  opacity: 1;
  transform: scale(1);
}
.mobile-menu__close:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

html.has-menu-open,
html.has-menu-open body {
  overflow: hidden;
}

/* Brand name stays visible on mobile too (logo + "OVERCHENKO STUDIO" top-left).
   Shrink slightly on narrow phones so the row never overflows next to the burger. */
@media (max-width: 400px) {
  .nav__brand-name {
    font-size: 10px;
    letter-spacing: var(--tracking-normal);
  }
}
@media (max-width: 340px) {
  .nav__brand-name { font-size: 9px; }
}

@media (max-width: 860px) {
  .nav__pill { display: none; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__lang { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  padding-top: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.footer__col h4,
.footer__intro h4 {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.footer__col ul li {
  margin-bottom: 0.6em;
}

.footer__col ul a {
  font-family: var(--font-heading);
  font-size: var(--text-subhead);
  color: var(--color-text-primary);
  display: inline-block;
}

.footer__intro h3 {
  font-family: var(--font-display);
  font-size: var(--text-subhead);
  font-weight: 500;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-primary);
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__meta p {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* SVG wordmark — always fills the full viewport width on any display.
   textLength + lengthAdjust forces "OVERCHENKO" to span the viewBox width,
   and the SVG itself scales to 100vw, so the word is always edge-to-edge. */
.footer__wordmark {
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: auto;
  overflow: visible;
}

.footer__wordmark text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 200px;
  letter-spacing: -0.04em;
}

/* On phones, let the base `width:100vw; height:auto` rule drive the wordmark.
   A fixed height fights the viewBox aspect ratio (1000×320) under `meet` and
   clips the word; with auto height the SVG is always 100vw wide and the text
   (textLength=980) spans ~98vw edge-to-edge on any phone — never cut off. */

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__intro {
    grid-column: 1 / -1;
  }
}

/* ============================================
   MOBILE PHONE (≤600px) — tighter spacing, full-width CTAs
   ============================================ */
@media (max-width: 600px) {
  :root {
    --gutter: 18px;
    --space-lg: 56px;
    --space-xl: 80px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer__intro { grid-column: auto; }
  /* Full-width CTA buttons inside hero/forms */
  .hero .btn--primary,
  .hero .btn--big,
  .hero-compact .btn--primary,
  .hero-compact .btn--big,
  .contact-form .btn--primary,
  .contact-form .btn--big,
  .cta-banner .btn--primary,
  .cta-banner .btn--big {
    width: 100%;
    justify-content: center;
  }
  /* Slightly taller tap targets */
  .btn--primary, .btn--big { padding: 1em 1.4em; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-dot, .cursor-follower { display: none; }
  body { cursor: auto; }
}
