/* Stage scene "earth": Virgil says one line and the night side of Earth lights up with each thing it did. */
.scene-earth{position:absolute;inset:0;overflow:hidden;border-radius:28px;background:#00050a;isolation:isolate;
  border:1px solid rgba(252,246,236,.18);
  box-shadow:0 24px 70px -20px rgba(0,0,0,.8),inset 0 1px 0 rgba(252,246,236,.13);
  color:#fcf6ec;font-family:var(--display);contain:layout paint}
@media (max-width:900px),(prefers-reduced-motion:reduce){
  .scene-earth{position:relative;inset:auto;width:100%;aspect-ratio:2/1}
}
@media (max-width:900px){.scene-earth{aspect-ratio:4/5}}
@media (max-width:560px){.scene-earth{aspect-ratio:3/4}}

.scene-earth__cam{position:absolute;inset:0;z-index:0;will-change:opacity}
.scene-earth__img{position:absolute;left:0;top:0;max-width:none;display:block;user-select:none;pointer-events:none;will-change:transform}
/* Seat the glass on the dark: a soft fall-off at the edges, never a coloured wash. */
.scene-earth__shade{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(120% 90% at 45% 55%,transparent 55%,rgba(0,5,10,.55) 100%),
             linear-gradient(to top,rgba(0,5,10,.55),transparent 32%)}
.scene-earth.is-compact .scene-earth__shade{
  background:radial-gradient(120% 90% at 50% 60%,transparent 55%,rgba(0,5,10,.5) 100%),
             linear-gradient(to bottom,rgba(0,5,10,.5),transparent 30%)}

.scene-earth__fx{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}
.scene-earth__arc{fill:none;stroke:rgba(255,246,232,.9);stroke-width:1.25;stroke-linecap:round;filter:drop-shadow(0 0 3px rgba(255,236,210,.75))}
.scene-earth__head{fill:#fffaf2;filter:drop-shadow(0 0 5px rgba(255,240,220,.95))}
.scene-earth__ring{fill:none;stroke:rgba(255,244,228,.9);stroke-width:1.1}
.scene-earth__core{fill:#fffaf2}

.scene-earth__labels{position:absolute;inset:0;z-index:3;pointer-events:none}
.scene-earth__tag{position:absolute;left:0;top:0;will-change:transform}
.scene-earth__tagin{display:flex;align-items:center;gap:8px;white-space:nowrap;
  padding:8px 15px 8px 11px;border-radius:999px;
  background:var(--glass-l);-webkit-backdrop-filter:blur(24px) saturate(110%);backdrop-filter:blur(24px) saturate(110%);
  border:1px solid var(--glass-l-line);
  box-shadow:inset 0 1px 0 var(--glass-l-hi),0 12px 32px -20px rgba(0,0,0,.25);
  font-size:14px;line-height:1.2;letter-spacing:.005em;color:var(--ink);
  opacity:0;transform:translateY(6px) scale(.98);filter:blur(5px);
  transition:opacity .9s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1),filter .9s cubic-bezier(.16,1,.3,1)}
.scene-earth__tag.is-on .scene-earth__tagin{opacity:1;transform:none;filter:none}
.scene-earth__tag .ic{width:16px;height:16px;color:var(--ink)}
.scene-earth.is-compact .scene-earth__tagin{font-size:12px;padding:6px 11px 6px 9px;gap:6px}
.scene-earth.is-compact .scene-earth__tag .ic{width:14px;height:14px}

/* Orb and caption in one glass pill. */
.scene-earth__pill{position:absolute;z-index:4;left:50%;bottom:20px;transform:translateX(-50%);
  width:min(640px,calc(100% - 40px),60%);display:flex;align-items:center;gap:16px;
  padding:10px 26px 10px 10px;border-radius:999px;
  background:var(--glass-l);-webkit-backdrop-filter:blur(24px) saturate(110%);backdrop-filter:blur(24px) saturate(110%);
  border:1px solid var(--glass-l-line);
  box-shadow:inset 0 1px 0 var(--glass-l-hi),0 12px 32px -20px rgba(0,0,0,.25)}
.scene-earth.is-compact .scene-earth__pill{top:12px;bottom:auto;width:calc(100% - 24px);gap:10px;padding:8px 16px 8px 8px;border-radius:28px}
.scene-earth__orbwrap{position:relative;flex:none;width:92px;aspect-ratio:1;display:grid;place-items:center}
.scene-earth.is-compact .scene-earth__orbwrap{width:84px}
.scene-earth__img{filter:none}
.scene-earth__orbwrap::before{content:"";position:absolute;inset:-8%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,255,255,.55),transparent);opacity:0;transition:opacity 1.2s cubic-bezier(.16,1,.3,1)}
.scene-earth__orbwrap.is-speaking::before{opacity:1}
.scene-earth .scene-earth__orbwrap .orb{grid-area:auto;width:100%;position:relative;transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.scene-earth__orbwrap.is-speaking .orb{animation:scene-earth-breathe 1.9s cubic-bezier(.45,0,.55,1) infinite}
@keyframes scene-earth-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}

.scene-earth__cap{margin:0;flex:1;min-width:0;font-size:15px;line-height:1.45;font-weight:400;color:var(--ink);transition:opacity 1s cubic-bezier(.16,1,.3,1)}
.scene-earth.is-compact .scene-earth__cap{font-size:13px;line-height:1.4}
.scene-earth__w{opacity:.0;filter:blur(3px);transition:opacity .5s cubic-bezier(.16,1,.3,1),filter .5s cubic-bezier(.16,1,.3,1)}
.scene-earth__w.is-on{opacity:1;filter:none}

.scene-earth__sound{position:absolute;z-index:5;top:18px;right:18px;display:inline-flex;align-items:center;gap:8px;
  padding:9px 16px 9px 12px;border-radius:999px;cursor:pointer;
  background:var(--glass-l);-webkit-backdrop-filter:blur(24px) saturate(110%);backdrop-filter:blur(24px) saturate(110%);
  border:1px solid var(--glass-l-line);
  box-shadow:inset 0 1px 0 var(--glass-l-hi),0 12px 32px -20px rgba(0,0,0,.25);
  color:var(--ink);font:500 13px/1 var(--ui);letter-spacing:.07em;text-transform:uppercase;
  transition:background .4s cubic-bezier(.16,1,.3,1),border-color .4s cubic-bezier(.16,1,.3,1)}
.scene-earth__sound:hover{background:rgba(255,255,255,.75)}
.scene-earth__sound:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.scene-earth__sound .ic{width:16px;height:16px;color:var(--ink)}
.scene-earth__sound[aria-pressed="true"]{background:var(--ink);color:#fff}
.scene-earth__sound[aria-pressed="true"] .ic{color:#fff}
.scene-earth.is-compact .scene-earth__sound{top:auto;bottom:12px;right:12px;padding:8px 13px 8px 10px;font-size:12px}

@media (prefers-reduced-motion:reduce){
  .scene-earth__tagin,.scene-earth__w{transition:opacity .6s linear;transform:none;filter:none}
  .scene-earth__orbwrap.is-speaking .orb{animation:none}
}
