/* The landing keepsake box is CSS-only so the page needs no 3D library. */
.gift-box-visual .gift-scene {
  position: absolute;
  top: 20%;
  right: -2%;
  z-index: 4;
  display: block;
  width: 420px;
  height: 360px;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 1200px;
  --tilt: 0deg;
  appearance: none;
}
.gift-box-visual .gift-world {
  position: absolute;
  top: 125px;
  left: 70px;
  width: 280px;
  height: 200px;
  transform: rotateX(57deg) rotateZ(-28deg) rotateY(var(--tilt));
  transform-style: preserve-3d;
  transition: transform 450ms ease;
}
.gift-box-visual .gift-world > span {
  position: absolute;
  display: block;
  backface-visibility: visible;
}
.gift-box-visual .gift-shadow {
  position: absolute;
  bottom: 0;
  left: 74px;
  width: 280px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #69634824, transparent 70%);
  transform: rotate(-12deg);
}
.gift-box-visual .box-bottom {
  width: 280px;
  height: 200px;
  background: #a48f6e;
  box-shadow: inset 0 0 35px #0002;
}
.gift-box-visual .box-back {
  top: 0;
  left: 0;
  width: 280px;
  height: 105px;
  background: #b4a181;
  transform: rotateX(90deg);
  transform-origin: top;
}
.gift-box-visual .box-front {
  top: 200px;
  left: 0;
  display: flex !important;
  width: 280px;
  height: 105px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #b6a585;
  background: linear-gradient(110deg, #d8c8aa, #c4b291);
  transform: rotateX(90deg);
  transform-origin: top;
}
.gift-box-visual .box-left {
  top: 0;
  left: 0;
  width: 200px;
  height: 105px;
  background: #b29e7c;
  transform: rotateZ(90deg) rotateX(90deg);
  transform-origin: top left;
}
.gift-box-visual .box-right {
  top: 0;
  left: 280px;
  width: 200px;
  height: 105px;
  background: linear-gradient(#b9a688, #cebd9c);
  transform: rotateZ(90deg) rotateX(90deg);
  transform-origin: top left;
}
.gift-box-visual .box-lid {
  top: -2px;
  left: -2px;
  width: 284px;
  height: 204px;
  transform: translateZ(107px);
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  transition: transform 1.5s cubic-bezier(.2,.6,.2,1);
}
.gift-box-visual .lid-top,
.gift-box-visual .lid-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #c2b08d;
  background: linear-gradient(120deg, #e2d5bb, #caba98);
  box-shadow: 0 3px 0 #b5a484;
  backface-visibility: hidden;
}
.gift-box-visual .lid-inner {
  background: #d4c3a1;
  box-shadow: inset 0 0 0 12px #baa784, inset 0 0 30px #0001;
  transform: rotateX(180deg);
}
.gift-box-visual .lid-heart {
  color: #9a8160;
  font-family: var(--landing-serif);
  font-size: 65px;
  line-height: 1;
}
.gift-box-visual .lid-words {
  margin-top: 8px;
  color: #947e5e;
  font-family: var(--landing-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.2;
}
.gift-box-visual .box-monogram {
  color: #75664e;
  font-family: var(--landing-serif);
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1;
  transform: rotateX(180deg);
}
.gift-box-visual .box-front-rule {
  display: block;
  width: 23px;
  height: 1px;
  background: #ac9875;
}
.gift-box-visual .box-small-heart {
  color: #a68d6b;
  font-size: 14px;
  transform: rotateX(180deg);
}
.gift-box-visual .keepsake {
  width: 130px;
  height: 158px;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(.2,.65,.2,1) .1s;
}
.gift-box-visual .keepsake-photo {
  top: 15px;
  left: 125px;
  padding: 7px;
  border: 1px solid #e5dfd0;
  background: #fffdf7;
  box-shadow: 0 5px 12px #2c24101a;
  transform: translateZ(15px) rotateZ(8deg);
}
.gift-box-visual .photo-sky {
  position: relative;
  display: block;
  height: 105px;
  overflow: hidden;
  background: #b7c0b0;
}
.gift-box-visual .photo-sun {
  position: absolute;
  top: 16px;
  right: 15px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e9d5a4;
}
.gift-box-visual .photo-hill {
  position: absolute;
  bottom: -58px;
  left: -27px;
  width: 210px;
  height: 110px;
  border-radius: 50%;
  background: #6e8064;
  transform: rotate(-20deg);
}
.gift-box-visual .photo-hill::after {
  position: absolute;
  top: -10px;
  left: 95px;
  width: 220px;
  height: 130px;
  border-radius: 50%;
  background: #879377;
  content: "";
}
.gift-box-visual .photo-caption {
  display: block;
  margin-top: 13px;
  color: #8d8e7b;
  font-family: var(--landing-serif);
  font-size: 11px;
  font-style: italic;
  text-align: center;
}
.gift-box-visual .keepsake-letter {
  top: 20px;
  left: 28px;
  display: block;
  padding: 17px 13px;
  border: 1px solid #e8e0ce;
  background: #fffaf0;
  box-shadow: 0 2px 12px #0001;
  transform: translateZ(20px) rotateZ(-8deg);
}
.gift-box-visual .letter-heading,
.gift-box-visual .letter-lines,
.gift-box-visual .letter-sign {
  display: block;
}
.gift-box-visual .letter-heading {
  color: #777b60;
  font-family: var(--landing-serif);
  font-size: 18px;
  font-style: italic;
}
.gift-box-visual .letter-lines {
  height: 22px;
  margin-top: 12px;
  background: repeating-linear-gradient(transparent 0, transparent 6px, #c4bfa699 6px, #c4bfa699 7px);
}
.gift-box-visual .letter-lines.short {
  width: 68%;
  height: 15px;
  margin-top: 3px;
}
.gift-box-visual .letter-sign {
  margin-top: 14px;
  color: #ac8265;
  font-family: var(--landing-serif);
  font-size: 15px;
  font-style: italic;
}
.gift-box-visual .gift-scene.is-open .box-lid {
  transform: translateZ(107px) rotateX(110deg);
}
.gift-box-visual .gift-scene.is-open .keepsake-photo {
  transform: translate3d(26px, -42px, 165px) rotateZ(15deg) rotateX(-14deg);
}
.gift-box-visual .gift-scene.is-open .keepsake-letter {
  transform: translate3d(-30px, 5px, 175px) rotateZ(-10deg) rotateX(-16deg);
}
/* Bottom left, clear of the "They receive it" note that sits bottom right. */
.gift-box-visual .gift-scene-caption {
  position: absolute;
  left: 12%;
  bottom: 1%;
  z-index: 6;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--landing-muted);
  font-family: var(--landing-serif);
  font-size: 15px;
  font-style: italic;
  cursor: pointer;
}
.gift-box-visual .gift-scene-caption span {
  margin-right: 7px;
  color: var(--landing-accent);
}
@media (max-width: 1050px) {
  .gift-box-visual .gift-scene {
    right: -10%;
    transform: scale(.86);
    transform-origin: 100% 50%;
  }
}
@media (max-width: 780px) {
  .gift-box-visual {
    min-height: 520px;
    margin-top: 14px;
  }
  .gift-box-visual .bot-card {
    top: 1%;
    left: 50%;
    width: min(330px, 82%);
    transform: translateX(-50%) rotate(-4deg);
  }
  .gift-box-visual .delivery-path {
    display: none;
  }
  .gift-box-visual .gift-scene {
    top: 22%;
    right: auto;
    left: 50%;
    transform: translateX(-50%) scale(.78);
    transform-origin: 50% 50%;
  }
  .gift-box-visual .gift-scene-caption {
    right: auto;
    bottom: 0;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
  }
}
@media (max-width: 520px) {
  .gift-box-visual {
    min-height: 490px;
  }
  .gift-box-visual .gift-scene {
    top: 24%;
    transform: translateX(-50%) scale(.68);
  }
  .gift-box-visual .floating-note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gift-box-visual .gift-scene,
  .gift-box-visual .gift-world,
  .gift-box-visual .box-lid,
  .gift-box-visual .keepsake {
    transition: none;
  }
}
