/* Dark NeutrinoHit-style reveal theme for the city science-pop lecture. */

:root {
  --universe-bg: #05070b;
  --universe-panel: #0d131d;
  --universe-panel-2: #111827;
  --universe-text: #f4f7fb;
  --universe-muted: #c5cfdd;
  --universe-blue: #76c7ff;
  --universe-gold: #ffcf70;
  --universe-rose: #ff8f9f;
  --universe-green: #8fe3a2;
  --universe-violet: #c3a5ff;
}

.reveal {
  background: radial-gradient(circle at 12% 8%, rgba(118, 199, 255, 0.1), transparent 26%),
    radial-gradient(circle at 88% 82%, rgba(255, 207, 112, 0.08), transparent 28%),
    var(--universe-bg);
  color: var(--universe-text);
  font-size: 35px;
}

.reveal .slides {
  text-align: left;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  text-transform: none;
  letter-spacing: 0;
}

.reveal h1 {
  font-size: 1.92em;
  line-height: 1.08;
}

.reveal h2 {
  font-size: 1.35em;
  line-height: 1.12;
}

.reveal h3 {
  font-size: 0.92em;
}

.reveal p,
.reveal li {
  line-height: 1.28;
}

.reveal .math.display {
  font-size: 0.78em;
}

.reveal .slide-number {
  font-size: 0.48em !important;
}

.reveal .footer {
  left: 1.05rem !important;
  bottom: 0.86rem !important;
  width: auto !important;
  color: rgba(244, 247, 251, 0.78) !important;
  font-size: 0.42em !important;
  letter-spacing: 0 !important;
}

.reveal .muted {
  color: var(--universe-muted);
}

.reveal .question {
  color: var(--universe-blue);
  font-weight: 800;
}

.reveal .takeaway {
  color: var(--universe-gold);
  font-weight: 800;
}

.reveal .compact li {
  margin: 0.2em 0;
}

.reveal .big-number {
  color: var(--universe-gold);
  font-size: 2.25em;
  font-weight: 900;
  line-height: 1;
}

.reveal .kicker {
  color: var(--universe-blue);
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reveal .slide-split,
.reveal .hero-layout,
.reveal .image-split {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 1.1rem;
  align-items: center;
}

.reveal .slide-copy {
  min-width: 0;
}

.reveal .slide-copy ul {
  margin-top: 0.25em;
}

.reveal .slide-copy li {
  margin: 0.32em 0;
}

.reveal .slide-viz {
  min-width: 0;
}

.reveal .hero-title-slide {
  padding-top: 0 !important;
}

.reveal .hero-layout {
  min-height: 670px;
  grid-template-columns: 0.92fr 1.08fr;
}

.reveal .hero-copy h1 {
  margin: 0 0 0.65rem;
  font-size: 1.9em;
}

.reveal .hero-copy .subtitle {
  max-width: 13.5em;
  color: var(--universe-muted);
  font-size: 0.8em;
  line-height: 1.3;
}

.reveal .hero-copy .meta {
  margin-top: 2.8rem;
  color: rgba(244, 247, 251, 0.86);
  font-size: 0.58em;
  line-height: 1.45;
}

.reveal .hero-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197, 207, 221, 0.24);
  border-radius: 8px;
  background: #05070b;
  box-shadow: 0 0 40px rgba(118, 199, 255, 0.12);
}

.reveal .hero-photo {
  aspect-ratio: 1.2 / 1;
}

.reveal .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal .bbn-video-slide {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 0.3rem;
  min-height: 650px;
}

.reveal .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(118, 199, 255, 0.18) 45%, transparent 58%),
    radial-gradient(circle at 70% 40%, rgba(255, 207, 112, 0.1), transparent 28%);
  mix-blend-mode: screen;
  animation: photo-sweep 7s ease-in-out infinite alternate;
}

.reveal .photo-credit {
  position: absolute;
  right: 0.5rem;
  bottom: 0.42rem;
  z-index: 1;
  padding: 0.18rem 0.34rem;
  border-radius: 4px;
  background: rgba(5, 7, 11, 0.62);
  color: rgba(244, 247, 251, 0.86);
  font-size: 0.36em;
  line-height: 1.1;
}

.reveal .source-list {
  font-size: 0.68em;
}

.reveal .source-list li {
  margin: 0.32em 0;
}

.reveal .scale-history {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 1rem;
  align-items: center;
  min-height: 565px;
}

.reveal .scale-history-copy {
  display: grid;
  gap: 0.54rem;
}

.reveal .scale-step {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.45rem;
  align-items: start;
  padding: 0.46rem 0.54rem;
  border: 1px solid rgba(197, 207, 221, 0.16);
  border-radius: 8px;
  background: rgba(244, 247, 251, 0.045);
  box-shadow: inset 0 0 30px rgba(118, 199, 255, 0.04);
}

.reveal .scale-step-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.18rem;
  border: 3px solid var(--universe-blue);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(118, 199, 255, 0.42);
}

.reveal .scale-step strong {
  display: block;
  color: var(--universe-text);
  font-size: 0.86em;
  line-height: 1.08;
}

.reveal .scale-step span {
  display: block;
  margin-top: 0.13rem;
  color: var(--universe-muted);
  font-size: 0.57em;
  line-height: 1.22;
}

.reveal .scale-history-viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 540px;
  gap: 0.22rem;
}

.reveal .scale-orb-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.42rem;
  align-items: center;
  width: 100%;
}

.reveal .scale-orb-row.fragment {
  margin-top: 0.02rem;
}

.reveal .scale-orb {
  --orb-size: 200px;
  justify-self: end;
  position: relative;
  width: var(--orb-size);
  height: var(--orb-size);
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(197, 207, 221, 0.28);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96) 0 1.8%, transparent 2.2%),
    radial-gradient(circle at 64% 42%, rgba(255, 207, 112, 0.88) 0 2.4%, transparent 2.8%),
    radial-gradient(circle at 52% 68%, rgba(118, 199, 255, 0.86) 0 2.2%, transparent 2.6%),
    radial-gradient(circle at 74% 72%, rgba(195, 165, 255, 0.75) 0 1.8%, transparent 2.2%),
    radial-gradient(circle at 26% 62%, rgba(255, 143, 159, 0.82) 0 2%, transparent 2.4%),
    radial-gradient(circle at 50% 50%, #152848 0%, #0a1426 54%, #02050d 100%);
  box-shadow:
    0 0 32px rgba(118, 199, 255, 0.2),
    inset 0 0 44px rgba(118, 199, 255, 0.14);
}

.reveal .scale-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(244, 247, 251, 0.92) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 18%, rgba(244, 247, 251, 0.76) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 24%, rgba(244, 247, 251, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 45%, rgba(244, 247, 251, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 52%, rgba(244, 247, 251, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 84%, rgba(244, 247, 251, 0.8) 0 1px, transparent 2px),
    linear-gradient(115deg, transparent 0%, rgba(118, 199, 255, 0.16) 44%, transparent 63%);
  opacity: 0.92;
}

.reveal .scale-orb::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(244, 247, 251, 0.11);
}

.reveal .scale-orb-now {
  --orb-size: 235px;
}

.reveal .scale-orb-one {
  --orb-size: 155px;
}

.reveal .scale-orb-ten {
  --orb-size: 82px;
}

.reveal .scale-orb-beginning {
  --orb-size: 22px;
  box-shadow:
    0 0 24px rgba(255, 207, 112, 0.42),
    inset 0 0 18px rgba(255, 207, 112, 0.24);
}

.reveal .scale-orb-with-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  gap: 0.08rem;
}

.reveal .scale-orb-question {
  color: var(--universe-gold);
  font-size: 1.05em;
  font-weight: 900;
  line-height: 0.82;
  text-shadow: 0 0 18px rgba(255, 207, 112, 0.48);
}

.reveal .scale-orb-label {
  min-width: 5.6rem;
  color: var(--universe-muted);
  font-size: 0.47em;
  font-weight: 750;
  line-height: 1.05;
}

.reveal .cosmic-history {
  width: 100%;
  min-height: 650px;
}

.reveal .slides section.history-stage-slide {
  padding-top: 0 !important;
}

.reveal .slides section.history-stage-slide > h2 {
  display: none;
}

.reveal .cosmic-history svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  overflow: visible;
}

.reveal .cosmic-history-page {
  position: relative;
  height: 650px;
  min-height: 650px;
}

.reveal .cosmic-history-page svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  overflow: visible;
}

.reveal .history-frame {
  fill: #07101b;
  stroke: rgba(197, 207, 221, 0.2);
  stroke-width: 2;
}

.reveal .history-axis-vertical {
  stroke: rgba(244, 247, 251, 0.9);
  stroke-width: 6;
  stroke-linecap: round;
}

.reveal .history-axis-arrow {
  fill: rgba(244, 247, 251, 0.86);
}

.reveal .history-axis-head {
  fill: var(--universe-text);
  font-size: 30px;
  font-weight: 900;
}

.reveal .history-caption {
  fill: rgba(244, 247, 251, 0.9);
  font-size: 21px;
  font-weight: 760;
}

.reveal .history-stage-row line {
  stroke: rgba(244, 247, 251, 0.82);
  stroke-width: 5;
  stroke-linecap: round;
}

.reveal .history-time,
.reveal .history-temp {
  fill: var(--universe-text);
  font-size: 20.5px;
  font-weight: 790;
}

.reveal .history-time {
  text-anchor: end;
}

.reveal .history-temp {
  text-anchor: start;
}

.reveal .history-stage {
  fill: var(--universe-text);
  font-size: 24px;
  font-weight: 790;
}

.reveal .history-stage-detail {
  fill: var(--universe-muted);
  font-size: 19px;
  font-weight: 720;
}

.reveal .history-stage-dot {
  fill: var(--universe-gold);
  filter: drop-shadow(0 0 10px rgba(255, 207, 112, 0.7));
}

.reveal .history-stage-active line {
  stroke: var(--universe-gold);
}

.reveal .history-stage-active .history-stage {
  fill: var(--universe-gold);
  font-weight: 900;
}

.reveal .inflation-field {
  filter: drop-shadow(0 0 22px rgba(118, 199, 255, 0.15));
}

.reveal .inflation-field-disk {
  fill: #06070d;
}

.reveal .inflation-field-edge {
  fill: none;
  stroke: rgba(244, 247, 251, 0.58);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.reveal .inflation-spot {
  opacity: 0.78;
}

.reveal .inflation-spot.hot {
  fill: #ef3157;
}

.reveal .inflation-spot.cold {
  fill: #19a8ff;
}

.reveal .history-nuclei-cloud {
  filter: drop-shadow(0 0 18px rgba(118, 199, 255, 0.18));
}

.reveal .history-nuclei-backdrop {
  fill: rgba(7, 16, 27, 0.68);
  stroke: rgba(197, 207, 221, 0.18);
  stroke-width: 2;
}

.reveal .history-nucleus {
  transform-box: fill-box;
  transform-origin: center;
  animation-duration: 4.8s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}

.reveal .history-nucleus-drift-a {
  animation-name: history-nucleus-drift-a;
}

.reveal .history-nucleus-drift-b {
  animation-name: history-nucleus-drift-b;
  animation-duration: 5.4s;
}

.reveal .history-nucleus-drift-c {
  animation-name: history-nucleus-drift-c;
  animation-duration: 5.8s;
}

.reveal .history-nucleus-drift-d {
  animation-name: history-nucleus-drift-d;
  animation-duration: 4.3s;
}

.reveal .history-nucleus-drift-e {
  animation-name: history-nucleus-drift-e;
  animation-duration: 6.2s;
}

.reveal .nucleon {
  stroke: rgba(244, 247, 251, 0.82);
  stroke-width: 2;
}

.reveal .nucleon.proton {
  fill: #ef5d73;
}

.reveal .nucleon.neutron {
  fill: #5fc7ff;
}

.reveal .history-nucleus-label {
  fill: var(--universe-text);
  font-size: 20px;
  font-weight: 820;
  text-anchor: middle;
}

.reveal .dark-age-viz {
  filter: drop-shadow(0 0 34px rgba(7, 16, 27, 0.82));
}

.reveal .dark-age-halo {
  fill: rgba(118, 199, 255, 0.12);
}

.reveal .dark-age-orb {
  fill: url("#dark-age-orb-gradient");
}

.reveal .dark-age-rim {
  fill: none;
  stroke: rgba(197, 207, 221, 0.24);
  stroke-width: 2;
}

@keyframes history-nucleus-drift-a {
  from {
    transform: translate(-18px, -12px);
  }
  to {
    transform: translate(20px, 10px);
  }
}

@keyframes history-nucleus-drift-b {
  from {
    transform: translate(16px, -10px);
  }
  to {
    transform: translate(-18px, 14px);
  }
}

@keyframes history-nucleus-drift-c {
  from {
    transform: translate(-14px, 18px);
  }
  to {
    transform: translate(18px, -14px);
  }
}

@keyframes history-nucleus-drift-d {
  from {
    transform: translate(18px, 12px);
  }
  to {
    transform: translate(-16px, -12px);
  }
}

@keyframes history-nucleus-drift-e {
  from {
    transform: translate(-12px, -18px);
  }
  to {
    transform: translate(14px, 18px);
  }
}

.reveal .history-floating-media {
  position: absolute !important;
  z-index: 0;
  pointer-events: none;
}

.reveal .history-media-hot {
  top: 0.1rem;
  right: 0.05rem;
  width: 48%;
}

.reveal .history-media-light {
  top: 34px !important;
  right: 22px;
  width: 600px;
  height: 338px;
  opacity: 0.72;
}

.reveal .history-media-structure {
  top: 42px !important;
  right: 16px;
  width: 520px;
  height: 293px;
  opacity: 0.9;
}

.reveal .history-media-solar {
  top: 70px !important;
  right: 18px;
  width: 420px;
  height: 315px;
  opacity: 0.92;
}

.reveal .history-media-frame {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
}

.reveal .slides section.bbn-qr-slide {
  padding-top: 0.32rem !important;
}

.reveal .bbn-qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 1.15rem;
  align-items: center;
  min-height: 560px;
}

.reveal .bbn-qr-copy {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  min-width: 0;
}

.reveal .bbn-qr-copy p {
  margin: 0;
  color: var(--universe-muted);
  font-size: 0.76em;
  line-height: 1.3;
}

.reveal .bbn-qr-copy .kicker p {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.reveal .bbn-qr-link {
  display: block;
  max-width: 100%;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  color: var(--universe-blue);
  font-size: 0.5em;
  line-height: 1.25;
}

.reveal .bbn-qr-copy p .bbn-qr-link {
  font-size: 0.66em;
}

.reveal .bbn-qr-card {
  justify-self: center;
  width: min(390px, 100%);
  margin: 0;
  padding: 0.3rem;
  border: 1px solid rgba(197, 207, 221, 0.26);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 36px rgba(118, 199, 255, 0.14);
}

.reveal .bbn-qr-card p {
  margin: 0;
}

.reveal .bbn-qr-card img {
  display: block;
  width: 100%;
  height: auto;
}

.reveal .slides section.elements-origin-section {
  padding-top: 0 !important;
}

.reveal .slides section.elements-origin-section > h2 {
  display: none;
}

.reveal .elements-origin-slide {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.28rem;
  height: 650px;
  min-height: 650px;
}

.reveal .elements-origin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.55rem;
}

.reveal .elements-origin-title,
.reveal .elements-origin-title p {
  margin: 0;
  font-size: 1.55em;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.reveal .elements-origin-subtitle,
.reveal .elements-origin-subtitle p {
  margin: 0 0 0.08rem;
  color: var(--universe-muted);
  font-size: 0.74em;
  font-weight: 800;
  line-height: 1.08;
  text-align: right;
}

.reveal .elements-origin-figure {
  --media-figure-gap: 0.16rem;
  --media-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.reveal .slides section.elements-statement-section {
  padding-top: 0 !important;
}

.reveal .slides section.elements-statement-section > h2 {
  display: none;
}

.reveal .elements-statement-slide {
  position: relative;
  display: grid;
  place-items: center;
  height: 650px;
  min-height: 650px;
  overflow: hidden;
}

.reveal .elements-statement-slide::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(197, 207, 221, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 18%, rgba(118, 199, 255, 0.12), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(255, 207, 112, 0.11), transparent 26%),
    rgba(7, 16, 27, 0.62);
  box-shadow: inset 0 0 80px rgba(118, 199, 255, 0.045);
}

.reveal .elements-statement-copy {
  position: relative;
  z-index: 2;
  width: min(1040px, 92%);
  text-align: center;
}

.reveal .elements-statement-copy .kicker {
  margin-bottom: 0.55rem;
}

.reveal .elements-statement-copy p {
  margin: 0;
  color: var(--universe-text);
  font-size: 1.42em;
  font-weight: 850;
  line-height: 1.14;
}

.reveal .elements-statement-mark {
  position: absolute;
  z-index: 1;
  color: rgba(244, 247, 251, 0.065);
  font-size: 2.4em;
  font-weight: 900;
  line-height: 1;
}

.reveal .elements-statement-mark:nth-child(1) {
  left: 11%;
  top: 14%;
  color: rgba(118, 199, 255, 0.12);
}

.reveal .elements-statement-mark:nth-child(2) {
  right: 12%;
  top: 15%;
  color: rgba(118, 199, 255, 0.11);
}

.reveal .elements-statement-mark:nth-child(3) {
  left: 19%;
  bottom: 18%;
  color: rgba(143, 227, 162, 0.11);
}

.reveal .elements-statement-mark:nth-child(4) {
  right: 21%;
  bottom: 15%;
  color: rgba(255, 143, 159, 0.1);
}

.reveal .elements-statement-mark:nth-child(5) {
  left: 8%;
  bottom: 42%;
  color: rgba(197, 207, 221, 0.09);
}

.reveal .elements-statement-mark:nth-child(6) {
  right: 8%;
  bottom: 39%;
  color: rgba(255, 207, 112, 0.14);
}

.reveal .galaxy-question-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 0;
  padding-left: 0;
  list-style: none;
}

.reveal .galaxy-question-list li {
  color: var(--universe-text);
  font-size: 0.82em;
  font-weight: 820;
  line-height: 1.12;
}

.reveal .galaxy-quiz-slide {
  --nh-quiz-option-min-height: 74px;
  --nh-quiz-option-padding: 0.34rem 0.42rem;
  --nh-quiz-option-size: 0.7em;
  min-height: 545px;
}

.reveal .galaxy-quiz-grid,
.reveal .galaxy-quiz-answer-grid {
  display: grid;
  gap: 0.28rem;
  align-items: stretch;
}

.reveal .galaxy-quiz-grid {
  grid-template-columns: minmax(0, 1.54fr) repeat(3, minmax(0, 0.58fr));
}

.reveal .galaxy-quiz-answer-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.62fr);
  width: min(920px, 100%);
  margin: 0 auto;
}

.reveal .galaxy-quiz-label {
  justify-content: flex-start;
  text-align: left;
  background: rgba(118, 199, 255, 0.17);
  border-color: rgba(118, 199, 255, 0.45);
}

.reveal .galaxy-quiz-value {
  font-size: 0.82em;
  background: rgba(17, 24, 39, 0.78);
}

.reveal .galaxy-quiz-value sup,
.reveal .galaxy-quiz-label sup {
  font-size: 0.58em;
  line-height: 0;
}

.reveal .slides section.dark-matter-balance-section > h2 {
  display: none;
}

.reveal .dark-matter-balance {
  min-height: 595px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 0.72rem;
  align-items: center;
}

.reveal .dark-matter-balance-copy h2 {
  margin: 0 0 0.62rem;
  color: var(--universe-text);
  font-size: 1.16em;
}

.reveal .dark-matter-balance-copy ol {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--universe-text);
  font-size: 0.62em;
  font-weight: 760;
  line-height: 1.22;
}

.reveal .dark-matter-balance-copy li {
  margin-bottom: 0.26rem;
}

.reveal .dark-matter-balance-copy ul {
  margin-top: 0.18rem;
  padding-left: 0.72rem;
  color: var(--universe-muted);
  font-size: 0.92em;
}

.reveal .dark-matter-pie-card {
  justify-self: center;
  width: min(390px, 100%);
}

.reveal .dark-matter-pie-title {
  margin-bottom: 0.34rem;
  color: var(--universe-text);
  font-size: 0.84em;
  font-weight: 760;
  line-height: 1.14;
  text-align: center;
}

.reveal .dark-matter-pie {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#38c9bd 0 72%, #4c83de 72% 95%, #08a934 95% 100%);
  box-shadow: inset -18px -22px 30px rgba(0, 0, 0, 0.24), 0 18px 38px rgba(0, 0, 0, 0.3);
}

.reveal .dark-matter-pie::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 33% 27%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.reveal .dm-percent {
  position: absolute;
  z-index: 1;
  color: #fff;
  font-size: 0.76em;
  font-weight: 780;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.reveal .dm-energy-percent {
  left: 27%;
  bottom: 23%;
}

.reveal .dm-matter-percent {
  right: 22%;
  top: 29%;
}

.reveal .dm-atoms-percent {
  left: 28%;
  top: 17%;
}

.reveal .dark-matter-legend {
  display: grid;
  gap: 0.16rem;
  margin-top: 0.46rem;
  color: var(--universe-text);
  font-size: 0.52em;
  font-weight: 720;
}

.reveal .dark-matter-legend div {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.reveal .dm-swatch {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: inline-block;
}

.reveal .dm-matter-swatch {
  background: #4c83de;
}

.reveal .dm-energy-swatch {
  background: #38c9bd;
}

.reveal .dm-atoms-swatch {
  background: #08a934;
}

.reveal .slides section.future-freeze-section,
.reveal .slides section.solar-future-section {
  padding-top: 0 !important;
}

.reveal .slides section.future-freeze-section > h2,
.reveal .slides section.solar-future-section > h2 {
  display: none;
}

.reveal .future-quiz-slide {
  --nh-quiz-option-min-height: 146px;
  --nh-quiz-option-size: 0.78em;
  --nh-quiz-gap: 0.72rem;
}

.reveal .future-quiz-options small {
  display: block;
  margin-top: 0.32rem;
  color: var(--universe-muted);
  font-size: 0.62em;
  font-weight: 760;
  line-height: 1.1;
}

.reveal .future-freeze-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 0.9rem;
  align-items: center;
  min-height: 650px;
}

.reveal .future-freeze-copy {
  display: grid;
  gap: 0.58rem;
  align-content: center;
}

.reveal .future-freeze-copy p {
  margin: 0;
  color: var(--universe-text);
  font-size: 0.72em;
  font-weight: 780;
  line-height: 1.18;
}

.reveal .future-freeze-later {
  margin-top: 0.18rem;
  color: var(--universe-gold);
  font-size: 1.38em;
  font-weight: 880;
  line-height: 1.04;
}

.reveal .future-freeze-viz .universe-viz {
  min-height: 520px;
}

.reveal .future-freeze-viz .universe-viz svg {
  max-height: 545px;
}

.reveal .solar-future-slide {
  position: relative;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 44% 50%, rgba(255, 255, 255, 0.035), transparent 21%),
    #000;
  color: #fff;
  border-radius: 0;
  isolation: isolate;
}

.reveal .solar-future-copy {
  position: absolute;
  left: 84px;
  top: 82px;
  z-index: 8;
  max-width: 680px;
}

.reveal .solar-future-title {
  margin: 0 0 0.42rem;
  color: #fff;
  font-size: 1.42em;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.reveal .solar-future-main {
  color: #fff;
  font-size: 0.82em;
  font-weight: 880;
  line-height: 1.1;
}

.reveal .solar-future-main::before {
  content: "";
  display: inline-block;
  width: 0.18em;
}

.reveal .solar-future-time {
  position: absolute;
  top: 96px;
  right: 170px;
  z-index: 10;
  color: #fff;
  font-size: 0.88em;
  font-weight: 760;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.reveal .solar-future-scale {
  position: absolute;
  left: 62px;
  top: 167px;
  z-index: 5;
  display: grid;
  grid-template-rows: repeat(7, 11px);
  gap: 1px;
  width: 28px;
  justify-items: center;
  opacity: 0.92;
}

.reveal .solar-future-scale span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}

.reveal .solar-planets {
  position: absolute;
  left: 92px;
  right: 245px;
  top: 332px;
  z-index: 6;
  height: 116px;
}

.reveal .solar-planets::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 0;
  top: 57px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.reveal .planet {
  position: absolute;
  top: 57px;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}

.reveal .planet.neptune {
  left: 5.5%;
  width: 49px;
  height: 49px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.42), transparent 19%),
    linear-gradient(145deg, #9fc6ff, #547dc9 54%, #24336f);
}

.reveal .planet.uranus {
  left: 15%;
  width: 58px;
  height: 58px;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.55), transparent 22%),
    linear-gradient(145deg, #f0ffff, #cce5e8 58%, #7b97a1);
}

.reveal .planet.saturn {
  left: 35%;
  width: 105px;
  height: 105px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.35), transparent 19%),
    linear-gradient(180deg, #eee6aa 0 16%, #c9bd73 16% 31%, #eee6aa 31% 48%, #b9a45a 48% 64%, #f1df83 64% 100%);
  box-shadow: 0 0 22px rgba(239, 222, 131, 0.25);
}

.reveal .planet.saturn i {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 190px;
  height: 24px;
  border: 7px solid rgba(207, 190, 119, 0.68);
  border-left-color: rgba(207, 190, 119, 0.16);
  border-right-color: rgba(207, 190, 119, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(3deg);
}

.reveal .planet.jupiter {
  left: 61%;
  width: 128px;
  height: 128px;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.38), transparent 16%),
    linear-gradient(180deg, #d9d2bf 0 13%, #b08262 13% 25%, #e4d6bd 25% 39%, #b46e55 39% 50%, #e7d8c4 50% 65%, #a87962 65% 78%, #d9d0bd 78% 100%);
  box-shadow: 0 0 24px rgba(228, 214, 189, 0.28);
}

.reveal .planet.mars {
  left: 72.5%;
  width: 9px;
  height: 9px;
  background: #d79a6d;
}

.reveal .planet.earth {
  left: 79%;
  width: 17px;
  height: 17px;
  background:
    radial-gradient(circle at 64% 30%, #83cb6a 0 18%, transparent 20%),
    radial-gradient(circle at 35% 55%, #73c37b 0 17%, transparent 19%),
    linear-gradient(145deg, #80d7ff, #1b64a7 72%);
  box-shadow: 0 0 14px rgba(118, 199, 255, 0.35);
}

.reveal .planet.venus {
  left: 84.5%;
  width: 15px;
  height: 15px;
  background: linear-gradient(145deg, #f4f0df, #bdb7a4);
}

.reveal .planet.mercury {
  left: 89%;
  width: 6px;
  height: 6px;
  background: #9e9585;
}

.reveal .planet.pluto {
  left: 93%;
  width: 4px;
  height: 4px;
  background: #b7ada0;
  opacity: 0.8;
}

.reveal .future-sun {
  position: absolute;
  top: var(--sun-center-y, 389px) !important;
  right: var(--sun-right);
  z-index: 4;
  width: var(--sun-diameter);
  height: var(--sun-diameter);
  border-radius: 50%;
  transform: translateY(-50%) !important;
  background:
    radial-gradient(circle at 32% 35%, rgba(255, 255, 255, 0.34), transparent 23%),
    linear-gradient(90deg, var(--sun-face) 0 58%, var(--sun-side) 58% 100%);
  box-shadow:
    0 0 48px var(--sun-glow),
    0 0 120px rgba(255, 255, 255, 0.07);
}

.reveal .future-sun::after {
  content: "";
  position: absolute;
  top: 0;
  right: -3.5%;
  width: 34%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
}

.reveal .universe-viz {
  width: 100%;
  min-height: 410px;
}

.reveal .universe-viz.universe-viz-large {
  margin-left: -2%;
  width: 104%;
  min-height: 585px;
}

.reveal .universe-viz svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 505px;
}

.reveal .universe-viz.universe-viz-large svg {
  max-height: 590px;
}

.reveal .u-frame {
  fill: #07101b;
  stroke: rgba(197, 207, 221, 0.2);
  stroke-width: 1.4;
}

.reveal .u-panel {
  fill: rgba(244, 247, 251, 0.055);
  stroke: rgba(197, 207, 221, 0.2);
  stroke-width: 1.2;
}

.reveal .u-title {
  fill: var(--universe-text);
  font-size: 31px;
  font-weight: 850;
}

.reveal .u-subtitle,
.reveal .u-label {
  fill: var(--universe-muted);
  font-size: 19px;
}

.reveal .u-small {
  fill: var(--universe-muted);
  font-size: 15px;
}

.reveal .u-blue {
  fill: var(--universe-blue);
}

.reveal .u-gold {
  fill: var(--universe-gold);
}

.reveal .u-rose {
  fill: var(--universe-rose);
}

.reveal .u-green {
  fill: var(--universe-green);
}

.reveal .u-violet {
  fill: var(--universe-violet);
}

.reveal .u-line {
  fill: none;
  stroke: rgba(244, 247, 251, 0.62);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal .u-line.blue {
  stroke: var(--universe-blue);
}

.reveal .u-line.gold {
  stroke: var(--universe-gold);
}

.reveal .u-line.rose {
  stroke: var(--universe-rose);
}

.reveal .u-line.green {
  stroke: var(--universe-green);
}

.reveal .u-line.violet {
  stroke: var(--universe-violet);
}

.reveal .u-dashed {
  stroke-dasharray: 9 10;
}

.reveal .u-flow {
  stroke-dasharray: 12 16;
  animation: u-flow 3.4s linear infinite;
}

.reveal .u-pulse {
  animation: u-pulse 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.reveal .u-drift {
  animation: u-drift 5.6s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

.reveal .u-spin {
  animation: u-spin 18s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.reveal .u-draw {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: u-draw 5.2s ease-in-out infinite;
}

.reveal .u-fade {
  animation: u-fade 4.8s ease-in-out infinite alternate;
}

.reveal .u-grow {
  animation: u-grow 4.5s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes photo-sweep {
  from {
    transform: translateX(-12%);
    opacity: 0.48;
  }
  to {
    transform: translateX(12%);
    opacity: 0.82;
  }
}

@keyframes u-flow {
  to {
    stroke-dashoffset: -112;
  }
}

@keyframes u-pulse {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes u-drift {
  from {
    transform: translateX(-9px) translateY(4px);
  }
  to {
    transform: translateX(12px) translateY(-5px);
  }
}

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

@keyframes u-draw {
  0% {
    stroke-dashoffset: 900;
    opacity: 0.2;
  }
  45%,
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -900;
    opacity: 0.25;
  }
}

@keyframes u-fade {
  from {
    opacity: 0.28;
  }
  to {
    opacity: 1;
  }
}

@keyframes u-grow {
  from {
    transform: scale(0.88);
    opacity: 0.45;
  }
  to {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .reveal {
    font-size: 31px;
  }

  .reveal .slide-split,
  .reveal .hero-layout,
  .reveal .image-split {
    grid-template-columns: 1fr;
  }

}


/* Olbers paradox chapter */
.reveal .slides section.olbers-section {
  padding-top: 0 !important;
}

.reveal .slides section.olbers-section > h2 {
  display: none;
}

.reveal .olbers-slide {
  --cone: 0;
  --plane-1: 0;
  --plane-2: 0;
  --plane-3: 0;
  --plane-4: 0;
  --hit-rays: 0;
  --whiteout: 0;
  --sky-light: 0;
  position: relative;
  height: 650px;
  min-height: 650px;
  overflow: hidden;
  color: var(--universe-text);
  isolation: isolate;
}

.reveal .olbers-sky {
  position: absolute;
  inset: -6px;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(118, 199, 255, 0.11), transparent 25%),
    radial-gradient(circle at 78% 16%, rgba(195, 165, 255, 0.08), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 207, 112, 0.12), transparent 28%),
    #03050a;
}

.reveal .olbers-sky::before,
.reveal .olbers-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reveal .olbers-sky::before {
  background:
    radial-gradient(circle at 8% 18%, rgba(244, 247, 251, 0.9) 0 1.3px, transparent 2px),
    radial-gradient(circle at 18% 36%, rgba(244, 247, 251, 0.52) 0 1px, transparent 1.8px),
    radial-gradient(circle at 32% 14%, rgba(255, 207, 112, 0.74) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 45% 28%, rgba(244, 247, 251, 0.62) 0 1.1px, transparent 2px),
    radial-gradient(circle at 59% 12%, rgba(118, 199, 255, 0.75) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 72% 34%, rgba(244, 247, 251, 0.56) 0 1px, transparent 1.9px),
    radial-gradient(circle at 88% 22%, rgba(255, 207, 112, 0.7) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 93% 51%, rgba(244, 247, 251, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 21% 63%, rgba(118, 199, 255, 0.62) 0 1px, transparent 1.9px),
    radial-gradient(circle at 40% 56%, rgba(244, 247, 251, 0.58) 0 1.2px, transparent 2px),
    radial-gradient(circle at 67% 61%, rgba(255, 207, 112, 0.64) 0 1.2px, transparent 2px),
    radial-gradient(circle at 82% 76%, rgba(244, 247, 251, 0.48) 0 1px, transparent 1.8px);
  opacity: calc(0.35 + var(--sky-light) * 0.5);
}

.reveal .olbers-sky::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 231, 164, 0.88), rgba(255, 169, 86, 0.74) 45%, rgba(255, 248, 216, 0.92) 100%);
  opacity: var(--whiteout);
}

.reveal .olbers-diagram {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateX(150px);
}

.reveal .olbers-cone-lines {
  opacity: var(--cone);
}

.reveal .olbers-cone-edge {
  fill: none;
  stroke: rgba(255, 207, 112, 0.7);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.reveal .olbers-cone-side {
  fill: rgba(118, 199, 255, 0.07);
  stroke: rgba(255, 207, 112, 0.22);
  stroke-width: 2.4;
}

.reveal .olbers-central-ray {
  fill: none;
  stroke: rgba(255, 90, 84, 0.7);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.reveal .olbers-hit-rays {
  opacity: var(--hit-rays);
}

.reveal .olbers-hit-rays line {
  stroke: rgba(255, 98, 92, 0.56);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.reveal .olbers-plane {
  opacity: var(--plane-opacity);
  filter: drop-shadow(0 0 12px rgba(118, 199, 255, 0.12));
}

.reveal .olbers-plane-1 {
  --plane-opacity: var(--plane-1);
}

.reveal .olbers-plane-2 {
  --plane-opacity: var(--plane-2);
}

.reveal .olbers-plane-3 {
  --plane-opacity: var(--plane-3);
}

.reveal .olbers-plane-4 {
  --plane-opacity: var(--plane-4);
}

.reveal .olbers-plane-face {
  fill: rgba(169, 178, 255, 0.48);
  stroke: rgba(215, 220, 255, 0.82);
  stroke-width: 4;
}

.reveal .olbers-plane-grid {
  fill: none;
  stroke: rgba(5, 7, 11, 0.72);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.reveal .olbers-plane-back {
  fill: rgba(169, 178, 255, 0.2);
  stroke: rgba(215, 220, 255, 0.42);
  stroke-width: 3;
}

.reveal .olbers-star {
  fill: #ffe768;
  stroke: #ff743d;
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(255, 207, 112, 0.72));
}

.reveal .olbers-star.dim {
  opacity: 0.58;
}

.reveal .olbers-observer-symbol {
  filter: drop-shadow(0 0 18px rgba(118, 199, 255, 0.24));
}

.reveal .olbers-observer-head {
  fill: #a8f7a5;
  stroke: #35b94a;
  stroke-width: 8;
}

.reveal .olbers-observer-eye {
  fill: #f4f7fb;
  stroke: #05070b;
  stroke-width: 7;
}

.reveal .olbers-observer-pupil {
  fill: #05070b;
}

.reveal .olbers-distance-label {
  fill: rgba(244, 247, 251, 0.72);
  font-size: 18px;
  font-weight: 780;
}

.reveal .olbers-dark-stars {
  opacity: calc(0.12 + var(--sky-light) * 0.1);
}

.reveal .olbers-copy {
  position: relative;
  z-index: 6;
  width: min(900px, 78%);
  padding-top: 26px;
}

.reveal .olbers-kicker {
  color: var(--universe-blue);
  font-size: 0.56em;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reveal .olbers-title {
  max-width: 12.5em;
  margin-top: 0.14rem;
  font-size: 1.74em;
  font-weight: 900;
  line-height: 1.04;
}

.reveal .olbers-caption {
  max-width: 22em;
  margin-top: 0.48rem;
  color: var(--universe-muted);
  font-size: 0.68em;
  line-height: 1.25;
}

.reveal .olbers-equation {
  display: inline-block;
  margin-top: 0.62rem;
  padding: 0.18rem 0.38rem;
  border-left: 5px solid var(--universe-gold);
  color: var(--universe-gold);
  font-size: 0.72em;
  font-weight: 850;
  background: rgba(5, 7, 11, 0.36);
}

.reveal .olbers-conclusion {
  position: absolute;
  right: 0;
  bottom: 28px;
  z-index: 6;
  width: 44%;
  color: var(--universe-text);
  font-size: 0.9em;
  font-weight: 880;
  line-height: 1.08;
  text-align: right;
}

.reveal .olbers-conclusion span {
  color: var(--universe-gold);
}

.reveal .olbers-bright .olbers-title,
.reveal .olbers-bright .olbers-caption,
.reveal .olbers-bright .olbers-kicker,
.reveal .olbers-bright .olbers-equation,
.reveal .olbers-bright .olbers-conclusion {
  color: #191006;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.45);
}

.reveal .olbers-bright .olbers-equation {
  border-left-color: #6b3000;
  background: rgba(255, 244, 217, 0.34);
}

.reveal .olbers-answer {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.1rem;
  align-items: center;
  height: 650px;
}

.reveal .olbers-answer-title {
  font-size: 1.46em;
  font-weight: 900;
  line-height: 1.06;
}

.reveal .olbers-answer-title span {
  color: var(--universe-gold);
}

.reveal .olbers-answer-grid {
  display: grid;
  gap: 0.46rem;
}

.reveal .olbers-answer-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.45rem;
  align-items: center;
  min-height: 118px;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(197, 207, 221, 0.16);
}

.reveal .olbers-answer-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: #05070b;
  font-size: 1.05em;
  font-weight: 950;
  background: var(--accent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 48%, transparent);
}

.reveal .olbers-answer-item strong {
  display: block;
  color: var(--universe-text);
  font-size: 0.82em;
  line-height: 1.08;
}

.reveal .olbers-answer-item span {
  display: block;
  margin-top: 0.12rem;
  color: var(--universe-muted);
  font-size: 0.57em;
  line-height: 1.22;
}
