/* ===== Hero: the promise, and a dawn breaking over the blue world. Exactly one screen. ===== */
.hero {
  --below: 17%;                               /* the ground: how far the horizon sits above the fold */
  --sx: 57%;                                  /* where the sun breaks the horizon */
  --sun: clamp(132px, 12.5vw, 250px);           /* the sun's diameter */
  --g1: 42% 62%; --g2: 70% 56%; --g3: 120% 46%; --h1: 15% 30%; --h2: 34% 50%; --s2: 50% 70%;   /* the light's spread */
  position: relative;
  display: flex; flex-direction: column;
  height: calc(100svh - var(--nav-h));
  min-height: 34rem;
  padding-top: clamp(var(--space-xl), 8vh, var(--space-3xl));
  overflow: clip;
  isolation: isolate;
}

/* --- The dawn: layered light, full-bleed, behind the type --- */
.hero__dawn { color: var(--color-ink); position: absolute; inset: 0; z-index: 0; background: var(--color-paper); }
.hero__dawn > * { position: absolute; pointer-events: none; }

/* the sky above the horizon: paling toward it (a cool lift), then warmed round the sun. Light is added (screen), never painted over, so the blue never turns grey. */
.hero__sky {                  /* a cool lift toward the horizon, across the whole width */
  left: 0; right: 0; top: 0; bottom: var(--below);
  background: linear-gradient(to top, color-mix(in oklab, var(--color-paper-3) 55%, var(--color-accent-2)), color-mix(in oklab, var(--color-paper-3) 75%, var(--color-accent-2)) 22%, color-mix(in oklab, var(--color-paper-3) 60%, var(--color-paper)) 42%, transparent 64%);
}
.hero__warm {                 /* the warmth, added as light: a wide band along the whole horizon, deepest under the sun */
  left: 0; right: 0; top: 0; bottom: var(--below);
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse var(--g1) at var(--sx) 100%, color-mix(in oklab, var(--color-dawn) 46%, transparent), color-mix(in oklab, var(--color-dawn) 18%, transparent) 50%, transparent 85%),
    radial-gradient(ellipse var(--g2) at var(--sx) 100%, color-mix(in oklab, var(--color-dawn) 24%, transparent), transparent 85%),
    radial-gradient(ellipse var(--g3) at var(--sx) 100%, color-mix(in oklab, var(--color-dawn) 16%, transparent), transparent 90%),
    linear-gradient(to top, color-mix(in oklab, var(--color-dawn) 26%, transparent), color-mix(in oklab, var(--color-dawn) 8%, transparent) 22%, transparent 40%);
}
.hero__halo {                 /* the gold gathered round the sun, laid on as colour so it stays gold */
  left: 0; right: 0; top: 0; bottom: var(--below);
  background:
    radial-gradient(ellipse var(--h1) at var(--sx) 100%, color-mix(in oklab, var(--color-dawn) 85%, transparent), color-mix(in oklab, var(--color-dawn) 35%, transparent) 55%, transparent 100%),
    radial-gradient(ellipse var(--h2) at var(--sx) 100%, color-mix(in oklab, var(--color-dawn) 34%, transparent), transparent 100%);
}

/* the sun, just breaking: a soft disc whose lower half the ground still hides */
.hero__sun {
  left: var(--sx); bottom: var(--below);
  width: var(--sun); aspect-ratio: 1;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--color-dawn) 55%, var(--color-ink)) 0, color-mix(in oklab, var(--color-dawn) 80%, var(--color-ink)) 30%, var(--color-dawn) 52%, color-mix(in oklab, var(--color-dawn) 55%, transparent) 63%, transparent 71%);
}

/* the ground below the horizon: a step darker than the sky, warmed only near the light */
.hero__ground {               /* a thin band of ground, a step darker than the sky */
  left: 0; right: 0; bottom: 0; height: var(--below);
  background: linear-gradient(to bottom, color-mix(in oklab, var(--color-paper) 70%, var(--color-accent-ink)), var(--color-paper));
}

/* the reflection: the sun's light laid on the ground below it, soft, narrowing as it comes near */
.hero__shine {                /* the ground catching the light: a broad warm path toward the viewer and a faint sheen across the band */
  left: 0; right: 0; top: calc(100% - var(--below)); bottom: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse calc(var(--sun) * 0.6) 150% at var(--sx) 0, color-mix(in oklab, var(--color-dawn) 62%, transparent), color-mix(in oklab, var(--color-dawn) 24%, transparent) 45%, transparent 100%),
    radial-gradient(ellipse calc(var(--sun) * 1.5) 120% at var(--sx) 0, color-mix(in oklab, var(--color-dawn) 20%, transparent), transparent 100%),
    radial-gradient(ellipse var(--s2) at var(--sx) 0, color-mix(in oklab, var(--color-dawn) 16%, transparent), transparent 100%),
    linear-gradient(to bottom, color-mix(in oklab, var(--color-dawn) 12%, transparent), color-mix(in oklab, var(--color-dawn) 4%, transparent) 70%, transparent);
}

/* the horizon's thin bright line, brightest under the sun and running out to both edges */
.hero__edge {
  left: 0; right: 0; bottom: var(--below); height: 2px; transform: translateY(1px); mix-blend-mode: screen;
  background: linear-gradient(to right,
    color-mix(in oklab, var(--color-dawn) 34%, transparent),
    color-mix(in oklab, var(--color-dawn) 70%, transparent) calc(var(--sx) - 26%),
    color-mix(in oklab, var(--color-dawn) 50%, var(--color-ink)) var(--sx),
    color-mix(in oklab, var(--color-dawn) 70%, transparent) calc(var(--sx) + 26%),
    color-mix(in oklab, var(--color-dawn) 34%, transparent));
}

/* a very fine grain so the light never bands */
.hero__grain {
  inset: 0; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* --- The title and its credits: a title card, the credits set beside its last line --- */
.hero__copy {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: max-content minmax(23.75rem, 25rem);
  justify-content: space-between; align-items: end; column-gap: var(--space-2xl);
  flex: none;
}
.hero__title { max-width: none; font-size: var(--text-display); line-height: 1; letter-spacing: -0.025em; }
.hero__ln { display: block; }
.hero__credits { display: grid; gap: var(--space-lg); padding-bottom: 0.1em; }
.hero__line { max-width: 34ch; color: var(--color-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (max-width: 76rem) {
  .hero__copy { grid-template-columns: minmax(0, 1fr); row-gap: clamp(var(--space-lg), 3.5vh, var(--space-xl)); }
  .hero__credits { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-xl); }
}

/* --- Entrance, once, on load. The type lands first (0 to about 600ms); then one slow gesture:
       the light comes up and settles over two seconds, the sun rising out of the ground with it,
       its reflection following a beat behind. After that, only a very slow breathing of the glow. --- */
@keyframes hero-title { from { opacity: 0; transform: translateY(20px); } }
@keyframes hero-credit { from { opacity: 0; transform: translateY(8px); } }
@keyframes dawn-light { from { opacity: 0; } }
@keyframes dawn-sun { from { opacity: 0.2; transform: translate(-50%, 92%); } }
@keyframes dawn-breathe { to { opacity: 0.88; } }
.js .hero__title { animation: hero-title 560ms var(--ease-out) both; }
.js .hero__credits { animation: hero-credit 440ms var(--ease-out) 140ms both; }
.js .hero__sky { animation: dawn-light 2000ms cubic-bezier(0.3, 0, 0.2, 1) 500ms both; }
.js .hero__warm { animation: dawn-light 2000ms cubic-bezier(0.3, 0, 0.2, 1) 500ms both, dawn-breathe 7s ease-in-out 2500ms infinite alternate; }
.js .hero__halo { animation: dawn-light 2000ms cubic-bezier(0.3, 0, 0.2, 1) 500ms both; }
.js .hero__sun { animation: dawn-sun 2000ms cubic-bezier(0.3, 0, 0.2, 1) 500ms both; }
.js .hero__edge { animation: dawn-light 1800ms cubic-bezier(0.3, 0, 0.2, 1) 600ms both; }
.js .hero__shine { animation: dawn-light 1800ms cubic-bezier(0.3, 0, 0.2, 1) 750ms both; }
@media (prefers-reduced-motion: reduce) {
  .js .hero__title, .js .hero__credits, .js .hero__sky, .js .hero__warm, .js .hero__halo, .js .hero__sun, .js .hero__edge, .js .hero__shine { animation: none; }
}

/* --- Narrower screens: the light spreads wider in proportion, so it never narrows into a beam --- */
@media (max-width: 60rem) {
  .hero { --g1: 62% 60%; --g2: 100% 54%; --g3: 170% 46%; --h1: 22% 30%; --h2: 50% 48%; --s2: 80% 70%; }
}

/* --- Phones: the hero runs to its natural height; the dawn sits under the actions --- */
@media (max-width: 40rem) {
  .hero { --below: 84px; --sx: 60%; --sun: 120px; --g1: 95% 34%; --g2: 150% 30%; --g3: 240% 26%; --h1: 34% 16%; --h2: 70% 26%; --s2: 110% 80%; height: auto; min-height: 0; padding-bottom: 340px; }
  .hero__title { line-height: 1.02; }
  .hero__credits { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { flex: 1 1 auto; }
}
