:root {
  --ink: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.78);
  --gold: #e8c47a;
  --cyan: #7ec8e3;
  --shadow: rgba(4, 10, 22, 0.55);
  --bg: #040a16;
  /* HUD band: counter sits here; slide text must stay above --hud-safe */
  --hud-bottom: 1.25cqh;
  --hud-safe: 9cqh;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Heebo", sans-serif;
}

/* PowerPoint-like stage: fixed 1280×720 canvas, scaled to fit the window */
.stage-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  transform-origin: top left;
  backface-visibility: hidden;
  text-rendering: geometricPrecision;
  container-type: size;
  container-name: stage;
  overflow: hidden;
  background: var(--bg);
}

.deck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  transition: visibility 0.65s;
  display: grid;
  align-items: end;
  justify-items: stretch;
  z-index: 2;
}

.slide.is-active {
  visibility: visible;
  z-index: 3;
}

.slide-fg {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: stretch;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
  /* Keep text above the stage HUD (counter / progress) */
  padding-bottom: var(--hud-safe);
  box-sizing: border-box;
}

.slide.is-active .slide-fg {
  opacity: 1;
  pointer-events: auto;
}

.deck-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.deck-veil-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Shared LEO/MEO/GEO diagram — stays put across the orbits persist group */
.deck-orbit-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s;
}

.deck-orbit-layer.is-shown {
  opacity: 1;
  visibility: visible;
}

body.is-slide-cut .deck-orbit-layer {
  transition: none !important;
}

.deck-bg,
.deck-veil {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.deck-bg {
  background-size: cover;
  background-position: center;
  background-color: #0a1628;
}

.deck-bg.is-shown {
  opacity: 1;
  transition: opacity 0.65s ease;
}

.deck-veil.is-shown {
  opacity: 1;
}

.deck-bg.is-gradient {
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(126, 200, 227, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(232, 196, 122, 0.12), transparent 45%),
    linear-gradient(160deg, #07111f 0%, #0c1a30 45%, #050b16 100%);
}

.slide-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.15) 0%, rgba(4, 10, 22, 0.2) 40%, rgba(4, 10, 22, 0.78) 100%);
  pointer-events: none;
}

.slide-veil.soft-left {
  background:
    linear-gradient(90deg, rgba(4, 10, 22, 0.72) 0%, rgba(4, 10, 22, 0.35) 45%, rgba(4, 10, 22, 0.2) 100%),
    linear-gradient(180deg, transparent 40%, rgba(4, 10, 22, 0.65) 100%);
}

.slide-veil.soft {
  background:
    radial-gradient(ellipse at center, rgba(4, 10, 22, 0.18) 0%, rgba(4, 10, 22, 0.38) 80%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.08) 0%, rgba(4, 10, 22, 0.42) 100%);
}

.slide-veil.center-dark {
  background:
    radial-gradient(ellipse at center, rgba(4, 10, 22, 0.45) 0%, rgba(4, 10, 22, 0.78) 78%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.2) 10%, rgba(4, 10, 22, 0.88) 100%);
}

.slide-veil.soft-right {
  background:
    linear-gradient(270deg, rgba(4, 10, 22, 0.72) 0%, rgba(4, 10, 22, 0.35) 45%, rgba(4, 10, 22, 0.15) 100%),
    linear-gradient(180deg, transparent 40%, rgba(4, 10, 22, 0.65) 100%);
}

.slide-veil.clear {
  background:
    linear-gradient(180deg, transparent 55%, rgba(4, 10, 22, 0.28) 100%);
}

.content {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 5cqw, 4rem);
  max-width: min(920px, 92cqw);
  animation: rise 0.8s ease both;
}

.slide.is-active .content {
  animation: rise 0.85s 0.12s ease both;
}

/* Within a persist group (e.g. Kepler 14–18): hard cut — shared figure text stays put */
body.is-slide-cut .slide,
body.is-slide-cut .slide-fg {
  transition: none !important;
}

body.is-slide-cut .slide .content,
body.is-slide-cut .slide.is-active .content {
  animation: none !important;
}

body.is-slide-cut .slide-fg {
  opacity: 0;
  transform: none;
}

body.is-slide-cut .slide.is-active .slide-fg {
  opacity: 1;
  transform: none;
}

/* LEO growth zooms: keep eyebrow+title+chart frame+axes put; fade lead + ticks/series in place */
body.is-slide-cut .slide.persist-leo-growth.is-active .lead,
body.is-slide-cut .slide.persist-leo-growth.is-active .chart-panel h3,
body.is-slide-cut .slide.persist-leo-growth.is-active .chart-panel .chart-dynamic,
body.is-slide-cut .slide.persist-leo-growth.is-active .chart-panel .chart-source {
  animation: fade-in 0.55s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.eyebrow {
  font-family: "Rubik", "Heebo", sans-serif;
  font-size: clamp(0.85rem, 1.4cqw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

h1 {
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7cqw, 5.2rem);
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 12px 48px var(--shadow);
}

h1.is-multiline {
  white-space: pre-line;
}

h2 {
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2cqw, 3.35rem);
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 10px 40px var(--shadow);
}

.content.is-title-nowrap {
  max-width: min(1100px, 96cqw);
}

.content.is-title-nowrap h1 {
  white-space: nowrap;
  font-size: clamp(1.85rem, 4.2cqw, 3.35rem);
}

.lead {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2.2cqw, 1.55rem);
  font-weight: 400;
  color: rgba(244, 247, 251, 0.92);
  max-width: none;
  line-height: 1.45;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}

.lead strong {
  font-weight: 700;
  color: var(--ink);
}

.lead.wide { max-width: none; }

.lead.is-multiline {
  white-space: pre-line;
  max-width: 36ch;
}

.lead.wide.is-multiline {
  max-width: none;
  white-space: pre;
}

.year {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.4rem, 3cqw, 2.2rem);
  color: var(--cyan);
  font-weight: 700;
}

.credit-stack {
  position: absolute;
  z-index: 10;
  inset-inline-end: clamp(0.8rem, 2cqw, 1.5rem);
  bottom: clamp(0.6rem, 2cqw, 1.2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  max-width: min(48ch, 46cqw);
  pointer-events: none;
  user-select: none;
}

.image-detail {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244, 247, 251, 0.72);
  text-align: start;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.credit {
  position: static;
  inset: auto;
  z-index: auto;
  margin: 0;
  font-size: 0.65rem;
  color: rgba(244, 247, 251, 0.45);
  max-width: none;
  text-align: start;
  pointer-events: none;
  user-select: none;
}

.title-slide {
  align-items: center;
  justify-items: center;
  text-align: center;
}

.title-slide .slide-fg,
.about-slide .slide-fg,
.figure-slide .slide-fg {
  align-items: center;
  justify-items: center;
  padding-top: 7cqh;
  padding-bottom: var(--hud-safe);
}

/* Title stack: h1 sits on the vertical center; eyebrow above, lead below */
.title-slide .content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  height: auto;
  max-width: none;
  width: auto;
  padding: 0 clamp(1.5rem, 5cqw, 4rem);
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

.title-slide .content > * {
  pointer-events: auto;
}

.title-slide .eyebrow {
  grid-row: 1;
  align-self: end;
  margin-bottom: 0.85rem;
}

.title-slide h1 {
  grid-row: 2;
  align-self: center;
  margin: 0;
  font-size: clamp(2.6rem, 8cqw, 5.8rem);
}

.title-slide .lead,
.title-slide .year {
  grid-row: 3;
  align-self: start;
  margin-top: 1rem;
}

.title-slide .title-below {
  grid-row: 3;
  align-self: start;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 2.8cqh, 1.75rem);
}

.title-slide .title-below .lead {
  grid-row: auto;
  margin-top: 0;
}

.title-slide .lead {
  max-width: none;
  margin-inline: auto;
}

.title-slide .title-below .contact-card {
  margin-top: 0;
}

.title-slide .lead.is-multiline {
  max-width: 48ch;
}

.contact-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2cqw, 1.25rem);
  text-align: start;
  direction: rtl;
}

.contact-photo-frame {
  width: clamp(64px, 9cqw, 96px);
  height: clamp(64px, 9cqw, 96px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(232, 196, 122, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  background: #122038;
}

.contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  transform: scale(1.14);
  transform-origin: 50% 20%;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: center;
  min-height: clamp(64px, 9cqw, 96px);
  gap: 0.35rem;
  min-width: 0;
}

.contact-name-he {
  margin: 0;
  font-family: "Rubik", "Heebo", sans-serif;
  font-size: clamp(1.05rem, 2cqw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
}

.contact-linkedin,
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(244, 247, 251, 0.88);
  text-decoration: none;
  font-size: clamp(0.9rem, 1.5cqw, 1.05rem);
  font-weight: 400;
  direction: ltr;
}

.contact-linkedin:hover,
.contact-email:hover {
  color: var(--gold);
}

.contact-linkedin.is-plain {
  pointer-events: none;
}

.contact-linkedin-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  color: #7ec8e3;
}

.contact-email {
  font-family: "Rubik", "Heebo", sans-serif;
  letter-spacing: 0.01em;
}

.about-slide {
  align-items: center;
  justify-items: center;
}

.about-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3cqw, 2.5rem);
  padding: clamp(1.5rem, 4cqw, 3rem);
  max-width: min(820px, 92cqw);
}

.about-photo-frame {
  width: clamp(120px, 18cqw, 200px);
  height: clamp(120px, 18cqw, 200px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(232, 196, 122, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: #122038;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias up so hair shows; slight zoom keeps the face filling the circle */
  object-position: 50% 16%;
  transform: scale(1.14);
  transform-origin: 50% 20%;
}

.about-card .content {
  padding: 0;
  max-width: none;
  text-align: start;
}

.about-card .lead {
  max-width: none;
  margin-top: 0.75rem;
  font-size: clamp(1rem, 1.8cqw, 1.25rem);
  color: rgba(244, 247, 251, 0.82);
}

.about-card .lead.is-multiline {
  white-space: pre-line;
}

.figure-slide {
  align-items: center;
  justify-items: stretch;
}

.figure-card {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: grid;
  /* Equal halves so the photo|text seam sits on mid-screen */
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: clamp(1.4rem, 3.5cqw, 2.75rem);
  row-gap: 0;
  padding-block: clamp(1.25rem, 3.5cqw, 2.5rem);
  padding-inline: clamp(1.5rem, 5cqw, 4rem);
  width: min(1100px, 96cqw);
  margin-inline: auto;
  min-height: clamp(380px, 56cqh, 520px);
}

.figure-photo-frame {
  width: clamp(140px, 22cqw, 260px);
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 122, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  background: #0c1628;
  /* Pull portrait toward the center seam */
  justify-self: end;
  align-self: center;
}

.figure-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.figure-card .content {
  padding: 0;
  max-width: none;
  width: 100%;
  min-width: 0;
  text-align: start;
  /* Pull text toward the center seam */
  justify-self: start;
  align-self: center;
}

.figure-card .year {
  margin-top: 0.65rem;
  font-size: clamp(1.05rem, 2cqw, 1.35rem);
  color: var(--gold);
  font-weight: 600;
}

.figure-card .lead {
  max-width: 36ch;
  margin-top: 0.7rem;
  font-size: clamp(1rem, 1.7cqw, 1.2rem);
  color: rgba(244, 247, 251, 0.82);
}

.figure-card .chapter-list {
  margin-top: 1.1rem;
  max-width: none;
}

.figure-card .chapter-list li {
  white-space: nowrap;
}

/* Figure rail right: equal halves — portrait+text in right half (Kepler + Newton) */
.figure-slide.is-rail-right .slide-fg {
  display: grid;
  /* RTL: first column = right half, second = left half */
  /* minmax(0,…) so large solo widgets can shrink instead of blowing the track */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  align-content: stretch;
  justify-items: stretch;
  column-gap: clamp(0.75rem, 2cqw, 1.5rem);
  padding-inline-start: clamp(2rem, 6cqw, 4.5rem);
  padding-inline-end: 0;
  padding-block: clamp(3.75rem, 7cqh, 5.5rem);
  box-sizing: border-box;
  overflow: hidden;
}

.figure-slide.is-rail-right .figure-card {
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  /* Pin to outer right of right half — no translateX (overflows into left rail at 1280×720) */
  width: auto;
  max-width: min(100%, 94%);
  margin: 0;
  min-height: 0;
  height: auto;
  grid-template-columns: clamp(120px, 18cqw, 200px) minmax(0, 1fr);
  padding-block: clamp(1rem, 2.5cqh, 1.75rem);
  padding-inline: clamp(1rem, 2.5cqw, 1.5rem);
  column-gap: clamp(0.85rem, 2cqw, 1.5rem);
  justify-self: start; /* RTL right column: outer-right anchor */
  align-self: center;
  transform: none;
}

.figure-slide.is-rail-right .figure-photo-frame {
  width: 100%;
  justify-self: stretch;
  align-self: center;
}

.figure-slide.is-rail-right .figure-card .content {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
  align-self: center;
}

.figure-slide.is-rail-right .figure-card .chapter-list {
  max-width: none;
}

.figure-slide.is-rail-right .figure-card .chapter-list li {
  white-space: nowrap;
}

/* Cannon steps 23–26 have longer explainers — allow wrap */
.figure-slide.has-newton-orbit .figure-card .chapter-list li {
  white-space: normal;
}

.figure-slide.is-rail-right .figure-card .lead {
  max-width: none;
}

.figure-slide.has-kepler-laws .kepler-laws-stage {
  position: relative;
  z-index: 3;
  inset: auto;
  inset-inline: auto;
  bottom: auto;
  top: auto;
  left: auto;
  right: auto;
  display: flex;
  flex-direction: column;
  direction: ltr;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: min(100%, 94%);
  height: auto;
  /* Stay inside the rail cell so three panels don't push the figure card down */
  max-height: 100%;
  min-height: 0;
  gap: clamp(0.4rem, 1cqh, 0.7rem);
  pointer-events: none;
  justify-self: center;
  align-self: center;
  transform: none;
}

.figure-slide.has-newton-orbit .nod-wrap {
  position: relative;
  z-index: 3;
  grid-area: auto;
  display: block;
  width: min(36cqw, 340px);
  max-width: min(100%, 92%);
  margin: 0;
  justify-self: center;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  transform: none;
  pointer-events: none;
}

/* Stage locked to rail center so Earth stays put across 21–26 (captions vary) */
.figure-slide.has-newton-orbit .nod-stage {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(100%, 340px);
  transform: translate(-50%, -50%);
  margin: 0;
}

.figure-slide.has-newton-orbit .nod-captions {
  position: absolute;
  left: 50%;
  /* Sit just under the stage: stage center at 46%, half stage ≈ half of min(36cqw, 340px) */
  top: calc(46% + min(18cqw, 170px) + 0.55rem);
  width: 100%;
  transform: translateX(-50%);
  min-height: 4.75rem;
}

.figure-slide.has-newton-orbit .nod-controls {
  position: absolute;
  left: 50%;
  top: calc(46% + min(18cqw, 170px) + 0.55rem);
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.figure-slide.has-newton-orbit .nod-ctrl {
  cursor: pointer;
  margin: 0;
  padding: 0.55rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 196, 122, 0.55);
  border-radius: 50%;
  background: rgba(8, 16, 32, 0.72);
  color: rgba(244, 247, 251, 0.95);
  backdrop-filter: blur(6px);
}

.figure-slide.has-newton-orbit .nod-ctrl-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.figure-slide.has-newton-orbit .nod-playpause[data-playing="0"] .nod-icon-pause,
.figure-slide.has-newton-orbit .nod-playpause[data-playing="1"] .nod-icon-play {
  display: none;
}

.figure-slide.has-newton-orbit .nod-ctrl:hover {
  border-color: rgba(232, 196, 122, 0.85);
  background: rgba(12, 24, 44, 0.88);
  color: #e8c47a;
}

.figure-slide.has-newton-orbit .nod-ctrl:focus-visible {
  outline: 2px solid rgba(126, 200, 227, 0.85);
  outline-offset: 2px;
}

.nod-captions {
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.nod-caption-eyebrow {
  margin: 0 0 0.25rem;
  font-family: "Heebo", sans-serif;
  font-size: clamp(0.78rem, 1.2cqw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(232, 196, 122, 0.9);
}

.nod-caption-title {
  margin: 0;
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.05rem, 1.7cqw, 1.28rem);
  font-weight: 500;
  color: rgba(244, 247, 251, 0.92);
}

.nod-caption-lead {
  margin: 0.15rem 0 0;
  font-family: "Heebo", sans-serif;
  font-size: clamp(0.92rem, 1.45cqw, 1.12rem);
  font-weight: 400;
  color: rgba(244, 247, 251, 0.62);
  line-height: 1.3;
}

.figure-slide.has-kepler-laws .kepler-law-panel {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0.4rem 0.55rem 0.55rem;
  box-sizing: border-box;
}

.figure-slide.has-kepler-laws .kepler-law-svg {
  display: block;
  width: min(100%, 250px);
  max-width: 250px;
  max-height: calc((78cqh - 5.5rem) / 3);
  height: auto;
  flex: 0 0 auto;
  margin-inline: auto;
}

.figure-slide.has-kepler-laws .kepler-law-label,
.figure-slide.has-kepler-laws .kepler-law-caption {
  max-width: 250px;
}

.figure-slide.has-kepler-laws .kepler-laws-stage.is-solo {
  max-height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: clamp(0.4rem, 1cqh, 0.7rem);
  justify-self: center;
  align-items: center;
  transform: none;
}

/* Solo laws (16–18): larger SVG, no gold frame — summary (19) keeps panel border */
.figure-slide.has-kepler-laws .kepler-laws-stage.is-solo .kepler-law-panel {
  width: min(400px, 100%);
  max-width: 100%;
  padding: 0.4rem 0.55rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

.figure-slide.has-kepler-laws .kepler-laws-stage.is-solo .kepler-law-svg {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 200 / 144;
  max-height: min(52cqh, 360px);
}

.figure-slide.has-kepler-laws .kepler-laws-stage.is-solo .kepler-law-label,
.figure-slide.has-kepler-laws .kepler-laws-stage.is-solo .kepler-law-caption {
  max-width: 400px;
  font-size: clamp(0.75rem, 1.4cqw, 0.95rem);
}

.figure-slide.has-kepler-laws .kepler-laws-stage.is-solo .kepler-law-caption {
  font-size: clamp(0.7rem, 1.25cqw, 0.88rem);
}

.kepler-laws-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.75rem, 2cqw, 1.5rem);
  pointer-events: none;
}

.kepler-law-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.35rem 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(4, 10, 22, 0.35);
  border: 1px solid rgba(232, 196, 122, 0.22);
  box-sizing: border-box;
}

.kepler-law-svg {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 200 / 144;
  overflow: visible;
}

.kepler-orbit-path {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.25;
}

.kepler-orbit-path.is-inner {
  stroke: rgba(186, 164, 230, 0.45);
}

.kepler-sun {
  fill: #3a8fd4;
  filter: drop-shadow(0 0 6px rgba(126, 200, 227, 0.7));
}

.kepler-focus.is-empty {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
}

.kepler-planet {
  fill: #f4f7fb;
  filter: drop-shadow(0 0 4px rgba(244, 247, 251, 0.45));
}

.kepler-planet.is-inner {
  /* Closer orbit — light purple */
  fill: #c5b0f0;
  filter: drop-shadow(0 0 5px rgba(186, 164, 230, 0.65));
}

.kepler-planet.is-outer {
  /* Farther orbit — same white as laws 1 & 2 */
  fill: #f4f7fb;
  filter: drop-shadow(0 0 4px rgba(244, 247, 251, 0.45));
}

.kepler-law-label {
  margin: 0.15rem 0 0;
  font-size: clamp(0.78rem, 1.2cqw, 0.92rem);
  font-weight: 500;
  color: rgba(244, 247, 251, 0.92);
  direction: rtl;
}

.kepler-law-label strong {
  color: var(--gold);
  font-weight: 700;
}

.kepler-law-caption {
  margin: 0.15rem 0 0;
  font-size: clamp(0.7rem, 1.05cqw, 0.82rem);
  font-weight: 400;
  color: rgba(244, 247, 251, 0.62);
  line-height: 1.3;
  direction: rtl;
}

@media (prefers-reduced-motion: reduce) {
  .kepler-law-svg * {
    animation: none !important;
  }
}

.kepler-laws-stage.is-static .kepler-law-svg * {
  animation: none !important;
}

.orbit-ring {
  position: absolute;
  width: min(70cqw, 720px);
  height: min(70cqw, 720px);
  border: 1px solid rgba(232, 196, 122, 0.25);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: spin 48s linear infinite;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  top: -5px;
  left: calc(50% - 5px);
  box-shadow: 0 0 18px rgba(232, 196, 122, 0.8);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hud {
  position: absolute;
  z-index: 10;
  inset-inline-start: clamp(1rem, 3cqw, 2rem);
  bottom: var(--hud-bottom);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(244, 247, 251, 0.7);
  background: rgba(4, 10, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  user-select: none;
}

.progress {
  width: 88px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width 0.35s ease;
}

.hint {
  position: absolute;
  z-index: 10;
  inset-inline-end: clamp(1rem, 3cqw, 2rem);
  bottom: var(--hud-bottom);
  font-size: 0.85rem;
  color: rgba(244, 247, 251, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.is-first-slide .hint {
  opacity: 1;
  visibility: visible;
}

.chapter-list {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.chapter-list + .lead {
  margin-top: 1.35rem;
}

.chapter-list li {
  font-size: clamp(1.05rem, 2cqw, 1.35rem);
  font-weight: 400;
  color: var(--muted);
  padding-inline-start: 0.9rem;
  border-inline-start: 2px solid rgba(232, 196, 122, 0.55);
  transition: opacity 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chapter-list li.is-dimmed {
  opacity: 0.32;
  border-inline-start-color: rgba(232, 196, 122, 0.18);
}

/* Two-column list (term | detail) — aligned like a table, no grid lines */
.chapter-list.is-pairs {
  width: max-content;
  max-width: 100%;
}

.chapter-list.is-pairs li.is-pair {
  display: grid;
  grid-template-columns: 3.5ch auto;
  column-gap: 0.85rem;
  align-items: baseline;
  direction: ltr;
  text-align: start;
  font-variant-numeric: tabular-nums;
}

.chapter-list.is-pairs .list-term {
  font-weight: 500;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.4rem;
}

.stat {
  display: grid;
  gap: 0.2rem;
}

.stat strong {
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.5rem, 3.5cqw, 2.4rem);
  color: var(--cyan);
  font-weight: 700;
}

.stat span {
  font-size: clamp(1.1rem, 2cqw, 1.35rem);
  color: var(--muted);
}

/* Growth chart widget */
.widget-panel {
  position: absolute;
  z-index: 2;
  inset-inline-end: clamp(1.2rem, 4cqw, 3.5rem);
  bottom: clamp(5rem, 12cqh, 8rem);
  width: min(420px, 42cqw);
  padding: 1.1rem 1.25rem 1.25rem;
  background: rgba(4, 10, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.widget-center .widget-panel.chart-panel {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: 88cqw;
  max-width: 1100px;
  padding: 1.15rem 1.35rem 1.2rem;
  margin-bottom: 14cqh;
}

.widget-panel h3 {
  font-family: "Rubik", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.widget-center .widget-panel.chart-panel h3 {
  font-size: 1.05cqw;
  margin-bottom: 0.7rem;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 160px;
}

.chart.chart-line {
  display: block;
  height: auto;
  direction: ltr;
  unicode-bidi: isolate;
}

.chart.chart-line svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.widget-center .chart.chart-line {
  /* Stage-locked size (1280×720); SVG must fill — height:auto follows viewBox width and ignores min-height */
  height: 40cqh;
  min-height: 0;
}

.widget-center .chart.chart-line svg {
  width: 100%;
  height: 100%;
}

/* LEO growth: keep chart in the upper band above the title */
.slide.persist-leo-growth .widget-panel.chart-panel {
  align-self: start;
  margin-bottom: 0;
}

.chart-axis {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.chart-tick {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
}

.chart-marker {
  stroke: rgba(232, 196, 122, 0.75);
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
}

.chart-marker-label {
  fill: rgba(232, 196, 122, 0.95);
  font-size: 12px;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
}

.chart-x-label,
.chart-y-label {
  fill: rgba(244, 247, 251, 0.55);
  font-size: 13px;
  font-family: "Rubik", sans-serif;
}

.chart-area {
  fill: rgba(126, 200, 227, 0.18);
}

.chart-path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.slide.is-active .chart-path {
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: chartDraw 1.25s ease forwards;
}

.slide.is-active .chart-area {
  opacity: 0;
  animation: chartFade 0.8s ease 0.45s forwards;
}

@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes chartFade {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.is-active .chart-path,
  .slide.is-active .chart-area {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.chart-source {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  color: rgba(244, 247, 251, 0.45);
}

.chart-source-link {
  color: rgba(126, 200, 227, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chart-source-link:hover {
  color: var(--cyan);
}

.widget-center .chart-source {
  font-size: 0.72rem;
  margin-top: 0.55rem;
}

/* Orbit comparison widget — Earth centered on screen */
/* Before / after image split (LEO Amazon deforestation) */
.image-ba {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  direction: ltr;
  pointer-events: none;
  background: #040a16;
}

.image-ba-panel {
  position: relative;
  background-size: cover;
  background-position: center;
}

.image-ba-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 10, 22, 0.5) 0%,
    transparent 28%,
    transparent 55%,
    rgba(4, 10, 22, 0.55) 100%
  );
}

.image-ba-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: clamp(1rem, 2.8cqw, 1.75rem);
  bottom: auto;
  transform: translateX(-50%);
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4cqw, 1.7rem);
  color: #f4f7fb;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.04em;
}

/* LEO example slides 61–66: compact title stack, just above HUD */
/* LEO / MEO image-example beats: tighter copy, titles sit low over the photo */
.slide[data-id="leo-maps"] .slide-fg,
.slide[data-id="leo-agriculture"] .slide-fg,
.slide[data-id="leo-disaster"] .slide-fg,
.slide[data-id="leo-insurance"] .slide-fg,
.slide[data-id="leo-environment"] .slide-fg,
.slide[data-id="leo-spy"] .slide-fg,
.slide[data-id="meo-nav"] .slide-fg,
.slide[data-id="meo-maritime"] .slide-fg,
.slide[data-id="meo-aviation"] .slide-fg,
.slide[data-id="meo-ag"] .slide-fg,
.slide[data-id="meo-emergency"] .slide-fg,
.slide[data-id="meo-timing"] .slide-fg,
.slide[data-id="meo-survey"] .slide-fg,
.slide[data-id="meo-drone"] .slide-fg,
.slide[data-id="meo-space"] .slide-fg {
  padding-bottom: var(--hud-safe);
}

.slide[data-id="leo-maps"] .content,
.slide[data-id="leo-agriculture"] .content,
.slide[data-id="leo-disaster"] .content,
.slide[data-id="leo-insurance"] .content,
.slide[data-id="leo-environment"] .content,
.slide[data-id="leo-spy"] .content,
.slide[data-id="meo-nav"] .content,
.slide[data-id="meo-maritime"] .content,
.slide[data-id="meo-aviation"] .content,
.slide[data-id="meo-ag"] .content,
.slide[data-id="meo-emergency"] .content,
.slide[data-id="meo-timing"] .content,
.slide[data-id="meo-survey"] .content,
.slide[data-id="meo-drone"] .content,
.slide[data-id="meo-space"] .content {
  padding-block: 0.15rem 0.35rem;
}

.slide[data-id="leo-maps"] .eyebrow,
.slide[data-id="leo-agriculture"] .eyebrow,
.slide[data-id="leo-disaster"] .eyebrow,
.slide[data-id="leo-insurance"] .eyebrow,
.slide[data-id="leo-environment"] .eyebrow,
.slide[data-id="leo-spy"] .eyebrow,
.slide[data-id="meo-nav"] .eyebrow,
.slide[data-id="meo-maritime"] .eyebrow,
.slide[data-id="meo-aviation"] .eyebrow,
.slide[data-id="meo-ag"] .eyebrow,
.slide[data-id="meo-emergency"] .eyebrow,
.slide[data-id="meo-timing"] .eyebrow,
.slide[data-id="meo-survey"] .eyebrow,
.slide[data-id="meo-drone"] .eyebrow,
.slide[data-id="meo-space"] .eyebrow {
  margin-bottom: 0.3rem;
}

.slide[data-id="leo-maps"] h2,
.slide[data-id="leo-agriculture"] h2,
.slide[data-id="leo-disaster"] h2,
.slide[data-id="leo-insurance"] h2,
.slide[data-id="leo-environment"] h2,
.slide[data-id="leo-spy"] h2,
.slide[data-id="meo-nav"] h2,
.slide[data-id="meo-maritime"] h2,
.slide[data-id="meo-aviation"] h2,
.slide[data-id="meo-ag"] h2,
.slide[data-id="meo-emergency"] h2,
.slide[data-id="meo-timing"] h2,
.slide[data-id="meo-survey"] h2,
.slide[data-id="meo-drone"] h2,
.slide[data-id="meo-space"] h2 {
  line-height: 1.05;
}

.slide[data-id="leo-maps"] .lead,
.slide[data-id="leo-agriculture"] .lead,
.slide[data-id="leo-disaster"] .lead,
.slide[data-id="leo-insurance"] .lead,
.slide[data-id="leo-environment"] .lead,
.slide[data-id="leo-spy"] .lead,
.slide[data-id="meo-nav"] .lead,
.slide[data-id="meo-maritime"] .lead,
.slide[data-id="meo-aviation"] .lead,
.slide[data-id="meo-ag"] .lead,
.slide[data-id="meo-emergency"] .lead,
.slide[data-id="meo-timing"] .lead,
.slide[data-id="meo-survey"] .lead,
.slide[data-id="meo-drone"] .lead,
.slide[data-id="meo-space"] .lead {
  margin-top: 0.35rem;
}

.slide[data-id="leo-environment"] .image-ba-panel::after,
.slide[data-id="leo-disaster"] .image-ba-panel::after {
  background: linear-gradient(
    180deg,
    rgba(4, 10, 22, 0.5) 0%,
    transparent 28%,
    transparent 72%,
    rgba(4, 10, 22, 0.42) 100%
  );
}

/* Tsunami + Amazon BA: after on the left, before on the right (RTL reading) */
.slide[data-id="leo-disaster"] .image-ba,
.slide[data-id="leo-environment"] .image-ba {
  direction: rtl;
}

/* LEO | MEO | GEO — angled white gutters, no seam lines */
.slide.has-orbit-triptych .slide-fg {
  padding-bottom: 0;
  align-items: stretch;
}

.orbit-triptych {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  direction: ltr;
  background: #f4f7fb;
  pointer-events: none;
}

/* Soft veil sits on the triptych (deck veil is under slide-fg, so it can’t darken this widget) */
.slide.has-triptych-soft-veil .orbit-triptych::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    radial-gradient(ellipse at center, rgba(4, 10, 22, 0.18) 0%, rgba(4, 10, 22, 0.38) 80%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.08) 0%, rgba(4, 10, 22, 0.42) 100%);
  pointer-events: none;
}

.orbit-triptych-labels {
  position: absolute;
  inset-inline: 0;
  /* Sit above the slide counter HUD band */
  bottom: calc(var(--hud-safe) + 0.5cqh);
  z-index: 7;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  direction: ltr;
  pointer-events: none;
}

.orbit-triptych-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7cqw, 5.2rem);
  line-height: 1.08;
  color: var(--ink);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 12px 48px var(--shadow);
}

.orbit-triptych-label-he {
  font-family: "Heebo", sans-serif;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.orbit-triptych-label-en {
  font-size: 1em;
}

/* Soft-dark non-focused panels; focused orbit stays highlighted */
.slide.triptych-focus-leo .orbit-triptych-panel[data-orbit="meo"]::before,
.slide.triptych-focus-leo .orbit-triptych-panel[data-orbit="geo"]::before,
.slide.triptych-focus-meo .orbit-triptych-panel[data-orbit="leo"]::before,
.slide.triptych-focus-meo .orbit-triptych-panel[data-orbit="geo"]::before,
.slide.triptych-focus-geo .orbit-triptych-panel[data-orbit="leo"]::before,
.slide.triptych-focus-geo .orbit-triptych-panel[data-orbit="meo"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(ellipse at center, rgba(4, 10, 22, 0.28) 0%, rgba(4, 10, 22, 0.58) 80%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.22) 0%, rgba(4, 10, 22, 0.62) 100%);
  pointer-events: none;
}

.slide.triptych-focus-leo .orbit-triptych-label[data-orbit="meo"],
.slide.triptych-focus-leo .orbit-triptych-label[data-orbit="geo"],
.slide.triptych-focus-meo .orbit-triptych-label[data-orbit="leo"],
.slide.triptych-focus-meo .orbit-triptych-label[data-orbit="geo"],
.slide.triptych-focus-geo .orbit-triptych-label[data-orbit="leo"],
.slide.triptych-focus-geo .orbit-triptych-label[data-orbit="meo"] {
  opacity: 0.38;
}

/* Fade soft-dark in (persist cut or normal enter) */
.slide.triptych-focus-leo.is-active .orbit-triptych-panel[data-orbit="meo"]::before,
.slide.triptych-focus-leo.is-active .orbit-triptych-panel[data-orbit="geo"]::before,
.slide.triptych-focus-meo.is-active .orbit-triptych-panel[data-orbit="leo"]::before,
.slide.triptych-focus-meo.is-active .orbit-triptych-panel[data-orbit="geo"]::before,
.slide.triptych-focus-geo.is-active .orbit-triptych-panel[data-orbit="leo"]::before,
.slide.triptych-focus-geo.is-active .orbit-triptych-panel[data-orbit="meo"]::before {
  animation: fade-in 0.7s ease both;
}

.slide.triptych-focus-leo.is-active .orbit-triptych-label[data-orbit="meo"],
.slide.triptych-focus-leo.is-active .orbit-triptych-label[data-orbit="geo"],
.slide.triptych-focus-meo.is-active .orbit-triptych-label[data-orbit="leo"],
.slide.triptych-focus-meo.is-active .orbit-triptych-label[data-orbit="geo"],
.slide.triptych-focus-geo.is-active .orbit-triptych-label[data-orbit="leo"],
.slide.triptych-focus-geo.is-active .orbit-triptych-label[data-orbit="meo"] {
  animation: triptych-label-dim 0.7s ease both;
}

body.is-slide-cut .slide.persist-daily-triptych .orbit-triptych-media {
  animation: none !important;
}

@keyframes triptych-label-dim {
  from { opacity: 1; }
  to { opacity: 0.38; }
}

/* Triptych → full orbit: side panels part like curtains; focused panel expands */
.slide.triptych-focus-leo .orbit-triptych-panel,
.slide.triptych-focus-meo .orbit-triptych-panel,
.slide.triptych-focus-geo .orbit-triptych-panel {
  transition:
    clip-path 0.85s cubic-bezier(0.33, 0, 0.2, 1),
    transform 0.85s cubic-bezier(0.33, 0, 0.2, 1),
    opacity 0.7s ease;
}

.slide.triptych-focus-leo .orbit-triptych-label,
.slide.triptych-focus-meo .orbit-triptych-label,
.slide.triptych-focus-geo .orbit-triptych-label {
  transition: opacity 0.45s ease;
}

.slide.triptych-focus-leo .orbit-triptych-panel::before,
.slide.triptych-focus-meo .orbit-triptych-panel::before,
.slide.triptych-focus-geo .orbit-triptych-panel::before {
  transition: opacity 0.5s ease;
}

.slide.is-triptych-curtain-open .orbit-triptych {
  background: #040a16;
  transition: background-color 0.35s ease;
}

.slide.is-triptych-curtain-open .orbit-triptych-labels {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* MEO: sides open outward, center expands */
.slide.triptych-focus-meo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="leo"] {
  transform: translateX(-72%);
  opacity: 0;
}

.slide.triptych-focus-meo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="geo"] {
  transform: translateX(72%);
  opacity: 0;
}

.slide.triptych-focus-meo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="meo"] {
  z-index: 6;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.slide.triptych-focus-meo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="meo"]::after,
.slide.triptych-focus-meo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="leo"]::before,
.slide.triptych-focus-meo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="geo"]::before {
  opacity: 0;
}

/* LEO: right panels peel away, left expands */
.slide.triptych-focus-leo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="meo"],
.slide.triptych-focus-leo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="geo"] {
  transform: translateX(72%);
  opacity: 0;
}

.slide.triptych-focus-leo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="leo"] {
  z-index: 6;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.slide.triptych-focus-leo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="leo"]::after,
.slide.triptych-focus-leo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="meo"]::before,
.slide.triptych-focus-leo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="geo"]::before {
  opacity: 0;
}

/* GEO: left panels peel away, right expands */
.slide.triptych-focus-geo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="leo"],
.slide.triptych-focus-geo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="meo"] {
  transform: translateX(-72%);
  opacity: 0;
}

.slide.triptych-focus-geo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="geo"] {
  z-index: 6;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.slide.triptych-focus-geo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="geo"]::after,
.slide.triptych-focus-geo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="leo"]::before,
.slide.triptych-focus-geo.is-triptych-curtain-open .orbit-triptych-panel[data-orbit="meo"]::before {
  opacity: 0;
}

/* After curtain: hard-cut to full photo, then fade text + orbit diagram */
body.is-triptych-curtain-arrive .deck-orbit-layer {
  transition: opacity 0.75s ease, visibility 0.75s;
}

body.is-triptych-curtain-arrive .slide[data-id="orbit-leo"].is-active .content,
body.is-triptych-curtain-arrive .slide[data-id="orbit-meo"].is-active .content,
body.is-triptych-curtain-arrive .slide[data-id="orbit-geo"].is-active .content {
  animation: fade-in 0.75s ease both !important;
}

body.is-triptych-curtain-arrive .slide[data-id="orbit-leo"].is-active .content > *,
body.is-triptych-curtain-arrive .slide[data-id="orbit-meo"].is-active .content > *,
body.is-triptych-curtain-arrive .slide[data-id="orbit-geo"].is-active .content > * {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .slide.triptych-focus-leo .orbit-triptych-panel,
  .slide.triptych-focus-meo .orbit-triptych-panel,
  .slide.triptych-focus-geo .orbit-triptych-panel {
    transition: none !important;
  }
}

/*
 * Each panel is a window into a full-bleed image (same framing as that orbit’s
 * full-screen slide). Clip only reveals the wedge — center cut ≡ center of fullscreen.
 */
.orbit-triptych-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orbit-triptych-panel[data-orbit="leo"] {
  z-index: 3;
  clip-path: polygon(0% 0%, 35.25% 0%, 27.65% 100%, 0% 100%);
}

.orbit-triptych-panel[data-orbit="meo"] {
  z-index: 2;
  clip-path: polygon(36.15% 0%, 70.25% 0%, 62.65% 100%, 28.55% 100%);
}

.orbit-triptych-panel[data-orbit="geo"] {
  z-index: 1;
  clip-path: polygon(71.15% 0%, 100% 0%, 100% 100%, 63.55% 100%);
}

.orbit-triptych-media {
  position: absolute;
  inset: 0;
  background-color: #040a16;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
  animation: triptych-fade 0.9s ease both;
}

.orbit-triptych-panel[data-orbit="leo"] .orbit-triptych-media {
  animation-delay: 0.05s;
}

.orbit-triptych-panel[data-orbit="meo"] .orbit-triptych-media {
  animation-delay: 0.12s;
}

.orbit-triptych-panel[data-orbit="geo"] .orbit-triptych-media {
  animation-delay: 0.2s;
}

.orbit-triptych-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.14) 0%, transparent 28%, transparent 72%, rgba(4, 10, 22, 0.26) 100%);
  pointer-events: none;
  transition: opacity 0.45s ease;
}

@keyframes triptych-fade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-triptych-media {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.orbit-stage {
  position: absolute;
  z-index: 2;
  top: 50%;
  /* Midline of the animation sits on the left-half quarter line (x = 25%). */
  left: 25%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(60cqw, 676px);
  aspect-ratio: 1;
}

/* orbit-leo / orbit-meo / orbit-geo: compact in upper-left quarter (~¾ of full size) */
.deck-orbit-layer.is-compact .orbit-stage {
  width: min(45cqw, 507px);
  left: 25%;
  top: 36%;
}

.orbit-stage svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-earth {
  fill: #1a4a7a;
  stroke: rgba(126, 200, 227, 0.5);
  stroke-width: 2;
}

.orbit-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
  stroke-dasharray: 5 7;
}

.orbit-path.is-active-path {
  stroke: #ffffff;
  stroke-dasharray: none;
  stroke-width: 2.5;
}

.orbit-sat {
  fill: rgba(255, 255, 255, 0.75);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.35));
}

.orbit-sat.is-active-sat {
  fill: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.orbit-label {
  fill: rgba(255, 255, 255, 0.7);
  font-family: "Heebo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.orbit-label.is-active-label {
  fill: #ffffff;
}

.orbit-earth-label {
  fill: #f4f7fb;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

/* GPS triangulation widget */
.gps-stage {
  position: absolute;
  z-index: 2;
  inset-inline-end: clamp(1rem, 4cqw, 3rem);
  bottom: clamp(5rem, 14cqh, 9rem);
  width: min(380px, 40cqw);
  aspect-ratio: 1;
}

.gps-stage svg {
  width: 100%;
  height: 100%;
}

.gps-sat {
  fill: var(--cyan);
}

.gps-phone {
  fill: var(--ink);
  stroke: var(--gold);
  stroke-width: 2;
}

.gps-beam {
  stroke: rgba(126, 200, 227, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.gps-fix {
  fill: none;
  stroke: rgba(232, 196, 122, 0.35);
  stroke-width: 1;
}

.gps-fix.is-fix {
  stroke: var(--gold);
  stroke-width: 2;
  fill: rgba(232, 196, 122, 0.12);
}

/* Definition / pull-quote panel */
.quote-box {
  position: absolute;
  z-index: 3;
  top: clamp(1.4rem, 4cqh, 2.75rem);
  inset-inline: clamp(1.5rem, 5cqw, 4rem);
  max-width: min(820px, 88cqw);
  padding: clamp(1rem, 2.2cqw, 1.45rem) clamp(1.15rem, 2.5cqw, 1.75rem);
  background: rgba(4, 10, 22, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 196, 122, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.quote-center .slide-fg {
  display: grid;
  place-items: center;
  justify-items: center;
  padding-top: 7cqh;
  padding-bottom: var(--hud-safe);
}

.quote-orbit-cluster {
  grid-area: 1 / 1;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1rem, 2.2cqw, 1.75rem);
  direction: ltr; /* moon on physical left of quote */
  pointer-events: none;
}

.quote-center .quote-box {
  position: relative;
  top: auto;
  inset-inline: auto;
  left: auto;
  transform: none;
  width: max-content;
  max-width: min(72cqw, 900px);
  margin: 0;
}

.quote-center .quote-orbit-cluster .quote-box {
  grid-area: auto;
  direction: rtl;
  text-align: start;
}

.quote-center .content {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: stretch;
  z-index: 2;
}

.quote-text {
  margin: 0;
  font-family: "Heebo", sans-serif;
  font-size: clamp(1rem, 2.1cqw, 1.55rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(244, 247, 251, 0.95);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.quote-source {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(232, 196, 122, 0.75);
}

/* 2D moon orbit — sits left of quote when clustered */
.moon-orbit-2d {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: min(28cqw, 260px);
  height: min(28cqw, 260px);
  pointer-events: none;
}

.moon-orbit-2d-earth {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: #3a8fd4;
  box-shadow: 0 0 0 2px rgba(126, 200, 227, 0.35);
  display: grid;
  place-items: center;
  text-align: center;
}

.orbit-earth-label {
  max-width: 90%;
  font-family: "Heebo", system-ui, sans-serif;
  font-size: clamp(0.55rem, 1.35cqw, 0.78rem);
  font-weight: 700;
  line-height: 1.15;
  color: #f4f7fb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.moon-orbit-2d-path {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: moon-orbit-2d-spin 10s linear infinite;
}

.moon-orbit-2d-moon {
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: #f4f7fb;
  box-shadow: 0 0 10px rgba(244, 247, 251, 0.35);
}

@keyframes moon-orbit-2d-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .moon-orbit-2d-path {
    animation: none;
  }
}

/* Natural + artificial on one Earth (slide natural-artificial) */
.nat-art-orbits {
  position: relative;
  z-index: 3;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: min(36cqw, 340px);
  height: min(36cqw, 340px);
  pointer-events: none;
  margin-bottom: clamp(5rem, 14cqh, 8rem);
}

.nat-art-earth {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: #3a8fd4;
  box-shadow: 0 0 0 2px rgba(126, 200, 227, 0.35);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 1;
}

/* Static orbit rings — do not rotate (avoids dashed-line spin illusion) */
.nat-art-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.nat-art-ring.is-sat {
  inset: 22%;
  border: 1px solid rgba(232, 196, 122, 0.5);
}

.nat-art-ring.is-moon {
  inset: 4%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.nat-art-spin {
  position: absolute;
  border-radius: 50%;
  animation: nat-art-spin linear infinite;
}

.nat-art-spin.is-sat {
  inset: 22%;
  animation-duration: 8s;
}

.nat-art-spin.is-moon {
  inset: 4%;
  animation-duration: 32s;
}

.nat-art-moon {
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #f4f7fb;
  box-shadow: 0 0 10px rgba(244, 247, 251, 0.35);
}

.nat-art-sat {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 9px;
  margin: -4.5px 0 0 -7px; /* center yellow body on the orbit ring */
  border-radius: 2px;
  background: #e8c47a;
  box-shadow: 0 0 10px rgba(232, 196, 122, 0.55);
}

.nat-art-sat::before,
.nat-art-sat::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 5px;
  margin-top: -2.5px;
  background: rgba(126, 200, 227, 0.85);
  box-shadow: 0 0 6px rgba(126, 200, 227, 0.35);
}

.nat-art-sat::before {
  left: -10px;
  border-radius: 1px 0 0 1px;
}

.nat-art-sat::after {
  right: -10px;
  border-radius: 0 1px 1px 0;
}

@keyframes nat-art-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nat-art-spin {
    animation: none;
  }
}

/* Sun–Earth–Moon nested 2D hierarchy */
.sem-orbit {
  position: relative;
  z-index: 3;
  width: min(42cqw, 420px);
  height: min(42cqw, 420px);
  pointer-events: none;
}

.widget-center .sem-orbit {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  margin-bottom: clamp(4.5rem, 12cqh, 7rem);
}

/* Center of animation sits slightly right of the left-third midline. */
.widget-left-third .sem-orbit {
  justify-self: start;
  margin-bottom: 0;
  position: absolute;
  left: calc(100% / 6 + 100px);
  top: 46%;
  transform: translate(-50%, -50%);
}

.sem-orbit-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  margin: -15% 0 0 -15%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0%, #f0c14a 45%, #e8a020 100%);
  box-shadow:
    0 0 22px rgba(232, 196, 122, 0.8),
    0 0 48px rgba(232, 196, 122, 0.4);
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
}

.sem-orbit-sun-label {
  font-family: "Heebo", system-ui, sans-serif;
  font-size: clamp(0.7rem, 1.6cqw, 0.95rem);
  font-weight: 800;
  line-height: 1;
  color: #3a2a0a;
  text-shadow: 0 1px 0 rgba(255, 246, 200, 0.35);
}

.sem-orbit-earth-path {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 122, 0.28);
  animation: sem-orbit-spin 28s linear infinite;
}

.sem-orbit-earth {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10%;
  height: 10%;
  margin: -5% 0 0 -5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7ec8e3 0%, #3a8fd4 55%, #1a5a8a 100%);
  box-shadow: 0 0 0 2px rgba(126, 200, 227, 0.35);
}

.sem-orbit-moon-path {
  position: absolute;
  inset: -90%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: sem-orbit-spin 7s linear infinite;
}

.sem-orbit-moon {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22%;
  height: 22%;
  margin: -11% 0 0 -11%;
  border-radius: 50%;
  background: #f4f7fb;
  box-shadow: 0 0 8px rgba(244, 247, 251, 0.35);
}

@keyframes sem-orbit-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sem-orbit-earth-path,
  .sem-orbit-moon-path {
    animation: none;
  }
}

/* Same centering model as .quote-center (grid + symmetric padding) */
.widget-center .slide-fg {
  display: grid;
  place-items: center;
  justify-items: center;
  padding-top: 7cqh;
  padding-bottom: var(--hud-safe);
}

.widget-center .content {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: stretch;
  z-index: 2;
}

/* Newton orbit demo — pull / coast / orbit (replaces static circular-motion) */
.nod-wrap {
  position: relative;
  grid-area: 1 / 1;
  z-index: 3;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
  margin-bottom: clamp(5.5rem, 16cqh, 9rem);
}

.nod-stage {
  position: relative;
  width: min(42cqw, 400px);
  aspect-ratio: 1;
  pointer-events: none;
  margin: 0;
}

.nod-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nod-earth {
  fill: #3a8fd4;
  stroke: rgba(126, 200, 227, 0.55);
  stroke-width: 2;
}

.nod-earth.is-hollow {
  fill: none;
  stroke: rgba(126, 200, 227, 0.55);
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
}

.nod-path {
  fill: none;
  stroke: rgba(244, 247, 251, 0.28);
  stroke-width: 1.6;
}

.nod-trail {
  fill: none;
  stroke: rgba(232, 196, 122, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nod-moon {
  fill: #f4f7fb;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.nod-vel {
  stroke: #7dcf8a;
  stroke-width: 2.4;
  fill: none;
}

.nod-arrow-vel-head {
  fill: #7dcf8a;
}

.nod-force {
  stroke: #c5ebf7;
  stroke-width: 2.4;
  fill: none;
}

.nod-arrow-force-head {
  fill: #c5ebf7;
}

.nod-radial {
  stroke: #e8a06a;
  stroke-width: 2.2;
  fill: none;
}

.nod-arrow-radial-head {
  fill: #e8a06a;
}

.nod-label {
  font-family: "Heebo", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.nod-label-vel {
  fill: #7dcf8a;
}

.nod-label-force {
  fill: #c5ebf7;
}

.nod-label-force.is-pull,
.nod-label-vel.is-coast,
.nod-stage.is-live .nod-label {
  font-size: 23px;
  font-weight: 700;
}

.nod-label-radial {
  fill: #e8a06a;
}

/* Anatomy callouts */
.anatomy-list {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.55rem;
  row-gap: 0.35rem;
  width: min(100%, 42rem);
}

.anatomy-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem;
  align-items: baseline;
}

.anatomy-list .tag {
  font-family: "Rubik", sans-serif;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 700;
  min-width: 4.25rem;
}

.anatomy-list .desc {
  font-size: clamp(1rem, 1.8cqw, 1.2rem);
  color: var(--muted);
}

/* Anatomy summary: keep default --hud-safe bottom band (do not shrink it) */
.slide[data-id="anatomy"] .content {
  padding-bottom: 1rem;
}

.slide[data-id="anatomy"] .anatomy-list {
  margin-top: 0.55rem;
}

/* Narrow viewports scale the 1280×720 stage — do not reflow figure/Kepler layouts. */

