.worldview-shell { min-height: 100svh; background: var(--bg); }
.worldview-hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.worldview-scene {
  position: absolute;
  inset: var(--header-h) 0 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}
.worldview-scene.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; animation: scene-in 900ms ease both; }
.worldview-scene.is-active:first-of-type { animation: none; }
.worldview-scene.is-leaving { visibility: visible; z-index: 1; animation: scene-out 700ms ease both; }
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scene-out { from { opacity: 1; } to { opacity: 0; } }
.scene-field {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  opacity: .58;
  transform: scale(1.08);
  transform-origin: 55% 48%;
}
.worldview-scene.is-active .scene-field { animation: field-settle 5.6s linear both; }
@keyframes field-settle { from { transform: scale(1.08) translate3d(-.4%, .3%, 0); } to { transform: scale(1) translate3d(.4%, -.3%, 0); } }
.worldview-scene-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - (var(--gutter) * 2)));
  height: 100%;
  margin: 0 auto;
  padding: clamp(44px, 6vh, 76px) 0 112px;
  display: grid;
  grid-template-columns: minmax(390px, .9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: clamp(46px, 7vw, 112px);
}
.worldview-copy { min-width: 0; max-width: 620px; opacity: 1; transform: none; }
.worldview-copy h1,
.worldview-copy h2 {
  max-width: 11.5em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 74px);
  font-weight: 650;
  line-height: 1.34;
  letter-spacing: 0;
  word-break: keep-all;
  text-wrap: balance;
}
.worldview-copy h2 { font-size: clamp(44px, 4vw, 60px); line-height: 1.32; }
.worldview-visual { position: relative; min-width: 0; margin: 0; opacity: 1; transform: translate3d(var(--motion-x, 0), var(--motion-y, 0), 0); }
.worldview-visual .math-svg { width: 100%; aspect-ratio: 1.35 / 1; overflow: visible; }
.worldview-visual figcaption {
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.worldview-visual figcaption strong { font-weight: 650; }
.worldview-visual figcaption span { max-width: 38ch; color: var(--muted); text-align: right; }
.worldview-controls {
  position: absolute;
  z-index: 8;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 20px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.playback-meta { display: flex; align-items: center; gap: 8px; }
.scene-count { min-width: 50px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.scene-count strong { color: var(--fg); font-weight: 650; }
.playback-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease;
}
.playback-toggle:hover { background: var(--wash); }
.playback-toggle svg { width: 17px; height: 17px; }
.play-icon { display: none; }
.playback-toggle[data-paused="true"] .pause-icon { display: none; }
.playback-toggle[data-paused="true"] .play-icon { display: block; }
.progress-track { height: 2px; overflow: hidden; background: var(--border); }
.progress-fill { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.progress-fill.is-running { animation: progress-run 5.6s linear forwards; }
.progress-fill.is-paused { animation-play-state: paused; }
@keyframes progress-run { to { transform: scaleX(1); } }
.scene-tabs { display: flex; gap: 4px; }
.scene-tab {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.scene-tab:hover { color: var(--fg); background: var(--wash); }
.scene-tab[aria-selected="true"] { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }

.header-content-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 570;
  transition: color 180ms ease;
}
.header-content-link:hover { color: var(--fg); }
.mobile-nav-panel .mobile-content-start { margin-top: 10px; border-top: 1px solid var(--fg); }

.worldview-library {
  width: min(980px, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 128px 0 168px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.worldview-content-list { border-top: 1px solid var(--fg); }
.worldview-content-list a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 28px;
  row-gap: 12px;
  padding: 34px 8px 36px;
  border-bottom: 1px solid var(--border);
  transition: background 180ms ease, transform 200ms var(--ease);
}
.worldview-content-list a:hover { background: var(--wash); transform: translateX(8px); }
.content-index { padding-top: 5px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; line-height: 1.2; }
.worldview-content-list strong { display: block; font-size: 21px; font-weight: 650; line-height: 1.35; }
.worldview-content-list small { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.content-meta { align-self: start; padding-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.2; white-space: nowrap; }

@media (max-width: 980px) {
  .worldview-scene-inner { grid-template-columns: 1fr; align-content: center; gap: 18px; padding-top: 34px; padding-bottom: 92px; }
  .worldview-copy { max-width: 720px; }
  .worldview-copy h1, .worldview-copy h2 { max-width: 14em; font-size: clamp(40px, 7vw, 58px); }
  .worldview-visual { width: min(620px, 100%); justify-self: center; }
  .worldview-visual .math-svg { height: min(34svh, 320px); aspect-ratio: auto; }
}

@media (max-width: 600px) {
  .header-content-link { display: none; }
  .worldview-hero { min-height: 0; }
  .worldview-scene { inset: 0; }
  .worldview-scene.is-active { position: relative; inset: auto; }
  .worldview-scene-inner {
    width: calc(100% - 32px);
    height: auto;
    align-content: start;
    gap: 12px;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 18px;
  }
  .worldview-copy h1, .worldview-copy h2 { font-size: clamp(33px, 9.2vw, 42px); line-height: 1.34; }
  .worldview-copy h1 br, .worldview-copy h2 br { display: none; }
  .worldview-copy .eyebrow { margin-bottom: 10px; }
  .worldview-copy .lede { margin-top: 12px; font-size: 14px; line-height: 1.72; }
  .worldview-visual .math-svg { height: min(31svh, 246px); }
  .worldview-visual figcaption { min-height: 40px; padding-top: 9px; font-size: 11px; }
  .worldview-visual figcaption span { max-width: 25ch; }
  .worldview-controls {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 0 0 20px;
    gap: 8px;
  }
  .scene-count { min-width: 44px; }
  .scene-tabs { gap: 0; }
  .scene-tab { width: 40px; }
  .worldview-library { width: calc(100% - 40px); padding: 72px 0 120px; }
  .worldview-content-list a { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 14px; padding: 30px 0 32px; }
  .worldview-content-list strong { font-size: 19px; line-height: 1.4; }
  .worldview-content-list small { margin-top: 9px; font-size: 13px; line-height: 1.65; }
  .content-index { padding-top: 6px; }
  .content-meta { grid-column: 2; padding-top: 0; }
}

@media (max-width: 360px) {
  .worldview-controls {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "meta tabs" "progress progress";
    column-gap: 12px;
    row-gap: 8px;
  }
  .playback-meta { grid-area: meta; }
  .progress-track { grid-area: progress; }
  .scene-tabs { grid-area: tabs; justify-self: end; }
}

@media (max-height: 760px) and (max-width: 980px) {
  .worldview-scene-inner { gap: 8px; padding-top: 18px; }
  .worldview-copy .lede { display: none; }
  .worldview-visual .math-svg { height: 220px; }
}

@media (max-height: 760px) and (max-width: 600px) {
  .worldview-scene-inner { padding-top: calc(var(--header-h) + 18px); }
}

@media (prefers-reduced-motion: reduce) {
  .worldview-scene.is-active,
  .worldview-scene.is-leaving { animation: none !important; }
  .worldview-scene { transition: opacity 500ms ease !important; }
  .worldview-scene.is-active { opacity: 1; }
  .scene-field,
  .worldview-copy,
  .worldview-visual { transform: none !important; animation: none !important; }
  .worldview-scene.is-active .worldview-copy,
  .worldview-scene.is-active .worldview-visual { opacity: 1; }
  .progress-fill { transform: scaleX(1) !important; opacity: .55; }
}
