/* The harness variant of the Astrolabe landing page (Dan, 2026-11-20).
   Only the hero differs from index.html, so the two can be tested against
   each other. The painting is the hero: a head-on stampede of people, each
   driving the AI they chose, all linked by gold threads. Tokens only, no raw
   hex, same rule as page.css. */

.hh {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* The page pads every later section deeply (main > section:not(.hero));
   the herd needs that room, so this hero takes only the side padding. */
main > section.hh:not(.hero) { padding: 0; }
main > section.hh:not(.hero)::before { content: none; }

/* The painting sits UNDER the words, never behind them, at its own shape,
   so the riders stay rider-sized and every line of copy is on clear navy.
   The mask melts its edges into the page sky so no frame shows. */
.hh-art {
  display: block;
  width: 100%; height: auto;
  margin-top: clamp(-36px, -2vw, -12px);
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, var(--ink) 16%, var(--ink) 86%, transparent 100%),
    linear-gradient(to right, transparent 0%, var(--ink) 6%, var(--ink) 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, var(--ink) 16%, var(--ink) 86%, transparent 100%),
    linear-gradient(to right, transparent 0%, var(--ink) 6%, var(--ink) 94%, transparent 100%);
  mask-composite: intersect;
  animation: hh-push 40s ease-out both;
  position: relative; z-index: -1;
}
/* one slow camera push, the only thing that moves */
@keyframes hh-push { from { transform: scale(1.05); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hh-art { animation: none; } }

.hh-text {
  position: relative; order: -1;
  padding: clamp(28px, 3.4vw, 56px) var(--site-pad) 0;
  text-align: center;
  max-width: 1000px; margin: 0 auto;
}
.hh-statement {
  margin: 0;
  font: 600 var(--head-3xl)/1.02 var(--display);
  letter-spacing: -0.02em; color: var(--ink);
  text-shadow: 0 2px 28px color-mix(in srgb, var(--paper) 85%, transparent);
}
.hh-bridge {
  margin: clamp(16px, 1.8vw, 26px) auto 0; max-width: 44ch;
  font: clamp(19px, 1.4vw, 22px)/1.5 var(--body); color: var(--ink-2);
  text-shadow: 0 1px 18px var(--paper);
}
.hh .acts { justify-content: center; }

/* the models, named once in words so the picture is never the only place
   they are said, and so a screen reader hears them */
.hh-models {
  margin: clamp(30px, 2.8vw, 44px) auto 0;
  font: var(--text-sm)/1.5 var(--body); color: var(--ink-2);
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .hh-text { padding-top: 24px; }
  /* a phone keeps the middle of the herd at a readable size */
  .hh-art { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 72%; margin-top: -10px; }
}

/* Corey, in his words (he said we can use them). Set apart from the copy
   above it: warm gold serif italic, a large soft opening mark, more air. */
.hh-quote {
  position: relative;
  margin: clamp(52px, 4.4vw, 68px) auto 0; max-width: 40ch;
  font: italic 400 clamp(19px, 1.45vw, 23px)/1.4 var(--display);
  color: color-mix(in srgb, var(--kind-reference) 70%, var(--ink));
}
.hh-quote::before {
  content: "\201C";
  position: absolute; left: 50%; top: -0.62em; translate: -50% 0;
  font: 600 2.4em/1 var(--display);
  color: color-mix(in srgb, var(--kind-reference) 45%, transparent);
  pointer-events: none;
}
/* Dan, 2026-11-23: lead with "life-changing", the tools line follows smaller. */
.hh-quote small { display: block; margin-top: 0.45em; font-size: 0.82em; line-height: 1.45; color: var(--ink-2); }
.hh-quote span { display: block; margin-top: 0.6em; font: 500 var(--text-xs)/1.4 var(--body); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* hh-sky: the page takes the painting's night (Dan, 2026-11-20: "coordinate
   with the navy tone of the hero"). Matched to the painted sky (Dan: "the blue of the page background should better match the blue of the hero sky"), fading from a lighter top,
   with less of the default aurora, with only the faint green and violet the painted sky carries. */
html[data-theme="dark"] body {
  /* --hh-sky is the painted sky behind the riders (sampled from the art), built
     from tokens; the top of the page fades down into it */
  --hh-sky: color-mix(in srgb, color-mix(in srgb, var(--paper) 74%, var(--paper-up)) 95%, var(--kind-session));
  background-color: var(--hh-sky);
  background-image:
    radial-gradient(60vw 34vw at 50% 0%, color-mix(in srgb, var(--kind-session) 8%, transparent), transparent 70%),
    radial-gradient(50vw 40vw at 85% 30%, color-mix(in srgb, var(--kind-craft) 5%, transparent), transparent 70%),
    linear-gradient(to bottom, color-mix(in srgb, var(--paper-up) 70%, var(--hh-sky)) 0%, var(--hh-sky) 38%, var(--hh-sky) 100%);
}
