@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --navy: #020817;
  --navy-mid: #071a33;
  --ink: #edf6ff;
  --muted: rgba(237, 246, 255, 0.78);
  --line: rgba(237, 246, 255, 0.18);
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--navy);
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero-page {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.hero-video,
.video-fallback,
.navy-grade,
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-video {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(1) contrast(1.02) brightness(1);
  transition:
    opacity 420ms ease,
    filter 420ms ease;
  will-change: opacity, filter;
}

.video-fallback {
  z-index: 0;
  background:
    radial-gradient(ellipse at 62% 42%, rgba(42, 92, 145, 0.28), transparent 36rem),
    linear-gradient(145deg, rgba(3, 7, 18, 0.45), rgba(6, 21, 43, 0.45) 52%, rgba(2, 8, 23, 0.55)),
    url("pulselore-radio-ashtray-hero.png") center / cover no-repeat,
    linear-gradient(145deg, #030712, #06152b 52%, #020817);
}

.navy-grade {
  z-index: 2;
  background:
    radial-gradient(ellipse at 64% 45%, rgba(36, 70, 130, 0.04), transparent 38rem),
    linear-gradient(90deg, rgba(2, 8, 23, 0.08), rgba(4, 14, 35, 0.02) 42%, rgba(2, 8, 23, 0.06)),
    linear-gradient(180deg, rgba(2, 8, 23, 0.16), transparent 34%, rgba(2, 8, 23, 0.12));
  mix-blend-mode: normal;
}

.grain {
  z-index: 6;
  opacity: 0.04;
  mix-blend-mode: soft-light;
  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='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

.top-bar {
  position: fixed;
  pointer-events: none;
}

.top-bar {
  z-index: 8;
  display: flex;
  align-items: center;
  top: 0;
  right: 0;
  left: 0;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.8vw, 42px) clamp(22px, 4.5vw, 82px);
}

.site-url,
.station-nav {
  pointer-events: auto;
}

.site-url,
.station-nav a {
  color: rgba(237, 246, 255, 0.74);
  font-size: clamp(9px, 0.58vw, 12px);
  font-weight: 760;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.82);
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.site-url {
  white-space: nowrap;
}

.station-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(13px, 1.45vw, 28px);
}

.station-nav a {
  position: relative;
  white-space: nowrap;
}

.station-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(237, 246, 255, 0.84), transparent);
  opacity: 0;
  transform: scaleX(0.22);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-url:hover,
.site-url:focus-visible,
.station-nav a:hover,
.station-nav a:focus-visible {
  color: #ffffff;
  outline: none;
  text-shadow:
    0 0 18px rgba(113, 189, 255, 0.28),
    0 0 26px rgba(0, 0, 0, 0.9);
}

.station-nav a:hover::after,
.station-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.station-nav a:not(:last-child)::before {
  position: absolute;
  top: 50%;
  right: calc(clamp(13px, 1.45vw, 28px) * -0.58);
  width: 1px;
  height: 0.8em;
  content: "";
  background: rgba(237, 246, 255, 0.18);
  transform: translateY(-50%);
}

.sound-toggle {
  position: fixed;
  right: clamp(18px, 3vw, 48px);
  bottom: clamp(18px, 3vw, 48px);
  z-index: 9;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.86);
  font: 700 10px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  background: rgba(8, 10, 18, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: #fff;
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes introFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 920px) {
  body {
    overflow: hidden;
  }

  .top-bar {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 18px;
    padding: 18px 18px 0;
    max-width: 100vw;
  }

  .station-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    justify-content: start;
    gap: 9px 16px;
  }

  .site-url,
  .station-nav a {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .station-nav a::before {
    display: none;
  }

  .hero-video {
    object-position: center;
  }
}

@media (max-width: 520px) {
  .navy-grade {
    background:
      linear-gradient(180deg, rgba(2, 8, 23, 0.16), transparent 38%, rgba(2, 8, 23, 0.14));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    animation: none;
  }
}
