/* Site-level styles (linked as a separate stylesheet for crawlability).
   Tailwind utilities remain in the Next.js-compiled globals bundle. */

/* Static ambient backdrop until the canvas animation mounts. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 59, 48, 0.12), transparent 70%),
    #020617;
}

/* Subtle premium ambient glow used behind hero/section headers. */
.brand-glow {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 59, 48, 0.12), transparent 70%);
}

/* Faint grid texture for hero backdrops. */
.grid-texture {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 0%, black, transparent 80%);
}

/* Reading progress bar */
.reading-progress {
  background: linear-gradient(90deg, #ff6b61, #ff3b30);
}

/* ---------------------------------------------------------------------------
   Ecosystem orbit (hero) — subtle, slow pulse on each service node. The orbit
   rotation itself is driven by Framer Motion in EcosystemOrbit.tsx.
--------------------------------------------------------------------------- */
@keyframes ecosystem-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.12);
  }
}

.ecosystem-pulse {
  animation: ecosystem-pulse 7s ease-in-out infinite;
}

/* Auto-scrolling logo marquee. The track holds two identical copies of the
   list, so translating by -50% loops seamlessly. */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 45s linear infinite;
}

/* Edge fade so logos appear/disappear smoothly. */
.marquee-mask {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

/* ---------------------------------------------------------------------------
   Luxury VR marketing campaign page (/bespoke-vr-marketing)
   Cinematic, dark, premium — closer to a private-aviation/automotive brand.
--------------------------------------------------------------------------- */

/* Slow Ken Burns drift on full-bleed cinematic imagery. */
@keyframes lux-kenburns {
  0% {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.18) translate3d(-1.5%, -2%, 0);
  }
}

.lux-kenburns {
  animation: lux-kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* Soft vertical drift used on the floating scroll cue. */
@keyframes lux-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

.lux-float {
  animation: lux-float 2.4s ease-in-out infinite;
}

/* Tracked-out luxury eyebrow lettering. */
.lux-eyebrow {
  letter-spacing: 0.42em;
}

/* Fine film-grain / vignette overlay for cinematic depth. */
.lux-vignette {
  background: radial-gradient(
    120% 90% at 50% 30%,
    transparent 40%,
    rgba(2, 6, 23, 0.55) 100%
  );
}

/* Each question screen in the campaign brief slides up as it mounts. */
@keyframes lux-step-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lux-step-in {
  animation: lux-step-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------------------------------------------------------------------------
   Shopify Buy Button — restyle injected product UI to the dark Photoplan site.
--------------------------------------------------------------------------- */
.shopify-buy-host {
  color: #e2e8f0;
  font-family: var(--font-inter), Inter, system-ui, sans-serif;
}

.shopify-buy-host .shopify-buy__product {
  background: transparent !important;
}

.shopify-buy-host .shopify-buy__product-title,
.shopify-buy-host .shopify-buy__price,
.shopify-buy-host .shopify-buy__product__variant-title {
  color: #ffffff !important;
}

.shopify-buy-host .shopify-buy__product-description,
.shopify-buy-host .shopify-buy__product-description p,
.shopify-buy-host .shopify-buy__product-description li,
.shopify-buy-host .shopify-buy__product-description span {
  color: #cbd5e1 !important;
}

.shopify-buy-host .shopify-buy__option-select__label {
  color: #94a3b8 !important;
}

/* Selects/quantity stay light fields — dark text so values remain visible. */
.shopify-buy-host select,
.shopify-buy-host .shopify-buy__option-select__select,
.shopify-buy-host .shopify-buy__quantity,
.shopify-buy-host .shopify-buy__quantity-input,
.shopify-buy-host .shopify-buy__quantity-container input {
  background-color: #ffffff !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.shopify-buy-host select option,
.shopify-buy-host .shopify-buy__option-select__select option {
  background-color: #ffffff;
  color: #0f172a;
}

.shopify-buy-host .shopify-buy__btn,
.shopify-buy-host .shopify-buy__btn--parent {
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ff3b30, #c8120a) !important;
  box-shadow: 0 10px 24px rgba(255, 59, 48, 0.25) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.shopify-buy-host .shopify-buy__btn:hover,
.shopify-buy-host .shopify-buy__btn--parent:hover {
  filter: brightness(1.08);
}

.shopify-buy-host .shopify-buy__carousel-button,
.shopify-buy-host .shopify-buy__carousel__dot {
  border-color: #334155 !important;
}

.shopify-buy-host .shopify-buy__carousel__dot--active {
  background-color: #ff3b30 !important;
  border-color: #ff3b30 !important;
}

.shopify-buy-host .shopify-buy-fallback {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
}

.shopify-buy-host .shopify-buy-fallback a {
  color: #ff6b61;
  font-weight: 600;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-marquee {
    animation: none;
  }

  .lux-kenburns,
  .lux-float,
  .lux-step-in,
  .ecosystem-pulse {
    animation: none;
  }
}
