/* Pandora home. One pinned box that plays the game as you scroll, a grid of close-ups, the live demo, a look inside. */
section { scroll-margin-top: var(--nav); }

/* ---------------------------------------------------------------- how it plays (pinned) */
.plays { position: relative; height: 640vh; background: radial-gradient(ellipse 70% 50% at 50% 55%, #17171c 0%, #000 70%); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#plays3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chap { position: absolute; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.chap.on { pointer-events: auto; }
.chap.hero { left: 0; right: 0; top: calc(var(--nav) + 6vh); text-align: center; padding: 0 22px; }
.chap.hero .sub { max-width: 620px; margin-left: auto; margin-right: auto; }
.ctas { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.chap:not(.hero) { left: max(22px, calc((100vw - 1024px) / 2)); top: 50%; transform: translateY(-50%); max-width: 430px; }
.chap .sub { color: var(--gray); }
.outs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.outs li { font: 500 clamp(19px, 2.1vw, 23px)/1.35 var(--display); color: #48484c; transition: color .3s; letter-spacing: -.01em; }
.outs li b { font-weight: 600; }
.outs li.on { color: #f5f5f7; }
.progress { position: absolute; left: 50%; bottom: 26px; width: 120px; height: 2px; margin-left: -60px; background: #2c2c2e; border-radius: 1px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: #f5f5f7; }
@media (max-width: 760px), (max-aspect-ratio: 11/10) {
  .chap.hero { top: calc(var(--nav) + 4vh); }
  .chap:not(.hero) { left: 22px; right: 22px; top: auto; bottom: 64px; transform: none; max-width: none; }
  .chap .h-l { font-size: 40px; }
  .chap .sub, .outs li { font-size: 19px; }
}

/* ---------------------------------------------------------------- features */
.features { padding: 110px 0 120px; }
.features .head { margin-bottom: 48px; }
.features .head span { color: var(--gray); }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile { border-radius: 28px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-height: 420px; }
.tile.dark { background: #000; color: #f5f5f7; }
.tile.wide { grid-column: 1 / -1; position: relative; min-height: 520px; justify-content: flex-end; }
.tile.wide img { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; object-position: 30% 50%; }
.tile.wide > div { position: relative; margin-left: auto; max-width: 400px; }
.tile img { width: 100%; height: 100%; object-fit: cover; flex: 1; min-height: 0; }
.tile > div, .tile.type { padding: 30px 34px 34px; }
.tile.wide > div { padding-bottom: 44px; }
.tile h3 { font: 600 28px/1.14 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--gray); font: 400 17px/1.47 var(--text); }
.tile.dark p b { font-weight: 600; }
.tile.type { justify-content: flex-end; }
.tile .big { white-space: nowrap; font: 700 clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: -.04em; color: var(--ink); margin: 0 auto 40px 0; flex: 1; display: flex; align-items: center; }
.tile .big small { font-size: .38em; font-weight: 600; margin-left: 8px; color: var(--gray); align-self: flex-end; padding-bottom: .5em; }
.tile.maya .pill { margin-top: 20px; align-self: flex-start; color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-ink); }
.wave { flex: 1; display: flex; gap: 7px; align-items: center; margin: 0 0 30px; }
.wave i { width: 8px; border-radius: 4px; background: linear-gradient(#ff2d8a, #ffb81c); height: 30%; }
.wave i:nth-child(2) { height: 62%; } .wave i:nth-child(3) { height: 90%; } .wave i:nth-child(4) { height: 48%; } .wave i:nth-child(5) { height: 74%; } .wave i:nth-child(6) { height: 40%; } .wave i:nth-child(7) { height: 22%; }
.maya.playing .wave i { animation: wv .5s ease-in-out infinite alternate; }
.maya.playing .wave i:nth-child(2n) { animation-delay: .2s; } .maya.playing .wave i:nth-child(3n) { animation-delay: .35s; }
@keyframes wv { to { transform: scaleY(.35); } }
@media (max-width: 760px) {
  .features { padding: 80px 0 90px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile.wide { min-height: 0; }
  .tile.wide img { position: static; width: 100%; }
  .tile.wide > div { max-width: none; margin: 0; }
  .tile { min-height: 0; }
  .tile img { aspect-ratio: 4 / 3; height: auto; }
  .tile.type { min-height: 340px; }
  .tile > div, .tile.type { padding: 24px 24px 28px; }
}

/* ---------------------------------------------------------------- demo */
.demo { background: #000; padding: 110px 0 90px; }
.demo .head { text-align: center; }
.demo .head .sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.demo-stage { scroll-margin-top: calc(var(--nav) + 12px); max-width: 900px; margin: 34px auto 0; padding: 0 16px; display: flex; flex-direction: column; align-items: center; }
.phases { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; background: #1d1d1f; border-radius: 980px; }
.phases li { padding: 7px 16px; border-radius: 980px; font: 500 14px var(--text); color: var(--gray); transition: background .25s, color .25s; }
.phases li.on { background: #f5f5f7; color: #000; }
.demo-box { position: relative; width: 100%; height: min(46vh, 470px); min-height: 260px; }
#demo3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.host { margin: 4px 0 8px; display: flex; gap: 8px; align-items: center; justify-content: center; font: 400 15px/1.4 var(--text); color: var(--gray); max-width: 640px; text-align: center; min-height: 1.4em; }
.host b { font: 600 11px var(--text); letter-spacing: .12em; color: #ff2d8a; }
.host q { quotes: none; }
.host .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.host .eq u { width: 3px; height: 4px; border-radius: 2px; background: #ff2d8a; }
.host.speaking .eq u { animation: eq .45s ease-in-out infinite alternate; } .host.speaking .eq u:nth-child(2) { animation-delay: .15s; } .host.speaking .eq u:nth-child(3) { animation-delay: .3s; }
@keyframes eq { to { height: 12px; } }
.todo { min-height: 3em; margin: 0 0 18px; text-align: center; font: 500 21px/1.35 var(--display); letter-spacing: -.01em; max-width: 620px; }
.todo b { color: var(--gold); font-weight: 600; }
.todo .warn { color: #ff8a80; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; }
.bands, .keys { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.band { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 10px; border-radius: 980px; border: 1px solid var(--line-d); background: #111; font: 500 15px var(--text); color: #f5f5f7; }
.band i { width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--c); background: #fff; box-sizing: border-box; }
.band span { color: var(--gray); font-variant-numeric: tabular-nums; }
.band:hover { border-color: #555; }
.band.turn { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.keys button { border: 0; border-radius: 980px; padding: 10px 18px; font: 600 15px var(--text); }
.k-stick { background: #2c2c2e; color: #f5f5f7; }
.k-share { background: var(--gold); color: #000; }
.k-steal { background: var(--red); color: #fff; }
.k-share.hot { box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--gold); } .k-steal.hot { box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--red); } .k-stick.hot { box-shadow: 0 0 0 3px #000, 0 0 0 5px #f5f5f7; }
.restart { margin-top: 26px; background: none; border: 0; color: var(--gold); font: 400 15px var(--text); }
.restart:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .demo { padding: 80px 0 70px; }
  .demo-box { height: min(38vh, 330px); }
  .todo { font-size: 18px; }
  .controls { gap: 12px; }
  .band { padding: 8px 12px 8px 8px; font-size: 14px; }
}

/* ---------------------------------------------------------------- inside teaser */
.inside-teaser { background: #000; padding: 90px 0 0; text-align: center; border-top: 1px solid #1d1d1f; }
.inside-teaser .sub { max-width: 560px; margin: 14px auto 18px; }
.explode-img { width: min(1100px, 100%); margin: 30px auto 0; }
