/* Remove the second-scene oval note frame. */
.scene-story .story-note {
  border: 0 !important;
  border-top: 1px solid #a33d2752 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 18px 0 !important;
}

@media (max-width: 760px) {
  .scene-story .story-note {
    border-radius: 0 !important;
    padding: 14px 0 !important;
  }
}

/* The collection must keep moving even when the pointer rests over it. */
.scene-pieces.active .piece-strip.collection-marquee,
.scene-pieces.active .piece-strip.collection-marquee:hover,
.scene-pieces.active .piece-strip.collection-marquee:focus-within {
  animation-play-state: running !important;
}

/* Final brand chapter: a true ending with one clear restart action. */
.scene-end {
  background: #eeeadd;
  color: #142019;
}

.scene-end::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, #fff8 0 8%, transparent 34%),
    linear-gradient(115deg, transparent 42%, #b8996710 42.2% 42.5%, transparent 42.7%);
}

.end-orbits {
  position: absolute;
  left: 50%;
  top: 49%;
  width: min(68vw, 850px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.end-orbits i {
  position: absolute;
  inset: 12%;
  border: 1px solid #b8996738;
  border-radius: 48% 52% 45% 55% / 55% 44% 56% 45%;
  animation: end-orbit 14s linear infinite;
}

.end-orbits i:nth-child(2) {
  inset: 23%;
  animation-duration: 11s;
  animation-direction: reverse;
}

.end-orbits i:nth-child(3) {
  inset: 34%;
  animation-duration: 8s;
}

.end-title {
  left: 50%;
  top: 48%;
  width: min(760px, 76vw);
  transform: translate(-50%, -50%);
  text-align: center;
}

.end-title > p {
  margin: 0;
  color: #b89967;
  font: 9px Georgia, serif;
  letter-spacing: .22em;
}

.end-title h2 {
  margin: 28px 0 22px;
  font-size: clamp(62px, 8vw, 116px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.07em;
}

.end-title h2 em {
  color: #98422f;
  font-style: normal;
}

.end-title > small {
  display: block;
  color: #1420198f;
  line-height: 1.9;
}

.end-title button {
  margin-top: 34px;
  padding: 12px 20px;
  border: 1px solid #14201988;
  border-radius: 999px;
  background: transparent;
  color: #142019;
  font-size: 10px;
  letter-spacing: .12em;
  transition: .35s;
}

.end-title button:hover {
  background: #142019;
  color: #eeeadd;
  transform: translateY(-3px);
}

.end-sign {
  position: absolute;
  right: 4vw;
  bottom: 5vh;
  margin: 0;
  color: #b89967;
  font-size: 25px;
  text-align: center;
}

.end-sign span {
  display: block;
  margin-top: 6px;
  font: 7px Georgia, serif;
  letter-spacing: .2em;
}

.scene-end .end-title > *,
.scene-end .end-sign {
  opacity: 0;
}

.scene-end.active .end-title > p { animation: end-rise .65s .12s both; }
.scene-end.active .end-title h2 { animation: end-rise .9s .22s both; }
.scene-end.active .end-title > small { animation: end-rise .7s .5s both; }
.scene-end.active .end-title button { animation: end-rise .7s .65s both; }
.scene-end.active .end-sign { animation: end-rise .7s .8s both; }

@keyframes end-orbit {
  to { transform: rotate(360deg); }
}

@keyframes end-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .end-orbits { width: 118vw; }
  .end-title { width: calc(100vw - 36px); }
  .end-title h2 { font-size: 16vw; }
  .end-title > small { max-width: 310px; margin-inline: auto; }
  .end-sign { right: 18px; bottom: 9vh; }
}

/* Pointer-reactive typography must override the ambient text animation. */
@media (pointer: fine) {
  .text-line { display: inline-block; }

  .reactive-text.pointer-near {
    transform: translate(var(--move-x, 0), var(--move-y, 0)) rotate(var(--line-rotate, 0deg)) scale(1.025) !important;
    color: var(--rest-color) !important;
    letter-spacing: .045em !important;
    transition: transform .48s cubic-bezier(.2,.9,.2,1), letter-spacing .35s ease !important;
  }
}
