:root {
  color-scheme: dark;
  --cursor-x: 50vw;
  --cursor-y: 35vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000000;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.05), transparent 16%),
    linear-gradient(180deg, #111111 0%, #050505 36%, #000000 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  opacity: 0.35;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(245, 245, 245, 0.16);
  color: #ffffff;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at center, transparent 58%, rgba(0, 0, 0, 0.46) 100%);
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--cursor-x) var(--cursor-y),
    rgba(255, 255, 255, 0.12),
    transparent 65%
  );
  opacity: 0.82;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(245, 245, 245, 0.86);
  transition: color 220ms ease, transform 220ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.65rem;
  height: 1px;
  background: rgba(245, 245, 245, 0.78);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(0.92);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 900ms cubic-bezier(0.2, 1, 0.22, 1),
    transform 900ms cubic-bezier(0.2, 1, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    transparent 18%,
    transparent 82%,
    rgba(255, 255, 255, 0.08)
  );
  -webkit-mask:
    linear-gradient(#ffffff 0 0) content-box,
    linear-gradient(#ffffff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-visual {
  --shift-x: 0px;
  --shift-y: 0px;
}

.hero-visual img {
  transform: scale(1.08) translate3d(var(--shift-x), var(--shift-y), 0);
  transition:
    transform 260ms ease-out,
    filter 400ms ease;
  will-change: transform;
}

.hero-visual:hover img {
  filter: grayscale(0.92) contrast(1.12) brightness(0.48);
}

.glass-play {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 44px rgba(0, 0, 0, 0.42);
}

.glass-play svg {
  transform: translateX(2px);
}

.floating-orb {
  animation: orbPulse 4.8s ease-in-out infinite;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.45);
}

.card-sheen {
  position: relative;
  overflow: hidden;
}

.card-sheen::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -120%;
  width: 70%;
  height: 240%;
  transform: rotate(12deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: transform 800ms ease;
}

.card-sheen:hover::after {
  transform: translate3d(210%, 0, 0) rotate(12deg);
}

.search-panel {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(8, 8, 8, 0.96));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.marble-line {
  background: linear-gradient(90deg, transparent, rgba(245, 245, 245, 0.75), transparent);
}

.boot-fallback {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.boot-fallback__eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.74rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.boot-fallback__title {
  margin: 1.5rem 0 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.boot-fallback__text {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.95rem;
  line-height: 1.9;
}

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

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

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

  .reveal,
  .hero-visual img,
  .nav-link,
  .nav-link::after,
  .card-sheen::after,
  .floating-orb {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #050505;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
