@font-face{font-family:NightDisplay;src:url('./assets/fonts/syne.ttf') format('truetype');font-weight:400 800;font-display:swap}
:root{--night:#0b1529;--deep:#070f20;--lilac:#cbc2ff;--ice:#c3f5eb}
h1,h2,h3{font-family:NightDisplay,Arial,sans-serif;font-weight:500;letter-spacing:-.055em;line-height:1.13;text-wrap:balance}
h1 em,h2 em,h3 em{font-style:normal;font-weight:500;background:linear-gradient(110deg,#b5e8df,#cec4ff 45%,#a9cfea 80%,#b5e8df);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:title-iridescence 12s ease-in-out infinite}
h2{font-size:clamp(36px,4.1vw,58px);line-height:1.16;margin-bottom:28px}h3{font-size:27px}
.night-sky{background:radial-gradient(ellipse at 70% 10%,#33305a38,transparent 50%),var(--night)}.aurora{opacity:.22}
.masthead{height:78px;background:#080f20bb;border-color:#c1d1f019;backdrop-filter:blur(12px)}.is-sealed .masthead{background:#070d1b}
.threshold{inset:78px 0 0;display:block;padding:0;overflow:hidden;text-align:left;background:#070d1b;isolation:isolate;transition:opacity .5s 1.1s ease;transform:none;filter:none}
.threshold-scenery{position:absolute;inset:0 0 0 32%;z-index:-1;overflow:hidden;pointer-events:none;--gate-x:0px;--gate-y:0px;transform:translate3d(var(--gate-x),var(--gate-y),0);transition:transform 1.2s var(--ease)}
.threshold-art{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 42%;transform:scale(1.03);animation:crystal-breathe 15s ease-in-out infinite alternate;opacity:.92;filter:saturate(.9)}
.threshold-scenery:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#070d1b,transparent 27%),linear-gradient(0deg,#070d1b 0%,transparent 25%,transparent 80%,#070d1b50)}
.threshold-prism{position:absolute;inset:0;background:conic-gradient(from 45deg at 50% 55%,transparent 20%,#b9a4ff12 25%,transparent 35%,#b9f2ee16 55%,transparent 70%);mix-blend-mode:screen;animation:prism-shift 18s ease-in-out infinite alternate}
.threshold-content{position:relative;z-index:2;min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:49%;padding:50px 0 85px clamp(30px,7.5vw,120px);pointer-events:none}.threshold-content>*{pointer-events:auto}
.threshold .overline{font-size:8px;letter-spacing:.23em;line-height:1.7;margin-bottom:30px;color:#b9dcd9}
.threshold h1{font:600 clamp(55px,6.6vw,104px)/.98 NightDisplay,Arial,sans-serif;letter-spacing:-.065em;margin:0 0 30px;text-transform:uppercase;text-wrap:initial}
.threshold h1 span,.threshold h1 em{display:block}.threshold h1 em{font-weight:600;white-space:nowrap;color:transparent;font-style:normal}
.threshold-copy{font-size:12px;color:#c1c5d6;line-height:1.9;margin-bottom:27px;max-width:280px}
.threshold .button{min-height:56px;gap:25px;background:#eae9f2ee;border-color:#ffffffa6;box-shadow:0 0 40px #c4d4ff13;padding:16px 26px;font-size:11px;font-weight:600}
.entry-star{width:22px;height:22px;color:#394669;transition:transform .7s var(--ease);animation:entry-star-turn 12s ease-in-out infinite}
.threshold-note{display:block;margin-top:24px;font-size:8px;letter-spacing:.12em;color:#a3b4cb}
.threshold-bottom{position:absolute;bottom:23px;left:clamp(30px,7.5vw,120px);right:35px;display:flex;justify-content:space-between;align-items:center;gap:25px;color:#9eabc4;font-size:7px;letter-spacing:.19em;z-index:3;animation:fade-in 2s 1s both}.threshold-bottom>span:last-child{display:flex;gap:15px;align-items:center;letter-spacing:.08em}.threshold-bottom svg{width:12px;height:12px;color:var(--ice);animation:star-breathe 4s infinite}
.midnight-dial{position:absolute;top:49%;left:50%;width:clamp(270px,32vw,510px);aspect-ratio:1;transform:translate(-50%,-50%);z-index:2;opacity:.8;transition:transform 1.5s var(--ease),opacity 1s}
.dial-ring{position:absolute;inset:0;border:1px solid #d1d2ff25;border-radius:50%;transform:rotate(-25deg) scaleX(.76);animation:dial-rotate 22s ease-in-out infinite alternate}.dial-ring.ring-tilt{inset:-12px;transform:rotate(28deg) scaleX(.7);animation-delay:-12s;opacity:.55}
.midnight-dial>i{position:absolute;left:50%;top:50%;width:4px;height:4px;--angle:calc(var(--ray)*30deg);transform:rotate(var(--angle)) translateY(calc(clamp(270px,32vw,510px)/-2));border-radius:50%;background:#d3deff;box-shadow:0 0 10px #aecfff;animation:dial-twinkle 4s calc(var(--ray)*-.23s) ease-in-out infinite}
.gate-year{position:absolute;bottom:15%;left:0;right:0;text-align:center;font:500 11px NightDisplay,Arial,sans-serif;letter-spacing:.9em;color:#dae0f4;z-index:3;opacity:.7;animation:year-light 8s ease-in-out infinite}
.crossing-light{position:fixed;inset:0;pointer-events:none;z-index:38;opacity:0;background:radial-gradient(ellipse at 65% 50%,#d4e8ff88 0%,#ada9ec30 25%,transparent 65%)}
#magic-layer{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:39}
.is-opening .threshold{opacity:0;transform:none;filter:none;pointer-events:none}
.is-opening .threshold-content,.is-opening .threshold-bottom{opacity:0;transform:translateY(-15px);transition:opacity .4s,transform .7s var(--ease)}
.is-opening .threshold-art{animation:pass-through 1.65s cubic-bezier(.65,0,.3,1) both}
.is-opening .threshold-scenery:after{opacity:0;transition:opacity 1.3s}
.is-opening .midnight-dial{transform:translate(-50%,-50%) scale(1.55);opacity:0;transition-delay:.45s}
.is-opening .midnight-dial>i{animation:midnight-ignite .9s calc(var(--ray)*.035s) both}
.is-opening .crossing-light{animation:crossing-flare 1.65s ease-in-out both}
.is-opening .gate-year{opacity:0;transition:opacity .4s}
.hero{grid-template-columns:1.17fr 1fr;gap:28px;min-height:790px;padding-top:55px}
.hero h1{font-family:NightDisplay,Arial,sans-serif;font-size:clamp(48px,5.9vw,82px);font-weight:500;line-height:1.07;letter-spacing:-.06em;margin:28px 0;text-wrap:initial}
.hero h1 em{white-space:normal;max-width:520px;font-weight:500}
.hero-copy{padding-right:5px}.hero .overline{font-size:8px;letter-spacing:.16em}
.portal-art{height:590px}.portal-window{border-radius:200px 200px 10px 10px;isolation:isolate;background:#071125;border-color:#c9c2ff4d;box-shadow:0 0 70px #aea5ff1a}
.hero-crystal{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;animation:crystal-breathe 16s ease-in-out infinite alternate;opacity:.8}
.portal-window:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#081327 0%,transparent 25%,#08132726 60%,#08132760);z-index:0;pointer-events:none}
.portal-mist{opacity:.17;z-index:1;mix-blend-mode:screen}.portal-horizon,.portal-reflection{display:none}.portal-year{font:600 clamp(57px,6vw,88px)/1 NightDisplay,Arial,sans-serif;top:auto;bottom:17%;letter-spacing:-.055em;z-index:2;text-shadow:0 0 35px #080f20}.portal-caption{z-index:2;bottom:38px;letter-spacing:.19em}.portal-star{z-index:2}.star-a{top:13%;left:46%}.star-b{top:25%;right:13%}.portal-side{letter-spacing:.16em}
.letter h2{font-size:clamp(36px,4.4vw,59px)}.letter h2 em{color:#465f6d;background:none;-webkit-text-fill-color:currentColor}.letter-sign{font-family:NightDisplay,Arial,sans-serif;font-size:17px;font-style:normal;letter-spacing:-.04em}.letter-copy .handwritten{font-family:NightDisplay,Arial,sans-serif!important;font-size:19px!important;font-style:normal;line-height:1.55!important;letter-spacing:-.035em}
.event-facts h3{font-size:25px;line-height:1.2}.countdown-line{font-family:NightDisplay,Arial,sans-serif;font-size:19px;letter-spacing:-.045em}.countdown strong{font-family:NightDisplay,Arial,sans-serif;font-size:36px;font-weight:500;letter-spacing:-.07em}
.evening{grid-template-columns:1fr 1.25fr;gap:55px}.itinerary h3{font-size:25px;line-height:1.16}.dress h2,.wishes h2{font-size:clamp(35px,3.8vw,53px)}.wish-display{font-family:NightDisplay,Arial,sans-serif;font-size:23px;line-height:1.35;letter-spacing:-.045em}.wish-display em{font-style:normal}.wish-sky{transition:filter 1s}.wish-sky.has-wish{filter:drop-shadow(0 0 28px #b4e4e01c)}.wish-sky.has-wish .constellation>path{stroke-dasharray:900;animation:constellation-write 2s var(--ease) both}.wish-sky.has-wish .constellation>g circle{animation:node-ignite 2s var(--ease) both}.wish-sky.has-wish .constellation>g circle:nth-child(2){animation-delay:.2s}.wish-sky.has-wish .constellation>g circle:nth-child(3){animation-delay:.4s}.wish-sky.has-wish .constellation>g circle:nth-child(4){animation-delay:.6s}.wish-sky.has-wish .constellation>g circle:nth-child(5){animation-delay:.8s}
.rsvp h2{font-size:clamp(37px,4.8vw,68px);line-height:1.15}.rsvp-star{filter:drop-shadow(0 0 12px #c3f5eb45)}footer .footer-title{font:500 21px NightDisplay,Arial,sans-serif;letter-spacing:-.045em}
dialog h2,#rsvp-success h2{font-family:NightDisplay,Arial,sans-serif;font-size:38px;letter-spacing:-.055em;line-height:1.15}.rooftop{background:radial-gradient(ellipse at top,#7874a34a,transparent 65%)}
.motion-paused .threshold-art,.motion-paused .threshold-scenery{transform:none!important}.motion-paused .is-opening .threshold{transition-delay:0s!important}.motion-paused .crossing-light{display:none}
@media(hover:hover){.threshold .button:hover{box-shadow:0 0 60px #c9ceff30;transform:translateY(-3px)}.threshold .button:hover .entry-star{transform:rotate(90deg) scale(1.1)}.portal-art:hover .hero-crystal{filter:brightness(1.12);transition:filter 1s}.wish-sky:hover .wish-light{filter:drop-shadow(0 0 22px #b4e4e088)}}
@keyframes crystal-breathe{from{transform:scale(1.03);filter:saturate(.85) brightness(.9)}to{transform:scale(1.1);filter:saturate(1.12) brightness(1.05)}}
@keyframes prism-shift{to{transform:rotate(10deg);opacity:.35}}@keyframes title-iridescence{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes entry-star-turn{0%,70%,100%{rotate:0deg}85%{rotate:90deg}}@keyframes dial-rotate{to{transform:rotate(35deg) scaleX(.85)}}@keyframes dial-twinkle{50%{opacity:.28;box-shadow:0 0 2px #aecfff}}@keyframes midnight-ignite{30%{background:#fff;box-shadow:0 0 25px 5px #cbd2ff;opacity:1}100%{opacity:0;box-shadow:0 0 40px 10px #cbd2ff00}}@keyframes pass-through{0%{transform:scale(1.03);filter:brightness(1)}65%{opacity:1;filter:brightness(1.4)}100%{transform:scale(2.45);filter:brightness(1.65);opacity:0}}@keyframes crossing-flare{0%,100%{opacity:0}63%{opacity:.65}}@keyframes constellation-write{from{stroke-dashoffset:900}to{stroke-dashoffset:0}}@keyframes node-ignite{0%{opacity:.2;r:2px}50%{opacity:1;r:6px}100%{opacity:1;r:4px}}
@media(min-width:1500px){.threshold-content{padding-left:10vw}.threshold h1{font-size:105px}}
@media(max-width:1050px){.threshold-content{padding-left:5vw;width:54%}.threshold h1{font-size:clamp(53px,6.4vw,70px)}.threshold-scenery{left:31%}.hero h1{font-size:clamp(47px,5.6vw,61px)}.hero{gap:15px;min-height:740px}.portal-art{height:520px}.portal-year{font-size:64px}.evening{gap:35px}.itinerary h3{font-size:23px}.event-facts h3{font-size:23px}}
@media(max-width:680px){.masthead{height:68px;padding-inline:18px}.threshold{inset:68px 0 0;min-height:0}.threshold-scenery{inset:0;opacity:.9}.threshold-art{object-position:50% 30%;object-fit:cover}.threshold-scenery:after{background:linear-gradient(0deg,#070d1b 0%,#070d1bcb 23%,#070d1b45 58%,#070d1b7a)}.threshold-content{width:100%;min-height:100%;align-items:center;justify-content:flex-end;text-align:center;padding:32px 24px 67px}.threshold .overline{position:absolute;top:27px;left:20px;right:20px;text-align:center;font-size:7px;letter-spacing:.18em;margin:0}.threshold h1{font-size:clamp(45px,9vw,61px);line-height:1;margin:0 0 18px;letter-spacing:-.065em;text-shadow:0 2px 25px #070d1b80}.threshold h1 span:nth-child(2){display:inline-block}.threshold h1 em{display:inline-block;margin-left:.15em}.threshold h1 span:first-child{display:block}.threshold-copy{font-size:10px;line-height:1.7;margin-bottom:20px;max-width:250px}.threshold .button{min-height:51px;padding:13px 24px;font-size:10px;gap:26px}.threshold-note{font-size:7px;letter-spacing:.08em;margin-top:19px}.threshold-bottom{left:20px;right:20px;bottom:19px;justify-content:center;font-size:6px;letter-spacing:.19em}.threshold-bottom>span:last-child{display:none}.midnight-dial{top:36%;width:250px;opacity:.65}.midnight-dial>i{transform:rotate(var(--angle)) translateY(-125px);width:3px;height:3px}.gate-year{top:15%;bottom:auto;font-size:9px;letter-spacing:.7em;opacity:.7}.crossing-light{background:radial-gradient(ellipse at 50% 35%,#d4e8ff88,transparent 60%)}.hero{grid-template-columns:1fr;padding-top:45px;gap:36px;min-height:0}.hero h1{font-size:clamp(43px,9.8vw,65px);line-height:1.07;margin-block:26px;text-wrap:initial}.hero h1 em{max-width:none}.hero .overline{font-size:7px}.portal-art{height:440px;width:min(335px,93%)}.portal-year{font-size:66px}.portal-caption{font-size:5px}.letter h2{font-size:40px}.letter-copy .handwritten{font-size:18px!important}.event-facts h3{font-size:24px}.event-facts article,.event-facts article:first-child,.event-facts article:last-child{grid-template-columns:65px 1fr;column-gap:15px}.countdown strong{font-size:34px;min-width:40px}.countdown{gap:12px}.countdown-line{font-size:17px}.evening{grid-template-columns:1fr;gap:30px}.evening h2{font-size:37px}.itinerary li{grid-template-columns:72px 1fr;gap:9px}.itinerary h3{font-size:21px}.dress h2,.wishes h2{font-size:35px}.wish-display{font-size:22px}.rsvp h2{font-size:36px}.rsvp .button{font-size:9px;gap:10px}.rsvp>.tiny-note{font-size:8px}.letter-sign{font-size:16px}footer .footer-title{font-size:18px}dialog h2,#rsvp-success h2{font-size:33px}}
@media(max-width:360px){.threshold h1{font-size:39px}.threshold-content{padding-bottom:60px}.threshold .overline{font-size:6px;top:23px}.threshold-copy{font-size:9px}.midnight-dial{width:215px}.midnight-dial>i{transform:rotate(var(--angle)) translateY(-107px)}.hero h1{font-size:41px}.hero h1 em{max-width:280px;margin-inline:auto}.hero .overline{font-size:6px}.event-facts h3{font-size:22px}.itinerary li{grid-template-columns:65px 1fr;gap:7px}.itinerary h3{font-size:20px}.dress h2,.wishes h2{font-size:31px}.rsvp h2{font-size:32px}.rsvp .button{font-size:8px}.portal-art{height:400px}}
@media(max-height:650px) and (min-width:681px){.threshold-content{padding-top:25px;padding-bottom:45px}.threshold h1{font-size:54px;margin-bottom:18px}.threshold .overline{margin-bottom:17px}.threshold-copy{font-size:10px;margin-bottom:18px}.threshold .button{min-height:47px;padding-block:12px}.threshold-note{margin-top:15px}}
@media(max-height:670px) and (max-width:680px){.threshold-content{padding-bottom:48px}.threshold h1{font-size:36px;margin-bottom:12px}.threshold-copy{font-size:9px;margin-bottom:13px}.threshold-note{margin-top:12px}.threshold .button{min-height:45px;padding-block:11px}.threshold .overline{top:18px}.gate-year{top:14%}.midnight-dial{top:32%;opacity:.45}.threshold-bottom{bottom:13px}}
@media(prefers-reduced-motion:reduce){.threshold-scenery{transform:none!important}.threshold-art{transform:scale(1.03)!important}.crossing-light{display:none}.threshold{transition:none!important}.skip-link{transition:none!important}}

/* Continuous entrance: stable framing, a soft crossfade and no flash or camera jump. */
.threshold{transition:opacity .85s cubic-bezier(.4,0,.2,1);transform:none!important}
.is-opening .threshold{opacity:0;transition-delay:0s}
.is-opening .threshold-art{animation:none;opacity:.92;transition:none}
.is-opening .threshold-content,.is-opening .threshold-bottom{opacity:0;transform:translateY(-5px);transition:opacity .55s ease,transform .85s cubic-bezier(.4,0,.2,1)}
.is-opening .threshold-scenery:after{opacity:1;transition:none}
.is-opening .midnight-dial{transform:translate(-50%,-50%);opacity:0;transition:opacity .7s ease;transition-delay:0s}
.is-opening .midnight-dial>i{animation:none}
.crossing-light{display:none!important}
.sound-status{position:fixed;top:86px;right:22px;z-index:45;max-width:260px;font:11px/1.6 NightSans,Arial,sans-serif;color:var(--ice);background:#101b32ed;border-radius:10px;padding:10px 14px;box-shadow:0 8px 25px #0002}
.sound-status:empty{display:none}
@media(max-width:680px){.sound-status{top:76px;right:15px;left:15px;max-width:none}.ambient-controls button{font-size:8px;padding-inline:9px}}
