/* THE SORBIT CARD'S COVER: the real recording screen, pinned to the bottom right of a field in Sorbit's blue, playing one take. */

.lead .shot {
  height: clamp(300px, min(calc(var(--col) / 1.78), calc(100vh - 230px)), 640px);
  background: linear-gradient(140deg, #16227a, #4465e9 55%, #8ea4ff);
} /* tall, but never taller than the screen has room for with its name under it */
.flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
} /* the colour, flowing */
.rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  animation: sway 46s ease-in-out infinite alternate;
  opacity: 0.5;
}
.rings ellipse {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.2;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
} /* Sorbit's own orbit, as a pattern */
@keyframes sway {
  from {
    transform: translate(-50%, -50%) rotate(-5deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(6deg);
  }
}
/* the cover's picture: the real recording screen, pinned to the bottom right. The same margin above it and to its left, and it runs off the other two edges */
.win {
  position: absolute;
  z-index: 3;
  left: var(--m, 88px);
  top: var(--m, 88px);
  padding: 8px 0 0 8px;
  border-radius: 24px 0 0 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.08)
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    -14px -14px 60px rgba(5, 10, 56, 0.3),
    0 30px 90px rgba(5, 10, 56, 0.5);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lead:hover .win {
  transform: translate(-5px, -5px);
}
.pane {
  position: relative;
  overflow: hidden;
  border-radius: 16px 0 0 0;
  width: var(--pw, 1200px);
  height: var(--ph, 700px);
  background: #fff;
}
.sheet {
  position: absolute;
  left: 0;
  top: 0;
  width: 2064px;
  height: 1218px;
  transform-origin: 0 0;
  transform: scale(var(--s, 0.644)) translateX(calc(var(--x0, 0) * -1px));
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: #10131c;
  --img: url(../../assets/sorbit/hero-record.webp);
} /* everything on it is placed in the screen's own pixels, so each moving part sits exactly on the real one */
.sheet > *,
.sheet .sp {
  position: absolute;
}
.sheet .base {
  left: 0;
  top: 0;
  width: 2064px;
  height: 1218px;
  max-width: none;
  display: block;
}
.sheet .sp {
  background-image: var(--img);
  background-size: 2064px 1218px;
  background-repeat: no-repeat;
} /* a piece cut from the same picture */
.sheet .fl {
  left: 999px;
  top: 101px;
  width: 1018px;
  height: 552px;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
}
.sheet .fl i {
  inset: 0;
  background-position: -999px -101px;
  transform: scale(var(--z, 1));
  transform-origin: 56% 44%;
  will-change: transform;
} /* the film, closing in a little while it plays */
.sheet .lb {
  left: 999px;
  top: 653px;
  width: 1018px;
  height: 96px;
  background: #0f172b;
  overflow: hidden;
}
.sheet .lh {
  position: absolute;
  top: 0;
  height: 96px;
  overflow: hidden;
}
.sheet .lh.l {
  left: 0;
  width: 279px;
  color: #7c839a;
}
.sheet .lh.r {
  left: 282px;
  width: 736px;
  color: #fff;
} /* the line bar: a line is white before the red marker and grey once it has passed */
.sheet .tr {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 0;
  height: 96px;
  font:
    600 28.6px/95px Inter,
    sans-serif;
  white-space: nowrap;
  transform: translateX(calc(var(--sc, 0) * -1px));
  opacity: var(--to, 1);
  will-change: transform;
}
.sheet .lh.r .tr {
  left: -282px;
}
.sheet .tr span {
  position: absolute;
  top: 0;
  left: 0;
}
.sheet .tr .pv {
  left: 234px;
  transform: translateX(-100%);
}
.sheet .tr .cu {
  left: 591px;
}
.sheet .tr .nx {
  left: calc(591px + var(--cw, 514px) + 340px);
}
.sheet .mk {
  position: absolute;
  left: 279px;
  top: 1px;
  width: 3px;
  height: 93px;
  background: #e14543;
}
.sheet .pill {
  left: 1432px;
  top: 766px;
  width: 218px;
  height: 48px;
  border-radius: 10px;
  background-position: -1432px -766px;
  transition: transform 0.14s ease;
}
.sheet .pill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #e14543;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sheet.rec .pill::after {
  opacity: 0.09;
}
.sheet.hit .pill {
  transform: scale(0.955);
}
.sheet .rp {
  left: 1455px;
  top: 789px;
  width: 0;
  height: 0;
}
.sheet .rp::after {
  content: '';
  position: absolute;
  left: -9.5px;
  top: -9.5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #e14543;
  box-sizing: border-box;
  opacity: 0;
}
.sheet.rec .rp::after {
  animation: rp 1.05s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes rp {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
.sheet .hid {
  left: 281px;
  top: 450px;
  width: 440px;
  height: 70px;
  overflow: hidden;
}
.sheet .pt {
  position: absolute;
  inset: 0;
  background: #f4f7ff;
  transition:
    transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1),
    opacity 0s linear;
}
.sheet .pt::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0;
  width: 435px;
  height: 9px;
  background: #fff;
  border-radius: 0 0 9px 9px;
  box-shadow: 0 1px 0 rgba(224, 230, 244, 0.9);
} /* before the take: the list of takes ends after the first one */
.sheet.t2 .pt {
  transform: translateY(66px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1),
    opacity 0s linear 0.4s;
}
.sheet .r1 {
  left: 620px;
  top: 420px;
  width: 26px;
  height: 26px;
  background-position: -620px -475px;
  transition: opacity 0.2s ease;
}
.sheet .r2 {
  left: 339px;
  top: 25px;
  width: 26px;
  height: 26px;
  background-position: -620px -420px;
  transition: opacity 0.2s ease;
}
.sheet.sel2 .r1,
.sheet.sel2 .r2 {
  opacity: 0;
}
.sheet .dg {
  left: 796px;
  top: 281px;
  width: 18px;
  height: 26px;
  background: #ecf1fd;
  transition: opacity 0.2s ease;
}
.sheet .dg i {
  left: 0;
  top: 0;
  width: 18px;
  height: 26px;
  background-position: -796px -215px;
  mix-blend-mode: multiply;
}
.sheet.done .dg {
  opacity: 0;
}
.sheet .cbx {
  left: 881px;
  top: 277px;
  width: 32px;
  height: 32px;
  background: #ecf1fd;
  transition: opacity 0.16s ease;
}
.sheet .cbx i {
  left: 3px;
  top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background-position: -884px -619px;
}
.sheet.done .cbx {
  opacity: 0;
}
.sheet .gp {
  left: 884px;
  top: 280px;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background-position: -884px -280px;
  opacity: 0;
}
.sheet.done .gp {
  opacity: 1;
  animation: gp 0.36s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes gp {
  0% {
    transform: scale(0.4);
  }
  100% {
    transform: scale(1);
  }
}
.sheet .ct {
  top: 93px;
  height: 22px;
  background: #fff;
  font:
    450 18.3px/23px Inter,
    sans-serif;
  color: #8a8c94;
  transition: opacity 0.2s ease;
}
.sheet .ct.c1 {
  left: 433px;
  width: 30px;
}
.sheet .ct.c2 {
  left: 528px;
  width: 14px;
}
.sheet.done .ct {
  opacity: 0;
}
.sheet .tlp {
  left: 611px;
  top: 914px;
  width: 112px;
  height: 50px;
  background-position: -869px -914px;
}
.sheet .tll {
  left: 656px;
  top: 964px;
  width: 6px;
  height: 254px;
  background-position: -650px -964px;
}
.sheet .ph {
  left: 598px;
  top: 923px;
  width: 122px;
  height: 41px;
  transform: translateX(calc(var(--px, 0) * 1px));
  will-change: transform;
}
.sheet .ph b {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #0f1829;
  color: #fff;
  font:
    500 19px/41px Inter,
    sans-serif;
  text-align: center;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.sheet .ph i {
  position: absolute;
  left: 60px;
  top: 41px;
  width: 2px;
  height: 254px;
  background: #0b0e14;
}
.sheet .tc {
  left: 1712px;
  top: 880px;
  width: 104px;
  height: 30px;
  background: #fff;
  font:
    400 23.2px/29px Inter,
    sans-serif;
  color: #5b6166;
  text-indent: 4px;
  white-space: nowrap;
}
.sheet .cs {
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  overflow: visible;
  transform: translate(calc(var(--cx, 372) * 1px), calc(var(--cy, 452) * 1px)) scale(var(--ck, 1));
  transform-origin: 6px 4px;
  filter: drop-shadow(0 3px 5px rgba(8, 12, 40, 0.3));
  will-change: transform;
}
.win.nocur .cs {
  display: none;
}
.sheet.rst .pt {
  transform: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}
.sheet.rst .r1,
.sheet.rst .dg,
.sheet.rst .cbx,
.sheet.rst .ct {
  opacity: 1;
  transition: opacity 0.45s ease;
}
.sheet.rst .r2 {
  opacity: 1;
  transition: none;
}
.sheet.rst .gp {
  opacity: 0;
  animation: none;
} /* the way back to the start is a plain fade, never the take running backwards */
.shot:not(.live) .rings,
.shot:not(.live) .rp::after {
  animation-play-state: paused;
}
@media (max-width: 760px) {
  .lead .shot {
    height: auto;
    aspect-ratio: 4/5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .win {
    transition: none;
  }
  .rings {
    animation: none;
  }
}
