/* Fixed, whole-site scroll-scrubbed background.
   Kept at z-index:0 (not negative) — body has no background of its own,
   so this paints at the true bottom without a positive-z-index ancestor
   background sneaking on top of it (a classic negative-z-index pitfall). */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: var(--color-bg);
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 8, 8, 0.2) 0%, rgba(10, 8, 8, 0.08) 40%, rgba(10, 8, 8, 0.3) 100%);
}

.bg-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: var(--color-bg);
  color: rgba(240, 239, 239, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity var(--dur-med) var(--ease-standard);
}

.bg-loader__bar {
  width: min(220px, 60vw);
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(240, 239, 239, 0.16);
  overflow: hidden;
}

.bg-loader__fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary-light);
  transition: width 120ms linear;
}

.bg-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hero content */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 10vh, 7rem);
}

.hero-content {
  position: relative;
}

.hero-content h1 {
  max-width: 16ch;
}

.hero-content__sub {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--color-fg-muted);
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 4rem;
  }

  .hero-content h1 {
    max-width: 13ch;
  }
}
