/* =========================================================
   Cyberhaxy — design system
   Motion rules (Emil Kowalski): animate transform/opacity only,
   ease-out for entrances, hover gated to fine pointers,
   :active scale 0.97, reduced motion = fades only.
   ========================================================= */
:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --card: #0e0e0e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f0;
  --muted: #9a9a94;
  --lime: #c6ff00;
  --lime-ink: #0b0d00;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 20px;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
em { font-style: normal; color: var(--lime); }
p { margin: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }

.container { width: min(100% - var(--pad) * 2, var(--container)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

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

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.78rem/1 var(--font-display);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 0.98rem/1 var(--font-display);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--primary { background: var(--lime); color: var(--lime-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn__arrow { display: inline-block; transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #d6ff4d; }
  .btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  transition: transform 300ms var(--ease-out);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px; padding: 0 12px 0 22px;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px;
}
.header__logo img { height: 30px; width: auto; }
.header.is-hidden { transform: translateY(calc(-100% - 20px)); }

.nav { display: flex; align-items: center; gap: 30px; font: 500 0.95rem/1 var(--font-display); }
.nav a:not(.btn) { color: #cfcfca; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { color: var(--lime); } }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 250ms var(--ease-out); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 60px; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__glow {
  position: absolute; inset: auto -20% -40% auto; width: 80vw; height: 80vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(198,255,0,0.14), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; position: relative; }
.hero__title { font-size: clamp(3rem, 8.2vw, 7rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: block; }
.hero__lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 520px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero__proof { display: flex; gap: 32px; color: var(--muted); font-size: 0.95rem; }
.hero__proof strong { display: block; font: 700 1.8rem/1.1 var(--font-display); color: var(--text); }

.hero__art { position: relative; aspect-ratio: 1; mix-blend-mode: lighten; }
.hero__img {
  width: 100%; animation: float 7s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
@keyframes float { 50% { transform: translateY(-14px); } }

.badge { position: absolute; right: 2%; bottom: 8%; width: 120px; height: 120px; border-radius: 50%; background: rgba(14,14,14,0.85); border: 1px solid var(--line-2); display: grid; place-items: center; backdrop-filter: blur(8px); }
.badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.badge text { font: 600 9.5px var(--font-display); letter-spacing: 0.18em; fill: var(--text); }
.badge span { font-size: 1.6rem; color: var(--lime); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero entrance — line mask reveal, readable in < 0.8s */
.js .hero__eyebrow,
.js .hero__lead,
.js .hero__ctas,
.js .hero__proof { opacity: 0; transform: translateY(12px); }
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__art { opacity: 0; transform: scale(0.94); }

.is-loaded .hero__title .line > span { transform: none; transition: transform 600ms var(--ease-out); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 80ms; }
.is-loaded .hero__eyebrow,
.is-loaded .hero__lead,
.is-loaded .hero__ctas,
.is-loaded .hero__proof { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.is-loaded .hero__lead { transition-delay: 180ms; }
.is-loaded .hero__ctas { transition-delay: 260ms; }
.is-loaded .hero__proof { transition-delay: 340ms; }
.is-loaded .hero__art { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out) 100ms, transform 900ms var(--ease-out) 100ms; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--lime); color: var(--lime-ink); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { font: 700 clamp(1.1rem, 2vw, 1.5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; padding: 0 28px; display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee li::after { content: "✦"; font-size: 0.9em; margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--tight { padding-block: clamp(60px, 8vw, 100px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--muted); font-size: 1.1rem; margin-top: 18px; max-width: 560px; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(198,255,0,0.10), transparent 60%);
  transition: opacity 300ms ease;
}
.card__img { width: 150px; margin: -10px 0 8px -16px; mix-blend-mode: lighten; transition: transform 300ms var(--ease-out); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.78rem; color: #c9c9c3; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }

@media (hover: hover) and (pointer: fine) {
  .js .card.is-in { transition: opacity 500ms var(--ease-out), transform 200ms var(--ease-out), border-color 200ms ease; transition-delay: 0ms; }
  .card:hover { transform: translateY(-4px); border-color: rgba(198,255,0,0.5); }
  .card:hover::before { opacity: 1; }
  .card:hover .card__img { transform: scale(1.06) rotate(-2deg); }
}

/* ---------- About + stats ---------- */
.about__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.about__text { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat dd { margin: 0; font: 700 clamp(2.6rem, 5vw, 4.2rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--lime); font-variant-numeric: tabular-nums; }
.stat dt { color: var(--muted); font-size: 0.95rem; order: 2; margin-top: 10px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat dd { order: 1; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.process li { border-top: 2px solid var(--line-2); padding-top: 26px; position: relative; }
.process li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--lime); }
.process__n { display: block; font: 600 0.9rem/1 var(--font-display); color: var(--lime); margin-bottom: 18px; letter-spacing: 0.1em; }
.process h3 { margin-bottom: 10px; font-size: 1.5rem; }
.process p { color: var(--muted); }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.logos li { background: #f4f4f0; border-radius: 16px; height: 96px; display: grid; place-items: center; padding: 16px 24px; }
.logos img { max-height: 54px; width: auto; object-fit: contain; }

/* ---------- Testimonials ---------- */
.testi { max-width: 860px; margin-inline: auto; text-align: center; }
.testi__stage { display: grid; min-height: 260px; }
.testi__item {
  grid-area: 1 / 1; margin: 0; opacity: 0; pointer-events: none;
  transform: translateX(calc(var(--dir, 1) * 16px)); filter: blur(4px);
  transition: opacity 300ms var(--ease-in-out), transform 300ms var(--ease-in-out), filter 300ms var(--ease-in-out);
}
.testi__item.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.testi__item.is-leaving { transform: translateX(calc(var(--dir, 1) * -16px)); }
.stars { color: var(--lime); letter-spacing: 4px; margin-bottom: 20px; }
.testi blockquote { margin: 0 0 24px; font: 500 clamp(1.15rem, 2.1vw, 1.5rem)/1.5 var(--font-display); letter-spacing: -0.01em; }
.testi figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.testi figcaption span { color: var(--muted); font-size: 0.92rem; }
.testi__people { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }
.testi__people button {
  width: 60px; height: 60px; border-radius: 50%; padding: 3px; border: 2px solid transparent; background: none; cursor: pointer;
  opacity: 0.5; filter: grayscale(1);
  transition: opacity 200ms ease, filter 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.testi__people button:active { transform: scale(0.95); }
.testi__people button[aria-selected="true"] { opacity: 1; filter: none; border-color: var(--lime); }
.testi__people img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .testi__people button:hover { opacity: 1; filter: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font: 600 1.15rem/1.35 var(--font-display); transition: color 200ms ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-weight: 400; color: var(--lime);
  transition: transform 250ms var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.faq__item[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__body p { color: var(--muted); padding-bottom: 24px; max-width: 620px; opacity: 0; transition: opacity 250ms ease; }
.faq__item[open] .faq__body p { opacity: 1; transition-delay: 60ms; }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover { color: var(--lime); } }

/* ---------- CTA / form ---------- */
.cta { overflow: hidden; }
.cta__inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 40px;
  background: linear-gradient(160deg, #111 0%, #080808 100%); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
}
.cta__art img { mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); width: 100%; max-width: 440px; margin-inline: auto; }
.cta__copy h2 { margin-bottom: 4px; }
.form { margin-top: 32px; display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; background: #0a0a0a; border: 1px solid var(--line-2); border-radius: 14px;
  color: var(--text); font: 400 16px/1.4 var(--font-body); padding: 14px 16px;
  transition: border-color 200ms ease;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lime); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer__brand img { height: 34px; width: auto; margin-bottom: 18px; }
.footer__brand p, .footer li { color: var(--muted); font-size: 0.95rem; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--lime); } }
.footer__bottom { display: flex; justify-content: space-between; padding: 24px 84px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 160ms var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:active { transform: scale(0.94); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: var(--pad); right: var(--pad);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: rgba(14,14,14,0.96); border: 1px solid var(--line); border-radius: 24px;
    backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top right; pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.1rem; }
  .nav__cta { margin-top: 8px; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

  .hero { padding-top: 120px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(62vw, 260px); margin: 0 auto 4px; }
  .badge { width: 76px; height: 76px; right: -4%; bottom: 4%; }
  .badge span { font-size: 1.2rem; }
  .card__img { width: 104px; margin: -8px 0 6px -10px; }
  .about__inner, .faq, .cta__inner { grid-template-columns: 1fr; }
  .faq { gap: 0; }
  .cta__art { max-width: 260px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 16px 28px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px !important; }
  .logos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .header { inset: 10px 0 auto; }
  .header__inner { height: 60px; padding-left: 18px; }
  .header__logo img { height: 26px; }
  .services, .process { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .testi__stage { min-height: 380px; }
}

/* ---------- Reduced motion: keep fades, drop movement ----------
   The .reduce-motion class is set by JS from prefers-reduced-motion
   (add ?motion=full to the URL to preview the full animation). */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; }
.reduce-motion [data-reveal], .reduce-motion .hero__eyebrow, .reduce-motion .hero__lead, .reduce-motion .hero__ctas, .reduce-motion .hero__proof,
.reduce-motion .hero__art, .reduce-motion .hero__title .line > span, .reduce-motion .testi__item, .reduce-motion .testi__item.is-leaving { transform: none !important; filter: none !important; }
.reduce-motion .card:hover, .reduce-motion .card:hover .card__img { transform: none !important; }

/* =========================================================
   3D scroll — video frames scrubbed by scroll position
   ========================================================= */
.scroll3d { position: relative; height: var(--scroll3d-h, 400vh); background: #000; }
.scroll3d__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.scroll3d__canvas, .scroll3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scroll3d__poster { opacity: 0; transition: opacity 300ms ease; }
.scroll3d.is-static .scroll3d__poster { opacity: 1; }
.scroll3d__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 38%, transparent 62%),
    linear-gradient(180deg, #000 0%, transparent 14%, transparent 86%, #000 100%);
}
.scroll3d__steps { position: relative; display: grid; }
.scroll3d__step {
  grid-area: 1 / 1; max-width: 520px; opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.scroll3d__step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scroll3d__step.is-past { transform: translateY(-24px); }
.scroll3d__step h2 { margin-bottom: 4px; }
.scroll3d__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 32px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.scroll3d__progress span { display: block; height: 100%; width: 100%; background: var(--lime); transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (max-width: 860px) {
  .scroll3d__shade { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.75) 70%, #000 100%); }
  .scroll3d__sticky { align-items: end; padding-bottom: 72px; }
  .scroll3d__canvas, .scroll3d__poster { object-position: 60% center; }
}

/* Reduced motion (or no JS): no scroll-scrub — show a still and list the steps */
.scroll3d.is-static, html:not(.js) .scroll3d { height: auto; }
.scroll3d.is-static .scroll3d__sticky, html:not(.js) .scroll3d__sticky { position: relative; height: auto; min-height: 100svh; padding: 120px 0; }
.scroll3d.is-static .scroll3d__canvas, .scroll3d.is-static .scroll3d__progress,
html:not(.js) .scroll3d__canvas, html:not(.js) .scroll3d__progress { display: none; }
html:not(.js) .scroll3d__poster { opacity: 1; }
.scroll3d.is-static .scroll3d__steps, html:not(.js) .scroll3d__steps { gap: 48px; }
.scroll3d.is-static .scroll3d__step, html:not(.js) .scroll3d__step { grid-area: auto; opacity: 1; transform: none !important; }
@media (min-width: 861px) { .scroll3d__poster { object-position: 75% center; } }
@media (max-width: 600px) {
  .card { padding: 22px; }
  .card__img { width: 84px; margin: -6px 0 4px -8px; }
  .hero { padding-top: 104px; }
}
