:root {
  color-scheme: dark;
  --black: #08090d;
  --gold: #f5c451;
  --gold-soft: #ffe29a;
  --ivory: #f7f2e8;
  --blue: #56f2ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  overflow: hidden;
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: none;
}

a,
button {
  cursor: none;
}

.gateway {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.gateway__film {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 900ms ease;
}

.gateway__film.is-restarting {
  opacity: 0;
}

.gateway__shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(2, 4, 8, 0.64) 0%, transparent 34%, rgba(2, 4, 8, 0.18) 63%, rgba(2, 4, 8, 0.78) 100%),
    radial-gradient(circle at 50% 48%, transparent 30%, rgba(2, 4, 8, 0.42) 100%);
  pointer-events: none;
}

.gateway__grain {
  position: absolute;
  inset: -50%;
  z-index: -2;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  animation: grain 9s steps(8) infinite;
}

.topbar {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: clamp(22px, 4vw, 68px);
  left: clamp(22px, 4vw, 68px);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  display: block;
  width: clamp(92px, 9vw, 146px);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
  transition: transform 300ms ease, filter 300ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 26px rgba(245, 196, 81, 0.28));
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.sound {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(245, 196, 81, 0.42);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.5);
  color: rgba(247, 242, 232, 0.82);
  font: 600 10px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: border-color 250ms ease, color 250ms ease, background 250ms ease;
}

.sound:hover,
.sound:focus-visible,
.sound[aria-pressed="true"] {
  border-color: rgba(245, 196, 81, 0.9);
  background: rgba(8, 9, 13, 0.72);
  color: var(--gold-soft);
}

.sound__icon {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 17px;
  height: 14px;
}

.sound__icon i {
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transition: height 180ms ease;
}

.sound[aria-pressed="true"] .sound__icon i:nth-child(1) { animation: meter 0.8s -0.2s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(2) { animation: meter 0.65s -0.45s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(3) { animation: meter 0.9s -0.1s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__icon i:nth-child(4) { animation: meter 0.7s -0.3s ease-in-out infinite alternate; }

.gateway__content {
  position: absolute;
  left: 50%;
  bottom: clamp(50px, 6.5vh, 72px);
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(90vw, 590px);
  transform: translateX(-50%);
  text-align: center;
}

.gateway__eyebrow {
  margin: 0 0 clamp(12px, 2vh, 22px);
  color: rgba(247, 242, 232, 0.68);
  font-size: clamp(9px, 0.75vw, 11px);
  font-weight: 600;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gold-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(49.2vw, 282px);
  aspect-ratio: 4.12 / 1;
  padding: 0 clamp(17px, 2.6vw, 25px);
  overflow: visible;
  border-radius: 999px;
  color: #100c04;
  text-decoration: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42));
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), filter 360ms ease;
}

.gold-cta::after {
  content: "";
  position: absolute;
  inset: 7%;
  z-index: 1;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 246, 207, 0.34);
  pointer-events: none;
}

.gold-cta:hover,
.gold-cta:focus-visible {
  transform: translateY(-4px) scale(1.018);
  filter: drop-shadow(0 18px 34px rgba(245, 196, 81, 0.26));
}

.gold-cta:focus-visible,
.sound:focus-visible,
.brand:focus-visible,
.gateway__email:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.gold-cta__film {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  transform: translateY(-50%) scale(1.03);
  mix-blend-mode: screen;
  pointer-events: none;
}

.gold-cta__label,
.gold-cta__arrow {
  position: relative;
  z-index: 2;
  font-weight: 750;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.gold-cta__label {
  font-size: clamp(10px, 1.35vw, 14px);
  letter-spacing: -0.025em;
}

.gold-cta__arrow {
  font-size: clamp(17px, 1.8vw, 21px);
  transition: transform 300ms ease;
}

.gold-cta:hover .gold-cta__arrow,
.gold-cta:focus-visible .gold-cta__arrow {
  transform: translate(3px, -3px);
}

.gateway__email {
  margin-top: clamp(14px, 2.2vh, 24px);
  color: rgba(247, 242, 232, 0.76);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  transition: color 250ms ease;
}

.gateway__email:hover,
.gateway__email:focus-visible {
  color: var(--gold-soft);
}

.footer {
  position: absolute;
  right: clamp(22px, 4vw, 68px);
  bottom: max(22px, env(safe-area-inset-bottom));
  left: clamp(22px, 4vw, 68px);
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  color: rgba(247, 242, 232, 0.48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.footer__line {
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 196, 81, 0.08), rgba(245, 196, 81, 0.48), rgba(86, 242, 255, 0.1));
}

.cursor,
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor {
  width: 7px;
  height: 7px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(86, 242, 255, 0.8), 0 0 18px rgba(49, 92, 255, 0.46);
}

.cursor-trail {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(245, 196, 81, 0.58);
  transition: width 200ms ease, height 200ms ease, border-color 200ms ease, background 200ms ease;
}

.cursor-trail.is-link {
  width: 44px;
  height: 44px;
  border-color: rgba(245, 196, 81, 0.94);
  background: rgba(245, 196, 81, 0.06);
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 50;
  text-align: center;
}

.noscript a {
  color: var(--gold);
}

@keyframes meter {
  to { height: 13px; }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(3%, -2%); }
  40% { transform: translate(-3%, 3%); }
  60% { transform: translate(2%, 4%); }
  80% { transform: translate(-4%, -3%); }
}

@media (max-width: 720px) {
  body,
  a,
  button {
    cursor: auto;
  }

  .cursor,
  .cursor-trail {
    display: none;
  }

  .brand {
    width: 96px;
  }

  .sound {
    min-height: 36px;
    padding: 0 12px;
  }

  .gateway__content {
    bottom: max(60px, 8vh);
  }

  .gateway__eyebrow {
    letter-spacing: 0.24em;
    text-indent: 0.24em;
  }

  .gold-cta {
    width: min(54vw, 264px);
    padding-inline: 18px;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  .footer__line {
    width: 110px;
  }
}

@media (max-height: 640px) {
  .brand {
    width: 80px;
  }

  .gateway__content {
    bottom: 42px;
  }

  .gateway__email {
    margin-top: 9px;
  }

  .footer {
    display: none;
  }
}

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

  .gateway__grain {
    display: none;
  }
}

