/* Motion graphic layers & kinetic type */
.k {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}
.k .ch {
  display: inline-block;
  will-change: transform, opacity, filter;
  white-space: pre;
}

.hero h1 .k {
  justify-content: center;
}
.hero h1 .line {
  perspective: 900px;
}

/* floating FX orbs (DOM) */
.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.35;
  will-change: transform;
  mix-blend-mode: screen;
}
.fx-orb.a {
  width: 42vw;
  height: 42vw;
  left: -8%;
  top: 10%;
  background: rgba(124, 58, 237, 0.55);
}
.fx-orb.b {
  width: 30vw;
  height: 30vw;
  right: -5%;
  top: 40%;
  background: rgba(251, 113, 133, 0.28);
}
.fx-orb.c {
  width: 36vw;
  height: 36vw;
  left: 35%;
  bottom: -10%;
  background: rgba(167, 139, 250, 0.22);
}

.fx-line {
  position: absolute;
  width: 1px;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(167, 139, 250, 0.55), transparent);
  opacity: 0.4;
  will-change: transform, opacity;
}

/* scan sweep across sections */
.sec-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 120%;
  top: -10%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  z-index: 2;
}

.sec {
  position: relative;
  overflow: hidden;
}

/* clip reveal helpers */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
}

.ms-node .msn-orb {
  will-change: transform, box-shadow;
}

/* proof 3d */
.proof-card {
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

/* row motion */
.row {
  will-change: transform, opacity;
}
.row .i {
  will-change: transform, opacity;
}

/* finale kinetic */
.finale h2 .k {
  display: inline-flex;
}
.finale h2 em .k .ch {
  background: linear-gradient(120deg, var(--hot), #fda4af 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* statement scale stage */
.statement-text {
  will-change: transform, filter;
}
.statement-text .s-line span {
  will-change: transform, opacity, filter;
}

/* horizontal progress bar under topbar */
#film-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--hot));
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.8);
  pointer-events: none;
  transform-origin: left center;
}

/* counter ticker */
.ticker-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.02);
}
.ticker {
  display: flex;
  gap: 3rem;
  width: max-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--dim);
  will-change: transform;
}
.ticker b {
  color: var(--accent);
  font-weight: 500;
}

/* hero continuous glow pulse on CTA */
.btn-w {
  position: relative;
}
.btn-w::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent), transparent, var(--hot));
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  animation: ctaGlow 2.8s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.55;
  }
}

/* CSS fallback motion when GSAP missing */
.no-gsap .fx-orb {
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.no-gsap .fx-orb.b { animation-delay: -3s; }
.no-gsap .fx-orb.c { animation-delay: -6s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.1); }
}
.no-gsap #marquee,
.no-gsap #ticker {
  animation: slide 25s linear infinite;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.no-gsap .hero h1 .line span {
  animation: rise 0.9s ease forwards;
}
.no-gsap .hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.no-gsap .hero h1 .line:nth-child(3) span { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.motion-on #film-progress {
  transition: none;
}

html.intro-done .hero h1 .ch,
html.intro-done .hero-sub,
html.intro-done .hero-cta {
  opacity: 1 !important;
}
html.intro-done .seal,
html.intro-done #brandSeal {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Site-only reduced mode (not OS). Enable via ?reduced=1 */
html.reduced .fx-layer,
html.reduced .sec-scan,
html.reduced .btn-w::after {
  display: none !important;
}
html.reduced .k .ch {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
html.reduced .motion-on .seal {
  animation: none !important;
}
