:root {
  --cream: #f6efdc;
  --cream-dim: rgba(246, 239, 220, 0.78);
  --moss-deep: #1f2612;
  --amber: #e9c27a;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html, body {
  height: 100%;
  background: var(--moss-deep);
  color: var(--cream);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

.poster,
.scene,
.scene spline-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.poster {
  object-fit: cover;
  object-position: 50% 45%;
  z-index: 0;
}

.scene { z-index: 1; }

/* Keeps text legible over any part of the scene without dimming the hero. */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(22, 27, 12, 0.82) 0%, rgba(22, 27, 12, 0.45) 26%, rgba(22, 27, 12, 0) 52%),
    radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(18, 22, 10, 0.35) 100%);
}

.intro {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: max(clamp(28px, 6vh, 64px), env(safe-area-inset-bottom));
  max-width: 34rem;
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 30rem;
  text-wrap: pretty;
}

.links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  pointer-events: auto;
}

.links a {
  color: var(--cream);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(246, 239, 220, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.links a:hover { color: var(--amber); border-color: var(--amber); }
.links a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 640px) {
  .poster { object-position: 50% 35%; }
  .intro { bottom: max(28px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .links a { transition: none; }
}
