*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #f0f0f0;
  --grey: #8a8a8a;
  --glass-bg: rgba(0, 0, 0, 0.25);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.2);
  --font: "JetBrains Mono", ui-monospace, monospace;
  --reveal-duration: 0.9s;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── scroll progress ── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.5),
    var(--white)
  );
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  will-change: transform;
}

/* ── section nav ── */

.section-nav {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.section-nav__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s var(--reveal-ease);
}

.section-nav__dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
}

.section-nav__dot.is-active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.section-nav__dot.is-active::before {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── shared panel ── */

.panel {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--black);
}

.panel__inner {
  position: relative;
  z-index: 5;
  width: min(92vw, 1100px);
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.5rem, 5vw, 3rem) clamp(5rem, 10vh, 7rem);
}

.panel__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.panel__scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.018) 2px,
    rgba(255, 255, 255, 0.018) 3px
  );
  pointer-events: none;
  animation: scanline-drift 14s linear infinite;
}

.panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.panel__bg--grid {
  display: none;
}

.panel__dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
}

.panel__dots--hero {
  z-index: 2;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 10%, transparent 72%);
}

.panel__network {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 20%, transparent 78%);
}

.panel--services .panel__inner {
  position: relative;
  z-index: 5;
  background: transparent;
}

.panel__bg--radial {
  background:
    radial-gradient(ellipse 60% 45% at 20% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    linear-gradient(to bottom, var(--black) 0%, #050505 50%, var(--black) 100%);
}

.panel__bg--contact {
  background:
    radial-gradient(ellipse 55% 40% at 50% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 50% 45%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.panel__wipe {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(80px, 12vh, 140px);
  z-index: 8;
  pointer-events: none;
}

.panel__wipe--down {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--black));
}

.panel__wipe--up {
  top: 0;
  background: linear-gradient(to top, transparent, var(--black));
}

.panel__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.panel__index {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--grey);
  opacity: 0.7;
}

.panel__header-line {
  flex: 1;
  height: 1px;
  max-width: 120px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.35), transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--reveal-ease);
}

.panel.is-visible .panel__header-line {
  transform: scaleX(1);
}

.panel__title {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: lowercase;
  color: var(--white);
  animation: title-glitch 14s steps(1) infinite;
}

/* ── glass (shared) ── */

.glass {
  position: relative;
  border-radius: 3px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.3) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.3) brightness(1.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 48px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 255, 255, 0.03);
}

.glass__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    var(--glass-highlight) 0%,
    transparent 35%,
    transparent 65%,
    rgba(255, 255, 255, 0.05) 100%
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  opacity: 0.55;
}

.glass__divider {
  width: 32px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  opacity: 0.6;
}

.glass__divider--wide {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* ── reveal animations ── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.22s; }
.reveal[data-delay="3"] { transition-delay: 0.34s; }
.reveal[data-delay="4"] { transition-delay: 0.46s; }
.reveal[data-delay="5"] { transition-delay: 0.58s; }
.reveal[data-delay="6"] { transition-delay: 0.7s; }

/* ── hero ── */

.hero {
  --hero-progress: 0;
  --hero-parallax: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center 38%;
  user-select: none;
  pointer-events: none;
  transform: translate3d(0, var(--hero-parallax), 0) scale(1.05);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero:not(.hero--entered) .hero__bg {
  animation: hero-hands-rise 1.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero.hero--entered .hero__bg {
  opacity: 1;
}

@keyframes hero-hands-rise {
  0% {
    transform: translate3d(0, 26vh, 0) scale(1.14);
    opacity: 0.1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1.05);
    opacity: 1;
  }
}

@keyframes hero-glass-in {
  0% {
    opacity: 0;
    transform: translateY(calc(-4vh + 28px)) scale(0.97);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(-4vh) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-item-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-item-in-muted {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(5px);
  }
  100% {
    opacity: var(--hero-muted-opacity, 0.75);
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-spark-pulse {
  0%, 100% { opacity: 0.2; transform: translateX(-50%) scaleY(0.85); }
  50% { opacity: 0.55; transform: translateX(-50%) scaleY(1.15); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 48% 38% at 50% 44%,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.55) 50%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 90% 80% at 50% 50%,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 55%,
      rgba(0, 0, 0, 0.82) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      transparent 28%,
      transparent 68%,
      rgba(0, 0, 0, 0.7) 100%
    );
  pointer-events: none;
}

.hero__header,
.hero__footer {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 10;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: calc(1 - var(--hero-progress) * 0.45);
  will-change: opacity;
}

.hero__header {
  top: 0;
  justify-content: flex-end;
}

.hero__footer {
  bottom: 0;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.hero__status {
  opacity: 0.6;
}

.hero__status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.5;
  animation: status-blink 3s ease-in-out infinite;
}

.hero__tagline {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--grey);
  opacity: 0.55;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--grey);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.hero__scroll:hover {
  opacity: 0.85;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

.hero__scroll-text {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.hero__center {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  padding: clamp(5rem, 12vw, 8rem) clamp(1.5rem, 5vw, 3rem);
  opacity: calc(1 - var(--hero-progress) * 0.7);
  transform: translate3d(0, calc(var(--hero-progress) * -32px), 0);
  will-change: opacity, transform;
}

.hero__spark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: clamp(40px, 7vw, 56px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0.35;
  animation: hero-spark-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.hero__glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(92vw, 520px);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 12px 40px rgba(0, 0, 0, 0.65);
  transform: translateY(-4vh);
}

.hero:not(.hero--entered) .hero__glass {
  opacity: 0;
  transform: translateY(calc(-4vh + 28px)) scale(0.97);
  filter: blur(8px);
  animation: none;
}

.hero.hero--entered .hero__glass {
  animation:
    hero-glass-in 1s var(--reveal-ease) both,
    glass-float 8s ease-in-out 1s infinite;
}

.hero__glass > .hero__name,
.hero__glass > .glass__divider,
.hero__glass > .hero__lead,
.hero__glass > .hero__desc,
.hero__glass > .hero__cta {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
}

.hero.hero--entered .hero__glass > .hero__name {
  animation: hero-item-in 0.9s var(--reveal-ease) 0.32s both;
}

.hero.hero--entered .hero__glass > .glass__divider {
  --hero-muted-opacity: 0.6;
  animation: hero-item-in-muted 0.85s var(--reveal-ease) 0.46s both;
}

.hero.hero--entered .hero__glass > .hero__lead {
  animation: hero-item-in 0.85s var(--reveal-ease) 0.58s both;
}

.hero.hero--entered .hero__glass > .hero__desc {
  animation: hero-item-in 0.85s var(--reveal-ease) 0.7s both;
}

.hero.hero--entered .hero__glass > .hero__cta {
  animation: hero-item-in 0.85s var(--reveal-ease) 0.82s both;
}

.hero__name {
  margin: 0;
  font-size: clamp(1.65rem, 5.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--white);
}

.hero__name-accent {
  color: var(--white);
  text-shadow: 0 0 1.2em rgba(255, 255, 255, 0.55);
  animation: hero-name-accent-pulse 3.2s ease-in-out infinite;
}

@keyframes hero-name-accent-pulse {
  0%,
  100% {
    opacity: 0.72;
    text-shadow: 0 0 0.6em rgba(255, 255, 255, 0.25);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 1.4em rgba(255, 255, 255, 0.65);
  }
}

.hero__lead {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.9;
}

.hero__desc {
  max-width: 38ch;
  font-size: clamp(0.68rem, 1.9vw, 0.8rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: rgba(240, 240, 240, 0.94);
}

.hero__cta {
  margin-top: 0.5rem;
}

/* ── shared CTA buttons ── */

.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    transform 0.35s var(--reveal-ease),
    background 0.4s ease;
}

.btn-cta:hover {
  transform: scale(1.03);
}

.btn-cta--primary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.btn-cta--primary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.btn-cta--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

.btn-cta--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.btn-cta__text {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: lowercase;
  color: var(--white);
}

.btn-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-cta:hover .btn-cta__glow {
  opacity: 1;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* ── sticky contact CTA ── */

.sticky-cta {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 4vw, 2rem);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.45s var(--reveal-ease),
    transform 0.45s var(--reveal-ease),
    border-color 0.35s ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.sticky-cta__text {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: lowercase;
  color: var(--white);
}

.sticky-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.sticky-cta:hover .sticky-cta__glow {
  opacity: 1;
}

/* ── services ── */

.services__lead {
  max-width: 48ch;
  margin: -1.5rem 0 clamp(2rem, 5vw, 3rem);
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--grey);
  opacity: 0.75;
}

.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.services__card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  cursor: default;
  transition:
    transform 0.5s var(--reveal-ease),
    border-color 0.4s ease,
    box-shadow 0.5s ease;
}

.services__card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 56px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 255, 255, 0.05);
}

.services__num {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--grey);
  opacity: 0.6;
}

.services__icon {
  --icon-size: 40px;
  position: relative;
  flex-shrink: 0;
  width: var(--icon-size);
  height: var(--icon-size);
  perspective: 120px;
}

.services__icon span,
.services__icon i {
  display: block;
  transition:
    transform 0.5s var(--reveal-ease),
    opacity 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

/* ── сайты: листающиеся страницы ── */

.services__icon--pages span {
  position: absolute;
  width: 17px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.services__icon--pages span:nth-child(1) {
  bottom: 2px;
  left: 2px;
  animation: pages-float-1 4.5s ease-in-out infinite;
}

.services__icon--pages span:nth-child(2) {
  bottom: 5px;
  left: 8px;
  opacity: 0.72;
  animation: pages-float-2 4.5s ease-in-out infinite 0.15s;
}

.services__icon--pages span:nth-child(3) {
  bottom: 8px;
  left: 14px;
  opacity: 0.5;
  overflow: hidden;
  animation: pages-float-3 4.5s ease-in-out infinite 0.3s;
}

.services__icon--pages span:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  animation: page-scan 2.2s ease-in-out infinite;
}

.services__icon__beam {
  position: absolute;
  top: 9px;
  left: 18px;
  width: 1px;
  height: 14px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0;
  transform-origin: top center;
  animation: page-beam 3.6s ease-in-out infinite;
}

.services__card:hover .services__icon--pages span:nth-child(1) {
  transform: translate(-4px, 3px) rotate(-6deg);
  border-color: rgba(255, 255, 255, 0.55);
}

.services__card:hover .services__icon--pages span:nth-child(2) {
  transform: translateY(-2px) rotate(2deg);
  border-color: rgba(255, 255, 255, 0.48);
}

.services__card:hover .services__icon--pages span:nth-child(3) {
  transform: translate(4px, -5px) rotate(8deg);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.services__card:hover .services__icon__beam {
  opacity: 1;
}

/* ── web 3d: вращающийся куб ── */

.services__icon__cube {
  position: absolute;
  inset: 7px;
  transform-style: preserve-3d;
  animation: cube-rotate 9s linear infinite;
}

.services__icon__cube i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.03);
  backface-visibility: visible;
}

.services__icon__cube i:nth-child(1) { transform: rotateY(0deg) translateZ(8px); }
.services__icon__cube i:nth-child(2) { transform: rotateY(90deg) translateZ(8px); }
.services__icon__cube i:nth-child(3) { transform: rotateY(180deg) translateZ(8px); }
.services__icon__cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(8px); }
.services__icon__cube i:nth-child(5) { transform: rotateX(90deg) translateZ(8px); }
.services__icon__cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(8px); }

.services__card:hover .services__icon__cube {
  animation-duration: 2.8s;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.services__card:hover .services__icon__cube i {
  border-color: rgba(255, 255, 255, 0.58);
}

/* ── платформы: орбита модулей ── */

.services__icon__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  animation: hub-core 2.2s ease-in-out infinite;
}

.services__icon__orbit {
  position: absolute;
  inset: 3px;
  animation: hub-orbit 5s linear infinite;
}

.services__icon__orbit span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.services__icon__orbit span:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.services__icon__orbit span:nth-child(2) {
  bottom: 2px;
  left: 1px;
}

.services__icon__orbit span:nth-child(3) {
  bottom: 2px;
  right: 1px;
}

.services__icon--hub::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: hub-ring 5s linear infinite reverse;
}

.services__card:hover .services__icon__orbit {
  animation-duration: 2.2s;
}

.services__card:hover .services__icon__orbit span {
  background: rgba(255, 255, 255, 0.72);
}

/* ── telegram: чат и отправка ── */

.services__icon__bubble {
  position: absolute;
  inset: 3px 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px 8px 8px 3px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.services__icon__dots {
  position: absolute;
  left: 6px;
  bottom: 5px;
  display: flex;
  gap: 3px;
}

.services__icon__dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: tg-typing 1.2s ease-in-out infinite;
}

.services__icon__dots i:nth-child(2) { animation-delay: 0.15s; }
.services__icon__dots i:nth-child(3) { animation-delay: 0.3s; }

.services__icon__plane {
  position: absolute;
  top: 6px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 7px solid rgba(255, 255, 255, 0.55);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
  animation: tg-fly 2.8s ease-in-out infinite;
}

.services__card:hover .services__icon__bubble {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.06);
}

.services__card:hover .services__icon__plane {
  animation-duration: 1.4s;
}

/* ── мобильные: экран и пуш ── */

.services__icon__device {
  position: absolute;
  top: 2px;
  left: 11px;
  width: 16px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.services__icon__device::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 7px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.28);
  border-radius: 1px;
}

.services__icon__screen {
  position: absolute;
  top: 7px;
  left: 3px;
  right: 3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: phone-scroll 2.4s ease-in-out infinite;
}

.services__icon__screen i {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 1px;
}

.services__icon__screen i:nth-child(1) { width: 100%; }
.services__icon__screen i:nth-child(2) { width: 72%; }
.services__icon__screen i:nth-child(3) { width: 86%; }

.services__icon__ping {
  position: absolute;
  top: 0;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation: phone-ping 2.6s ease-out infinite;
}

.services__icon__ping::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.services__card:hover .services__icon__device {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.08);
}

.services__card:hover .services__icon__screen {
  animation-duration: 1.2s;
}

/* ── b2c: воронка и поток ── */

.services__icon__ring {
  position: absolute;
  left: 50%;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: none;
  transform: translateX(-50%);
  clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
}

.services__icon__ring:nth-child(1) {
  top: 4px;
  width: 26px;
  opacity: 0.45;
}

.services__icon__ring:nth-child(2) {
  top: 12px;
  width: 18px;
  opacity: 0.65;
}

.services__icon__ring:nth-child(3) {
  top: 20px;
  width: 10px;
  opacity: 0.85;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  clip-path: none;
  height: 1px;
}

.services__icon__drop {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
  animation: funnel-drop 2.2s ease-in infinite;
}

.services__card:hover .services__icon__ring {
  border-color: rgba(255, 255, 255, 0.5);
}

.services__card:hover .services__icon__drop {
  animation-duration: 1.1s;
}

.services__name {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  color: var(--white);
}

.services__text {
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--grey);
  opacity: 0.8;
}

/* ── process / timeline ── */

.process-pin {
  --process-steps: 4;
  --timeline-axis: 50%;
  --timeline-node: 36px;
  --timeline-stem: clamp(22px, 3.5vh, 32px);
  position: relative;
}

.process-pin__stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 100dvh;
  overflow: visible;
}

.process-pin__stage.panel {
  overflow: visible;
}

.panel__inner--process {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - clamp(6rem, 14vh, 9rem) - clamp(5rem, 10vh, 7rem));
}

.timeline {
  position: relative;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

.timeline__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--timeline-axis);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.timeline__track {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.timeline__track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45), var(--white));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
  will-change: width, height;
}

.timeline__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  min-height: clamp(340px, 42vh, 440px);
  position: relative;
  z-index: 2;
}

.timeline__step {
  --step-opacity: 0;
  position: relative;
  height: 100%;
  opacity: var(--step-opacity);
  transform:
    translateY(calc((1 - var(--step-opacity)) * 18px))
    scale(calc(0.985 + var(--step-opacity) * 0.015));
  pointer-events: none;
  will-change: opacity, transform;
}

.timeline__step.is-active {
  pointer-events: auto;
}

.timeline__node {
  position: absolute;
  left: 50%;
  top: var(--timeline-axis);
  transform: translate(-50%, -50%) scale(calc(0.88 + var(--step-opacity) * 0.12));
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--timeline-node);
  height: var(--timeline-node);
  border-radius: 50%;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, calc(0.28 + var(--step-opacity) * 0.55));
  box-shadow:
    0 0 0 calc(4px + var(--step-opacity) * 2px) rgba(255, 255, 255, calc(0.03 + var(--step-opacity) * 0.04)),
    0 0 calc(10px + var(--step-opacity) * 14px) rgba(255, 255, 255, calc(0.1 + var(--step-opacity) * 0.32));
}

.timeline__stem {
  position: absolute;
  left: 50%;
  width: 1px;
  transform: translateX(-50%) scaleY(var(--step-opacity));
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  z-index: 2;
  opacity: var(--step-opacity);
}

.timeline__step--above .timeline__stem {
  top: calc(var(--timeline-axis) - var(--timeline-node) / 2 - var(--timeline-stem));
  height: var(--timeline-stem);
  transform-origin: center bottom;
}

.timeline__step--below .timeline__stem {
  top: calc(var(--timeline-axis) + var(--timeline-node) / 2);
  height: var(--timeline-stem);
  transform-origin: center top;
}

.timeline__step--above .timeline__card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(50% + var(--timeline-node) / 2 + var(--timeline-stem));
}

.timeline__step--below .timeline__card {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + var(--timeline-node) / 2 + var(--timeline-stem));
}

.timeline__card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  padding: clamp(1.15rem, 2.2vw, 1.45rem);
  text-align: center;
  transition: transform 0.45s var(--reveal-ease);
}

.timeline__step:hover .timeline__card {
  transform: translateY(-4px);
}

.timeline__step--below:hover .timeline__card {
  transform: translateY(4px);
}

.timeline__num {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  opacity: 0.9;
}

.timeline__name {
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--white);
}

.timeline__text {
  font-size: clamp(0.58rem, 1.4vw, 0.68rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--grey);
  opacity: 0.75;
}

/* ── works / portfolio ── */

.panel__bg--works {
  background:
    radial-gradient(ellipse 55% 50% at 50% 40%, rgba(255, 255, 255, 0.035) 0%, transparent 62%),
    radial-gradient(ellipse 35% 30% at 12% 88%, rgba(255, 255, 255, 0.025) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 88% 12%, rgba(255, 255, 255, 0.02) 0%, transparent 55%),
    var(--black);
}

.panel__inner--works {
  width: min(94vw, 1240px);
}

.panel--works .panel__inner {
  position: relative;
  z-index: 5;
  background: transparent;
}

.works__intro {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.works__intro .panel__header {
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.works__lead {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--grey);
  opacity: 0.75;
}

.works {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
  align-items: stretch;
}

.works__card {
  overflow: hidden;
  transition:
    transform 0.5s var(--reveal-ease),
    border-color 0.4s ease,
    box-shadow 0.5s ease;
}

.works__card:hover,
.works__card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 56px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 255, 255, 0.05);
}

.works__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.works__link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

.works__preview {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  flex-shrink: 0;
  background: #080808;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.works__preview-index {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--grey);
  opacity: 0.45;
}

.works__preview-corner {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.works__preview-corner--tl {
  top: 0.55rem;
  right: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.works__preview-corner--br {
  bottom: 0.55rem;
  left: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.works__card:hover .works__preview-corner,
.works__card:focus-within .works__preview-corner {
  opacity: 0.65;
}

.works__preview-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

.works__preview-scan::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04),
    transparent
  );
  animation: globe-scan 6s ease-in-out infinite;
}

.works__card:hover .works__preview-scan::after,
.works__card:focus-within .works__preview-scan::after {
  animation-duration: 3.5s;
}

.works__preview--grid {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse 65% 55% at 50% 45%, rgba(255, 255, 255, 0.07) 0%, transparent 72%);
  background-size: 48px 48px, 22px 22px, 22px 22px, 100% 100%;
}

.works__preview--flow {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 16px,
      rgba(255, 255, 255, 0.045) 16px,
      rgba(255, 255, 255, 0.045) 17px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    radial-gradient(ellipse 55% 45% at 35% 55%, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
}

.works__preview--node {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12) 0%, transparent 8%),
    radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 6%),
    radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.08) 0%, transparent 6%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

.works__preview--bars {
  background:
    radial-gradient(ellipse 75% 65% at 50% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 72%),
    #080808;
}

.works__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(5px, 1.2vw, 8px);
  padding: 18% 14% 22%;
}

.works__bars span {
  display: block;
  width: clamp(5px, 1vw, 7px);
  height: var(--bar-h, 50%);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1px;
  transform-origin: bottom center;
  transition: transform 0.5s var(--reveal-ease), background 0.35s ease;
}

.works__card:hover .works__bars span,
.works__card:focus-within .works__bars span {
  background: rgba(255, 255, 255, 0.28);
}

.works__card:hover .works__bars span:nth-child(odd),
.works__card:focus-within .works__bars span:nth-child(odd) {
  transform: scaleY(1.1);
}

.works__card:hover .works__bars span:nth-child(even),
.works__card:focus-within .works__bars span:nth-child(even) {
  transform: scaleY(1.05);
}

.works__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  min-height: 0;
  padding: clamp(1.1rem, 2.4vw, 1.45rem);
}

.works__tag {
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.6;
}

.works__name {
  font-size: clamp(0.74rem, 1.9vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--white);
  line-height: 1.35;
}

.works__text {
  font-size: clamp(0.58rem, 1.35vw, 0.67rem);
  font-weight: 300;
  line-height: 1.68;
  letter-spacing: 0.02em;
  color: var(--grey);
  opacity: 0.78;
}

.works__highlights {
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin: 0.35rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.works__highlights li {
  position: relative;
  padding-left: 0.9rem;
  font-size: clamp(0.51rem, 1.15vw, 0.58rem);
  font-weight: 300;
  line-height: 1.52;
  letter-spacing: 0.02em;
  color: var(--grey);
  opacity: 0.66;
}

.works__highlights li::before {
  content: "—";
  position: absolute;
  left: 0;
  opacity: 0.4;
}

.works__visit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.works__visit-text {
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--grey);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--reveal-ease);
}

.works__arrow {
  font-size: 0.75rem;
  opacity: 0.25;
  transform: translateX(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--reveal-ease);
}

.works__card:hover .works__visit-text,
.works__card:focus-within .works__visit-text {
  opacity: 0.55;
  transform: translateX(0);
}

.works__card:hover .works__arrow,
.works__card:focus-within .works__arrow {
  opacity: 0.65;
  transform: translateX(4px);
}

/* ── stack / layers ── */

.panel__bg--stack {
  background:
    radial-gradient(ellipse 50% 45% at 35% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 75% 60%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.panel__inner--stack {
  display: flex;
  flex-direction: column;
}

.stack-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.stack-scene {
  position: relative;
  width: 100%;
  max-width: min(72vw, 560px);
  min-height: min(72vw, 560px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.stack-scene__glow {
  position: absolute;
  inset: 6% 10%;
  border-radius: 6px;
  background: radial-gradient(
    ellipse 80% 65% at 50% 50%,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    transparent 72%
  );
  filter: blur(24px);
  animation: stack-glow-pulse 6s ease-in-out infinite;
}

.stack-scene__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  transition: opacity 1s var(--reveal-ease);
}

.reveal.stack-scene:not(.is-visible) .stack-scene__canvas {
  opacity: 0.25;
}

.stack-scene.is-visible .stack-scene__canvas {
  opacity: 1;
}

.stack-scene__layers {
  position: absolute;
  top: 50%;
  right: 2%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.stack-layer {
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--grey);
  opacity: 0.4;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    opacity 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.stack-layer.is-active {
  opacity: 0.95;
  color: var(--white);
  border-left-color: rgba(255, 255, 255, 0.45);
}

.stack-scene.is-visible .stack-layer {
  opacity: 0.55;
}

.stack-scene.is-visible .stack-layer.is-active {
  opacity: 1;
}

.stack-scene__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stack-scene__status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

.stack-scene__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  animation: status-blink 2.5s ease-in-out infinite;
}

.stack-scene__sync {
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--grey);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s ease;
}

.stack-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stack-info__lead {
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--white);
}

.stack-info__desc {
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--grey);
  opacity: 0.75;
  max-width: 36ch;
}

.stack-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.stack-stats__item {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  transition:
    transform 0.4s var(--reveal-ease),
    border-color 0.3s ease;
}

.stack-stats__item:hover {
  transform: translateX(6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.stack-stats__label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.65;
}

.stack-stats__value {
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--white);
}

@keyframes stack-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes globe-scan {
  0%, 100% { left: -60%; opacity: 0; }
  10% { opacity: 1; }
  50% { left: 110%; opacity: 1; }
  60% { opacity: 0; }
}

/* ── contact ── */

.panel__inner--contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100dvh - clamp(6rem, 14vh, 9rem) - clamp(5rem, 10vh, 7rem));
}

.panel__inner--contact .panel__header {
  width: 100%;
  max-width: 520px;
}

.contact {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.contact__glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
  animation: glass-float 10s ease-in-out infinite;
}

.contact__spark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0.35;
  animation: spark-pulse 4s ease-in-out infinite;
}

.contact__lead {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.contact__desc {
  max-width: 34ch;
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--grey);
  opacity: 0.75;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.contact__link {
  display: grid;
  grid-template-columns: 5em 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s var(--reveal-ease);
}

.contact__link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.contact__link-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.7;
}

.contact__link-value {
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-align: left;
}

.contact__link-arrow {
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s var(--reveal-ease);
}

.contact__link:hover .contact__link-arrow {
  opacity: 0.6;
  transform: translateX(0);
}

.contact__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.35s var(--reveal-ease);
}

.contact__cta:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.03);
}

.contact__cta-text {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  text-transform: lowercase;
  color: var(--white);
}

.contact__cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact__cta:hover .contact__cta-glow {
  opacity: 1;
  animation: cta-shimmer 2s ease-in-out infinite;
}

.contact__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.75rem;
}

.contact__cta--primary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.contact__cta--primary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.contact__cta--secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

.contact__cta--secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.contact__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.contact__copy,
.contact__motto {
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--grey);
  opacity: 0.45;
}

.contact__motto {
  letter-spacing: 0.2em;
  opacity: 0.35;
}

/* ── eye footer (вынесен в папку eye/) ──
.eye-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--black);
}

.eye-footer__canvas {
  display: block;
  width: min(92vw, 299px);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  user-select: none;
  pointer-events: none;
}
*/

/* ── keyframes ── */

@keyframes scanline-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

@keyframes glass-float {
  0%, 100% { transform: translateY(-4vh); }
  50% { transform: translateY(calc(-4vh - 8px)); }
}

.contact__glass {
  animation-name: contact-float;
}

@keyframes contact-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spark-pulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scaleY(0.85); }
  50% { opacity: 0.55; transform: translate(-50%, -50%) scaleY(1.15); }
}

.contact__spark {
  animation-name: contact-spark;
}

@keyframes contact-spark {
  0%, 100% { opacity: 0.2; transform: translateX(-50%) scaleY(0.85); }
  50% { opacity: 0.5; transform: translateX(-50%) scaleY(1.15); }
}

@keyframes time-flicker {
  0%, 94%, 100% { opacity: 1; }
  95% { opacity: 0.4; }
  96% { opacity: 1; }
  97% { opacity: 0.6; }
}

@keyframes status-blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes title-glitch {
  0%, 97%, 100% {
    text-shadow: none;
    transform: translateX(0);
  }
  98% {
    text-shadow: 2px 0 rgba(255, 255, 255, 0.4), -2px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(-1px);
  }
  99% {
    text-shadow: -1px 0 rgba(255, 255, 255, 0.3);
    transform: translateX(1px);
  }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

@keyframes flow-dash {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 0.7; transform: translateX(6px); }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes hub-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes pages-float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1px, 1px); }
}

@keyframes pages-float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -1px); }
}

@keyframes pages-float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1px, -2px); }
}

@keyframes page-scan {
  0% { top: -2px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes page-beam {
  0%, 100% { opacity: 0; transform: scaleY(0.4) rotate(8deg); }
  45%, 55% { opacity: 0.85; transform: scaleY(1) rotate(8deg); }
}

@keyframes cube-rotate {
  0% { transform: rotateX(-18deg) rotateY(0deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}

@keyframes hub-core {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 8px rgba(255, 255, 255, 0.2); }
  50% { transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 14px rgba(255, 255, 255, 0.38); }
}

@keyframes hub-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hub-ring {
  0% { transform: rotate(0deg) scale(1); opacity: 0.35; }
  50% { opacity: 0.65; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.35; }
}

@keyframes tg-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes tg-fly {
  0% { left: -8px; opacity: 0; }
  15% { opacity: 1; }
  55% { left: 18px; opacity: 1; }
  70% { opacity: 0; }
  100% { left: 24px; opacity: 0; }
}

@keyframes phone-scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes phone-ping {
  0% { transform: scale(0.6); opacity: 0; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  35% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  100% { transform: scale(1.6); opacity: 0; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

@keyframes funnel-drop {
  0% { top: 6px; opacity: 0; transform: translateX(-50%) scale(0.6); }
  12% { opacity: 1; }
  88% { opacity: 0.85; }
  100% { top: 28px; opacity: 0; transform: translateX(-50%) scale(0.35); }
}

@keyframes dot-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.4); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes cta-shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ── responsive ── */

@media (max-width: 1100px) {
  .works {
    grid-template-columns: repeat(2, 1fr);
  }

  .works__card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .stack-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stack-scene {
    max-width: min(85vw, 400px);
  }

  .stack-scene__layers {
    right: 0;
  }

  .stack-info {
    align-items: center;
    text-align: center;
  }

  .stack-info__desc {
    max-width: none;
  }

  .stack-stats {
    width: 100%;
    max-width: 420px;
  }

  .contact__ctas {
    flex-direction: row;
  }

  .contact__cta {
    flex: 1;
  }

  .services__lead {
    text-align: center;
    margin-inline: auto;
  }

  .services {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .works {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .works__card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .works__lead {
    text-align: center;
    margin-inline: auto;
  }

  .timeline__steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 0;
    min-height: auto;
    padding-left: 2.5rem;
  }

  .timeline {
    --timeline-axis: 0;
    --timeline-stem: 20px;
  }

  .timeline__rail {
    left: 1.125rem;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    transform: none;
  }

  .timeline__track {
    width: 1px;
    height: 100%;
  }

  .timeline__track-fill {
    width: 100% !important;
    height: 0%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.45), var(--white));
  }

  .timeline__step {
    min-height: 9.5rem;
    margin-bottom: 1.25rem;
  }

  .timeline__step.is-active {
    transform: none;
  }

  .timeline__node {
    left: -2.5rem;
    top: 1.35rem;
    transform: translate(-50%, -50%);
  }

  .timeline__stem {
    display: none;
  }

  .timeline__step--above .timeline__card,
  .timeline__step--below .timeline__card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    text-align: left;
  }

  .process-pin {
    --process-scroll-unit: 0;
  }
}

@media (max-width: 480px) {
  .section-nav {
    right: 0.75rem;
    gap: 0.65rem;
  }

  .section-nav__dot {
    width: 6px;
    height: 6px;
  }

  .hero__bg {
    object-position: center 36%;
  }

  .hero__header {
    font-size: 0.6rem;
  }

  .hero__name {
    font-size: clamp(1.45rem, 8vw, 2rem);
    letter-spacing: 0.01em;
  }

  .hero__glass {
    padding-inline: clamp(1.5rem, 8vw, 2rem);
  }

  .services__card,
  .contact__glass {
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    padding-inline: clamp(1.5rem, 8vw, 2rem);
  }

  .hero__name {
    font-size: clamp(1.45rem, 8vw, 2rem);
    letter-spacing: 0.01em;
  }

  .hero__lead {
    letter-spacing: 0.08em;
  }

  .contact__link {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    text-align: center;
  }

  .contact__link-value {
    text-align: center;
  }

  .contact__link-arrow {
    display: none;
  }

  .contact__ctas {
    flex-direction: column;
  }

  .sticky-cta {
    right: auto;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(12px);
  }

  .sticky-cta.is-visible {
    transform: translateX(-50%) translateY(0);
  }

  .sticky-cta:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .process-pin {
    height: auto;
  }

  .process-pin__stage {
    position: relative;
  }

  .timeline__step {
    --step-opacity: 1;
    opacity: 1;
    transform: none;
  }

  .timeline__track-fill {
    width: 100% !important;
    height: 100% !important;
  }

  .hero__center,
  .hero__header,
  .hero__footer {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__bg {
    transform: scale(1.05) !important;
    animation: none !important;
    opacity: 1 !important;
  }

  .hero__glass,
  .hero__glass > .hero__name,
  .hero__glass > .glass__divider,
  .hero__glass > .hero__lead,
  .hero__glass > .hero__desc,
  .hero__glass > .hero__cta {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
