/* Registered to the studio photograph, so the light disappears behind the
   photographed glass pieces and can travel past the live phone and type. */
#experiencia .app-world {
  --studio-plate:url(estudio-sem-faixas.webp);
  background-image:linear-gradient(0deg,#090e1ef5,transparent 24%,#09102336 68%,#0a1122dc),var(--studio-plate);
}
#experiencia .app-world::before, #experiencia .app-world::after {
  background-image:var(--studio-plate);
}
.studio-waves {
  position:absolute;
  left:50%;
  top:50%;
  width:max(100cqw,177.777778cqh);
  aspect-ratio:16/9;
  transform:translate(-50%,-50%);
  container-type:size;
  mask:url(estudio-oclusao.webp) center/100% 100% no-repeat;
  pointer-events:none;
}
.studio-waves > div {
  position:absolute;
  overflow:hidden;
  transform-origin:left center;
  mask-image:linear-gradient(to right,transparent,#000 16%,#000 77%,transparent);
}
.studio-wave-violet {
  left:12%;
  top:25%;
  width:68%;
  height:49%;
  transform:skewY(8deg);
  opacity:.76;
  --period:56cqw;
}
.studio-wave-cyan {
  left:27%;
  top:44%;
  width:77%;
  height:41%;
  transform:skewY(-19deg);
  opacity:.76;
  --period:59cqw;
}
.studio-waves i {
  position:absolute;
  inset:0 auto 0 0;
  width:calc(100% + var(--period) * 2 + 2px);
  background-size:var(--period) 100%;
  background-repeat:repeat-x;
  animation-duration:12s;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
  animation-play-state:paused;
}
/* Round the tile and the travel to the same CSS pixel, just like the Hero.
   A one-tile or two-tile translation lands on the identical beam profile. */
@supports (width:round(nearest,10px,1px)) {
  .studio-wave-violet { --period:round(nearest,56cqw,1px); }
  .studio-wave-cyan { --period:round(nearest,59cqw,1px); }
}
.studio-wave-violet i {
  width:calc(100% + var(--period) + 2px);
  background-image:url(../cristal/faixa-violeta.webp?v=webp-1);
  animation-name:studio-violet-travel;
}
.studio-wave-cyan i {
  background-image:url(../cristal/faixa-ciano.webp?v=webp-1);
  animation-name:studio-cyan-travel;
}
@keyframes studio-violet-travel {
  from { transform:translateX(calc(-1 * var(--period))); }
  to { transform:translateX(0); }
}
@keyframes studio-cyan-travel {
  from { transform:translateX(0); }
  to { transform:translateX(calc(-2 * var(--period))); }
}
/* The violet phase carries the Hero's logarithmic modulation, the cyan its
   sinusoidal modulation. Both are sampled from the same 12-second clock. */
@supports (animation-timing-function:linear(0,.5,1)) {
  .studio-wave-violet i {
    animation-timing-function:linear(0,.0717,.1481,.2195,.285,.3445,.3981,.4467,.5,.5717,.6481,.7195,.785,.8445,.8981,.9467,1);
  }
  .studio-wave-cyan i {
    animation-timing-function:linear(0,.0749,.1425,.1999,.25,.3001,.3575,.4251,.5,.5749,.6425,.6999,.75,.8001,.8575,.9251,1);
  }
}
.motion-opt-in.armed #experiencia:not(.offstage) .studio-waves[data-lit] i {
  animation-play-state:running;
  will-change:transform;
}
@media (prefers-reduced-motion:reduce) {
  html:not(.motion-opt-in) .studio-waves i { animation:none; }
}
#experiencia .sim-intro { position:relative; isolation:isolate; }
#experiencia .sim-intro::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-8% -37% -31%;
  pointer-events:none;
  background:radial-gradient(ellipse 49% 47% at 50% 52%,rgb(6 12 27 / .74) 18%,rgb(6 12 27 / .49) 55%,transparent 100%);
}
#experiencia .sim-downloads a { color:#f4f3fc; }
#experiencia .sim-downloads a span { color:#e6e1f5; }
@media (min-width:701px) {
  #experiencia .sim-intro > p { color:#edf0fb; }
  #experiencia .sim-intro > .demo-disclaimer { color:#e9e7f6; }
}

@media (max-width:700px) {
  /* The same center of the photographed wall fills a tall phone. Give its
     two paths a shorter projected wavelength so crests pass through the
     visible opening between the title and the device. */
  .studio-wave-violet { top:9%; height:62%; --period:32cqw; }
  .studio-wave-cyan { top:29%; height:64%; --period:37cqw; }
  #experiencia .chapter-intro, #experiencia .sim-intro > p { color:#edf0fa; }
  #experiencia .sim-intro::before {
    inset:-35% -55% -41%;
    background:radial-gradient(ellipse 49% 49% at 50% 50%,rgb(6 12 27 / .82) 28%,rgb(6 12 27 / .63) 56%,transparent 100%);
  }
  @supports (width:round(nearest,10px,1px)) {
    .studio-wave-violet { --period:round(nearest,32cqw,1px); }
    .studio-wave-cyan { --period:round(nearest,37cqw,1px); }
  }
}
