.scroll-showcase {
  height: 340svh;
  --scene-progress: 0;
  background: var(--g1);
}

.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--g1);
}

.showcase-layout {
  width: min(88rem, calc(100% - 8rem));
  height: 100%;
  margin-inline: auto;
  padding-block: 5.5rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: var(--s4);
}

.showcase-visual {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
}

.launcher-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  perspective: 70rem;
  perspective-origin: 50% 50%;
}

.launcher-boot, .launcher-object {
  grid-area: 1 / 1;
}

.launcher-boot {
  z-index: 1;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--g3);
  border-radius: 9px;
  background: var(--g1);
  transform: rotateX(5deg) rotateY(-14deg);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.launcher-boot svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--g4);
  stroke-width: 4;
  stroke-linecap: round;
  animation: boot-spin 1.4s var(--ease-inout) infinite;
}

.launcher-boot circle {
  stroke-dasharray: 56 107;
  animation: boot-arc 1.4s var(--ease-inout) infinite;
}

.launcher-stage.is-booting .launcher-boot {
  opacity: 1;
  visibility: visible;
}

.launcher-stage.is-booting .launcher-object {
  visibility: hidden;
}

.launcher-stage.is-loaded .launcher-boot {
  transform: scale(1.65) rotateX(5deg) rotateY(-14deg);
  opacity: 0;
  visibility: hidden;
  transition: transform .7s var(--ease-out), opacity .38s var(--ease-out), visibility 0s .7s;
}

.launcher-stage.is-loaded .launcher-object {
  visibility: visible;
}

@keyframes boot-spin {
  to { transform: rotate(1turn); }
}

@keyframes boot-arc {
  0%, 100% { stroke-dasharray: 20 107; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 78 107; stroke-dashoffset: -18; }
}

.launcher-object {
  --model-scale: 1.08;
  --yaw: -14deg;
  --pitch: 5deg;
  --zoom: 0px;
  --card-one-depth: 0px;
  --card-two-depth: 0px;
  --login-depth: 0px;
  position: relative;
  width: 530px;
  height: 400px;
  transform-style: preserve-3d;
  transform: scale(var(--model-scale)) rotateX(var(--pitch)) rotateY(var(--yaw)) translateZ(var(--zoom));
  will-change: transform;
}

.launcher-stage.is-loaded .launcher-product-one {
  animation: launcher-product-in .62s .2s var(--ease-out) both;
}

.launcher-stage.is-loaded .launcher-product-two {
  animation: launcher-product-in .72s .32s var(--ease-out) both;
}

@keyframes launcher-product-in {
  from { opacity: 0; transform: translateZ(-36px) translateY(12px); }
  to { opacity: 1; transform: translateZ(var(--card-depth)) translateY(0); }
}

.launcher-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--g3);
  border-radius: 8px;
  background: var(--g1);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.launcher-front {
  transform: translateZ(14px);
}

.launcher-back {
  display: grid;
  place-items: center;
  transform: rotateY(180deg) translateZ(14px);
}

.launcher-edge {
  position: absolute;
  background: var(--g2);
  border: 1px solid var(--g3);
}

.launcher-edge-left, .launcher-edge-right {
  top: 8px;
  width: 28px;
  height: 384px;
}

.launcher-edge-left {
  left: -14px;
  transform: rotateY(90deg);
}

.launcher-edge-right {
  right: -14px;
  transform: rotateY(90deg);
}

.launcher-edge-top, .launcher-edge-bottom {
  left: 8px;
  width: 514px;
  height: 28px;
}

.launcher-edge-top {
  top: -14px;
  transform: rotateX(90deg);
}

.launcher-edge-bottom {
  bottom: -14px;
  transform: rotateX(90deg);
}

.launcher-logo {
  position: absolute;
  top: 26px;
  left: 28px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--g4);
  border-radius: 7px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: -.08em;
}

.launcher-controls {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 19px;
  height: 18px;
}

.launcher-controls span:first-child {
  width: 11px;
  height: 1px;
  background: var(--g4);
}

.launcher-controls span:last-child {
  position: relative;
  width: 11px;
  height: 11px;
}

.launcher-controls span:last-child::before, .launcher-controls span:last-child::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 11px;
  height: 1px;
  background: var(--g4);
}

.launcher-controls span:last-child::before {
  transform: rotate(45deg);
}

.launcher-controls span:last-child::after {
  transform: rotate(-45deg);
}

.launcher-sidebar {
  position: absolute;
  top: 105px;
  left: 18px;
  display: grid;
  gap: 17px;
  color: var(--g4);
  font-size: var(--t-xs);
}

.launcher-sidebar .launcher-nav-products {
  color: var(--g5);
  font-weight: 700;
}

.scroll-showcase[data-step="2"] .launcher-sidebar .launcher-nav-products {
  color: var(--g4);
  font-weight: 400;
}

.scroll-showcase[data-step="2"] .launcher-sidebar .launcher-nav-support {
  color: var(--g5);
  font-weight: 700;
}

.launcher-profile {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  font-weight: 600;
}

.launcher-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--g4);
  border-radius: 50%;
  background: var(--g2);
}

.launcher-main {
  position: absolute;
  top: 23px;
  left: 181px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.launcher-main > strong {
  font-size: var(--t-md);
  line-height: 1.1;
  font-weight: 650;
}

.launcher-main > span {
  margin-top: 9px;
  color: var(--g4);
  font-size: var(--t-xs);
}

.launcher-product {
  position: relative;
  width: 100%;
  min-height: 73px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--g2);
  border-radius: 9px;
  background: var(--g1);
  transform-style: preserve-3d;
}

.launcher-product-one {
  --card-depth: var(--card-one-depth);
  margin-top: 42px;
  transform: translateZ(var(--card-depth));
}

.launcher-product-two {
  --card-depth: var(--card-two-depth);
  margin-top: 12px;
  transform: translateZ(var(--card-depth));
}

.launcher-product b {
  max-width: 24ch;
  font-size: var(--t-xs);
  line-height: 1.15;
  font-weight: 650;
}

.launcher-product small {
  color: var(--g4);
  font-size: var(--t-xs);
}

.launcher-product i {
  position: absolute;
  top: 21px;
  right: 13px;
  width: 25px;
  height: 25px;
  border: 1px solid var(--g4);
  background: var(--g2);
}

.launcher-login {
  width: 265px;
  display: grid;
  justify-items: center;
  padding: 26px 20px;
  border: 1px solid var(--g2);
  border-radius: 12px;
  background: var(--g1);
  transform: translateZ(var(--login-depth));
}

.launcher-login strong {
  font-size: var(--t-2xl);
  line-height: 1;
  font-weight: 700;
}

.launcher-login > span {
  margin-top: 12px;
  color: var(--g4);
  font-size: var(--t-xs);
}

.launcher-key-field {
  width: 100%;
  margin-top: 25px;
  padding: 12px 8px;
  border: 1px solid var(--g3);
  color: var(--g4);
  text-align: center;
  font: 400 var(--t-xs)/1.2 var(--mono);
}

.launcher-login-button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: var(--g5);
  color: var(--g0);
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 650;
}

.showcase-copy {
  position: relative;
  min-height: 24rem;
  max-width: 37rem;
}

.showcase-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(100% 0 0 0);
  transform: translateY(1.5rem);
}

.showcase-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
  transition: clip-path .6s var(--ease-inout), transform .6s var(--ease-out), opacity .2s;
}

.showcase-panel.is-exiting {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 100% 0);
  transform: translateY(-1.5rem);
  transition: clip-path .48s var(--ease-inout), transform .48s var(--ease-inout);
}

.showcase-panel h2 {
  margin: 0 0 var(--s4);
  max-width: 12ch;
  font-size: clamp(var(--t-3xl), 5.2vw, var(--t-5xl));
  font-weight: 650;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.showcase-panel p {
  max-width: 38ch;
  margin: 0;
  color: var(--g4);
  font-size: var(--t-md);
  line-height: 1.5;
  text-wrap: pretty;
}

.scene-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  min-width: 12.5rem;
  margin-top: var(--s5);
  padding: .7rem var(--s4);
  border: 1px solid var(--g5);
  background: var(--g5);
  color: var(--g0);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: background .22s var(--ease-out), color .22s var(--ease-out);
}

.scene-link:hover {
  background: transparent;
  color: var(--g5);
}

.scene-link:active {
  background: var(--g3);
  color: var(--g0);
}

.showcase-progress {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  width: min(16rem, calc(100% - 3rem));
  height: 2px;
  transform: translateX(-50%);
  background: var(--g2);
}

.showcase-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scene-progress));
  transform-origin: left;
  background: var(--g5);
}

@media (max-width: 900px) {
  .showcase-layout {
    width: calc(100% - 4rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s3);
  }

  .launcher-object {
    --model-scale: .84;
  }

  .showcase-panel h2 {
    font-size: clamp(var(--t-2xl), 5.5vw, var(--t-4xl));
  }

  .showcase-panel p {
    font-size: var(--t-sm);
  }

}

@media (max-width: 900px) and (min-height: 701px), (max-width: 699px) {
  .scroll-showcase {
    height: 320svh;
  }

  .showcase-layout {
    width: calc(100% - 2.5rem);
    padding-block: 4.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
  }

  .showcase-visual {
    min-height: 0;
  }

  .launcher-stage {
    max-height: 49svh;
  }

  .showcase-copy {
    min-height: 15rem;
    max-width: none;
  }

  .showcase-panel {
    justify-content: flex-start;
    padding-top: var(--s2);
  }

  .showcase-panel h2 {
    max-width: none;
    margin-bottom: var(--s3);
    font-size: clamp(var(--t-2xl), 9vw, var(--t-4xl));
  }

  .showcase-panel p {
    max-width: 42ch;
    font-size: var(--t-sm);
    line-height: 1.45;
  }

  .scene-link {
    min-height: 3rem;
    margin-top: var(--s4);
  }

  .showcase-progress {
    bottom: var(--s3);
  }

}

@media (max-width: 380px), (max-height: 680px) {
  .showcase-layout {
    padding-top: 4.25rem;
    padding-bottom: 2rem;
  }

  .launcher-stage {
    max-height: 36svh;
  }

  .showcase-copy {
    min-height: 13.5rem;
  }

  .showcase-panel h2 {
    font-size: var(--t-2xl);
    margin-bottom: var(--s2);
  }

  .showcase-panel p {
    font-size: var(--t-xs);
  }

  .scene-link {
    margin-top: var(--s3);
  }

}

@media (max-width: 520px) {
  .launcher-object {
    --model-scale: .62;
  }
}

@media (max-width: 380px) {
  .launcher-object {
    --model-scale: .56;
  }
}

@media (max-width: 340px) {
  .launcher-object {
    --model-scale: .5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launcher-boot svg, .launcher-boot circle,
  .launcher-stage.is-loaded .launcher-product-one,
  .launcher-stage.is-loaded .launcher-product-two {
    animation: none;
  }

  .launcher-stage.is-loaded .launcher-boot,
  .launcher-stage.is-loaded .launcher-object {
    transition: none;
  }

  .showcase-panel, .showcase-panel.is-active, .showcase-panel.is-exiting {
    transition: none;
    transform: none;
  }

}
