:root {
  --bg: #ffffff;
  --ink: #1c1b19;
  --ink-soft: #6b6660;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

#hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Tagline overlay — crisp HTML text over the canvas. */
.tagline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 940px);
  text-align: center;
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
}

.tagline__lines {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.tagline__lines span {
  display: block;
}

.tagline__lines span:last-child {
  font-style: italic;
  color: var(--ink-soft);
}

.tagline__sub {
  margin: 1.6rem auto 0;
  max-width: 36ch;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Initial scroll cue, fades out once scrolling begins. */
.scrollhint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
  will-change: opacity;
}

.scrollhint__arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ink-soft), transparent);
  animation: hintPulse 2.2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%,
  100% {
    transform: scaleY(0.6);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Reduced motion: calm still, tagline lower so it doesn't collide with figure. */
body.reduced-motion .tagline {
  top: auto;
  bottom: 8%;
  transform: translate(-50%, 0) !important;
}

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