@font-face{font-family:GreatVibes;src:url('assets/great-vibes.ttf') format('truetype');font-display:swap}@font-face{font-family:Antic;src:url('assets/antic-didone.ttf') format('truetype');font-display:swap}
:root{--ink:#77786a;--olive:#657233;--paper:#f7f6f3;--ease:cubic-bezier(.22,.61,.36,1)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#e8f1f3}body{color:var(--ink);font-family:Antic,Georgia,serif}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:1px solid #6a7549;outline-offset:3px}.scene{position:relative;isolation:isolate;height:100svh;min-height:580px;width:min(100%,56.25svh);min-width:326px;margin:0 auto;overflow:hidden;background:#e5eff1}.scene:before{content:'';position:absolute;inset:-5%;z-index:-1;background-image:url('assets/front-watercolor-v2.png');background-size:1400% auto;background-position:0 0;opacity:.55}.postcard{position:absolute;left:5.6%;top:15%;width:88.8%;aspect-ratio:5/7;container-type:inline-size}.face{position:absolute;inset:0;transition:opacity .85s ease-in-out;overflow:hidden}.front{background:#fff;opacity:1}.front-art{width:100%;height:100%;object-fit:fill;display:block}.front-content{position:absolute;inset:0;text-align:center}.front-content p{margin:0}.together{position:absolute;top:17.5%;width:100%;font-size:2.5cqw;letter-spacing:.015em}.names{position:absolute;top:23.6%;left:20%;width:60%;margin:0;font-family:GreatVibes,cursive;color:var(--olive);font-weight:400;line-height:1.03;font-size:14.5cqw}.names span{display:block}.names .amp{font-size:8.5cqw;line-height:.9;margin:.8cqw 0 1.2cqw}.invitation{position:absolute;top:48.2%;width:100%;font-size:2.4cqw}.details{position:absolute;top:53%;width:100%;font-size:3.2cqw}.date{color:var(--olive);font-size:3.5cqw}.date i{font-style:normal}.day{font-size:5.5cqw}.date sup{font-size:2.2cqw;vertical-align:super}.year{color:var(--olive);font-size:2.5cqw;line-height:1.1}.details .time{margin-top:2.8cqw}.details .venue{margin-top:.7cqw}.details .hashtag{margin-top:2.4cqw;font-size:2.5cqw;color:var(--olive)}.back{background:var(--paper);opacity:0;pointer-events:none}.show-back .front{opacity:0;pointer-events:none}.show-back .back{opacity:1;pointer-events:auto}.postmark{position:absolute;left:16%;right:7%;top:5%;height:22%;margin:0}.postmark img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.schedule{position:absolute;top:32%;left:30%;right:20%;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2cqw}.schedule li{height:13.3cqw;display:grid;grid-template-columns:14cqw 1fr;align-items:center;gap:5cqw;font-size:2.6cqw;line-height:1.22}.schedule img{width:14cqw;height:13.3cqw;object-fit:contain;mix-blend-mode:multiply}.schedule p{margin:0;white-space:pre-line}.back-footer{position:absolute;left:19%;right:15%;bottom:7.4%;display:flex;align-items:center;justify-content:space-between;gap:3cqw;font-size:2.6cqw;line-height:1.3}.back-footer p{white-space:pre-line;margin:0 0 2.6cqw}.back-footer p:last-child{margin-bottom:0}.back-footer a{color:inherit;text-decoration:none;text-align:center;font-size:2.8cqw}.map-arrow{display:block;font-size:7cqw}.controls{position:absolute;top:89%;left:0;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;letter-spacing:.02em;color:#586c6d}.controls button{border:0;background:none;padding:9px 3px;min-height:44px}.controls button[aria-pressed=true]{text-decoration:underline;text-underline-offset:5px}.controls #replay-button{font-size:18px;padding-inline:8px}.demo-note{position:absolute;top:95%;width:100%;text-align:center;font-family:Georgia,serif;font-size:14px;letter-spacing:.01em;color:#495c5d;margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.playing .together{animation:fade 1.2s both .3s}.playing .first{animation:write 2.5s both 1s}.playing .amp{animation:fade 1s both 3.4s}.playing .second{animation:write 2.5s both 4s}.playing .invitation{animation:fade 1.5s both 5.9s}.playing .details{animation:fade 1.8s both 7s}.paused .front-content *{animation-play-state:paused!important}@keyframes fade{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes write{from{clip-path:inset(0 100% 0 0);opacity:0}to{clip-path:inset(0 0 0 0);opacity:1}}@media(max-width:600px){.scene{width:100%;max-width:56.25svh;min-width:min(100%,326px)}}@media(prefers-reduced-motion:reduce){.face{transition:none}.front-content *{animation:none!important}}@media(max-height:580px){.scene{width:326px}.controls{top:89%}}

.postmark .cancellation{position:absolute;inset:0;width:100%;height:100%;z-index:2;color:#85877a}.stamp-label{font:9px Georgia,serif;letter-spacing:1.5px;fill:currentColor}.monogram{font:40px GreatVibes,cursive;fill:currentColor}.postmark .stamp-art{position:absolute;right:-3%;top:-3%;width:28%;height:90%;object-fit:contain;mix-blend-mode:multiply}.schedule img{object-fit:contain}

/* Personalised 007 content: seven events arranged in the four original art groups. */
.details .venue{white-space:pre-line;font-size:2.65cqw;line-height:1.35;width:75%;margin:.9cqw auto 0}.details .hashtag{margin-top:1.7cqw}.schedule{top:30%;left:27%;right:13%;gap:2.4cqw}.schedule li{height:16cqw;grid-template-columns:14cqw 1fr;gap:5cqw;font-size:2.65cqw;line-height:1.25}.schedule p+p{margin-top:1.9cqw}.schedule time,.schedule p span{display:block}.schedule time{color:#6c6e61;font-size:2.75cqw}.back-footer{bottom:8%;left:19%;right:16%;font-size:2.7cqw}.back-footer p{margin-bottom:.8cqw}.dress-palette{display:flex;gap:1.3cqw;margin-top:3cqw}.dress-palette span{width:3.8cqw;height:3.8cqw;border-radius:50%;border:1px solid #7b786314}
/* Render QA: separate calligraphic descenders from the invitation line. */
.names{top:22.5%;line-height:.86}.names .amp{font-size:7cqw;line-height:1;margin:0}
.scene{container-type:inline-size}.controls{top:calc(15% + 124.32cqw + 26px)}
/* QA: keep all venue/date copy in the white-paper area, above the painted hills. */
.names{top:21%}.invitation{top:45.5%}.details{top:50%}.details .time{margin-top:1.5cqw}.details .hashtag{margin-top:1.2cqw}
/* Seven actual events remain legible without crowding the postcard footer. */
.schedule{top:28%;gap:1.5cqw}.schedule li{height:17cqw;font-size:3cqw;line-height:1.15}.schedule time{font-size:3cqw}.schedule p+p{margin-top:1.1cqw}.back-footer{font-size:3cqw}.back-footer a{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;text-decoration:underline;text-underline-offset:4px}

/* Keep compact labels, but provide finger-sized targets and non-motion press feedback. */
.controls button{min-width:44px;user-select:none;-webkit-user-select:none;transition:color 120ms var(--ease),background-color 120ms var(--ease)}
.controls button:active{color:#354749;background-color:#586c6d14}
.back-footer a{transition:color 120ms var(--ease),background-color 120ms var(--ease)}
.back-footer a:active{color:#354749;background-color:#586c6d14}

/* Authentic supplied artwork: no traced replacement, distortion or split glyphs. */
.names.brand-names{top:17%;left:30%;width:40%;aspect-ratio:1;margin:0;line-height:1}
.brand-logo{display:block;width:100%;height:100%;object-fit:contain}
/* Authored pen masks reveal only the unchanged supplied artwork. */
.handwriting-logo{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none}
.ink-stroke{stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.playing .ink-stroke{animation:ink-draw var(--ink-duration) linear both var(--ink-start)}
.playing .brand-logo{animation:logo-complete 5.5s steps(1,end) both 1s}
.playing .handwriting-logo{animation:ink-complete 5.5s steps(1,end) both 1s}
@keyframes ink-draw{0%{stroke-dashoffset:1;opacity:0}0.01%{opacity:1}100%{stroke-dashoffset:0;opacity:1}}
@keyframes logo-complete{from{opacity:0}to{opacity:1}}
@keyframes ink-complete{from{opacity:1}to{opacity:0}}
