/* Headerlink — studio system */
:root {
  --bg: #070b12;
  --bg-2: #0c1220;
  --bg-3: #111a2c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #8b95a7;
  --accent: #0066ff;
  --accent-2: #4d94ff;
  --accent-soft: rgba(0, 102, 255, 0.18);
  --glow: 0 0 80px rgba(0, 102, 255, 0.28);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Syne", var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 60px;
  --container: 1180px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

body.theme-club {
  --bg: #070b2e;
  --bg-2: #0c1452;
  --bg-3: #151880;
  --surface: rgba(90, 120, 255, 0.08);
  --line: rgba(160, 180, 255, 0.16);
  --text: #eef1ff;
  --muted: #9aa6d8;
  --accent: #4d6fff;
  --accent-2: #8aa4ff;
  --accent-soft: rgba(77, 111, 255, 0.22);
  --glow: 0 0 90px rgba(77, 111, 255, 0.35);
  --gold: #d4af37;
}

body.theme-catalog {
  --bg: #f5f8fc;
  --bg-2: #ffffff;
  --bg-3: #e8f1fb;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --line: rgba(15, 40, 80, 0.1);
  --text: #1d1d1f;
  --muted: #6e7a8a;
  --accent: #0071e3;
  --accent-2: #2b8cff;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --glow: 0 16px 50px rgba(0, 113, 227, 0.12);
  --shadow: 0 18px 50px rgba(20, 40, 80, 0.08);
}

body.theme-spin {
  --bg: #070706;
  --bg-2: #11110f;
  --bg-3: #1a1710;
  --surface: rgba(212, 175, 55, 0.06);
  --line: rgba(212, 175, 55, 0.18);
  --text: #f8f1dc;
  --muted: #b7a87a;
  --accent: #d4af37;
  --accent-2: #ffd700;
  --accent-soft: rgba(212, 175, 55, 0.16);
  --glow: 0 0 80px rgba(212, 175, 55, 0.28);
  --display: "Orbitron", var(--font);
}

body.theme-chat {
  --bg: #07140f;
  --bg-2: #0d2419;
  --bg-3: #142920;
  --surface: rgba(47, 158, 107, 0.08);
  --line: rgba(155, 224, 188, 0.14);
  --text: #f2f7f4;
  --muted: #8aa897;
  --accent: #2f9e6b;
  --accent-2: #9be0bc;
  --accent-soft: rgba(47, 158, 107, 0.2);
  --glow: 0 0 80px rgba(47, 158, 107, 0.28);
  --display: "Manrope", var(--font);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}

body.theme-studio {
  --bg: #060910;
  --bg-2: #0a1220;
  --accent: #00b3ff;
  --accent-2: #5ce1ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.skip {
  position: absolute; left: 12px; top: -40px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Atmosphere */
.atmosphere, .cursor-glow { pointer-events: none; }
.atmosphere {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.atmosphere__orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.55; animation: orbFloat 18s var(--ease) infinite alternate;
}
.atmosphere__orb--1 { width: 48vw; height: 48vw; left: -12vw; top: -18vh; background: var(--accent); opacity: 0.22; }
.atmosphere__orb--2 { width: 36vw; height: 36vw; right: -10vw; top: 20vh; background: var(--accent-2); opacity: 0.16; animation-delay: -6s; }
.atmosphere__orb--3 { width: 30vw; height: 30vw; left: 30vw; bottom: -18vh; background: #7c3aed; opacity: 0.1; animation-delay: -10s; }
body.theme-club .atmosphere__orb--3 { background: #d4af37; opacity: 0.12; }
body.theme-spin .atmosphere__orb--3 { background: #800020; opacity: 0.18; }
body.theme-chat .atmosphere__orb--3 { background: #1f7a52; opacity: 0.2; }
body.theme-catalog .atmosphere__orb { opacity: 0.18; filter: blur(90px); }
.atmosphere__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 72%);
  opacity: 0.4;
}
body.theme-catalog .atmosphere__grid {
  background-image:
    linear-gradient(rgba(0,113,227,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,113,227,0.08) 1px, transparent 1px);
}
.atmosphere__noise {
  position: absolute; inset: 0; opacity: 0.04;
  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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.cursor-glow {
  position: fixed; width: 340px; height: 340px; margin: -170px 0 0 -170px;
  border-radius: 50%; z-index: 1; opacity: 0;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  transition: opacity 0.4s ease; mix-blend-mode: screen;
}
.cursor-glow.on { opacity: 1; }
body.theme-catalog .cursor-glow { mix-blend-mode: multiply; }

.app { position: relative; z-index: 2; padding-top: 84px; }

.preloader { display: none !important; }

/* Nav — floating frosted glass */
.nav {
  --glass-x: 30%;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: var(--container);
  z-index: 40;
  height: auto;
  border: 0;
  background: transparent;
}
.nav__glass {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(18, 22, 32, 0.38);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.nav__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 22%,
    transparent 38%,
    color-mix(in srgb, var(--accent) 20%, transparent) 62%,
    color-mix(in srgb, var(--accent-2) 16%, transparent) 78%,
    transparent 100%
  );
  background-size: 240% 100%;
  animation: glassSheen 14s ease-in-out infinite;
  pointer-events: none;
}
.nav__glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 160% at var(--glass-x) 0%,
    color-mix(in srgb, var(--accent) 18%, transparent),
    transparent 62%
  );
  pointer-events: none;
}
.nav.scrolled .nav__glass {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
body.theme-catalog .nav__glass {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 40, 80, 0.1);
  box-shadow:
    0 8px 28px rgba(20, 40, 80, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
body.theme-catalog .nav__glass::before { opacity: 0.55; }
.nav__inner {
  position: relative;
  z-index: 1;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px 0 18px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 18px; width: auto; }
body.theme-catalog .nav__logo img,
body.theme-catalog .footer__logo { filter: invert(1); }

.nav__contacts { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 4px; }
.nav__contact {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--muted); transition: color 0.2s, background 0.2s;
}
.nav__contact:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
body.theme-catalog .nav__contact:hover { background: rgba(0, 113, 227, 0.08); }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 8px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 500;
  color: var(--muted); transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__cta {
  margin-left: 6px;
  background: var(--accent); color: #fff !important;
  font-weight: 600;
}
body.theme-spin .nav__cta, body.theme-catalog .nav__cta { color: #111 !important; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; position: relative; flex-shrink: 0; }
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
  transition: 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav__burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--glow); }
body.theme-spin .btn--primary, body.theme-catalog .btn--primary { color: #111; }
.btn--ghost {
  background: var(--surface); border: 1px solid var(--line);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 48px 0 80px; position: relative; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--muted); margin-bottom: 22px;
}
.hero__badge i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent); animation: blink 1.8s infinite;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.05; letter-spacing: -0.04em; font-weight: 800;
  max-width: 18ch;
}
.hero h1 span { color: var(--accent-2); }
.hero__lead {
  margin-top: 22px; max-width: 640px; font-size: 18px; color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 56px;
}
.stat {
  padding: 20px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.stat b {
  display: block; font-family: var(--display); font-size: 32px; letter-spacing: -0.04em;
}
.stat span { color: var(--muted); font-size: 13px; }

/* Marquee */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 40px; width: max-content;
  animation: marquee 28s linear infinite;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 13px; color: var(--muted);
}
.marquee__track span::before { content: "◆"; color: var(--accent); margin-right: 40px; }

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em; line-height: 1.12;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card, .project-card, .service-card, .adv-card, .aud-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card { padding: 28px; }
.card p + p { margin-top: 12px; color: var(--muted); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  --stage: #0c1220;
  --stage-glow: var(--accent);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--stage-glow) 55%, var(--line));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--stage-glow) 18%, transparent);
}
.project-card__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--stage-glow) 28%, transparent), transparent 62%),
    var(--stage);
}
.project-card__stage::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--stage-glow), transparent);
}
.project-card__stage img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.project-card:hover .project-card__stage img { transform: scale(1.04); }
.project-card__num {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-family: var(--display); font-size: 12px; letter-spacing: 0.14em;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.38); color: #fff;
  backdrop-filter: blur(8px);
}
.project-card__body {
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--stage-glow) 16%, transparent);
  color: var(--text);
}
.project-card h3 { font-family: var(--display); font-size: 24px; letter-spacing: -0.03em; }
.project-card p { color: var(--muted); font-size: 14px; line-height: 1.55; min-height: 3.1em; }
.project-card .more {
  margin-top: auto; padding-top: 8px; font-weight: 600;
  color: var(--stage-glow);
  display: inline-flex; align-items: center; gap: 8px;
}

.project-card--club { --stage: #10165c; --stage-glow: #7b93ff; }
.project-card--catalog { --stage: #f3f7fc; --stage-glow: #0071e3; }
.project-card--spin { --stage: #0b0a08; --stage-glow: #d4af37; }
.project-card--chat { --stage: #0a1c14; --stage-glow: #3dba80; }
.project-card--catalog .project-card__num {
  background: rgba(0, 113, 227, 0.12); color: #0071e3;
}
.project-card--catalog .tag { color: #0071e3; }
.project-card--chat .project-card__stage img {
  inset: auto;
  top: 50%; left: 50%;
  width: 132px; height: 132px;
  max-width: none; max-height: none;
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}
.project-card--chat:hover .project-card__stage img {
  transform: translate(-50%, -50%) scale(1.06);
}
.project-card--dev { --stage: #071018; --stage-glow: #00b3ff; }
.project-card--dev .project-card__stage {
  background:
    radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--stage-glow) 28%, transparent), transparent 62%),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(0, 179, 255, 0.08) 32px),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(0, 179, 255, 0.08) 32px),
    var(--stage);
}
.project-card--dev .dev-mark {
  position: relative; z-index: 1;
  font-family: var(--display); font-size: 42px; font-weight: 800; letter-spacing: -0.06em;
  color: #9be7ff; text-shadow: 0 0 40px rgba(0, 179, 255, 0.45);
}

/* Services */
.service-card { padding: 26px; min-height: 220px; }
.service-card .ico {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2);
}
.service-card .ico svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.02em; }
.service-card p { color: var(--muted); font-size: 14px; }

.adv-card, .aud-card { padding: 24px; }
.adv-card h3, .aud-card h3 { margin: 10px 0 8px; font-size: 18px; }
.adv-card p, .aud-card p { color: var(--muted); font-size: 14px; }
.adv-card .n {
  font-family: var(--display); color: var(--accent-2); font-size: 13px; letter-spacing: 0.08em;
}

.list-check { display: grid; gap: 8px; margin-top: 14px; }
.list-check li { position: relative; padding-left: 22px; color: var(--muted); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.feature-row {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.feature-row--rev { grid-template-columns: 0.95fr 1.05fr; }
.feature-row img, .shot {
  border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.shot { overflow: hidden; background: #000; }
.shot img { width: 100%; }

.cta-band {
  margin: 20px 0 80px;
  padding: 48px;
  border-radius: 32px;
  background:
    radial-gradient(800px 200px at 10% 0%, var(--accent-soft), transparent),
    var(--surface);
  border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-band h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.contact-link:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-link small { display: block; color: var(--muted); }

footer.footer {
  border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 20px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px;
}
.footer__logo { height: 26px; width: auto; margin-bottom: 12px; }
.footer p, .footer a { color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--text); }
.footer h4 { margin-bottom: 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer ul { display: grid; gap: 8px; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px;
  border-top: 1px solid var(--line); padding-top: 18px;
}

.reveal { opacity: 0; transform: translateY(28px); animation: none; }
.reveal.in { animation: rise 0.8s var(--ease) forwards; }

/* Project page extras */
.page-hero { padding: 36px 0 20px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-family: var(--display); font-size: clamp(34px, 6vw, 68px); letter-spacing: -0.04em; line-height: 1.05; }
.page-hero .lead { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 640px; }

.gold-line {
  height: 1px; margin: 32px 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

body.theme-spin h1, body.theme-spin h2 { text-shadow: 0 0 24px rgba(212,175,55,0.25); }

.chat-mock {
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: #0d2419; min-height: 320px; padding: 18px;
  display: grid; gap: 10px; align-content: start;
}
.bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14px;
  animation: rise 0.6s var(--ease) both;
}
.bubble.in { background: #2f3438; justify-self: start; }
.bubble.out { background: #1a5c3f; justify-self: end; animation-delay: 0.2s; }

.catalog-search {
  display: flex; gap: 8px; background: #fff; border-radius: 999px;
  padding: 6px; border: 1px solid #dbe7f3; box-shadow: var(--shadow);
}
.catalog-search input {
  flex: 1; border: 0; outline: 0; padding: 12px 16px; font: inherit; background: transparent; color: #1d1d1f;
}
.catalog-search .btn { padding: 10px 18px; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.error-page h1 { font-family: var(--display); font-size: 96px; letter-spacing: -0.06em; }

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glassSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4, .grid-6, .projects-grid, .feature-row, .feature-row--rev, .hero__stats, .footer__grid, .contact-grid, .cta-band {
    grid-template-columns: 1fr;
  }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .nav__contacts { display: none; }
  .nav__logo img { height: 16px; }
  .nav__links {
    position: fixed; top: 80px; left: 12px; right: 12px; display: none;
    flex-direction: column; padding: 16px; border-radius: 20px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border: 1px solid var(--line); backdrop-filter: blur(24px) saturate(160%);
  }
  .nav__links.open { display: flex; }
  .nav__burger { display: block; }
  .nav__cta { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
