/* ==========================================================
   RIBBON + HERO: marquee, save-the-date, scratch card, countdown
   ========================================================== */

/* MARQUEE RIBBON */
.ribbon {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: 18px 0;
  color: #fffdf8;
  background: linear-gradient(90deg, #7f1d1d, #9b2424, #c89c5a, #7f1d1d, #5c1414);
  transform: rotate(-0.8deg) scale(1.02);
  box-shadow: 0 12px 40px rgba(127, 29, 29, .25);
  border-top: 1px solid #f5e9cf;
  border-bottom: 1px solid #f5e9cf;
}

.ribbon-track {
  width: max-content;
  display: flex;
  gap: 45px;
  animation: ribbonMove 24s linear infinite;
  font-family: var(--font-royal);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .06em;
}

.ribbon-track span::after {
  content: " ✦ ";
  margin-left: 45px;
  font-style: normal;
  color: #f5e9cf;
}

@keyframes ribbonMove {
  to {
    transform: translateX(-50%);
  }
}

/* HERO & SCRATCH CARD SECTION (ROYAL IVORY & GOLD THEME) */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 20px 5vw 72px;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  left: -170px;
  bottom: 7%;
  border: 70px solid rgba(200, 156, 90, .08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  margin: auto;
  text-align: center;
}

.hero-copy {
  position: relative;
}

.hero-scratch-title {
  margin: 14px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.5vw, 54px);
  font-weight: 600;
  color: var(--crimson);
  line-height: 1.1;
}

.hero-scratch-title em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: #9a7030;
  font-size: 1.15em;
}

.scratch-wrap {
  position: relative;
  perspective: 1100px;
  margin: 0 auto;
}

.shape-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.scratch-stage {
  position: relative;
  width: min(86%, 340px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-clip-path: url(#heartClip);
  clip-path: url(#heartClip);
  filter: drop-shadow(0 20px 40px rgba(160, 100, 35, .25));
}

.scratch-stage .scratch-reveal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 20% 12% 24%;
  text-align: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .8), transparent 45%),
    linear-gradient(150deg, #FFFDF8, #FAEFD9 48%, #F7E7C4);
}

.date-badge {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 12px;
  padding: 7px 0;
  border-top: 1.5px solid rgba(200, 156, 90, .65);
  border-bottom: 1.5px solid rgba(200, 156, 90, .65);
  color: var(--ink);
  font-family: var(--font-royal);
  line-height: 1;
}

.date-badge .db-side {
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #8c6e3a;
}

.date-badge .db-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  border-left: 1.5px solid rgba(200, 156, 90, .5);
  border-right: 1.5px solid rgba(200, 156, 90, .5);
}

.date-badge .db-main b {
  color: var(--crimson);
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.date-badge .db-main i {
  font-size: clamp(34px, 10vw, 46px);
  font-style: normal;
  font-weight: 700;
  line-height: .95;
  color: var(--crimson);
}

#scratchCanvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  transition: opacity .6s ease;
}

.scratch-stage.is-revealed #scratchCanvas {
  opacity: 0;
  pointer-events: none;
}

.scratch-reset {
  display: block;
  margin: 10px auto 0;
  padding: 10px 22px;
  border: 1.5px solid #c89c5a;
  border-radius: 999px;
  color: #fffdf8;
  background: linear-gradient(135deg, #9b2424, #5c1414);
  box-shadow: 0 6px 20px rgba(127, 29, 29, .3);
  cursor: pointer;
  font-family: var(--font-royal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease, background .25s ease;
}

.scratch-wrap.is-revealed .scratch-reset {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.scratch-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(127, 29, 29, .45);
}

.countdown-label {
  margin: 48px 0 16px !important;
  color: var(--crimson) !important;
  font-family: var(--font-royal) !important;
  font-size: clamp(15px, 3.2vw, 21px) !important;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.countdown-label::before,
.countdown-label::after {
  content: "✦";
  color: #c89c5a;
  font-size: 0.85em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: auto;
}

.count-unit {
  position: relative;
  padding: 20px 10px 16px;
  border: 2px solid #c89c5a;
  border-radius: 22px 22px 18px 18px;
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.96), rgba(249, 241, 226, 0.94));
  box-shadow: 0 12px 32px rgba(160, 100, 35, 0.14), inset 0 0 15px rgba(200, 156, 90, 0.2);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.count-unit::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c89c5a;
  box-shadow: 0 0 8px #c89c5a;
}

.count-unit:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(160, 100, 35, 0.22);
  border-color: #c89c5a;
}

.count-unit b {
  display: block;
  font-family: var(--font-royal);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: #7f1d1d;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

.count-unit span {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(200, 156, 90, 0.15);
  color: #7d4e3f;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 5vw;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-royal);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 30px;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 3px;
  height: 9px;
  border-radius: 99px;
  background: var(--crimson);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  65% {
    transform: translate(-50%, 18px);
    opacity: .15;
  }

  100% {
    opacity: 0;
  }
}
