/* ============================================================
   evaaatttack (Shcherba Danila), Sound Designer. Cinematic dark portfolio.
   Vanilla CSS. Palette: deep black + one red accent.
   Type: Onest (A24-style neutral grotesque), one family, Cyrillic-capable.
   ============================================================ */

:root {
  --bg: #030304;
  --surface: #0c0c0e;
  --surface-2: #141416;
  --text: #EDEDED;
  --muted: #8A8A8F;
  --muted-dim: #5c5c62;
  --accent: #E00815;
  --accent-bright: #FF2530;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --r: 3px;
  --nav-h: 68px;
  --maxw: 1400px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.section { padding: clamp(44px, 7vh, 92px) 0; position: relative; }
.eyebrow {
  font-family: "Onest", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: inline-block;
  margin-bottom: 22px;
}
.display {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: none;
}
.section-title {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; max-width: 60ch; }

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@keyframes grainshift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-4%, 2%); }
  66% { transform: translate(3%, -3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Waveform / equalizer motif ---------- */
.meter { display: inline-flex; align-items: center; gap: 2.5px; height: 15px; }
.meter i {
  width: 2.5px;
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  transform: scaleY(0.28);
  transform-origin: bottom center;
}
.meter i:nth-child(1) { animation: eq 1.1s -0.0s ease-in-out infinite; }
.meter i:nth-child(2) { animation: eq 0.8s -0.25s ease-in-out infinite; }
.meter i:nth-child(3) { animation: eq 1.3s -0.15s ease-in-out infinite; }
.meter i:nth-child(4) { animation: eq 0.9s -0.35s ease-in-out infinite; }
.meter i:nth-child(5) { animation: eq 1.05s -0.1s ease-in-out infinite; }
.meter i { animation-play-state: paused; }
.snd[aria-pressed="true"] .meter i { animation-play-state: running; }
@keyframes eq { 0%, 100% { transform: scaleY(0.24); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .meter i { animation: none !important; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 80;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  transform: translateZ(0);          /* own GPU layer: keeps the bar steady during mobile scroll */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.nav.scrolled {
  background: rgba(3, 3, 4, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: flex-end; width: 100%; }
.brand {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.25s var(--ease), opacity 0.45s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 7px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2727%27%20height%3D%2712%27%3E%3Cg%20fill%3D%27%23E00815%27%3E%3Crect%20x%3D%271%27%20%20%20%20y%3D%277%27%20width%3D%271.1%27%20height%3D%275%27%20%20rx%3D%270.55%27/%3E%3Crect%20x%3D%276.4%27%20%20y%3D%271%27%20width%3D%271.1%27%20height%3D%2711%27%20rx%3D%270.55%27/%3E%3Crect%20x%3D%2711.8%27%20y%3D%274%27%20width%3D%271.1%27%20height%3D%278%27%20%20rx%3D%270.55%27/%3E%3Crect%20x%3D%2717.2%27%20y%3D%270%27%20width%3D%271.1%27%20height%3D%2712%27%20rx%3D%270.55%27/%3E%3Crect%20x%3D%2722.6%27%20y%3D%276%27%20width%3D%271.1%27%20height%3D%276%27%20%20rx%3D%270.55%27/%3E%3C/g%3E%3C/svg%3E") left bottom / auto 100% repeat-x;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.0s var(--ease);
  pointer-events: none;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { clip-path: inset(0 0 0 0); }

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang button { padding: 6px 11px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.lang button[aria-pressed="true"] { color: #fff; background: var(--accent); }

.nav-links .nav-anchor { display: inline; }

/* Hamburger */
.menu-btn { display: none; width: 42px; height: 42px; margin-right: -8px; place-items: center; }
.menu-btn .bars { position: relative; width: 22px; height: 12px; display: block; }
.menu-btn .bars i {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-btn .bars i:nth-child(1) { top: 0; }
.menu-btn .bars i:nth-child(2) { bottom: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Fullscreen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 79;
  background: rgba(3, 3, 4, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 8px; padding: 0 clamp(20px, 8vw, 64px);
  opacity: 0; visibility: hidden; transform: translateY(-2%);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  font-family: "Onest", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.12;
  color: var(--text); letter-spacing: -0.01em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding: 10px 0;
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--accent-bright); padding-left: 10px; }
.mobile-menu .mm-mail {
  font-family: "Onest", system-ui, sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--muted); border: none; margin-top: 34px; letter-spacing: 0.02em;
}
.mobile-menu .mm-lang { align-self: flex-start; margin-top: 22px; font-size: 0.95rem; }
.mobile-menu .mm-lang button { padding: 9px 18px; }
body.menu-open .nav .lang { opacity: 0; visibility: hidden; pointer-events: none; }   /* menu has its own switcher */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: opacity 0.2s, visibility 0.2s; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-bright); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.06); }
.btn-ghost:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;              /* stable on mobile: no jump when URL bar hides */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #000 center/cover no-repeat; }
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(3,3,4,0.96) 0%, rgba(3,3,4,0.55) 42%, rgba(3,3,4,0.35) 70%, rgba(3,3,4,0.6) 100%),
    radial-gradient(120% 90% at 15% 100%, rgba(3,3,4,0.85), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6.5vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;             /* caps wordmark */
  margin-left: -0.02em;                  /* optical left-align caps with role text below */
  margin-bottom: 16px;
  overflow-wrap: normal;
}
.hero .role {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 3.4vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 20ch;
}
.hero .role b { color: var(--accent-bright); font-weight: 500; }
.hero .sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* sound-on button */
.snd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  background: rgba(20,20,22,0.5);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.snd:hover { border-color: var(--text); background: rgba(20,20,22,0.8); }
.snd:active { transform: translateY(1px); }
.snd .meter { color: var(--muted); transition: color 0.25s; }
.snd[aria-pressed="true"] { border-color: var(--accent); }
.snd[aria-pressed="true"] .meter { color: var(--accent-bright); }
.snd .snd-off { display: inline; }
.snd .snd-on { display: none; }
.snd[aria-pressed="true"] .snd-off { display: none; }
.snd[aria-pressed="true"] .snd-on { display: inline; }

.scroll-hint {
  position: absolute; z-index: 2; right: clamp(20px, 5vw, 64px);
  bottom: clamp(48px, 8vh, 96px);
  writing-mode: vertical-rl;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted-dim);
  display: flex; align-items: center; gap: 12px;
}

/* ---------- Section header shared ---------- */
.sec-head { margin-bottom: clamp(40px, 6vh, 72px); }
.sec-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.sec-head .lead { margin-top: 20px; }

/* ---------- Work ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(28px, 4vh, 44px); }
.chip {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s, background 0.25s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.chip .n { color: currentColor; opacity: 0.55; margin-left: 6px; font-size: 0.76em; font-variant-numeric: tabular-nums; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  grid-auto-flow: dense;
}
.card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.card.feature { grid-column: span 2; aspect-ratio: 2 / 1; }
.card.hide { display: none; }
.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.82) brightness(0.82);
}
.card:hover { border-color: var(--line-strong); }
.card:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.62); }
.card:focus-visible { outline-offset: -2px; }
.card-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,3,4,0.9) 0%, rgba(3,3,4,0.15) 45%, transparent 70%);
  opacity: 0.9;
  transition: opacity 0.4s var(--ease);
}
.card:hover .card-grad { opacity: 1; }
.card-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  transform: translateY(6px);
  transition: transform 0.4s var(--ease);
}
.card:hover .card-meta { transform: translateY(0); }
.card-title {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
}
.card-tag {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 5px;
}
.card-play {
  position: absolute; right: 16px; bottom: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(3,3,4,0.5);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s, border-color 0.25s;
}
.card:hover .card-play { opacity: 1; transform: scale(1); }
.card:hover .card-play { background: var(--accent); border-color: var(--accent); }
.card-play svg { width: 14px; height: 14px; margin-left: 2px; fill: #fff; }
/* Desktop: play reveals centered on hover, so titles keep the full card width (labels stay 1 line & aligned) */
@media (min-width: 561px) {
  .card-play {
    right: auto; bottom: auto; top: 50%; left: 50%;
    width: 52px; height: 52px;
    transform: translate(-50%, -50%) scale(0.72);
  }
  .card:hover .card-play { transform: translate(-50%, -50%) scale(1); }
  .card-play svg { width: 16px; height: 16px; margin-left: 3px; }
}
.card-soon {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: rgba(3,3,4,0.6);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 10px;
  backdrop-filter: blur(4px);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 90px); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.about-statement {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}
.about-statement b { color: var(--accent-bright); font-weight: 500; }
.about-body p { color: var(--muted); margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 30px; }
.fact .k { font-family: "Onest", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; color: var(--text); }
.fact .v { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.01em; }

/* waveform divider */
.wave-divider { display: flex; align-items: center; gap: 3px; height: 34px; margin: 6px 0 0; opacity: 0.5; }
.wave-divider i { width: 3px; background: var(--accent); border-radius: 3px; opacity: 0.85; }

/* ---------- Services ---------- */
.services-list { border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 4vw, 54px);
  align-items: baseline;
  padding: clamp(24px, 3.4vh, 38px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2712%27%20height%3D%2727%27%3E%3Cg%20fill%3D%27%23E00815%27%3E%3Crect%20x%3D%270%27%20y%3D%271%27%20%20%20%20width%3D%277%27%20%20height%3D%271.1%27%20rx%3D%270.55%27/%3E%3Crect%20x%3D%270%27%20y%3D%276.4%27%20%20width%3D%274%27%20%20height%3D%271.1%27%20rx%3D%270.55%27/%3E%3Crect%20x%3D%270%27%20y%3D%2711.8%27%20width%3D%2711%27%20height%3D%271.1%27%20rx%3D%270.55%27/%3E%3Crect%20x%3D%270%27%20y%3D%2717.2%27%20width%3D%275%27%20%20height%3D%271.1%27%20rx%3D%270.55%27/%3E%3Crect%20x%3D%270%27%20y%3D%2722.6%27%20width%3D%279%27%20%20height%3D%271.1%27%20rx%3D%270.55%27/%3E%3C/g%3E%3C/svg%3E") left top / 100% auto repeat-y;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease);
  pointer-events: none;
}
.svc:hover::before { clip-path: inset(0 0 0 0); }
.svc-n, .svc-title { transition: transform 0.45s var(--ease), color 0.3s var(--ease), opacity 0.45s var(--ease); }
.svc:hover .svc-n, .svc:hover .svc-title { transform: translateX(16px); }
.svc:hover .svc-n { color: var(--accent-bright); }
.svc-n { font-family: "Onest", system-ui, sans-serif; font-size: 0.95rem; color: var(--muted-dim); font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.svc-title { font-family: "Onest", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.3rem, 2.8vw, 2.1rem); line-height: 1.06; letter-spacing: -0.01em; text-transform: uppercase; }
.svc-desc { color: var(--muted); font-size: 0.95rem; max-width: 34ch; justify-self: end; text-align: right; }
@media (max-width: 720px) {
  .svc { grid-template-columns: auto 1fr; }
  .svc-desc { grid-column: 1 / -1; justify-self: start; text-align: left; max-width: none; margin-top: 4px; }
  /* decorative left waveform stripe overlaps the full-width text on narrow layouts */
  .svc::before { display: none; }
}
/* touch devices keep :hover stuck after a tap — stop that shifting rows/showing the stripe */
@media (hover: none) {
  .svc:hover::before { clip-path: inset(0 0 100% 0); }
  .svc:hover .svc-n, .svc:hover .svc-title { transform: none; }
  .svc:hover .svc-n { color: var(--muted-dim); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 44px); align-items: end; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
h2.contact { font-family: "Onest", system-ui, sans-serif; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; }
html[lang="ru"] h2.contact { letter-spacing: 0.01em; }   /* Cyrillic caps need a touch more tracking */
.mail-btn { margin-top: 34px; font-size: 1rem; padding: 18px 30px; }
.socials { display: flex; flex-direction: column; gap: 2px; }
.socials .s-lbl { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 9px; }
.social {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-weight: 600; letter-spacing: 0.01em;
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
}
.social:last-child { border-bottom: 1px solid var(--line); }
.social:hover { color: var(--text); padding-left: 8px; }
.social .arrow { color: var(--muted-dim); transition: transform 0.25s var(--ease), color 0.25s; }
.social:hover .arrow { transform: translate(3px, -3px); color: var(--accent-bright); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 1rem; }
.footer .fnote { color: var(--muted-dim); font-size: 0.8rem; letter-spacing: 0.02em; }
.footer a.top { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.footer a.top:hover { color: var(--text); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex;
  align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0s var(--ease) 0.42s;
}
.modal.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.3s var(--ease), visibility 0s;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; z-index: 1;
  width: min(1080px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.modal.open .modal-panel { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-panel { transition: none; }
}
.modal-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-video iframe, .modal-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.modal-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.85); }
.modal-soon {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 14px; padding: 24px;
}
.modal-soon .ms-lbl { font-family: "Onest", system-ui, sans-serif; font-weight: 500; font-size: clamp(1.3rem, 3vw, 2rem); }
.modal-soon .ms-sub { color: var(--muted); font-size: 0.95rem; max-width: 40ch; margin: 0 auto; }
.modal-soon .btn { justify-self: center; }
.modal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-top: 1px solid var(--line);
}
.modal-bar .mt { font-family: "Onest", system-ui, sans-serif; font-weight: 500; font-size: 1.25rem; line-height: 1.1; }
.modal-bar .mc { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); margin-top: 4px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(3,3,4,0.6); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  transition: background 0.25s, transform 0.2s, border-color 0.25s;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); }
.modal-close:active { transform: scale(0.94); }
.modal-close svg { width: 18px; height: 18px; stroke: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav-links .nav-anchor { display: none; }
  .menu-btn { display: grid; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card.feature { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card, .card.feature { grid-column: auto; aspect-ratio: 16 / 9; }
  .card-meta { transform: none; }
  .card-play { opacity: 1; transform: scale(1); }
  .facts { grid-template-columns: 1fr; gap: 22px; }
  .scroll-hint { display: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after, .svc::before { transition: none; }
}

/* ---------- Language switch cross-fade ---------- */
[data-en], .chip .chip-lbl, .card-title, .card-tag, .svc-desc {
  transition: opacity 0.45s var(--ease);
}
body.lang-switching [data-en],
body.lang-switching .chip .chip-lbl,
body.lang-switching .card-title,
body.lang-switching .card-tag,
body.lang-switching .svc-title,
body.lang-switching .svc-desc { opacity: 0; }
