.hero-text {
    position: absolute;       /* absolute inside the header */
    top: 10%;                 /* adjust how high it sits */
    left: 50%;                /* center horizontally */
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;      /* prevent text from wrapping */
    z-index: 20;              /* make sure it’s above the overlay */
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-reveal-left,
.animate-reveal-right {
  animation: fade-in 0.8s ease-out forwards;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
}

.flip {
    perspective: 1000px;
}

.card {
    position: relative;
    width: 70px;
    height: 70px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}

.card.flipped {
    transform: rotateX(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: serif;
    font-size: 28px;
    backface-visibility: hidden;
}

.card-back {
    transform: rotateX(180deg);
}

.fade-item {
    opacity: 0;
    transform: translateY(-30px);
    transition: 
        opacity 0.5s ease,
        transform 0.5s ease;
}

.fade-item.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-eyebrow {
    display: block;
    color: white;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: clamp(0.6rem, 2.5vw, 0.75rem);
}

.hero-title {
    color: white;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.1;
    margin: 1.25rem 0;
    font-size: clamp(3.2rem, 14vw, 6rem);
}

.hero-date {
    color: white;
    font-family: Georgia, serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: clamp(0.75rem, 3.5vw, 1.25rem);
}

/* ── Countdown root ── */
.cd-root {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    animation: cd-rise 1.4s cubic-bezier(0.16,1,0.3,1) 0.5s both;
}

@keyframes cd-rise {
    from { opacity: 0; transform: translateX(-50%) translateY(14px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Vine ── */
.cd-vine svg {
    width: clamp(240px, 80vw, 340px);
    height: 18px;
    display: block;
}

/* ── Band ── */
.cd-band {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(8px, 3vw, 18px);
    padding: 2px 0;
}

/* ── Each unit: number stacked over label ── */
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cd-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.0rem, 7vw, 3.4rem);
    color: rgba(255,255,255,0.95);
    line-height: 1;
    min-width: 2ch;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0,0,0,0.25);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cd-num.tick {
    opacity: 0;
    transform: translateY(-5px);
}

.cd-lbl {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(0.75rem, 3vw, 0.95rem);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* ── Dot separators ── */
.cd-dot {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: rgba(255,255,255,0.35);
    line-height: 1;
    user-select: none;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: clamp(2.0rem, 7vw, 3.4rem); /* same as .cd-num */
    transform: translateY(-6%);
}

.wedding-day-message {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    letter-spacing: .12em;
    color: #ffffff;
    text-align: center;
    animation: fadeInUp 1.5s ease forwards;
    margin-top: 20px;
}

#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}