/* Landing Elevator — front page premium layers */

:root {
  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --brand-primary: #111114;
  --brand-accent: #3cb7ff;
}

/* Grain texture */
.elevator-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  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='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom cursor */
.elevator-page {
  cursor: none;
}

#elevator-cursor-dot,
#elevator-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
}

#elevator-cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-glow);
}

#elevator-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(60, 183, 255, 0.35);
  transform: translate(-50%, -50%);
  transition:
    width 0.3s var(--ease-cinema),
    height 0.3s var(--ease-cinema),
    border-color 0.3s,
    background 0.3s;
}

#elevator-cursor-ring.is-hot {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: rgba(60, 183, 255, 0.08);
}

/* Scroll progress */
#elevator-pgbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent), rgba(60, 183, 255, 0.35));
  z-index: 10000;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Header on scroll */
.elevator-page .site-header {
  transition:
    height 0.3s var(--ease-cinema),
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

.elevator-page .site-header.is-scrolled {
  height: 68px;
  border-bottom-color: rgba(60, 183, 255, 0.15);
  background: rgba(17, 17, 20, 0.94);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.elevator-page .site-header.is-scrolled .site-header__inner {
  height: 68px;
}

/* Intro */
.elevator-intro {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  transition: opacity 0.9s var(--ease-cinema), visibility 0.9s;
}

.elevator-intro.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.elevator-intro__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 55% at 50% 50%,
    rgba(60, 183, 255, 0.14) 0%,
    rgba(17, 17, 20, 0.5) 42%,
    transparent 72%
  );
  opacity: 0;
  animation: elevatorBgIn 2.5s ease forwards;
}

.elevator-intro__dots {
  position: absolute;
  inset: 0;
}

.elevator-intro__dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.elevator-intro__dot--a {
  background: rgba(60, 183, 255, 0.9);
  box-shadow: 0 0 10px rgba(60, 183, 255, 0.8);
}

.elevator-intro__dot--b {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

@keyframes elevatorDotFly {
  0% {
    opacity: 0;
    transform: translate(var(--fx), var(--fy)) scale(0.3);
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
}

.elevator-intro__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(
    circle,
    rgba(60, 183, 255, 0.45) 0%,
    rgba(60, 183, 255, 0.15) 55%,
    transparent 72%
  );
  opacity: 0;
  filter: blur(20px);
  animation: elevatorPulse 1.4s cubic-bezier(0.2, 0.6, 0.2, 1) 1.8s forwards;
}

@keyframes elevatorPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.5);
  }
}

.elevator-intro__stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.elevator-intro__eyebrow {
  margin-bottom: 2rem;
  font-family: var(--font-alt);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  animation: elevatorFadeIn 1s ease 2s forwards;
}

.elevator-intro__logo {
  height: clamp(68px, 10vw, 96px);
  width: auto;
  opacity: 0;
  animation: elevatorLogoIn 1.25s var(--ease-cinema) 2.2s forwards;
}

.elevator-intro__phrase {
  max-width: 640px;
  margin: 1.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  animation: elevatorFadeIn 1.2s var(--ease-cinema) 3.2s forwards;
}

.elevator-intro__skip {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.elevator-intro__skip:hover {
  border-color: rgba(60, 183, 255, 0.5);
  color: #fff;
  background: rgba(60, 183, 255, 0.08);
}

@keyframes elevatorBgIn {
  to {
    opacity: 1;
  }
}

@keyframes elevatorFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes elevatorLogoIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Hero aura blobs */
.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-blob--1 {
  width: 700px;
  height: 700px;
  top: -180px;
  left: -100px;
  background: radial-gradient(circle, rgba(60, 183, 255, 0.1) 0%, transparent 70%);
  animation: heroBlobFloat 10s ease-in-out infinite;
}

.hero-blob--2 {
  width: 600px;
  height: 600px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(60, 183, 255, 0.06) 0%, transparent 70%);
  animation: heroBlobFloat 10s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes heroBlobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -28px) scale(1.04);
  }
}

/* Kinetic typography */
.kinetic-word {
  display: inline-block;
  position: relative;
  min-width: 2ch;
}

.kinetic-word.is-changing {
  animation: kineticSwap 0.45s var(--ease-cinema);
}

@keyframes kineticSwap {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  45% {
    opacity: 0;
    transform: translateY(-12px);
    filter: blur(4px);
  }

  55% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Enhanced reveals */
.elevator-page .reveal {
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

/* CTA shimmer */
.elevator-page .btn--primary {
  position: relative;
  overflow: hidden;
}

.elevator-page .btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-cinema);
}

.elevator-page .btn--primary:hover::after {
  left: 140%;
}

/* Card hover polish */
.elevator-page .service-card--agency,
.elevator-page .result-card,
.elevator-page .brand-card,
.elevator-page .testimonial {
  transition:
    transform 0.35s var(--ease-cinema),
    border-color 0.35s,
    background 0.35s,
    box-shadow 0.35s;
}

.elevator-page .service-card--agency:hover,
.elevator-page .result-card:hover,
.elevator-page .brand-card:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(60, 183, 255, 0.12);
}

.elevator-page .section--cta-final .cta-final {
  position: relative;
  overflow: hidden;
}

.elevator-page .section--cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(60, 183, 255, 0.12), transparent 65%);
  animation: ctaAura 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaAura {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .elevator-page {
    cursor: auto;
  }

  #elevator-cursor-dot,
  #elevator-cursor-ring,
  .elevator-intro {
    display: none !important;
  }

  .elevator-page .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-blob,
  .marquee__track,
  .elevator-page .section--cta-final::before {
    animation: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .elevator-page {
    cursor: auto;
  }

  #elevator-cursor-dot,
  #elevator-cursor-ring {
    display: none;
  }
}

@media (max-width: 768px) {
  .elevator-intro__skip {
    right: 1rem;
    bottom: 1rem;
  }
}
