:root {
  color-scheme: dark;
  --charcoal: #172019;
  --charcoal-deep: #0b110d;
  --charcoal-soft: #243026;
  --white: #fbfaf7;
  --glare: #ffffff;
  --silver: #d5d0c6;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --logo-x: 0px;
  --logo-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.035), transparent 24rem),
    linear-gradient(135deg, #1e2a20, #070a08);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  display: none;
}

body::before {
  z-index: 2;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::after {
  z-index: 3;
  opacity: 0.16;
  background-image:
    repeating-radial-gradient(circle at 17% 29%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 10px);
  mix-blend-mode: overlay;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px);
  place-items: center;
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.page-shell::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.05), transparent 22rem),
    linear-gradient(rgba(16, 28, 18, 0.54), rgba(7, 10, 8, 0.78));
  -webkit-mask-image:
    radial-gradient(
      circle at var(--cursor-x) var(--cursor-y),
      transparent 0 82px,
      rgba(0, 0, 0, 0.14) 150px,
      rgba(0, 0, 0, 0.58) 248px,
      black 370px
    );
  mask-image:
    radial-gradient(
      circle at var(--cursor-x) var(--cursor-y),
      transparent 0 82px,
      rgba(0, 0, 0, 0.14) 150px,
      rgba(0, 0, 0, 0.58) 248px,
      black 370px
    );
}

.page-shell::after {
  z-index: 2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    repeating-radial-gradient(circle at 17% 29%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5px),
    rgba(23, 32, 25, 0.26);
  background-size: 36px 36px, 36px 36px, auto, auto;
  backdrop-filter: saturate(0.82) contrast(0.96);
  mix-blend-mode: overlay;
  -webkit-mask-image:
    radial-gradient(
      circle at var(--cursor-x) var(--cursor-y),
      transparent 0 76px,
      rgba(0, 0, 0, 0.2) 152px,
      black 300px
    );
  mask-image:
    radial-gradient(
      circle at var(--cursor-x) var(--cursor-y),
      transparent 0 76px,
      rgba(0, 0, 0, 0.2) 152px,
      black 300px
    );
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: grayscale(0.06) contrast(1.04) brightness(0.58) saturate(0.96);
}

.cursor-spotlight {
  position: fixed;
  z-index: 3;
  left: var(--cursor-x);
  top: var(--cursor-y);
  width: min(54vw, 620px);
  min-width: 320px;
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.28;
  background:
    radial-gradient(circle, transparent 0 36%, rgba(255, 255, 255, 0.1) 48%, rgba(213, 208, 198, 0.04) 60%, transparent 74%);
  filter: blur(14px);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

html.logo-hovered .cursor-spotlight {
  opacity: 0.42;
  transform: translate(-50%, -50%) scale(1.04);
}

.ambient {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(24px);
}

.ambient-one {
  width: 38vw;
  min-width: 300px;
  aspect-ratio: 1;
  top: 9%;
  right: 11%;
  opacity: 0.12;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  animation: breathe 8s ease-in-out infinite;
}

.ambient-two {
  width: 32vw;
  min-width: 240px;
  aspect-ratio: 1;
  bottom: 7%;
  left: 10%;
  opacity: 0.11;
  background: radial-gradient(circle, rgba(213, 208, 198, 0.22), transparent 70%);
  animation: breathe 9s ease-in-out 1.2s infinite reverse;
}

.coming-soon {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(100%, 960px);
  gap: clamp(12px, 2vw, 20px);
  justify-items: center;
}

.logo-stage {
  position: relative;
  width: min(66vw, 480px);
  aspect-ratio: 2084 / 2160;
  animation: logo-arrive 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  filter:
    drop-shadow(0 24px 48px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 30px rgba(255, 255, 255, 0.08));
  transition:
    filter 260ms ease,
    transform 260ms ease;
  transform: translate3d(var(--logo-x), var(--logo-y), 0);
}

.logo-mark,
.logo-glare {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.logo-mark {
  object-fit: contain;
  opacity: 0.96;
}

.logo-glare {
  -webkit-mask: url("./assets/the-pitch-logo-white.png") center / contain no-repeat;
  mask: url("./assets/the-pitch-logo-white.png") center / contain no-repeat;
  background:
    linear-gradient(
      112deg,
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.08) 45%,
      var(--silver) 49%,
      var(--glare) 51%,
      var(--silver) 54%,
      rgba(255, 255, 255, 0.06) 59%,
      transparent 65%,
      transparent 100%
    );
  background-size: 270% 100%;
  background-position: -155% center;
  filter: blur(0.4px);
  mix-blend-mode: screen;
  opacity: 0.68;
  animation: sweep 6.2s cubic-bezier(0.72, 0, 0.18, 1) 1s infinite;
}

.logo-stage::after {
  position: absolute;
  inset: 13% 18%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: quiet-pulse 5.4s ease-in-out infinite;
}

.logo-stage:hover {
  filter:
    drop-shadow(0 28px 54px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 38px rgba(255, 255, 255, 0.14));
  transform: translate3d(var(--logo-x), calc(var(--logo-y) - 3px), 0);
}

.logo-stage:hover .logo-glare {
  animation-duration: 3.4s;
  opacity: 0.86;
}

.launch-note {
  margin: 0;
  color: rgba(251, 250, 247, 0.72);
  font-family:
    Avenir Next,
    Helvetica Neue,
    Arial,
    sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  animation: note-arrive 1100ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}

@keyframes sweep {
  0%,
  43% {
    background-position: -155% center;
  }

  72%,
  100% {
    background-position: 155% center;
  }
}

@keyframes logo-arrive {
  from {
    opacity: 0.2;
  }

  to {
    opacity: 1;
  }
}

@keyframes note-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes quiet-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.06);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, -2%, 0) scale(1.08);
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 24px;
  }

  .page-shell::before,
  .page-shell::after {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-stage {
    width: min(78vw, 350px);
  }

  .launch-note {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-spotlight {
    display: none;
  }

  .page-shell::before,
  .page-shell::after {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-stage,
  .logo-stage:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .logo-glare {
    background-position: 54% center;
  }
}
