/* PROTOTYPE — overpass/hero.css: the hero (the direction's §8.1, the wireframes of §7). Owned with overpass/hero.js. */

.hero { position: relative; height: 100svh; min-height: 640px; max-height: 980px; overflow: hidden; background: #DCE2E7; isolation: isolate; }
.hero-pic { position: absolute; inset: 0; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fog {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(233, 237, 240, .97) 0, rgba(233, 237, 240, .94) 31%, rgba(233, 237, 240, .6) 45%, rgba(233, 237, 240, 0) 58%),
    linear-gradient(0deg, var(--overcast) 0, rgba(233, 237, 240, 0) 15%);
}
.mast { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; padding: 20px var(--gut) 0; }
.brand { font-weight: 700; font-stretch: var(--wdth-brand); font-size: 1.18rem; line-height: 1; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand b { font-weight: 400; color: var(--ink-2); margin-left: .5em; }
.hero-copy { position: relative; z-index: 2; padding: clamp(22px, 6.2vh, 66px) var(--gut) 0; max-width: min(44rem, 54vw); }
.hero h1 {
  font-size: var(--fs-hero); font-weight: 720; font-stretch: var(--wdth-hero); line-height: var(--lh-hero);
  letter-spacing: var(--track-hero); max-width: 9.5em; color: var(--ink); min-height: calc(var(--fs-hero) * .97 * 4);
}
.lede { margin-top: clamp(14px, 2.4vh, 24px); font-size: var(--fs-lede); line-height: 1.46; max-width: 33em; text-wrap: pretty; font-variation-settings: 'opsz' 14; }
.lede .nr, .hero-cap .nr { display: none; }
.lookline { margin-top: clamp(16px, 3vh, 30px); max-width: 34em; }
.lookline .log { font-size: var(--fs-log-hero); }
.since { margin-top: 8px; font-size: .97rem; color: var(--ink-2); }
.tk { font-weight: 650; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk i { display: inline-block; width: .62em; text-align: center; font-style: normal; }
.cta { margin-top: clamp(18px, 3.2vh, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--hit); font-weight: 650; color: #fff; background: var(--ink); border: 0; border-radius: var(--r-pill); padding: 13px 24px 13px 17px; cursor: pointer; text-decoration: none; transition: background var(--t-quick); }
.btn .ico { color: var(--track-lit); width: 1.2em; height: 1.2em; }
.btn:hover { background: #0d1838; }
.link { display: inline-flex; align-items: center; min-height: var(--hit); font-weight: 600; text-decoration: underline; text-decoration-color: var(--track); text-decoration-thickness: 2px; text-underline-offset: 5px; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; }
.link .ico { margin-right: .35em; }

/* the satellite, its tag, the porthole's plate, the hint, the caption */
.hero-sat { position: absolute; left: 0; top: 0; z-index: 1; width: 108px; height: 108px; margin: -54px 0 0 -54px; pointer-events: none; will-change: transform; }
.hero-sat svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-tag { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; font-size: .8rem; line-height: 1.25; color: var(--ink); background: rgba(249, 251, 252, .9); padding: 5px 9px; white-space: nowrap; will-change: transform; opacity: 0; transition: opacity .3s; font-variant-numeric: tabular-nums; }
.hero-tag b { display: block; font-weight: 700; }
.hero-plate { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; max-width: 17rem; font-size: 12.5px; line-height: 1.25; color: var(--ink); background: rgba(249, 251, 252, .92); padding: 5px 9px; will-change: transform; }
.hero-plate b { display: block; font-weight: 650; }
.hero-hint { position: absolute; right: calc(var(--gut) - 22px); top: 45%; z-index: 2; display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 650; color: var(--ink); background: rgba(249, 251, 252, .92); padding: 7px 14px 7px 8px; border-radius: var(--r-pill); pointer-events: none; transition: opacity var(--t-hint); }
.hero-hint svg { width: 26px; height: 26px; color: #fff; }
.hero-hint.gone { opacity: 0; }
.hero-cap { position: absolute; right: calc(var(--gut) - 22px); bottom: 24px; z-index: 2; max-width: 18.4rem; font-size: .78rem; line-height: 1.42; color: var(--ink); background: rgba(249, 251, 252, .9); padding: 10px 14px; }
@media (hover: none), (pointer: coarse), (max-width: 760px) { .hero-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-hint, .hero-tag { transition: none; } }

/* Phone: the picture first (§7 "Phone hero"): the canvas covers only the picture at the top, the mast sits over it on a
   cloudtop plate, the words follow below on overcast with no fog. */
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: var(--overcast); }
  .hero-pic { position: relative; inset: auto; height: clamp(300px, 42svh, 420px); flex: none; background: #DCE2E7; overflow: hidden; }
  .hero-fog { display: none; }
  .mast { position: absolute; top: 0; left: 0; right: 0; padding: 12px 16px 10px; background: rgba(249, 251, 252, .82); gap: 6px 12px; }
  .mast .proto { background: none; padding: 0; font-size: .78rem; color: var(--ink-2); }
  .hero-copy { max-width: none; padding: 20px 16px 26px; }
  .hero h1 { font-size: var(--fs-hero-phone); max-width: none; min-height: calc(var(--fs-hero-phone) * .97 * 4); }
  .lede { margin-top: 12px; }
  .lede .wd, .hero-cap .wd { display: none; }
  .lede .nr, .hero-cap .nr { display: inline; }
  .lookline { margin-top: 14px; }
  .cta { margin-top: 16px; gap: 10px 18px; }
  .hero-cap { left: 8px; right: 8px; bottom: 8px; max-width: none; font-size: 11.5px; line-height: 1.35; padding: 6px 9px; }
  .hero-sat { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .hero-tag, .hero-plate { display: none; }
}

/* The next pass is an estimate from the preceding cycle, distinct from an observed look. */
.next-pass { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--track); background: rgba(249,251,252,.72); }
.next-pass-label { font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.next-pass-time { margin-top: 3px; font-size: 1.04rem; font-weight: 700; color: var(--ink); }
/* the countdown is written by hero.js after the first frame: its line is kept from the start, so the hero never grows
   under a satellite already parked (reduced motion parked it below the hero's edge, then moved it: 16 Nov 2026) */
.next-pass-count { min-height: 1.3em; font-size: .85rem; line-height: 1.3; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.next-pass-note { margin-top: 6px; font-size: .76rem; line-height: 1.4; color: var(--ink-2); }
/* Allow the additional record to grow the hero rather than cropping its buttons on shorter screens. */
@media (min-width: 761px) {
  .hero { height: auto; min-height: max(640px, 100svh); max-height: none; }
  .hero-copy { padding-bottom: 32px; }
}
