/* =============================================================================
   SATQUERY — HOME
   The continuous visual essay. Imagery is the protagonist; chrome is gone.
   Light, warm. Hairlines, not cards. No rounded rectangles.
   ============================================================================= */

/* the home page sits on ivory; some hero plates still need a slight
   darkening so the heading reads. Use the surface ramp. */

/* -------------------------------------------------------------- orbit ----- */
/* the opening scene: an earth observation rendered onto a full-bleed
   plate. the plate IS the section. nothing is contained by chrome. */
.orbit {
  position: relative;
  height: calc(100vh - var(--bar));
  min-height: 640px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  isolation: isolate;
  padding: 0;
  overflow: hidden;
  background: var(--surface-3);
}

.orbit__plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.orbit__plate canvas,
.orbit__plate img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* the Mediterranean and the delta sit in the upper part of the scene */
  object-position: 50% 30%;
}
/* one slow settling drift — the only motion in the hero. none at all
   when the visitor has asked for reduced motion. */
.orbit__plate img {
  transform: scale(1.06);
  transition: transform 6s var(--e-out);
}
.orbit__plate img.is-in { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .orbit__plate img { transform: none; transition: none; }
}

/* honesty set on imagery: the small italic aside, legible over a plate.
   D1: at rgba(...,0.72) this measured 2.6–3.2:1 over the Sentinel-2 plate —
   the least legible thing on the plate, and the project's core value. Solid
   ivory plus the deepened .orbit__veil below now measure 6.1:1. */
.disclose--light {
  color: #FBF9F5;
  border-top-color: rgba(251, 249, 245, 0.42);
  text-shadow: 0 1px 10px rgba(0,0,0,0.42);
}
.disclose--light::before { border-color: rgba(251, 249, 245, 0.5); }
/* a soft top-to-bottom veil so the heading reads against any imagery.
   in the light language the veil is a faint warm wash, not a vignette.
   D1: the 45–100% band was 0.06 (a near-transparent wash) where the honesty
   aside, the lede and the invitation actually sit. The measured plate there
   runs to 160–205 grey, so 0.06 left white text at 2.6–3.9:1. The band is
   deepened here (0.44 @48% → 0.72 @100%) to carry the hero text at ≥4.5:1. */
.orbit__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(23, 25, 24, 0.42) 0%,
      rgba(23, 25, 24, 0.06) 28%,
      rgba(23, 25, 24, 0.44) 48%,
      rgba(23, 25, 24, 0.52) 70%,
      rgba(23, 25, 24, 0.72) 100%);
}

/* a single hairline ring drawn in CSS, behind the plate, very subtle.
   one restrained mineral-blue note (not accent — supporting). */
.orbit__ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 160vmin; height: 160vmin;
  margin-left: -80vmin; margin-top: -80vmin;
  border: 1px solid rgba(58, 95, 107, 0.16);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 1.6s var(--e-out), opacity 1.6s var(--e-out);
}
.orbit__ring.is-in {
  opacity: 1;
  transform: scale(1);
}

.orbit__copy {
  position: relative;
  z-index: 2;
  margin: 9vh var(--gut) 0;
  max-width: 940px;
}
.orbit__copy .label { display: block; margin-bottom: 28px; color: rgba(251,249,245,0.78); }

.orbit__head {
  font-size: clamp(56px, 9vw, 124px);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  margin: 0 0 32px;
  color: #FBF9F5;
  text-shadow: 0 1px 24px rgba(0,0,0,0.25);
}

.orbit__lede {
  color: #FBF9F5;
  margin: 0;
  max-width: 56ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.32);
}

/* the invitation — a thin line and a quiet word. */
.invite {
  position: absolute;
  z-index: 2;
  bottom: 14vh;
  left: var(--gut); right: var(--gut);
  display: flex;
  align-items: end;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(251, 249, 245, 0.42);
  transition: border-color 0.4s var(--e-out);
}
.invite:focus-within { border-color: var(--ochre); }
.invite__in {
  flex: 1;
  background: transparent;
  border: 0;
  color: #FBF9F5;
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 80, 'SOFT' 30, 'WONK' 1;
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 38px);
  letter-spacing: -0.01em;
  padding: 4px 0;
  outline: none;
}
.invite__in::placeholder {
  color: rgba(251,249,245,0.85);
  font-style: italic;
  font-variation-settings: 'opsz' 80, 'SOFT' 30, 'WONK' 1;
}
.invite__go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  color: #FBF9F5;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 0;
  cursor: pointer;
  /* D1: the button sits over the brightest part of the plate (grey ~205), where
     it measured 3.9:1. The deepened .orbit__veil lifts it to 5.9:1; the shadow
     is belt-and-braces over the busiest pixels. */
  text-shadow: 0 1px 8px rgba(0,0,0,0.42);
  transition: color 0.25s var(--e-out);
}
.invite__go:hover { color: var(--ochre); }
.invite__go i {
  font-size: 16px;
  transition: transform 0.25s var(--e-out);
}
.invite__go:hover i { transform: translateX(3px); }

/* a few open questions — quiet type, no chips, no badges.
   sits in its own quiet section beneath the hero. */
.open-q {
  padding: clamp(36px, 5vw, 72px) var(--gut) clamp(28px, 4vw, 56px);
  background: var(--surface-0);
  border-bottom: 1px solid var(--rule);
}
.open {
  padding: 0;
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.open li { display: block; }
.open a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.25s var(--e-out), border-color 0.25s var(--e-out);
}
.open a:hover { color: var(--ink-900); border-color: var(--ochre); }
.open em {
  font-style: italic;
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 30, 'SOFT' 30, 'WONK' 1;
  color: var(--ink-900);
  font-size: 16px;
}

/* -------------------------------------------------------------- film ----- */
.essay {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  background: var(--surface-0);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.essay__film {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.essay__film video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
/* The launch film is enhanced by the shared player (assets/js/film-player.js),
   which wraps the <video class="film"> in a <figure class="film">. Make the
   figure fill the editorial frame (no double border) and reserve the 16:9 box
   so the poster shows before metadata loads. */
.essay__film .film { width: 100%; border: 0; }
.essay__film .film video { width: 100%; height: auto; aspect-ratio: 16 / 9; }

.essay__cap {
  margin: 24px auto 0;
  max-width: 720px;
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 30, 'SOFT' 30, 'WONK' 1;
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-500);
  text-align: center;
}
.essay__cap em { color: var(--ink-700); font-style: italic; }

/* ------------------------------------------------------------------ ask -- */
.ask {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  background: var(--surface-0);
}
.ask__plate {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.ask__plate canvas,
.ask__plate img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ask__copy { max-width: 540px; }
.ask__copy h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  letter-spacing: -0.022em;
  margin: 18px 0 22px;
  color: var(--ink-900);
}
.ask__copy h2 span { color: var(--ochre); }
.ask__copy .lede { margin-bottom: 26px; color: var(--ink-600); }

/* ------------------------------------------------------------ discover -- */
.discover {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  background: var(--surface-0);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* D17: the discover intro (label + heading) sat at the section gutter while the
   920px pair below was centred, leaving a ~200px left-edge mismatch on wide
   screens. Constrain both to the same 920px centred measure so the heading,
   label and plate share one left edge. */
.discover .sec__label { display: block; max-width: 920px; margin: 0 auto 28px; }
.discover__head {
  font-size: clamp(36px, 5.5vw, 78px);
  letter-spacing: -0.022em;
  max-width: 920px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  color: var(--ink-900);
}
.discover__pair {
  max-width: 920px;
  margin: 0 auto;
}
.discover__pane {
  margin: 0;
  background: transparent;
  position: relative;
}
/* the two epochs occupy one frame; the earlier one is clipped back from
   the right so the seam can be drawn across a single image. */
.discover__stack {
  --wipe: 52%;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}
/* D17: the two epoch plates are now cropped 1:1 from the GHSL source figure
   with the figure's black title-bar margin removed, so the box aspect and the
   image aspect agree and no cover-cropping occurs. Top-anchoring guarantees
   the baked-in year label (which sits at the very top of each crop) is never
   sliced. The previous 50% 50% centred a portrait crop in a square box and cut
   the "1975" label in half. */
.discover__stack canvas,
.discover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}
.discover__img--over {
  clip-path: inset(0 calc(100% - var(--wipe)) 0 0);
}
.discover__seam {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--wipe);
  width: 1px;
  background: rgba(251, 249, 245, 0.86);
  pointer-events: none;
}
.discover__pane .platecap { padding: 14px 4px 0; }

/* the comparison control: a hairline and a square ochre thumb. no panel,
   no chrome — the instrument is the image. */
.discover__ctrl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px 0;
}
.discover__end {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  white-space: nowrap;
}
.discover__range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 18px;
  background: transparent;
  cursor: ew-resize;
}
.discover__range:focus { outline: none; }
.discover__range::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--rule-2);
}
.discover__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  margin-top: -5px;
  background: var(--ochre);
  border: 0;
  border-radius: 0;
}
.discover__range::-moz-range-track {
  height: 1px;
  background: var(--rule-2);
}
.discover__range::-moz-range-thumb {
  width: 11px; height: 11px;
  background: var(--ochre);
  border: 0;
  border-radius: 0;
}
.discover__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ochre-rule); }
.discover__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ochre-rule); }
.discover__verdict {
  /* D17: was 900px, which centred it at x=270 while the label, heading, plate,
     caption, slider and disclosure all sat at x=260. Match the section's 920px
     measure so the whole discover section shares ONE left edge. */
  margin: clamp(40px, 6vw, 80px) auto 0;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.discover__verdict .lede { color: var(--ink-600); }
.discover__verdict .num { color: var(--ink-400); font-size: 13px; letter-spacing: 0.04em; }

/* ----------------------------------------------------------- evidence --- */
.evidence {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--surface-0);
}
.evidence .sec__label { display: block; margin-bottom: 22px; grid-column: 1 / -1; }
.evidence h2 {
  font-size: clamp(36px, 5.5vw, 78px);
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink-900);
  grid-column: 1 / -1;
  max-width: 18ch;
}
.evidence__col { min-width: 0; }
.evidence__plate {
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}
.evidence__plate canvas,
.evidence__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* D17: the plate is now a 5:4 crop of the GHSL source with the figure's black
     title-bar margin removed, so the image aspect matches the box and no
     cover-cropping occurs. Anchored to the top so the "2075" label is fully
     visible; the old 50% 45% left a thin dead black strip above it. */
  object-position: 50% 0%;
  display: block;
}
.evidence__col .platecap { padding: 12px 4px 0; }
.evidence__mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.evidence__mark path { stroke: var(--ochre); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.evidence__mark circle { fill: var(--ochre); }
.evidence__copy { max-width: 460px; padding-bottom: 14px; color: var(--ink-600); }

/* ---------------------------------------------------------- understand --- */
.understand {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  background: var(--surface-0);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.understand .sec__label { display: block; margin-bottom: 28px; }
.understand__head {
  font-size: clamp(36px, 5.5vw, 78px);
  letter-spacing: -0.022em;
  margin: 0 0 36px;
  color: var(--ink-900);
  max-width: 18ch;
}
.understand > .lede {
  max-width: 60ch;
  margin-bottom: clamp(40px, 6vw, 72px);
  color: var(--ink-600);
}

.layers {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--rule);
}
.layers__row {
  display: grid;
  grid-template-columns: 60px 140px 220px 1fr;
  gap: clamp(14px, 2.4vw, 36px);
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.layers__n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ochre);
}
.layers__name {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 80, 'SOFT' 0, 'WONK' 1;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink-900);
}
.layers__who {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  text-transform: uppercase;
}
.layers__what {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.55;
  max-width: 56ch;
}

.understand__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ measure -- */
.measure {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  background: var(--surface-0);
}
.measure .sec__label { display: block; margin-bottom: 28px; }
.measure > h2 {
  font-size: clamp(36px, 5.5vw, 78px);
  letter-spacing: -0.022em;
  margin: 0 0 clamp(40px, 6vw, 64px);
  color: var(--ink-900);
  max-width: 22ch;
}
/* an "open block" — NOT a card. separated by a hairline and whitespace. */
.measure__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}
.measure__card {
  display: block;
  padding: 36px 0 32px;
  background: transparent;
  border-top: 1px solid var(--rule);
  transition: border-color 0.3s var(--e-out);
}
.measure__card:hover { border-top-color: var(--ochre); }
.measure__card .label { display: block; margin-bottom: 22px; }
.measure__card p {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 40, 'SOFT' 30, 'WONK' 1;
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink-900);
  margin: 0 0 24px;
}
.measure__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --------------------------------------------------------------- atlas -- */
.atlas {
  padding: clamp(80px, 12vw, 160px) var(--gut);
  background: var(--surface-0);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.atlas .sec__label { display: block; margin-bottom: 28px; }
.atlas__head {
  font-size: clamp(36px, 5.5vw, 78px);
  letter-spacing: -0.022em;
  margin: 0 0 clamp(36px, 5vw, 56px);
  color: var(--ink-900);
  max-width: 18ch;
}
.atlasmini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.atlas__card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: opacity 0.3s var(--e-out);
}
.atlas__card:hover { opacity: 0.82; }
.atlas__fig {
  margin: 0;
  position: relative;
  background: var(--surface-2);
}
.atlas__fig canvas,
.atlas__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.atlas__body { padding: 16px 0 18px; }
.atlas__body .label { display: block; margin-bottom: 6px; }
.atlas__body em {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 40, 'SOFT' 30, 'WONK' 1;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-900);
}
.atlas__disclose { margin-top: clamp(24px, 3vw, 36px); }
.atlas__cta {
  display: inline-flex;
  margin-top: clamp(20px, 2.5vw, 28px);
}

/* -------------------------------------------------------- responsive --- */
@media (max-width: 980px) {
  .ask, .evidence {
    grid-template-columns: 1fr;
  }
  .evidence { align-items: start; }
  .layers__row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 14px;
  }
  .layers__who { grid-column: 2; }
  .layers__what { grid-column: 1 / -1; padding-left: 54px; padding-top: 6px; }
  .measure__row { grid-template-columns: 1fr; }
  .discover__pair { max-width: none; }
}