.box svg {
  width: 100%;
  height: 100%;
}
.box-big {
  aspect-ratio: 669 / 588;
  width: 669px;
}

.box-mid {
  aspect-ratio: 543 / 510;
  width: 543px;
}

@media (max-width: 1600px) {
  .box-big {
    width: 500px !important;
  }
  .box-mid {
    width: 453px !important;
  }

  /* .box:hover {
    z-index: 99 !important;
  } */
}

.stack-spread[data-vertical="true"] {
  min-height: 1100px
}

.stack-spread[data-vertical="true"] .box-big {
  width: 500px !important;
}

.stack-spread[data-vertical="true"] .box-mid {
  width: 453px !important;
}

.stack-spread {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #002D64;
  /*padding-inline: 16px;*/
}

.stack-spread .box {
  position: absolute;
  bottom: 0;
  right: -2rem;
  transform-origin: bottom right;
  width: auto;
  max-width: min(70vw, 680px);
  transition: all 0.2s ease;
  /*margin-bottom:15px;*/
}

.stack-spread .box svg {
  display: block;
  width: 100%;
  height: auto;
}

.stack-spread .box > div {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  left: 0;
  margin-inline: auto;
  color: black;
  width: min(60%, 420px);
  text-wrap: balance;
  text-align: center;
}

.stack-spread .box.box-purple > div { color: white; }
.stack-spread .box-inner {
  transform-origin: inherit;
}

@media (min-width: 768px) {
  .stack-spread .box-inner {
    transform: scale(var(--box-scale, 1));
  }

  .box-text {
    font-size: 110%;
  }
}

@media (max-width: 768px) {
  .stack-spread .box-inner {
    transform: scale(var(--box-scale, 1));
  }

  .box-text {
    font-size: 13px;
    line-height: 1.3
  }
}