/* ============================================================================
   0BVIOUSLY.LOVE — hero.css
   The atmospheric hero. Canvas paints the animated lighthouse scene; a CSS-only
   painterly gradient scene (.hero__scene-fallback) shows when motion is reduced
   or canvas is unavailable (hero[data-static]).
   ============================================================================ */

.hero {
  position: relative;
  min-height: 68svh;             /* cohesive cinematic band; not full-viewport */
  min-height: 68vh;              /* fallback for older browsers */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-night);
  isolation: isolate;
}

/* Soft vignette over the canvas so the title reads cleanly across the image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-bg);
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 52%, rgba(14,22,34,0.55) 0%, rgba(14,22,34,0) 72%),
    linear-gradient(180deg, rgba(14,22,34,0.10) 0%, rgba(14,22,34,0) 38%, rgba(14,22,34,0) 70%, rgba(14,22,34,0.45) 100%);
}

/* The animated canvas fills the hero behind the content */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-hero-bg);
  pointer-events: none;          /* content stays interactive; parallax on hero */
}
/* re-enable pointer events on the hero itself for parallax tracking */
.hero { touch-action: pan-y; }

/* ----------------------------------------------------------------------------
   CSS-ONLY STATIC FALLBACK SCENE (reduced motion / no canvas)
   A painterly amber-from-indigo gradient with a simple lighthouse glyph glow.
   Hidden by default; shown when .hero has [data-static].
   ---------------------------------------------------------------------------- */
.hero__scene-fallback {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-bg);
  display: none;
  background:
    radial-gradient(120% 80% at 50% 78%, rgba(232,163,61,0.18), transparent 55%),
    radial-gradient(60% 40% at 50% 62%, rgba(214,119,47,0.22), transparent 60%),
    linear-gradient(180deg, var(--c-night) 0%, var(--c-deep) 58%, var(--c-sea) 64%, var(--c-night) 100%);
}
.hero[data-static] .hero__scene-fallback { display: block; }
.hero[data-static] .hero__canvas { display: none; }

/* a tiny CSS lighthouse glow + sliver for the static scene */
.hero__scene-fallback::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 34%;
  width: 10px; height: 130px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #11202A, #0A0F16);
  border-radius: 3px;
}
.hero__scene-fallback::after {
  content: "";
  position: absolute;
  left: 50%; bottom: calc(34% + 110px);
  width: 64px; height: 64px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,61,0.95), rgba(214,119,47,0.35) 45%, transparent 70%);
  filter: blur(2px);
}

/* ----------------------------------------------------------------------------
   HERO CONTENT
   ---------------------------------------------------------------------------- */
.hero__content {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(var(--sp-7), 9vh, var(--sp-9));
  text-align: center;
}
.hero__inner {
  max-width: 880px;
  width: 100%;
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-4);
}
.hero__title {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--c-bone);
  text-shadow: 0 2px 28px rgba(0,0,0,0.6), 0 0 80px rgba(0,0,0,0.35);
  text-wrap: balance;
  max-width: 22ch;
  margin-inline: auto;
}
.hero__lede {
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: var(--c-driftwood);
  max-width: 54ch;
  margin-inline: auto;
  line-height: var(--lh-snug);
  text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}
.hero__actions {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* PLACEHOLDER tag styling so the content step can find/replace easily */
.is-placeholder {
  position: relative;
}
.is-placeholder::after {
  content: "PLACEHOLDER";
  position: absolute;
  top: -1.4em; left: 0;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--c-fire);
  opacity: 0.7;
  pointer-events: none;
}

/* subtle scroll cue at the bottom of the hero */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--sp-5);
  transform: translateX(-50%);
  z-index: var(--z-base);
  color: var(--c-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-xwide);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.hero__cue-line {
  width: 1px; height: 2.5rem;
  background: linear-gradient(var(--c-amber), transparent);
  animation: cueDrift 2.6s var(--ease-soft) infinite;
}
@keyframes cueDrift {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cue-line { animation: none; opacity: 0.6; }
}

/* ----------------------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero { min-height: 62svh; min-height: 62vh; }
  .hero__content { padding-block: clamp(var(--sp-7), 11vh, var(--sp-9)); }
  .hero__inner { max-width: 100%; }
  .hero__cue { display: none; }
}
