:root{--bg:#300a49;--cream:#f0ecd9;--pink:#f472b6;--cyan:#3ec8f0;--gold:#ffc53d;--blue:#335cb7;--lilac:#b28dff;--mint:#8ee27a}
/* nav logo */
#logo svg{display:none}
#logo .logo-text{display:inline-block;text-indent:0;font:italic 700 clamp(30px,3.2vw,52px)/1 "Segoe Script","Brush Script MT","Lucida Handwriting",cursive;color:var(--gold);animation:whisper 3.2s ease-in-out infinite}
#logo .logo-text.on{color:var(--cyan);animation:none}
@keyframes whisper{0%,100%{transform:translateY(0) rotate(-2deg);opacity:.85}50%{transform:translateY(-4px) rotate(1deg);opacity:1}}
/* intro word (sits in the slot of the original Stiff logo animation, on the cream slide) */
#logo-lottie{width:auto!important;white-space:nowrap}
#logo-lottie .intro-word{display:flex;justify-content:center;font:italic 700 clamp(70px,13vw,240px)/1.05 "Segoe Script","Brush Script MT","Lucida Handwriting",cursive;color:var(--bg);text-shadow:.04em .04em 0 var(--pink)}
#logo-lottie .intro-word span{display:inline-block;opacity:0;will-change:transform}
.quote-icon svg,.quote-icon .spin-text{display:none!important}
/* countdown: HOURS [colon -> cake] MINUTES, same slots as the original "Go [teeth] od" */
.cd-big{font-size:clamp(90px,19vw,340px)!important;line-height:.85!important;font-variant-numeric:tabular-nums}
body:not(.loading) .cd-big,body:not(.loading) .cd-big div{color:var(--pink)!important}
body:not(.loading) .cd-big.final,body:not(.loading) .cd-big.final div{color:var(--gold)!important}
.cd-big::after{display:block;font-size:clamp(12px,1.1vw,18px);letter-spacing:.3em;margin-top:1em;color:var(--cream);opacity:.75;font-weight:700}
.cd-hh::after{content:"JAM";text-align:left}.cd-mm::after{content:"MENIT";text-align:right}
.cd-big:empty::after{display:none}
.cd-colon{position:absolute;left:0;width:100%;text-align:center;bottom:.7vw;pointer-events:none;color:var(--cyan);line-height:.8;animation:blink 1s steps(1) infinite}
body.loading .cd-colon{color:#e2dab4}
@keyframes blink{50%{opacity:.25}}
.cd-note{font-size:clamp(14px,1.5vw,24px)!important;letter-spacing:.04em;text-align:center}
.home #hero h1>div:nth-of-type(2) figure{width:clamp(150px,16vw,300px)!important}
.hero-icon img.cake{opacity:1!important;width:100%;height:auto;display:block}
.hero-icon svg{display:none!important}
#hero h1 .f-180,#hero .intro-red{font-size:min(10.6vw,21vh)!important;white-space:nowrap}
.stripe-inner h2 span{white-space:nowrap;display:inline-block;margin:0 1.4em}
/* lock state */
html[data-locked] #nav a,html[data-locked] .hamburger,html[data-locked] .work-listing,html[data-locked] .media-feed,html[data-locked] .button{pointer-events:none}
html[data-locked] #nav{opacity:.45}
/* quote gif */
.quote-gif{width:clamp(220px,22vw,340px)!important;margin:0 auto}
.quote-gif .burst{width:100%;height:auto;display:block;border-radius:22px;opacity:1!important}
/* placeholders / cards */
.ph{display:flex!important;align-items:center;justify-content:center;aspect-ratio:727/410;border-radius:6px}
.ph span{position:static!important;display:block;line-height:1;transform:none!important;font-weight:900;letter-spacing:.3em;font-size:clamp(16px,1.6vw,26px);color:rgba(255,255,255,.85)}
.media-box .ph{aspect-ratio:1/1;width:clamp(240px,26vw,440px)}
.media-box figure{overflow:hidden;border-radius:6px}
/* inner pages */
.bday-page{padding:16vh 2vw 10vh}
.bday-page h1{text-align:center;margin-bottom:5vh}
.mem-grid,.wish-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:1.6vw}
.mem-card figure img,.mem-card .ph{width:100%;border-radius:6px;display:block}
.mem-card h3{margin:1.2vh 0 .4vh;color:var(--cream)}
.mem-card .caption{opacity:.75}
.wish-card{padding:2.2vw;border-radius:14px;color:var(--bg);display:flex;flex-direction:column;justify-content:space-between;gap:2vh;min-height:220px}
.wish-card.c0{background:var(--cream)}.wish-card.c1{background:var(--pink)}.wish-card.c2{background:var(--cyan)}.wish-card.c3{background:var(--gold)}
.letter-box{max-width:780px;margin:0 auto;padding:4vw;background:var(--cream);color:var(--bg);border-radius:16px;transform:rotate(-.6deg)}
.letter-box p{margin:1.6vh 0;line-height:1.5}.letter-box .sign{color:var(--pink);font-style:italic;margin-top:4vh}
.letter-preview{max-width:30ch;margin-bottom:3vh}
/* music */
#music-btn{position:fixed;right:16px;bottom:16px;z-index:9999;border:2px solid var(--cream);background:var(--bg);color:var(--cream);border-radius:999px;padding:8px 14px;font-size:14px;cursor:pointer;display:none;align-items:center}

/* countdown stays hidden (digits, colon, labels) until the intro has separated them */
html:not(.cd-ready) .cd-big,html:not(.cd-ready) .cd-colon{opacity:0!important}
.cd-big,.cd-colon{transition:opacity .5s ease}
.cd-big,.cd-big div{display:block}

/* first (white) slide: surprise video + live countdown, held until 00:00 */
#logo-lottie .intro-media{display:flex;flex-direction:column;align-items:center;gap:1.2vw}
#logo-lottie .intro-video{width:clamp(300px,44vw,760px);height:auto;display:block;pointer-events:none}
#logo-lottie .intro-cd{display:flex;align-items:flex-start;justify-content:center;gap:.5vw;font-family:"Grand Bold",sans-serif;font-size:clamp(34px,5vw,90px);line-height:1;color:var(--pink)}
#logo-lottie .intro-cd i{font-style:normal;color:var(--cyan)}
#logo-lottie .intro-cd span{display:inline-block;min-width:1.2em;text-align:center}
/* last slide: calmer sizes so nothing is clipped */
.home #contact header .Red{font-size:19vh!important}
.home #contact header h2>div:first-of-type{font-size:8vh!important}
.home #contact .contact-icon{max-width:100%}
.home #contact .contact-content .ws-xl-7{overflow:visible}

/* v4 */
#logo-lottie .intro-video{width:clamp(480px,80vw,1300px)!important}
/* vertical HAPPY BIRTHDAY strip: fixed pitch = animation distance, no overlap */
.home #work .marquize-stripe .stripe-inner h2 span{width:30vh;margin:0;text-align:center;display:inline-block;white-space:nowrap}
.home #work .marquize-stripe .stripe-wrap{animation-name:marqueeY}
@keyframes marqueeY{0%{transform:translateY(0)}100%{transform:translateY(-30vh)}}
@keyframes marqueeX{0%{transform:translateX(0)}100%{transform:translateX(-62vw)}}
/* last slide */
.home #contact header .Red{font-size:26vh!important}
.home #contact header h2>div:first-of-type{font-size:10vh!important}
.home #contact .contact-content .ws-xl-17>.ws-grid{height:100%}
.home #contact .sweet-row{flex:1;align-items:center}
@media only screen and (max-width:1024px){
  .home #work .marquize-stripe .stripe-wrap{animation-name:marqueeX}
  .home #work .marquize-stripe .stripe-inner h2 span{width:62vw}
  .home #contact header .Red{font-size:30vw!important}
}

/* v5: GIF characters replace the Stiff lotties */
.home .header-icon img{opacity:1!important;height:100%;width:auto;display:block}
.home .header-icon{background:transparent}
@media only screen and (max-width:1024px){.home .header-icon img{height:auto;width:100%}}
.home #work .button span{white-space:nowrap}

/* v6 fixes -------------------------------------------------- */
:root{--media-char-left:44vw;--media-char-h:52vh;--media-char-bottom:-1.6vw;--car-char-bottom:1.8vh}
/* "IN YOUR STORY" must not touch the vertical line of the panel */
.home #media header{padding-left:3.4vw}
/* green character: bigger, a little lower, to the right of the Y */
.home #media header .header-icon{left:var(--media-char-left)!important;height:var(--media-char-h)!important;bottom:var(--media-char-bottom)!important}
/* car character: lifted so the feet do not touch the line */
.home #contact header .header-icon{bottom:var(--car-char-bottom)!important}
/* photos: no loading bar, no dragging/clicking bugs */
.progress-bar{display:none!important}
.work-box img,.media-box img,.work-box .ph,.media-box .ph,.mem-card img{pointer-events:none;-webkit-user-drag:none;user-select:none}
.media-box a{pointer-events:none;cursor:default}
.work-listing img{cursor:default}
.media-box figure img,.work-box figure img{width:100%;height:100%;object-fit:cover;display:block}
.media-box figure img{aspect-ratio:1/1}
.work-box figure img{aspect-ratio:727/410}
.media-box .media-content p{max-width:26ch}
@media only screen and (max-width:1024px){:root{--media-char-left:auto}.home #media header .header-icon{left:auto!important;bottom:auto!important;height:auto!important}}

.cd-big.done::after{display:none!important}
