/* === Variables === */
:root {
  --bg: #060606;
  --bg-elevated: #0e0e0e;
  --bg-card: #131313;
  --fg: #f5f5f5;
  --fg-muted: rgba(245, 245, 245, 0.55);
  --fg-soft: rgba(245, 245, 245, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --accent-hover: #ff9140;
  --accent-2: #ff4d00;

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --container: 1280px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 24px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; background: none; border: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: #000; }

/* === Typography === */
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 9vw, 120px); }
h2 { font-size: clamp(32px, 6vw, 72px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); line-height: 1.2; }
p { line-height: 1.55; }

/* === Layout === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(70px, 11vw, 160px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--border); }

/* === Navigation === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad);
  background: rgba(6, 6, 6, 0.7);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.nav-cta {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--accent-hover); }
.nav-cta:active { transform: translateY(0); }

/* === Section heads === */
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head.center { text-align: center; max-width: 800px; margin-inline: auto; }
.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-sub {
  color: var(--fg-muted);
  font-size: clamp(15px, 2vw, 18px);
  margin-top: 16px;
  max-width: 640px;
}
.section-head.center .section-sub { margin-inline: auto; }

/* === HERO === */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center; position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.85;
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--fg-soft);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.3);
}
.hero-title {
  margin-bottom: 28px;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .accent {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 460px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center;
}
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--fg-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* === Buttons === */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 0 var(--accent-soft);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  box-shadow: 0 20px 40px var(--accent-soft);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary.big, .btn-ghost.big { padding: 20px 36px; font-size: 16px; }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* === Works === */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.work-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-image::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,122,26,0.12), transparent 50%);
}
.placeholder-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  background: rgba(0,0,0,0.5);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px dashed var(--border-strong);
  position: relative;
}
.work-body { padding: 24px; }
.work-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.work-meta span {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 600;
}
.work-card h3 { margin-bottom: 8px; }
.work-card p { color: var(--fg-muted); font-size: 15px; }

/* === About === */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.about-photo.has-photo {
  padding: 0;
  border: 1px solid var(--border-strong);
}
.about-photo::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,122,26,0.10), transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.about-photo.has-photo::before {
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%),
              radial-gradient(circle at 50% 0%, rgba(255,122,26,0.18), transparent 55%);
  mix-blend-mode: normal;
}
.about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
  filter: contrast(1.02) saturate(1.04);
}
.photo-placeholder {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--fg-muted);
  position: relative;
  z-index: 1;
}
.photo-placeholder span:first-child { font-size: 48px; }
.photo-placeholder strong { color: var(--fg-soft); font-weight: 700; }
.photo-placeholder small { font-size: 13px; max-width: 240px; line-height: 1.5; }
.about-text .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fg-soft);
  margin: 24px 0 36px;
  max-width: 540px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.facts li {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.4;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.facts strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}

/* === Useful === */
.useful-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.useful-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.useful-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255,122,26,0.08), transparent 50%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.useful-card:hover { border-color: var(--accent); }
.useful-card:hover::before { opacity: 1; }
.useful-tag {
  display: inline-block;
  font-family: var(--font-mono);
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.useful-card h3 { margin-bottom: 16px; position: relative; }
.useful-card > p {
  color: var(--fg-soft);
  margin-bottom: 24px;
  font-size: 16px;
  position: relative;
}
.useful-card ul {
  display: grid;
  gap: 12px;
  position: relative;
}
.useful-card li {
  padding-left: 28px;
  position: relative;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
}
.useful-card li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* === Process === */
.process-steps {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.step:hover { border-color: var(--accent); }
.step-num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.step-body h3 { margin-bottom: 8px; }
.step-body p { color: var(--fg-muted); font-size: 15px; }
.step-time {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* === Why === */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.why-card {
  padding: clamp(28px, 4vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.why-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
}
.why-card h3 { margin-bottom: 10px; }
.why-card p { color: var(--fg-muted); font-size: 15px; }

/* === Pain === */
.pain { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%); }
.pain-list {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 50px;
}
.pain-list li {
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--fg-soft);
  position: relative;
  padding-left: 56px;
  line-height: 1.4;
}
.pain-list li::before {
  content: "—";
  position: absolute;
  left: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}
.pain-cta {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.pain-cta p {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* === Zayavka === */
.zayavka { text-align: center; }
.zayavka-actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-bottom: 36px;
}
.zayavka-or {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.zayavka-meta {
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 24px;
}
.zayavka-meta span::before { content: ""; }

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: left;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}
footer p { color: var(--fg-muted); font-size: 14px; }
.footer-links {
  display: flex; gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--fg-muted);
  font-size: 14px;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

/* === Reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* === Keyframes === */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); transform-origin: top; }
}

/* === Tablet === */
@media (min-width: 720px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .useful-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col {
    grid-template-columns: minmax(280px, 5fr) 7fr;
    gap: 60px;
  }
  .zayavka-actions { flex-direction: row; }
  .zayavka-meta { flex-direction: row; gap: 24px; }
  .footer-grid {
    grid-template-columns: 2fr 2fr 1fr;
    align-items: center;
  }
}

/* === Desktop === */
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 80px 1fr; gap: 30px; }
  .step-num { font-size: 32px; }
  .footer-links { justify-content: center; }
}

/* === Reduced motion === */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-line { animation: none; }
}

/* === Mobile-only optimizations === */
@media (max-width: 719px) {
  /* Layout density */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .container { padding: 0 18px; }

  /* Headings */
  h2 { font-size: clamp(28px, 8vw, 38px); }
  h3 { font-size: 19px; }
  .section-sub { font-size: 14px; margin-top: 10px; }

  /* Hero */
  .hero { padding: 88px 0 40px; }
  .hero-title { font-size: clamp(28px, 7.5vw, 44px); max-width: 14ch; margin-bottom: 18px; }
  .hero-tag { margin-bottom: 22px; font-size: 11px; padding: 6px 12px; }
  .hero-sub { font-size: 14px; margin-bottom: 22px; max-width: 92%; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; padding: 14px 22px; }
  .hero-badges { margin-top: 22px; gap: 10px; }
  .hero-scroll { display: none; }
  nav { padding: 10px 16px; }
  .nav-cta { padding: 8px 13px; font-size: 12.5px; }
  .nav-logo { font-size: 13px; }

  /* Marquee */
  .marquee-track { font-size: 13px; gap: 28px; }

  /* Cases — already compact via earlier rules */

  /* About */
  .two-col { gap: 28px; }
  .about-photo { aspect-ratio: 3 / 4; padding: 22px; }
  .about-text .lead { font-size: 15px; margin: 18px 0 22px; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .facts li { padding-top: 12px; font-size: 13.5px; }
  .facts strong { font-size: 26px; }

  /* Useful */
  .useful-grid { gap: 14px; }
  .useful-card { padding: 22px 20px; }
  .useful-card > p { font-size: 14px; margin-bottom: 16px; }
  .useful-card li { font-size: 13.5px; }
  .useful-card h3 { margin-bottom: 12px; }
  .useful-tag { margin-bottom: 16px; }

  /* Process */
  .process-steps { gap: 12px; }
  .step { padding: 18px 18px; gap: 12px; grid-template-columns: auto 1fr; }
  .step-num { font-size: 16px; align-self: center; }
  .step-body h3 { margin-bottom: 4px; }
  .step-body p { font-size: 13.5px; }
  .step-time { font-size: 11px; padding: 3px 8px; margin-top: 8px; }

  /* Why */
  .why-grid { gap: 12px; }
  .why-card { padding: 22px 20px; }
  .why-icon { width: 40px; height: 40px; font-size: 22px; margin-bottom: 14px; }
  .why-card h3 { margin-bottom: 6px; }
  .why-card p { font-size: 13.5px; }

  /* Pain */
  .pain-list { gap: 8px; margin: 0 auto 32px; }
  .pain-list li {
    padding: 14px 18px 14px 40px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 12px;
  }
  .pain-list li::before { left: 16px; font-size: 16px; }
  .pain-cta p { font-size: 16px; margin-bottom: 14px; }
  .pain-cta { text-align: center; }

  /* Zayavka */
  .zayavka-actions { gap: 12px; }
  .btn-primary.big, .btn-ghost.big { padding: 16px 24px; font-size: 14px; }
  .zayavka-meta { font-size: 12px; gap: 6px; }

  /* Footer */
  .footer-grid { gap: 16px; }
  footer { padding: 32px 0; }
  .footer-logo { font-size: 13px; }
}

/* === Touch device tweaks === */
@media (hover: none) {
  .work-card:hover,
  .useful-card:hover,
  .step:hover,
  .why-card:hover { transform: none; border-color: var(--border); }
  .btn-primary:hover { transform: none; box-shadow: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* =========================================================
   WOW LAYER — 3D scroll, micro-animations, polish
   ========================================================= */

/* 3D perspective scroll (shader.se-style) */
body { perspective: 1600px; }
.tilt3d { transform-style: preserve-3d; will-change: transform; }
.card-tilt { transform-style: preserve-3d; will-change: transform; }

/* Progress bar top */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 18px var(--accent);
}

/* Custom cursor — disabled */
.cursor-dot, .cursor-ring { display: none !important; }

/* Magnet buttons — wrap span for inner magnet */
.magnet { position: relative; will-change: transform; }
.magnet-inner { display: inline-flex; align-items: center; gap: 12px; }

/* Noise overlay */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 150;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: overlay;
}

/* Split chars for headings */
.split-h { display: block; }
.split-char { display: inline-block; transform-origin: 50% 100%; will-change: transform, opacity; }

/* Hero title lines — wrap inner span for yPercent reveal */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 2px; }
.hero-title .line > span { display: inline-block; }

/* Accent flourish on hero */
.hero::after {
  content: ""; position: absolute; inset: auto -10% -30% auto;
  width: 70%; height: 70%;
  background: radial-gradient(circle at 60% 40%, rgba(255,77,0,0.35), transparent 60%);
  filter: blur(60px);
  pointer-events: none; z-index: 0;
}

/* Animated tag pill */
.hero-tag {
  position: relative; overflow: hidden;
}
.hero-tag::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,122,26,0.25), transparent);
  transform: translateX(-100%);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%, 40% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Button arrow pulse */
.btn-arrow { transition: transform 0.3s var(--ease); will-change: transform; }
.btn-primary:hover .btn-arrow { animation: arrowBounce 0.9s ease-in-out infinite; }
@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); }
}

/* Section head gradient mark */
.section-num {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: fit-content;
}
.section-num::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head.center .section-num { margin-inline: auto; }

/* Work card polish */
.work-card {
  position: relative;
  transform-style: preserve-3d;
}
.work-card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(255,77,0,0);
  transition: box-shadow .5s var(--ease);
  pointer-events: none;
}
.work-card:hover::after { box-shadow: 0 30px 80px rgba(255,77,0,0.18); }
.work-image { position: relative; }
.work-image::after {
  content: "→"; position: absolute; right: 18px; bottom: 18px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  opacity: 0; transform: translate(20px, 20px) scale(0.6);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  box-shadow: 0 10px 30px rgba(255,77,0,0.4);
}
.work-card:hover .work-image::after { opacity: 1; transform: translate(0,0) scale(1); }

/* Useful card sticker */
.useful-card {
  position: relative; transform-style: preserve-3d;
}
.useful-tag {
  animation: wobble 5s ease-in-out infinite;
  transform-origin: center;
  display: inline-block;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* Why icon micro-spin */
.why-icon {
  position: relative; overflow: visible;
  transition: transform 0.6s var(--ease), background 0.4s var(--ease);
}
.why-card:hover .why-icon {
  transform: rotate(360deg) scale(1.08);
  background: var(--accent); color: #000;
}

/* Step number pulse */
.step-num {
  position: relative; display: inline-block;
}
.step-num::after {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0; transform: scale(0.7);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.step:hover .step-num::after { opacity: 1; transform: scale(1); }

/* Pain item shake on hover */
.pain-list li {
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  transform-style: preserve-3d;
}
.pain-list li:hover {
  transform: translateX(8px);
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(255,122,26,0.08), var(--bg-card));
}

/* Zayavka glow */
.zayavka { position: relative; overflow: hidden; }
.zayavka::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 700px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,122,26,0.12), transparent 60%);
  pointer-events: none; filter: blur(30px);
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Name mark in About */
.name-mark {
  color: var(--accent); position: relative;
  font-style: italic;
}
.name-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  animation: underlineIn 1.2s .8s var(--ease) forwards;
}
@keyframes underlineIn { to { transform: scaleX(1); } }

/* Marquee */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0;
  background: var(--bg-elevated);
  display: flex;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: marquee 28s linear infinite;
  padding-right: 48px;
  flex-shrink: 0;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 48px;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 500;
  color: var(--fg-soft);
  letter-spacing: -0.01em;
}
.marquee-track span::after {
  content: "✦"; color: var(--accent); font-size: 20px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* About facts big-number pop */
.facts strong {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Decorative sticker */
.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  background: var(--accent); color: #000;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  transform: rotate(-4deg);
  box-shadow: 0 10px 30px rgba(255,77,0,0.3);
}
.sticker.spin { animation: spinSticker 8s linear infinite; }
@keyframes spinSticker { to { transform: rotate(360deg); } }

/* Gradient underline on links */
.footer-links a {
  position: relative;
}
.footer-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Nav logo hover jitter */
.nav-logo { position: relative; overflow: hidden; }
.nav-logo:hover { color: var(--accent); }
.nav-cta {
  position: relative; overflow: hidden;
  isolation: isolate;
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.nav-cta:hover::before { transform: translateY(0); }

/* Selection accent */
::selection { background: var(--accent); color: #000; }

/* Hero title accent stroke variation */
.hero-title .accent {
  position: relative;
  display: inline-block;
}

/* Animate on data-reveal-stagger parent */
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* Hero badges row */
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 36px;
}
.hero-badge {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.hero-badge:hover { border-color: var(--accent); transform: translateY(-3px); }
.hero-badge strong {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.hero-badge span {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-muted); letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero sticker (orbiting text) */
.hero-sticker {
  position: absolute; right: 40px; bottom: 40px;
  z-index: 3;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--accent); color: #000;
  box-shadow: 0 12px 40px rgba(255,77,0,0.45);
  transform-origin: center;
  display: grid; place-items: center;
}
.hero-sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-sticker-core { font-size: 28px; color: #000; line-height: 1; position: relative; z-index: 1; }
@media (max-width: 719px) {
  .hero-sticker { display: none; }
  .hero-badges { gap: 12px; }
  .hero-badge { padding: 10px 14px; }
}

/* Work image gradients by index */
.work-image { min-height: 220px; }
.work-image[data-gradient="1"] {
  background: linear-gradient(135deg, #1a0f08 0%, #2a1a10 50%, #3a1a05 100%);
}
.work-image[data-gradient="2"] {
  background: linear-gradient(135deg, #0f0e1a 0%, #1a152a 50%, #3a1a05 100%);
}
.work-image[data-gradient="3"] {
  background: linear-gradient(135deg, #0a1a1a 0%, #1a2a2a 50%, #3a1a05 100%);
}
.work-image::after {
  right: 18px; bottom: 18px;
}

/* Photo sticker position */
.about-photo { position: relative; }
.about-photo .sticker {
  position: absolute; top: 20px; right: -18px;
  z-index: 2;
}

/* Process step card full card becomes tilt target — center the 3D origin */
.step { transform-origin: 50% 100%; }

/* Hero-badge count colour keeps gradient */
.hero-badge .count { display: inline-block; }

/* Ensure stacking context above noise */
nav, section, footer { position: relative; z-index: 1; }

/* Small focus-visible polish */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
  border-radius: 4px;
}

/* Better nav logo hover with accent dot */
.nav-logo::before {
  content: "●"; color: var(--accent);
  margin-right: 8px; font-size: 10px;
  animation: pulseDot 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}


/* === Case card — editorial style === */
.case-card {
  --case-accent: var(--accent);
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 18px;
  padding: 28px 26px 22px;
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.case-card[data-case="gran"]   { --case-accent: #ff7a1a; --case-accent-soft: rgba(255,122,26,0.16); --case-accent-mid: rgba(255,122,26,0.35); --case-accent-glow: rgba(255,122,26,0.30); }
.case-card[data-case="alina"]  { --case-accent: #c8ff2b; --case-accent-soft: rgba(200,255,43,0.14); --case-accent-mid: rgba(200,255,43,0.35); --case-accent-glow: rgba(200,255,43,0.28); }
.case-card[data-case="ulybka"] { --case-accent: #30d9b5; --case-accent-soft: rgba(48,217,181,0.14); --case-accent-mid: rgba(48,217,181,0.35); --case-accent-glow: rgba(48,217,181,0.28); }
.case-card:hover {
  border-color: var(--case-accent);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px var(--case-accent) inset;
}
.case-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, var(--case-accent-soft) 0%, transparent 60%);
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}
.case-card > * { position: relative; z-index: 1; }

.case-stripe {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--case-accent);
  z-index: 2;
  transition: width .4s var(--ease);
}
.case-card:hover .case-stripe { width: 6px; }

.case-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.case-niche {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--case-accent);
  background: var(--case-accent-soft);
  border: 1px solid var(--case-accent-mid);
  padding: 5px 10px;
  border-radius: 100px;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-period {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.case-headline {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 0 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.10);
}
.case-bignum {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--case-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0 38px var(--case-accent-glow);
  flex-shrink: 0;
}
.case-bigword {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.case-shotwrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.06);
}
.case-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 1s var(--ease), filter .6s var(--ease);
  will-change: transform;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
  background: #0a0a0a;
}
.case-card[data-case="gran"] .case-shot {
  transform: scale(1.25);
  transform-origin: 78% 40%;
}
.case-card:hover .case-shot {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.05) brightness(1.05);
}
.case-card[data-case="gran"]:hover .case-shot {
  transform: scale(1.32);
}
.case-shotwrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.case-foot {
  display: grid;
  grid-template-columns: minmax(110px, max-content) 1fr;
  gap: 22px;
  align-items: start;
  padding-top: 4px;
}
.case-extra {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  border-left: 2px solid var(--case-accent);
}
.case-extra .count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.case-extra small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  line-height: 1.3;
}
.case-id { min-width: 0; }
.case-id h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 6px;
}
.case-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--case-accent-soft);
  color: var(--case-accent);
  font-size: 14px; font-weight: 600;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
  flex-shrink: 0;
}
.case-card:hover .case-arrow {
  transform: rotate(45deg);
  background: var(--case-accent);
  color: #000;
}
.case-nich {
  color: var(--fg-muted);
  font-size: 13.5px;
  line-height: 1.45;
  font-style: italic;
}
.case-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--case-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: gap .3s var(--ease);
}
.case-card:hover .case-cta { gap: 12px; }

.hero-badge .count, .about-list .count {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 719px) {
  .case-card { padding: 22px 20px 18px; gap: 14px; }
  .case-bignum { font-size: clamp(44px, 14vw, 64px); }

  /* Mobile sequence: niche → screenshot → big metric → brand+quote → secondary stat → CTA */
  .case-card .case-head     { order: 1; }
  .case-card .case-shotwrap { order: 2; aspect-ratio: 4 / 3; }
  .case-card .case-headline { order: 3; padding-top: 4px; padding-bottom: 4px; border-bottom: none; }
  .case-card .case-foot     { order: 4; }
  .case-card .case-cta      { order: 5; }

  .case-foot {
    grid-template-columns: 1fr;
    grid-template-areas: "id" "extra";
    gap: 14px;
  }
  .case-id { grid-area: id; }
  .case-extra {
    grid-area: extra;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .case-headline { gap: 10px; }
  .case-bigword  { padding-bottom: 4px; }
}

/* === Case fullscreen transition === */
.case-portal {
  position: fixed; inset: 0;
  z-index: 999;
  pointer-events: none;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.case-portal.is-open { pointer-events: auto; }
.case-portal-shade {
  position: absolute; inset: 0;
  background: #060606;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.case-portal.is-open .case-portal-shade { opacity: 1; }
.case-portal-frame {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, width, height, top, left, border-radius;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  visibility: hidden;
}
.case-portal.is-open .case-portal-frame,
.case-portal.is-closing .case-portal-frame { visibility: visible; }
.case-portal-frame iframe {
  width: 100%; height: 100%; border: 0; display: block;
  background: #060606;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.case-portal.is-ready .case-portal-frame iframe { opacity: 1; }
.case-portal-loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,122,26,0.18), transparent 70%), #060606;
  opacity: 1;
  transition: opacity .35s var(--ease);
}
.case-portal.is-ready .case-portal-loader,
.case-portal.is-closing .case-portal-loader { opacity: 0; }
.case-portal.is-closing .case-portal-frame iframe { opacity: 1; }
.case-portal-loader::after {
  content: ""; width: 32px; height: 32px; margin-left: 14px;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: caseSpin 0.9s linear infinite;
}
@keyframes caseSpin { to { transform: rotate(360deg); } }
.case-portal-close {
  position: absolute; top: 18px; right: 18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(6,6,6,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform .3s var(--ease), background .3s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.case-portal.is-ready .case-portal-close { opacity: 1; pointer-events: auto; }
.case-portal-close:hover { transform: rotate(90deg) scale(1.08); background: var(--accent); color: #000; }

.case-card.is-opening { visibility: hidden; }

/* Telegram copy badge */
.tg-copy {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 100px;
  background: rgba(255,122,26,0.12);
  border: 1px solid rgba(255,122,26,0.45);
  color: var(--accent);
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.tg-copy:hover { background: rgba(255,122,26,0.22); border-color: var(--accent); transform: translateY(-2px); }
.tg-copy-icon { font-size: 18px; opacity: 0.85; }
.tg-copy-toast {
  position: absolute; left: 50%; top: -34px; transform: translate(-50%, 4px);
  padding: 4px 10px; border-radius: 6px;
  background: var(--accent); color: #000;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.tg-copy.copied .tg-copy-toast { opacity: 1; transform: translate(-50%, 0); }
.tg-copy-sm {
  padding: 6px 12px; font-size: 12px; gap: 6px;
  background: transparent; border-color: rgba(255,255,255,0.15); color: var(--fg);
}
.tg-copy-sm:hover { color: var(--accent); border-color: var(--accent); background: rgba(255,122,26,0.08); }

/* Step accent pop */
.accent-pop { color: var(--accent); font-weight: 800; }
