* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
  color: rgba(255, 255, 255, 0.86);
}

a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  opacity: 0.72;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    text-shadow 220ms ease;
}

a:hover,
a:focus-visible {
  color: #5aa7ff;
  opacity: 1;
  text-shadow: 0 0 16px rgba(14, 76, 148, 0.95), 0 0 30px rgba(87, 160, 210, 0.34);
}

body::before {
  content: "";
  position: fixed;
  inset: -14%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 76, 148, 0.24), transparent 30%),
    linear-gradient(to left, rgba(14, 76, 148, 0.22), transparent 28%),
    linear-gradient(to top, rgba(14, 76, 148, 0.4), transparent 38%),
    linear-gradient(to right, rgba(14, 76, 148, 0.2), transparent 28%),
    radial-gradient(ellipse at top left, rgba(14, 76, 148, 0.24) 0%, transparent 46%),
    radial-gradient(ellipse at top right, rgba(14, 76, 148, 0.24) 0%, transparent 46%),
    radial-gradient(ellipse at bottom left, rgba(14, 76, 148, 0.32) 0%, transparent 52%),
    radial-gradient(ellipse at bottom right, rgba(14, 76, 148, 0.32) 0%, transparent 52%);
  filter: blur(46px) saturate(1.35);
  opacity: 0.7;
  transform: scale(1);
  animation: breatheGlow 4.8s ease-in-out infinite;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  padding: 32px 48px 32px 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.984rem;
  letter-spacing: 0;
}

.site-header a {
  opacity: 0.68;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    text-shadow 220ms ease,
    visibility 0s linear 0s;
}

.site-header a:hover,
.site-header a:focus-visible,
.site-header a.is-hovered {
  color: #57a0d2 !important;
  opacity: 1 !important;
  text-shadow: 0 0 12px rgba(87, 160, 210, 0.95), 0 0 28px rgba(14, 76, 148, 0.95) !important;
}

.logo {
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  transition:
    opacity 1.5s ease,
    visibility 0s linear 0s;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-left: 96px;
  display: flex;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1.5s ease,
    visibility 0s linear 0s;
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Franklin Gothic Medium", "Arial Black", Arial, sans-serif;
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  gap: 0.12em;
  letter-spacing: 0;
  text-transform: uppercase;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.72));
}

.hero span {
  width: fit-content;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #b9c0c8;
  text-shadow: none;
  animation: neonMalfunction 8s infinite;
}

.hero span:nth-child(2) {
  animation-delay: 120ms;
}

.about-page {
  position: fixed;
  top: 104px;
  left: 96px;
  z-index: 3;
  width: min(78vw, 980px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(220px, 30vw) minmax(280px, 1fr);
  align-items: start;
  gap: 42px;
  transition:
    opacity 1.5s ease,
    visibility 0s linear 1.5s;
}

.about-page.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 1.5s ease,
    visibility 0s linear 0s;
}

.about-image {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
}

.about-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.72;
  text-align: left;
}

.about-copy h2 {
  margin: 0 0 0.24em;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}

.about-subheading {
  margin: 0 0 1.55em !important;
  color: #57a0d2;
  font-size: 1rem;
  font-weight: 600;
}

.about-copy p {
  margin: 0 0 1.2em;
}

.about-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
}

.about-links li {
  min-width: 0;
}

.about-links a,
.about-copy a {
  color: rgba(255, 255, 255, 0.88);
  opacity: 0.86;
  word-break: break-word;
}

.music-control {
  position: fixed;
  right: 34px;
  bottom: 30px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.music-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(87, 160, 210, 0.42);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(5, 5, 5, 0.54);
  box-shadow: 0 0 18px rgba(14, 76, 148, 0.22);
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.music-button:hover,
.music-button:focus-visible {
  color: #57a0d2;
  border-color: rgba(87, 160, 210, 0.85);
  box-shadow: 0 0 22px rgba(14, 76, 148, 0.95), 0 0 44px rgba(87, 160, 210, 0.28);
  opacity: 1;
  transform: translateY(-1px);
}

.music-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-button:not(.is-playing) {
  opacity: 0.48;
}

.song-tooltip {
  position: absolute;
  right: 58px;
  max-width: calc(100vw - 118px);
  padding: 9px 15px;
  border: 1px solid rgba(87, 160, 210, 0.36);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(5, 5, 5, 0.78);
  box-shadow: 0 0 20px rgba(14, 76, 148, 0.32);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

body.is-main-hidden .hero {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.5s ease,
    visibility 0s linear 1.5s;
}

body.is-page-transitioning .logo {
  pointer-events: none;
}

.music-control:hover .song-tooltip,
.music-button:hover + .song-tooltip,
.music-button:focus-visible + .song-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes breatheGlow {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.955);
  }

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

@keyframes neonMalfunction {
  0%,
  7.5%,
  14%,
  100% {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #b9c0c8;
    text-shadow: none;
    filter: none;
  }

  8%,
  10.8% {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #57a0d2;
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.92),
      0 0 14px rgba(87, 160, 210, 1),
      0 0 30px rgba(14, 76, 148, 0.95),
      0 0 54px rgba(14, 76, 148, 0.74);
    filter: brightness(1.35);
  }

  11.2% {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #b9c0c8;
    text-shadow: none;
    filter: none;
  }

  11.7% {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #57a0d2;
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.88),
      0 0 18px rgba(87, 160, 210, 1),
      0 0 38px rgba(14, 76, 148, 0.9);
    filter: brightness(1.25);
  }

  12.1% {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #b9c0c8;
    text-shadow: none;
    filter: none;
  }
}

@media (max-width: 767px) {
  .site-header {
    width: auto;
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
  }

  .nav-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    justify-content: center;
    padding-left: 0;
    padding-inline: 24px;
    text-align: center;
  }

  .hero h1 {
    align-items: center;
    font-size: clamp(3rem, 16vw, 4rem);
  }

  .about-page {
    top: 170px;
    left: 24px;
    right: 24px;
    width: auto;
    min-width: 0;
    max-height: calc(100vh - 198px);
    overflow-y: auto;
    grid-template-columns: minmax(112px, 31vw) minmax(0, 1fr);
    gap: 18px 22px;
  }

  .about-image {
    width: 100%;
  }

  .about-copy {
    font-size: 0.78rem;
    line-height: 1.58;
  }

  .about-copy h2 {
    font-size: 2rem;
  }

  .about-subheading,
  .about-links {
    font-size: 0.76rem;
  }

  .about-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .music-control {
    right: 22px;
    bottom: 22px;
  }

  .song-tooltip {
    right: 54px;
    font-size: 0.68rem;
  }
}
