.moving-worlds-scroll {
  --moving-scroll: 0;
  position: relative;
  min-height: 520svh;
  color: #efe1be;
  background: #020303;
  border-top: 1px solid rgba(201, 155, 79, .18);
}

.moving-worlds-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #020303;
}

.moving-worlds-scene-bg {
  position: absolute;
  z-index: -5;
  inset: -4%;
  opacity: .46;
  background:
    linear-gradient(180deg, rgba(2, 5, 6, .48), rgba(2, 5, 6, .1) 38%, rgba(2, 5, 6, .82)),
    url("./assets/gaiamath-hero.webp");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.08);
  transform: scale(calc(1.02 + var(--moving-scroll) * .00007));
}

.moving-worlds-field {
  position: absolute;
  z-index: -2;
  inset: -16vh -8vw;
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: clamp(12px, 2vw, 28px);
  opacity: .94;
  pointer-events: none;
  transform: rotate(-7deg) translateY(calc(var(--moving-scroll) * -.18px));
  will-change: transform;
}

.moving-worlds-column {
  display: grid;
  gap: clamp(12px, 2vw, 28px);
  will-change: transform;
}

.moving-worlds-column:nth-child(1) { transform: translateY(calc(var(--moving-scroll) * .10px - 140px)); }
.moving-worlds-column:nth-child(2) { transform: translateY(calc(var(--moving-scroll) * -.16px - 40px)); }
.moving-worlds-column:nth-child(3) { transform: translateY(calc(var(--moving-scroll) * .13px - 180px)); }
.moving-worlds-column:nth-child(4) { transform: translateY(calc(var(--moving-scroll) * -.20px - 80px)); }
.moving-worlds-column:nth-child(5) { transform: translateY(calc(var(--moving-scroll) * .09px - 120px)); }

.moving-worlds-tile {
  position: relative;
  min-height: clamp(220px, 32vw, 470px);
  margin: 0;
  overflow: hidden;
  background: #07110e;
  border: 1px solid rgba(249, 237, 207, .14);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.moving-worlds-tile-wide {
  min-height: clamp(170px, 24vw, 330px);
}

.moving-worlds-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 5, 6, .58));
}

.moving-worlds-tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.95) contrast(1.05);
  transform: scale(1.06);
}

.moving-worlds-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(104, 243, 238, .22), rgba(230, 191, 115, .08) 18%, transparent 36%),
    linear-gradient(90deg, rgba(2, 5, 6, .86), rgba(2, 5, 6, .18) 36%, rgba(2, 5, 6, .22) 62%, rgba(2, 5, 6, .86));
}

.moving-worlds-heading {
  position: relative;
  z-index: 4;
  width: min(1060px, calc(100% - 44px));
  margin: 0 auto;
  text-align: center;
  transform: translateY(calc(var(--moving-scroll) * -.035px));
}

.moving-worlds-heading span,
.moving-reels-heading span,
.convergence-title-panel span,
.convergence-observer figcaption span {
  display: block;
  color: #75ded5;
  font: 850 clamp(11px, 1vw, 13px)/1.4 Arial, sans-serif;
  letter-spacing: .38em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(104, 243, 238, .42);
}

.moving-worlds-heading h2,
.moving-reels-heading h2,
.convergence-title-panel h2 {
  margin: 18px 0 0;
  color: #ffe8a9;
  font: 500 clamp(58px, 12vw, 178px)/.82 Georgia, "Times New Roman", serif;
  letter-spacing: .03em;
  text-shadow: 0 0 42px rgba(230, 191, 115, .32), 0 12px 60px rgba(0, 0, 0, .7);
}

.moving-worlds-heading p {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: rgba(249, 237, 207, .78);
  font: 400 clamp(18px, 2vw, 28px)/1.28 Arial, sans-serif;
  letter-spacing: 0;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .8);
}

.moving-worlds-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.moving-worlds-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #06100d;
  background: linear-gradient(180deg, #f8db95, #d99f4c);
  border-radius: 999px;
  text-decoration: none;
  font: 800 .9rem/1 Arial, sans-serif;
}

.moving-worlds-actions a + a {
  color: #f9edcf;
  background: rgba(2, 5, 6, .58);
  border: 1px solid rgba(249, 237, 207, .25);
  backdrop-filter: blur(14px);
}

.moving-worlds-scroll-note {
  position: absolute;
  z-index: 4;
  bottom: 26px;
  left: 50%;
  color: rgba(249, 237, 207, .58);
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.moving-reels {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 10vw, 160px) 0;
  color: #eadbb7;
  background:
    linear-gradient(180deg, #020303, #090b0b 48%, #020303),
    #020303;
  border-block: 1px solid rgba(202, 157, 81, .18);
}

.moving-reels::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 11.8vw, rgba(110, 220, 211, .08) 11.9vw 12vw),
    repeating-linear-gradient(0deg, transparent 0 72px, rgba(222, 176, 88, .045) 73px);
}

.moving-reels-heading {
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto clamp(46px, 5vw, 78px);
}

.moving-reels-heading h2 {
  font-size: clamp(2.4rem, 4vw, 5.1rem);
}

.moving-reel {
  width: 100%;
  overflow: hidden;
  padding-block: clamp(7px, .7vw, 13px);
}

.moving-reel + .moving-reel {
  margin-top: clamp(12px, 1.2vw, 22px);
}

.moving-reel-track {
  display: flex;
  width: max-content;
  gap: clamp(14px, 1.35vw, 26px);
  padding-inline: clamp(14px, 1.35vw, 26px);
  will-change: transform;
  animation: movingReelForward 58s linear infinite;
}

.moving-reel-reverse .moving-reel-track {
  animation-name: movingReelReverse;
  animation-duration: 64s;
}

.moving-reel:hover .moving-reel-track,
.moving-reel:focus-within .moving-reel-track {
  animation-play-state: paused;
}

.moving-reel figure {
  position: relative;
  flex: 0 0 clamp(330px, 36vw, 680px);
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #050707;
  border: 1px solid rgba(218, 175, 94, .5);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, .54),
    inset 0 0 0 4px rgba(4, 8, 8, .82);
}

.moving-reel figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(117, 222, 213, .18),
    inset 0 -70px 72px rgba(0, 0, 0, .72);
}

.moving-reel video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(1.08) saturate(.95) brightness(.9);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}

.moving-reel figure:hover video {
  transform: scale(1.045);
  filter: contrast(1.08) saturate(1.08) brightness(1.02);
}

.moving-reel figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 18px;
  color: rgba(243, 227, 193, .82);
  font: 800 9px/1.2 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@keyframes movingReelForward {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes movingReelReverse {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.toad-frequency-corridor {
  position: relative;
  min-height: clamp(190px, 25vw, 380px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  border-block: 1px solid rgba(198, 153, 75, .15);
}

.toad-frequency-corridor::before,
.toad-frequency-corridor::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 31%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 222, 213, .72));
  box-shadow: 0 0 12px rgba(117, 222, 213, .34);
}

.toad-frequency-corridor::before { left: 0; }
.toad-frequency-corridor::after {
  right: 0;
  transform: rotate(180deg);
}

.toad-frequency-corridor video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  filter: contrast(1.08) saturate(.94) brightness(.92);
}

.toad-frequency-line {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 13%;
  height: 15px;
  opacity: .58;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #75ded5 0 2px, transparent 2px 9px);
  clip-path: polygon(0 46%, 6% 46%, 6% 20%, 7% 20%, 7% 80%, 8% 80%, 8% 35%, 11% 35%, 11% 62%, 14% 62%, 14% 12%, 15% 12%, 15% 88%, 16% 88%, 16% 44%, 25% 44%, 25% 55%, 35% 55%, 35% 28%, 36% 28%, 36% 72%, 37% 72%, 37% 42%, 49% 42%, 49% 5%, 50% 5%, 50% 95%, 51% 95%, 51% 41%, 64% 41%, 64% 70%, 65% 70%, 65% 30%, 66% 30%, 66% 54%, 82% 54%, 82% 18%, 83% 18%, 83% 82%, 84% 82%, 84% 45%, 100% 45%, 100% 55%, 0 55%);
  filter: drop-shadow(0 0 8px rgba(117, 222, 213, .62));
}

.convergence-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 9vw, 150px) 0 clamp(96px, 10vw, 170px);
  color: #e8d9b9;
  background:
    radial-gradient(circle at 64% 48%, rgba(70, 151, 151, .12), transparent 28%),
    linear-gradient(180deg, #030404, #0a0c0c 52%, #020303);
  border-bottom: 1px solid rgba(205, 157, 78, .2);
}

.convergence-preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .34;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 7.8vw, rgba(230, 191, 112, .035) 7.9vw 8vw),
    repeating-linear-gradient(0deg, transparent 0 90px, rgba(110, 220, 211, .035) 91px);
}

.convergence-title-panel {
  width: min(1460px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  margin: 0 auto clamp(54px, 6vw, 92px);
}

.convergence-film-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1376 / 768;
  min-height: 202px;
  margin: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(225, 188, 111, .48);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .5);
}

.convergence-film-stage iframe,
.convergence-film-curtain {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.convergence-film-stage iframe { z-index: 1; }

.convergence-film-curtain {
  z-index: 2;
  object-fit: contain;
  background: #ece9df;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 1.5s cubic-bezier(.72,.02,.2,1);
}

.convergence-film-stage.is-revealed .convergence-film-curtain {
  transform: translateY(-102%);
}

.convergence-film-play,
.convergence-film-external {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 22px;
  border: 1px solid #d4bb85;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font: 600 14px/1.2 Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.convergence-film-play[hidden],
.convergence-film-external[hidden] { display: none; }

.convergence-film-stage :focus-visible { outline: 2px solid #75ded5; outline-offset: -3px; }

@media (prefers-reduced-motion: reduce) {
  .convergence-film-curtain { transition-duration: .01ms; }
}

.convergence-title-panel h2 {
  font-size: clamp(2rem, 3.3vw, 4.35rem);
  line-height: .98;
  text-wrap: balance;
}

.convergence-title-copy .convergence-film-play {
  position: relative;
  left: auto;
  bottom: auto;
  min-width: 170px;
  margin-top: 28px;
  padding: 13px 22px;
  transform: none;
  border-color: rgba(212, 187, 133, .82);
  background: rgba(6, 10, 10, .78);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
  animation: convergence-learn-zoom 1.7s ease-in-out infinite;
}

.convergence-title-copy .convergence-film-play:hover,
.convergence-title-copy .convergence-film-play:focus-visible {
  background: rgba(117, 222, 213, .12);
  border-color: #75ded5;
  outline: 1px solid rgba(117, 222, 213, .72);
  outline-offset: 4px;
  transform: scale(1.08);
}

.convergence-title-copy .convergence-film-play:disabled {
  opacity: .52;
  animation: none;
}

@keyframes convergence-learn-zoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .convergence-title-copy .convergence-film-play {
    animation: none;
  }
}

.convergence-chamber {
  width: min(1700px, calc(100% - 34px));
  display: grid;
  grid-template-columns: minmax(220px, .28fr) minmax(0, .72fr);
  align-items: center;
  gap: clamp(24px, 3vw, 58px);
  margin-inline: auto;
}

.convergence-observer {
  margin: 0;
}

.convergence-observer-screen {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  overflow: hidden;
  background: #020303;
  border: 1px solid rgba(226, 184, 101, .54);
  box-shadow:
    0 0 0 5px rgba(4, 7, 7, .9),
    0 0 0 6px rgba(117, 222, 213, .16),
    0 28px 55px rgba(0, 0, 0, .62);
}

.convergence-observer-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 62px rgba(0, 0, 0, .58);
  background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 20% 82%);
}

.convergence-observer-screen video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #010202;
  filter: contrast(1.08) saturate(.9) brightness(.9);
}

.convergence-observer figcaption {
  width: min(100%, 410px);
  margin: 18px auto 0;
  color: rgba(230, 216, 187, .68);
  font: 400 .82rem/1.5 Arial, sans-serif;
  letter-spacing: 0;
}

.convergence-observer figcaption span {
  margin-bottom: 7px;
}

.convergence-organism {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1376 / 768;
  overflow: hidden;
}

.convergence-organism-screen {
  position: absolute;
  z-index: 1;
  inset: 3% 2.5% 7%;
  overflow: hidden;
  background: #010202;
  border: 1px solid rgba(224, 185, 104, .62);
  box-shadow:
    0 0 0 5px rgba(2, 5, 5, .92),
    0 0 0 6px rgba(115, 221, 213, .2),
    inset 0 0 48px rgba(0, 0, 0, .54),
    0 28px 70px rgba(0, 0, 0, .68),
    0 0 50px rgba(94, 210, 202, .16);
}

.convergence-organism-slide,
.convergence-organism-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.convergence-organism-slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity 1s ease, visibility 1s, transform 7s ease-out;
}

.convergence-organism-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.convergence-organism-slide video {
  display: block;
  object-fit: cover;
  background: #010202;
  filter: contrast(1.08) saturate(.94) brightness(.88);
}

.convergence-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ebd199;
  background: rgba(2, 5, 5, .84);
  border: 1px solid rgba(220, 175, 91, .58);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .25s ease, color .25s ease, border-color .25s ease;
}

.convergence-prev { left: .7%; }
.convergence-next { right: .7%; }

.convergence-arrow:hover,
.convergence-arrow:focus-visible {
  color: #fff1ce;
  border-color: #75ded5;
  outline: none;
  transform: translateY(-50%) scale(1.08);
}

.convergence-navigation {
  width: min(980px, calc(100% - 44px));
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin: 18px auto 0;
}

.convergence-dots {
  display: flex;
  gap: 10px;
}

.convergence-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(226, 181, 94, .64);
  border-radius: 50%;
  cursor: pointer;
}

.convergence-dot.is-active {
  background: #75ded5;
  border-color: #bafdf7;
  box-shadow: 0 0 12px rgba(117, 222, 213, .72);
}

.convergence-dot:focus-visible {
  outline: 1px solid #edd49b;
  outline-offset: 4px;
}

.convergence-count {
  color: rgba(234, 217, 184, .58);
  font: 800 8px/1 Arial, sans-serif;
  letter-spacing: .16em;
}

@media (max-width: 900px) {
  .moving-worlds-scroll {
    min-height: 460svh;
  }

  .moving-worlds-sticky {
    min-height: 540px;
  }

  .convergence-title-panel {
    grid-template-columns: 1fr;
  }

  .convergence-title-panel > div {
    max-width: 700px;
  }

  .convergence-chamber {
    grid-template-columns: 1fr;
  }

  .convergence-observer {
    display: grid;
    grid-template-columns: minmax(150px, 280px) minmax(180px, 1fr);
    align-items: end;
    gap: 24px;
  }

  .convergence-observer figcaption {
    width: auto;
    margin: 0;
  }
}

@media (max-width: 780px) {
  .moving-worlds-field {
    inset: -10vh -28vw;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .moving-worlds-column:nth-child(n + 4) {
    display: none;
  }

  .moving-worlds-heading {
    width: calc(100% - 32px);
  }

  .moving-worlds-heading p {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .moving-reel figure {
    flex-basis: 76vw;
  }

  .toad-frequency-corridor::before,
  .toad-frequency-corridor::after {
    width: 18%;
  }

  .convergence-title-panel,
  .convergence-chamber {
    width: calc(100% - 24px);
  }

  .convergence-observer {
    grid-template-columns: 1fr;
  }

  .convergence-observer-screen {
    width: min(84vw, 330px);
  }

  .convergence-observer figcaption {
    width: min(84vw, 330px);
    margin: 0 auto;
  }

  .convergence-arrow {
    width: 34px;
  }

  .convergence-prev { left: 5%; }
  .convergence-next { right: 5%; }
}

@media (prefers-reduced-motion: reduce) {
  .moving-worlds-field,
  .moving-worlds-column {
    transform: none !important;
  }

  .moving-reel-track {
    animation-play-state: paused;
  }

  .moving-reel video,
  .convergence-organism-slide,
  .convergence-arrow {
    transition-duration: .001ms;
  }
}
