/* Homepage — scroll-driven hero */

.home-page {
  overflow-x: hidden;
  overflow-y: auto;
  background: #080810;
}

.home-page nav.glassy-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.home-page nav.glassy-nav,
.home-page nav.glassy-nav a {
  font-family: "Bebas Neue", cursive;
}

.home-nav .home-link .coral,
.home-page .coral {
  color: #e57373;
}

.hero-scroll-track {
  height: 350vh;
  position: relative;
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#container canvas:focus-visible {
  outline: 1px solid rgba(229, 115, 115, 0.35);
  outline-offset: -1px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 0  clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vh, 6rem);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 16, 0.05) 0%,
    rgba(8, 8, 16, 0.35) 55%,
    rgba(8, 8, 16, 0.75) 100%
  );
}

.hero-copy {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(3rem, 8vh, 6rem);
  max-width: min(640px, 90vw);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.35rem, 3.5vw, 2rem);
  border-radius: 14px;
  isolation: isolate;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  pointer-events: none;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 38%,
    rgba(8, 8, 16, 0.38) 72%,
    rgba(8, 8, 16, 0) 100%
  );
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-mask-image: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-copy.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-eyebrow {
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 192, 186, 0.6);
  margin: 0 0 1rem;
}

.hero-headline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.25rem;
}

.hero-headline em {
  font-style: italic;
  color: #e57373;
}

.hero-headline--sm {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.hero-headline .coral {
  font-style: normal;
}

.hero-sub {
  font-family: "Roboto", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-sub + .hero-actions {
  margin-top: 1.25rem;
}

.hero-btn {
  font-family: "Bebas Neue", cursive;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.75rem;
  border-radius: 3px;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: auto;
}

.hero-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hero-btn--primary {
  background: #e57373;
  color: #1a1008;
}

.hero-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Roboto", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  transition: opacity 0.4s ease;
}

.scroll-hint.is-hidden {
  opacity: 0;
}

.hero-controls {
  position: absolute;
  top: clamp(5rem, 12vh, 7rem);
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 2;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(8, 8, 16, 0.55);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.hero-controls.is-dismissed {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.hero-controls__title {
  font-family: "Roboto", sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.65rem;
}

.hero-controls__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-controls__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Roboto", sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
}

.hero-controls__keys {
  display: inline-flex;
  gap: 0.2rem;
}

.hero-controls kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  font-family: "Roboto", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1;
}

.hero-controls__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  color: rgba(229, 115, 115, 0.85);
  font-size: 0.85rem;
  line-height: 1;
}

.hero-audio {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: 3.35rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Roboto", sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.hero-audio:hover {
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.hero-audio.is-playing {
  color: rgba(229, 115, 115, 0.92);
}

.hero-audio__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  font-size: 0.95rem;
  line-height: 1;
}

.hero-audio__player {
  display: none;
}

.hero-credit {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: 1.5rem;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.22);
  z-index: 1;
}

.hero-credit a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.hero-credit a:hover {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .hero-scroll-track {
    height: 300vh;
  }

  .hero-controls {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 3.25rem;
    transform: translateX(-50%);
  }

  .hero-controls.is-dismissed {
    transform: translateX(-50%) translateY(8px);
  }

  .hero-audio {
    right: auto;
    left: 50%;
    bottom: 6.5rem;
    transform: translateX(-50%);
  }

  .hero-audio:hover {
    transform: translateX(-50%) translateY(-1px);
  }

  .hero-overlay {
    align-items: flex-end;
    padding-bottom: 2.5rem;
  }

  .hero-copy {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 2.5rem;
    max-width: none;
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-copy::before {
    background: linear-gradient(
      145deg,
      rgba(8, 8, 16, 0.82) 0%,
      rgba(8, 8, 16, 0.45) 70%,
      rgba(8, 8, 16, 0) 100%
    );
  }
}
