@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;
}

/* =========================================================
   Post-launch banner — shown between the launch date and the
   banner end date (both set in js/launch-countdown.js).
   Hidden by default so it never flashes before the script runs.
   ========================================================= */
.launch-banner {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: max-content;
  max-width: 92vw;
  margin-bottom: 1.1vw;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
}

.scroll-line2.show-banner .launch-banner {
  display: flex;
}

.scroll-line2.animate.show-banner .launch-banner {
  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;
}

/* while the banner shows, the plain hero line stays hidden */
.scroll-line2.is-launched.show-banner .line {
  display: none;
}

.scroll-line2.is-launched.show-banner {
  bottom: 13%;
}

.launch-banner p {
  margin: 0;
}

.launch-banner__line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  font-family: "Cormorant Garamond", var(--DomaineDisplay), serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 4.8rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-brown);
  white-space: nowrap;
  line-height: 1.15;
}

.launch-banner__rule {
  display: inline-block;
  height: 1px;
  width: 3.4vw;
  background: var(--linecolor);
  opacity: 0.75;
}

.launch-banner__star {
  width: clamp(12px, 1.15vw, 20px);
  height: auto;
}

/* gold light sweeping across the wordmark */
.launch-banner__text {
  color: var(--light-brown);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .launch-banner__text {
    background-image: linear-gradient(
      100deg,
      #d9bd77 0%,
      #d9bd77 38%,
      #fff6db 50%,
      #d9bd77 62%,
      #d9bd77 100%
    );
    background-size: 250% 100%;
    background-position: 120% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: launch-shimmer 4.5s ease-in-out 1.2s infinite;
  }
}

@keyframes launch-shimmer {
  0% { background-position: 120% 0; }
  45% { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}

/* twinkling stars around the wordmark */
.launch-banner__sparkles {
  position: absolute;
  inset: -0.5em -1.1em;
  pointer-events: none;
}

.launch-banner__sparkles img {
  position: absolute;
  width: clamp(9px, 0.95vw, 17px);
  height: auto;
  filter: drop-shadow(0 0 5px rgba(255, 246, 219, 0.9));
  opacity: 0;
  transform: scale(0.4) rotate(0deg);
  animation: launch-twinkle 3.4s ease-in-out infinite;
}

.launch-banner__sparkles img:nth-child(1) { left: 2%;  top: 8%;  animation-delay: 0.2s; }
.launch-banner__sparkles img:nth-child(2) { left: 14%; top: 82%; animation-delay: 1.5s; width: clamp(7px, 0.7vw, 12px); }
.launch-banner__sparkles img:nth-child(3) { left: 42%; top: -6%; animation-delay: 0.9s; }
.launch-banner__sparkles img:nth-child(4) { left: 66%; top: 86%; animation-delay: 2.2s; }
.launch-banner__sparkles img:nth-child(5) { left: 88%; top: 4%;  animation-delay: 1.1s; width: clamp(7px, 0.7vw, 12px); }
.launch-banner__sparkles img:nth-child(6) { left: 97%; top: 70%; animation-delay: 2.7s; }

@keyframes launch-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.35) rotate(0deg); }
  12% { opacity: 1; transform: scale(1) rotate(30deg); }
  30% { opacity: 0.85; transform: scale(0.95) rotate(55deg); }
  52% { opacity: 0; transform: scale(0.45) rotate(85deg); }
}

/* soft glow breathing behind the wordmark */
.launch-banner__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(42vw, 620px);
  aspect-ratio: 2.6 / 1;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(217, 189, 119, 0.3) 0%,
    rgba(217, 189, 119, 0) 68%
  );
  opacity: 0;
  animation: launch-glow 5s ease-in-out 1s infinite;
}

@keyframes launch-glow {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.75; }
}

/* the wordmark settling into place on load */
.scroll-line2.animate .launch-banner__line {
  animation: launch-pop 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes launch-pop {
  0% { transform: scale(0.88); opacity: 0; letter-spacing: 0.24em; }
  60% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; letter-spacing: 0.1em; }
}

/* respect the visitor's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .launch-banner__text,
  .launch-banner__sparkles img,
  .launch-banner__glow,
  .scroll-line2.animate .launch-banner__line {
    animation: none !important;
  }

  .launch-banner__text {
    -webkit-text-fill-color: var(--light-brown) !important;
    color: var(--light-brown) !important;
  }
}

/* --- 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.is-launched.show-banner {
    bottom: 10%;
  }

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

  .launch-banner__line {
    font-size: clamp(1.42rem, 7.2vw, 2.1rem);
    gap: 7px;
    letter-spacing: 0.06em;
  }

  .launch-banner__rule {
    width: 13px;
  }

  .launch-banner__star {
    width: 11px;
  }

  .launch-banner__sparkles {
    inset: -0.45em -0.7em;
  }

  .launch-banner__sparkles img {
    width: 9px;
  }

  .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;
  }
}
