/* NASA Earth hero (20 Nov 2026): homepage (variant B, founder decision 14:03) and /preview/earth-hero/. */
.ehx-banner { box-sizing: border-box; width: 100%; max-width: none; justify-self: stretch; align-self: stretch; margin: 0; padding: 0.45rem var(--ds-gutter, 1rem); background: #ffd76a; color: #1a1a1a; font-size: 0.85rem; text-align: center; }
main#main .he { background: radial-gradient(120% 90% at 72% 50%, #0a2240 0%, #061a33 45%, #030d1c 100%); }
.he .ehx canvas { position: absolute; left: 0; top: 0; -webkit-mask-image: none; mask-image: none; }
.he .ehx .ehx-fallback { display: none; }
.he .ehx.ehx-static .ehx-fallback { display: block; }
.he .ehx.ehx-static .ehx-fallback img { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 118%; width: auto; max-width: none; }
.he .ehx .ehx-sky { z-index: 0; } .he .ehx .ehx-globe { z-index: 2; } .he .ehx .ehx-wind { z-index: 3; }
.he .ehx .ehx-sky, .he .ehx .ehx-globe, .he .ehx .ehx-wind { opacity: 0; transition: opacity 0.9s ease; }
.he .ehx.ehx-ready .ehx-sky, .he .ehx.ehx-ready .ehx-globe, .he .ehx.ehx-ready .ehx-wind { opacity: 1; }
/* keep the text column readable: a soft dark band behind it on wide screens */
.he .ehx::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(3,13,28,0.35) 0%, rgba(3,13,28,0.2) 34%, rgba(3,13,28,0) 50%); }
.he .ehx-meta { z-index: 2; }
.he .ehx-ctl { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; }
.he .ehx-layers { display: flex; gap: 0.25rem; border: 0; margin: 0; padding: 0; }
.he .ehx-layers label { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: #fff; background: rgba(6,26,51,0.6); border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 0.25rem 0.7rem; cursor: pointer; }
.he .ehx-layers input { accent-color: #8fd3ff; margin: 0; }
.he .ehx-layers label:focus-within { outline: 2px solid var(--ds-amber, #f5b942); outline-offset: 2px; }
.ehx-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.he .ehx-credit { max-width: 34rem; font-size: 0.74rem; line-height: 1.4; color: #b7cddb; text-align: right; }
.he .ehx-credit summary { cursor: pointer; }
.he .ehx-credit ul { text-align: left; margin: 0.4rem 0 0; padding: 0.6rem 0.8rem 0.6rem 1.6rem; background: rgba(3,13,28,0.85); border-radius: 0.5rem; }
.he .ehx-credit li + li { margin-top: 0.25rem; }
@media (max-width: 47.99rem) {
  .he .ehx { height: 19rem; }
  .he .ehx::before { background: linear-gradient(180deg, rgba(3,13,28,0) 82%, rgba(6,26,51,1) 100%); }
  main#main .he .hx-hero-inner { padding-top: 18rem; }
  .he .ehx-ctl { justify-content: flex-start; }
  .he .ehx-credit { text-align: left; }
}
.he .ehx-when { margin: 0; font-size: 0.72rem; color: #b7cddb; text-align: right; }
.he .ehx-when:empty { display: none; }
@media (max-width: 47.99rem) { .he .ehx-when { text-align: left; } }
.he .ehx .ehx-sun { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; }
.he .ehx-ctl .he-motion { font-size: 0.72rem; padding: 0.15rem 0.6rem; background: rgba(6,26,51,0.45); border-color: rgba(255,255,255,0.25); color: #d8e6ef; }
.he .ehx-ctl .he-motion:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
/* 20 Nov 2026 16:19: four entry points, two by two on wide screens */
@media (min-width: 48rem) { main#main .he .hx-paths-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; max-width: 40rem; }
  main#main .he .hx-paths-4 .hx-path { width: auto; min-width: 0; } }
main#main .he .ehx-when { font-size: 0.72rem; line-height: 1.35; color: #b7cddb; max-width: 34rem; margin: 0; }

/* 20 Nov 2026 17:53 (founder): four distinct CTA colours from the ICI palette, flat (no gradients or heavy shadows) */
main#main .he .hx-paths-4 .hx-path { border: 1px solid transparent; box-shadow: none; }
main#main .he .hx-paths-4 .hx-path small { color: inherit; opacity: 0.88; }
main#main .he .hx-paths-4 .hx-path svg { color: inherit; }
main#main .he .hx-paths-4 .hx-path[data-home-path="check"] { background: #092a40; color: #fff; border-color: rgba(255,255,255,0.28); }
main#main .he .hx-paths-4 .hx-path[data-home-path="check"]:hover { background: #0e3a58; }
main#main .he .hx-paths-4 .hx-path[data-home-path="earth"] { background: #1c64a3; color: #fff; }
main#main .he .hx-paths-4 .hx-path[data-home-path="earth"]:hover { background: #2372b6; }
main#main .he .hx-paths-4 .hx-path[data-home-path="space"] { background: #0c6f70; color: #fff; }
main#main .he .hx-paths-4 .hx-path[data-home-path="space"]:hover { background: #0f8081; }
main#main .he .hx-paths-4 .hx-path[data-home-path="story"] { background: #f5b942; color: #092a40; }
main#main .he .hx-paths-4 .hx-path[data-home-path="story"]:hover { background: #f8c869; }
main#main .he .hx-paths-4 .hx-path:focus-visible { outline: 3px solid #ffe08a; outline-offset: 3px; }
main#main .he .hx-paths-4 .hx-path[data-home-path="story"]:focus-visible { outline-color: #ffffff; }
.he .hx-lede-short, .he .ehx-sum-short { display: none; }
.he .ehx-credit li.ehx-when-in { display: none; }
/* phones: one composition (smaller Earth flowing into the headline, compact two-by-two entry points, details folded away) */
@media (max-width: 47.99rem) {
  .he .ehx { height: 15.5rem; }
  main#main .he .hx-hero-inner { padding-top: 14rem; }
  main#main .he h1#home-h1 { font-size: clamp(1.6rem, 7.4vw, 2.05rem); line-height: 1.12; margin-bottom: 0.6rem; }
  .he .hx-lede-long { display: none; } .he .hx-lede-short { display: inline; }
  main#main .he .hx-lede { font-size: 0.98rem; line-height: 1.45; margin-bottom: 1rem; }
  main#main .he .hx-paths-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  main#main .he .hx-paths-4 .hx-path { width: auto; min-width: 0; min-height: 3.5rem; padding: 0.7rem 0.75rem; border-radius: 0.85rem; align-items: center; }
  main#main .he .hx-paths-4 .hx-path strong { font-size: 0.98rem; line-height: 1.2; }
  main#main .he .hx-paths-4 .hx-path small { display: none; }
  main#main .he .hx-paths-4 .hx-path svg { width: 1.4rem; height: 1.4rem; flex: none; }
  main#main .he .hx-reassure { font-size: 0.82rem; margin-top: 0.75rem; }
  .he .ehx-when { display: none; }
  .he .ehx-credit li.ehx-when-in { display: list-item; }
  .he .ehx-sum-long { display: none; } .he .ehx-sum-short { display: inline; }
  .he .ehx-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
}
@media (max-width: 21rem) { main#main .he .hx-paths-4 { grid-template-columns: 1fr; } main#main .he .hx-paths-4 .hx-path { min-height: 3rem; } }

/* Mobile-first homepage hero (founder approved 22 Nov 2026 11:15; design/previews/2026-11-22-mobile-home) */
/* ---------- hero: Earth framed in the upper part, headline owns the first screen ---------- */
@media (max-width: 47.99rem) {
  main#main .he { min-height: 0; }
  .he .ehx { height: 15rem; transform: translateX(18%) scale(1.1); transform-origin: 50% 40%; }
  /* technical fallback only (no WebGL, class ehx-static): the live hero above is design-locked and unchanged; the static
     picture is not shifted and fills its box with soft edges */
  .he .ehx.ehx-static { transform: none; }
  .he .ehx.ehx-static .ehx-fallback img { inset: 0; top: 0; right: 0; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, #000 60%, transparent 100%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, #000 60%, transparent 100%); mask-composite: intersect; }
  .he .ehx::before { background: linear-gradient(180deg, rgba(3, 19, 40, 0) 55%, rgba(3, 19, 40, 0.92) 92%, #031328 100%); }
  main#main .he { background: #031328; }
  main#main .he .hx-hero-inner { padding-top: 11.5rem; padding-bottom: 2rem; }
  main#main .he h1#home-h1 { font-size: clamp(2.25rem, 10.4vw, 3rem); line-height: 1.04; letter-spacing: -0.012em; margin: 0 0 0.9rem; max-width: 12ch; text-wrap: balance; }
  main#main .he .hx-lede { font-size: 1.0625rem; line-height: 1.55; margin: 0 0 1.5rem; color: rgba(247, 250, 252, 0.88); max-width: 34ch; }

  main#main .he .hx-paths-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  main#main .he .hx-paths-4 .hx-path { min-height: 3.25rem; padding: 0.8rem 1rem; border-radius: 999px; justify-content: center; text-align: center; }
  main#main .he .hx-paths-4 .hx-path svg { display: none; }
  main#main .he .hx-paths-4 .hx-path { display: flex; align-items: center; }
  main#main .he .hx-paths-4 .hx-path > span { flex: 1 1 auto; min-width: 0; }
  main#main .he .hx-paths-4 .hx-path strong { font-size: 1.02rem; line-height: 1.2; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="earth"] { order: 1; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="space"] { order: 2; }
  /* secondary: full-width rows straight after, with their one-line description back */
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"], main#main .he .hx-paths-4 .hx-path[data-home-path="check"] {
    grid-column: 1 / -1; border-radius: 0; background: transparent; color: #F7FAFC; border: 0; border-top: 1px solid rgba(247, 250, 252, 0.16);
    justify-content: flex-start; text-align: left; padding: 0.9rem 2rem 0.9rem 0; min-height: 3.5rem; position: relative; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"] { order: 3; margin-top: 0.5rem; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="check"] { order: 4; border-bottom: 1px solid rgba(247, 250, 252, 0.16); }
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"] small, main#main .he .hx-paths-4 .hx-path[data-home-path="check"] small { display: block; font-size: 0.9rem; opacity: 0.75; margin-top: 0.15rem; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"]::after, main#main .he .hx-paths-4 .hx-path[data-home-path="check"]::after {
    content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.55rem; height: 0.55rem; border: solid #02C9D1; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"]:hover, main#main .he .hx-paths-4 .hx-path[data-home-path="check"]:hover { background: rgba(247, 250, 252, 0.04); }
  main#main .he .hx-reassure { font-size: 0.9rem; margin-top: 1.1rem; color: rgba(247, 250, 252, 0.7); }
}
@media (max-width: 22rem) { main#main .he .hx-paths-4 .hx-path { padding-inline: 0.6rem; } main#main .he .hx-paths-4 .hx-path strong { font-size: 0.95rem; } }

/* ---------- one palette at every width: teal primary, outline secondary, navy for the rest ---------- */
main#main .he .hx-paths-4 .hx-path[data-home-path="earth"] { background: #02C9D1; color: #031328; border-color: #02C9D1; }
main#main .he .hx-paths-4 .hx-path[data-home-path="earth"]:hover { background: #3ad7dd; }
main#main .he .hx-paths-4 .hx-path[data-home-path="space"] { background: transparent; color: #F7FAFC; border: 1.5px solid rgba(247, 250, 252, 0.7); }
main#main .he .hx-paths-4 .hx-path[data-home-path="space"]:hover { background: rgba(247, 250, 252, 0.08); }
@media (min-width: 48rem) {
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"], main#main .he .hx-paths-4 .hx-path[data-home-path="check"] { background: rgba(16, 43, 69, 0.85); color: #F7FAFC; border-color: rgba(247, 250, 252, 0.22); }
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"]:hover, main#main .he .hx-paths-4 .hx-path[data-home-path="check"]:hover { background: #163a5c; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="earth"] { order: 1; } main#main .he .hx-paths-4 .hx-path[data-home-path="space"] { order: 2; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"] { order: 3; } main#main .he .hx-paths-4 .hx-path[data-home-path="check"] { order: 4; }
}
main#main .he .hx-paths-4 .hx-path:focus-visible { outline: 3px solid #F2B544; outline-offset: 3px; }
/* phones held sideways (short screens): smaller headline so the actions are in the first view */
@media (min-width: 48rem) and (max-height: 30rem) {
  main#main .he .hx-hero-inner { padding-block: 1.2rem 1rem; }
  main#main .he h1#home-h1 { font-size: clamp(1.8rem, 4.2vw, 2.3rem); margin-bottom: 0.5rem; }
  main#main .he .hx-lede { font-size: 0.98rem; margin-bottom: 0.9rem; }
  main#main .he .hx-paths-4 .hx-path { min-height: 3rem; padding-block: 0.5rem; }
  main#main .he .hx-paths-4 .hx-path small { display: none; }
}
/* 22 Nov 2026 12:38 realism PREVIEW (?realism=1 only): near-black space keeping a faint blue near the Earth. */
main#main .he.ehx-realism { background: radial-gradient(60% 70% at 74% 50%, #04101f 0%, #01060d 55%, #000205 100%); }
main#main .he.ehx-realism .ehx::before { background: linear-gradient(90deg, rgba(0,2,5,0.35) 0%, rgba(0,2,5,0.2) 34%, rgba(0,2,5,0) 50%); }
@media (max-width: 47.99rem) { main#main .he.ehx-realism { background: #000306; } main#main .he.ehx-realism .ehx::before { background: linear-gradient(180deg, rgba(0,3,6,0) 55%, rgba(0,3,6,0.92) 92%, #000306 100%); } }
@media (min-width: 48rem) { main#main .hx-hero.he.ehx-realism::before { background: linear-gradient(90deg, rgba(0, 3, 8, 0.94) 0%, rgba(0, 3, 8, 0.85) 30%, rgba(0, 3, 8, 0.3) 48%, rgba(0, 3, 8, 0) 60%); } }
/* 22 Nov 2026 15:19: "About this visualization" as a compact popover (desktop) and bottom sheet (phones). Content only. */
.he .ehx-credit { position: relative; z-index: 5; }
.he .ehx-credit > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid rgba(2,201,209,.45); border-radius: 999px; background: rgba(3,19,40,.6); color: #dbe9f0; font-size: .78rem; }
.he .ehx-credit > summary::-webkit-details-marker { display: none; }
.he .ehx-credit > summary::before { content: "i"; display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #02C9D1; color: #031328; font: 700 .7rem/1 Georgia, serif; }
.he .ehx-credit[open] > summary { border-color: #02C9D1; }
.he .ehx-pop { position: absolute; right: 0; bottom: calc(100% + .5rem); width: min(400px, calc(100vw - 2rem)); max-height: min(70vh, 34rem); overflow: hidden; display: flex; flex-direction: column;
  text-align: left; background: #061a2e; color: #dbe6ee; border: 1px solid rgba(2,201,209,.35); border-radius: .75rem; box-shadow: 0 18px 48px rgba(0,0,0,.5); font-size: .84rem; line-height: 1.5; }
.he .ehx-pop-bar { display: flex; align-items: center; gap: .25rem; padding: .55rem .5rem .55rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); flex: none; }
.he .ehx-pop-h { flex: 1; margin: 0; font: 600 .9rem/1.3 var(--ds-sans, system-ui); color: #fff; }
.he .ehx-pop-btn { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: .45rem; background: transparent; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.he .ehx-pop-btn:hover, .he .ehx-pop-btn:focus-visible { border-color: #02C9D1; outline: 2px solid #02C9D1; outline-offset: 1px; }
.he .ehx-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.he .ehx-pop-body { overflow-y: auto; padding: .7rem .9rem .9rem; overscroll-behavior: contain; }
.he .ehx-min .ehx-pop-body { display: none; }
.he .ehx-pop-lead { margin: 0 0 .45rem; color: #eef4f8; }
.he .ehx-pop-lead { text-shadow: none; }
.he .ehx-pop-times { margin: 0 0 .6rem; color: #9fc4d3; font-size: .8rem; }
.he .ehx-cat { border-top: 1px solid rgba(255,255,255,.08); }
.he .ehx-cat > summary { cursor: pointer; padding: .45rem 0; color: #7fe3e8; font-weight: 600; font-size: .82rem; }
.he .ehx-cat ul { margin: 0 0 .5rem; padding-left: 1.1rem; background: none; border-radius: 0; }
.he .ehx-cat li + li { margin-top: .3rem; }
.he .ehx-credit li.ehx-when-in { display: list-item; }
@media (max-width: 47.99rem) {
  .he .ehx-pop { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 70vh; border-radius: 1rem 1rem 0 0; z-index: 60; font-size: .9rem; }
  .he .ehx-pop-btn { width: 2.5rem; height: 2.5rem; }
}
@media (prefers-reduced-motion: no-preference) { .he .ehx-credit[open] .ehx-pop { animation: ehx-pop-in .16s ease-out; } @keyframes ehx-pop-in { from { opacity: 0; transform: translateY(6px); } } }
/* the hero is its own stacking context (isolation), so while the panel is open it is lifted above later sections; the site header stays on top */
main#main .he.ehx-about-open { z-index: 40; }
main#main .he .ehx-pop p, main#main .he .ehx-pop li { font-size: .84rem; line-height: 1.5; }
main#main .he .ehx-pop .ehx-pop-times { font-size: .8rem; }
@media (max-width: 47.99rem) { main#main .he .ehx-pop p, main#main .he .ehx-pop li { font-size: .94rem; } main#main .he .ehx-pop .ehx-pop-times { font-size: .86rem; } }
