@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&display=swap");

/* =========================================================
   Regal Launch countdown — hero section (#sectionBanner)
   Sits inside .scroll-line2 in place of the vertical line.
   ========================================================= */

/* offsets apply only while the countdown is showing; after launch the original CSS takes over */
.scroll-line2.has-countdown:not(.is-launched) {
  bottom: 10%;
}

.scroll-line2.has-countdown .line {
  display: none;
}

.launch-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 92vw;
  margin-bottom: 1.1vw;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
}

.scroll-line2.animate .launch-countdown {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
  transition-delay: 0.35s;
}

/* --- "✦ REGAL LAUNCH ✦" --- */
.launch-countdown__heading {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6vw;
  font-family: "Cormorant Garamond", var(--DomaineDisplay), serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.1vw, 2.4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-brown);
  white-space: nowrap;
  line-height: 1.2;
}

.launch-countdown__rule {
  display: inline-block;
  height: 1px;
  width: 2.6vw;
  background: var(--linecolor);
  opacity: 0.8;
}

.launch-countdown__star {
  width: clamp(9px, 0.75vw, 14px);
  height: auto;
  display: inline-block;
}

/* --- timer boxes --- */
.launch-countdown__timer {
  display: flex;
  align-items: stretch;
  margin-top: 1.1vw;
}

.launch-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(4.6rem, 9.2vw, 10rem);
  padding: 0 0.4vw;
}

.launch-countdown__unit + .launch-countdown__unit {
  border-left: 1px solid rgba(217, 189, 119, 0.55);
}

.launch-countdown__value {
  font-family: "Cormorant Garamond", var(--domine), serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 3.8vw, 4.4rem);
  line-height: 1;
  color: var(--light);
  font-variant-numeric: lining-nums tabular-nums;
}

.launch-countdown__label {
  margin-top: 0.8vw;
  font-family: var(--montserrat);
  font-weight: 400;
  font-size: clamp(0.7rem, 0.95vw, 1.05rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light-brown);
  line-height: 1;
}

/* --- "LAUNCHING ON" + date --- */
.launch-countdown__on {
  display: flex;
  align-items: center;
  gap: 0.9vw;
  margin: 2.2vw 0 0;
  font-family: "Cormorant Garamond", var(--domine), serif;
  font-weight: 500;
  font-size: clamp(0.8rem, 0.95vw, 1.15rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light-brown);
  white-space: nowrap;
  line-height: 1;
}

.launch-countdown__on .launch-countdown__rule {
  width: 8.5vw;
}

.launch-countdown__date {
  margin: 0.8vw 0 0;
  font-family: "Cormorant Garamond", var(--domine), serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 2.5rem);
  letter-spacing: 0.18em;
  font-variant-numeric: lining-nums;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
  line-height: 1.2;
}

/* --- hero tagline under the countdown: light geometric sans, wide tracking --- */
.scroll-line2.has-countdown .scroll-text {
  font-family: var(--montserrat);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.15vw, 1.3rem);
  letter-spacing: 0.25em;
}

/* --- after launch: hide the timer, restore the original hero line --- */
.scroll-line2.is-launched .launch-countdown {
  display: none;
}

.scroll-line2.is-launched .line {
  display: block;
}

/* --- keep parity with the existing .scroll-line2 responsive offsets --- */
@media only screen and (max-width: 1200px) {
  .scroll-line2.has-countdown:not(.is-launched) {
    bottom: 9%;
  }
}

@media only screen and (max-width: 1060px) {
  .scroll-line2.has-countdown:not(.is-launched) {
    bottom: 7%;
  }

  .scroll-line2.has-countdown .scroll-text {
    font-size: 1.45vw;
  }
}

/* --- mobile (the .d-block.d-md-none hero variant) --- */
@media only screen and (max-width: 767px) {
  .d-block.d-md-none .scroll-line2.has-countdown:not(.is-launched) {
    bottom: 8%;
  }

  .launch-countdown {
    margin-bottom: 10px;
    max-width: 94vw;
  }

  .launch-countdown__heading {
    font-size: clamp(1.15rem, 5.4vw, 1.5rem);
    gap: 8px;
    letter-spacing: 0.1em;
  }

  .launch-countdown__rule {
    width: 22px;
  }

  .launch-countdown__star {
    width: 10px;
  }

  .launch-countdown__timer {
    margin-top: 10px;
  }

  .launch-countdown__unit {
    min-width: 21vw;
    padding: 0 4px;
  }

  .launch-countdown__value {
    font-size: clamp(1.9rem, 9.6vw, 2.8rem);
  }

  .launch-countdown__label {
    font-size: 0.62rem;
    margin-top: 7px;
    letter-spacing: 0.25em;
  }

  .d-block.d-md-none .scroll-line2.has-countdown .scroll-text {
    font-size: 3.2vw;
    letter-spacing: 0.22em;
  }

  .launch-countdown__on {
    margin: 14px 0 0;
    font-size: 0.72rem;
    gap: 8px;
  }

  .launch-countdown__on .launch-countdown__rule {
    width: 40px;
  }

  .launch-countdown__date {
    font-size: clamp(1.05rem, 4.9vw, 1.35rem);
    margin: 5px 0 0;
    letter-spacing: 0.14em;
  }
}
