
:root{--ivory:#fff5df;--gold:#f1cb83;--line:rgba(255,230,180,.33)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-snap-type:y mandatory;background:#07152d}
body{margin:0;color:var(--ivory);font-family:"DM Sans",sans-serif;overflow-x:hidden}
button{font:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.top-progress{position:fixed;top:0;left:0;width:100%;height:3px;z-index:90;background:#fff2}.top-progress div{height:100%;width:0;background:linear-gradient(90deg,#c58a45,#ffe9b7);transition:width .35s}
#counter{position:fixed;right:24px;top:20px;z-index:90;border:1px solid #f4dca944;border-radius:30px;padding:10px 16px;background:#07132488;backdrop-filter:blur(12px);font-size:11px;font-weight:700;letter-spacing:.18em}
.scene{height:100svh;min-height:670px;position:relative;scroll-snap-align:start;display:flex;align-items:center;justify-content:center;isolation:isolate;overflow:hidden;background:#08152b}
.scene canvas.bg{position:absolute;inset:0;width:100%;height:100%;z-index:-3}
.scene::before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(3,10,25,.68),rgba(5,12,26,.18) 50%,rgba(4,10,25,.56));pointer-events:none}
.scene::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#050d20aa,transparent 20%,transparent 80%,#050d2055);pointer-events:none}
.stage{position:relative;z-index:5;width:min(1450px,92vw);margin:auto;display:grid;grid-template-columns:45% 55%;gap:12px;align-items:center}
.date-block{position:relative;transform:translateY(24px);opacity:0;transition:transform 1.05s cubic-bezier(.2,.8,.2,1),opacity 1s}
.scene.active .date-block,.scene.active .event-panel,.scene.active .intro-panel,.scene.active .final-panel{transform:none;opacity:1}
.date-number{font-family:"Cormorant Garamond",serif;font-weight:600;font-size:clamp(180px,24vw,390px);line-height:.62;letter-spacing:-.085em;color:#ffedc4;text-shadow:0 0 75px #efba6655,0 12px 35px #0005}
.date-month{font-family:"Cormorant Garamond",serif;font-size:clamp(72px,8vw,142px);line-height:.9;letter-spacing:-.06em;font-weight:600;color:#fff1d5;margin-top:35px}
.date-year{font-size:clamp(21px,2.6vw,40px);font-weight:700;letter-spacing:.48em;margin:18px 0 0 8px;color:#f3c984}
.date-rule{height:1px;background:linear-gradient(90deg,#f3d28c,transparent);width:76%;margin:34px 0 0}
.event-panel{opacity:0;transform:translateY(35px);transition:transform 1s .12s,opacity 1s .12s;padding:clamp(25px,3.5vw,52px);background:linear-gradient(135deg,#081329b5,#13274770);border:1px solid var(--line);border-radius:6px 75px 6px 6px;backdrop-filter:blur(18px);box-shadow:0 25px 90px #0005;position:relative}
.event-panel::before{content:"";position:absolute;inset:11px;border:1px solid #f6d8a11e;border-radius:4px 65px 4px 4px;pointer-events:none}
.eyebrow{font-size:13px;letter-spacing:.26em;font-weight:700;text-transform:uppercase;color:var(--gold);margin:0 0 18px}
.event-title{font-family:"Cormorant Garamond",serif;font-weight:600;font-size:clamp(38px,4.6vw,75px);line-height:.91;margin:0 0 24px;max-width:13ch;text-wrap:balance}
.event-list{display:grid;gap:13px}
.event{border-top:1px solid #ffecbc33;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.event-name{font-family:"Cormorant Garamond",serif;font-size:clamp(27px,3vw,44px);font-weight:600;line-height:1;margin:0}
.event-time{font-weight:700;color:#ffda93;font-size:clamp(14px,1.3vw,19px);white-space:nowrap;letter-spacing:.02em}
.venue{margin-top:23px;padding-top:17px;border-top:1px solid #ffecbc55}
.venue small{font-size:11px;letter-spacing:.25em;text-transform:uppercase;font-weight:700;color:#f2c477}
.venue p{font-size:clamp(17px,1.5vw,22px);line-height:1.4;font-weight:500;margin:7px 0 0}
.scene-continue{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);z-index:25;color:#ffe7b5;background:#08162b99;border:1px solid #e6c18488;padding:12px 24px;border-radius:50px;cursor:pointer;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;backdrop-filter:blur(12px);transition:background .2s,transform .2s;white-space:nowrap}
.scene-continue:hover{background:#273b61;transform:translateX(-50%) translateY(-3px)}
.intro-panel,.final-panel{opacity:0;transform:translateY(30px);transition:transform 1s,opacity 1s;text-align:center;width:min(950px,90vw);margin:auto;padding:clamp(30px,5vw,65px) 20px}
.bless{font-size:clamp(12px,1.4vw,17px);font-weight:700;text-transform:uppercase;letter-spacing:.19em;color:#f3d092}
.intro-small{font-family:"Cormorant Garamond",serif;font-size:clamp(22px,2.4vw,33px);max-width:680px;margin:18px auto;line-height:1.2}
.couple{font-family:"Cormorant Garamond",serif;font-size:clamp(92px,13vw,200px);line-height:.67;font-weight:600;margin:24px auto 15px;text-shadow:0 8px 45px #0007}
.couple span{display:block}.couple em{font-size:.36em;color:#ffdb91;font-weight:500;line-height:1.3;display:block;margin:6px 0}
.intro-note{font-family:"Cormorant Garamond",serif;font-size:clamp(20px,2.4vw,31px);max-width:680px;margin:10px auto}
.scratch{width:min(620px,90%);height:160px;margin:23px auto 0;position:relative;overflow:hidden;border-radius:10px;border:1px solid #f4d38a88;box-shadow:0 12px 45px #0006;background:radial-gradient(circle at 50% 50%,#30486d,#101f3d)}
.scratch-result{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#ffe6ae}
.scratch-result b{font-family:"Cormorant Garamond",serif;font-size:clamp(40px,6vw,76px);line-height:.9}
.scratch-result span{font-size:11px;letter-spacing:.23em;text-transform:uppercase;margin-bottom:10px;font-weight:700}
.scratch canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.reveal-btn{position:absolute;right:9px;bottom:8px;border:1px solid #fff6;border-radius:20px;background:#17233cdd;color:#fff4d5;padding:7px 12px;font-size:11px;cursor:pointer}
.final-panel .save{font-family:"Cormorant Garamond",serif;font-size:clamp(80px,12vw,180px);line-height:.7;font-weight:600;margin:10px auto 35px}
.final-panel .final-date{font-family:"Cormorant Garamond",serif;font-size:clamp(64px,10vw,145px);line-height:.9;color:#ffe3aa;margin:0 0 20px}
.final-panel p{font-family:"Cormorant Garamond",serif;font-size:clamp(25px,3vw,43px)}
@media(max-width:850px){
.scene{height:auto;min-height:100svh;padding:65px 0 85px}
.stage{grid-template-columns:1fr;width:min(650px,91vw);gap:30px}
.date-block{text-align:center}.date-number{font-size:clamp(150px,37vw,260px)}.date-month{font-size:clamp(58px,13vw,96px);margin-top:20px}.date-year{font-size:22px;letter-spacing:.36em}.date-rule{margin:22px auto 0}
.event-panel{padding:27px 23px;border-radius:8px 45px 8px 8px}
.event-title{font-size:clamp(36px,8vw,58px);max-width:none}
.event-name{font-size:clamp(25px,6vw,38px)}
.event-time{font-size:14px}
.scene-continue{bottom:17px}
.intro-panel{padding-top:45px}
.couple{font-size:clamp(85px,20vw,145px)}
}
@media(max-width:430px){
.scene{padding-top:68px;padding-bottom:75px}
.stage{gap:22px}.date-number{font-size:140px}.date-month{font-size:57px}.date-year{font-size:18px}
.event-title{font-size:35px}.event{gap:10px}.event-name{font-size:25px}.event-time{font-size:13px}
.event-panel{padding:23px 18px}.venue p{font-size:16px}
.scratch{height:150px;width:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.date-block,.event-panel,.intro-panel,.final-panel{opacity:1!important;transform:none!important;transition:none!important}}

/* Google Maps buttons and scratch reveal celebration */
.map-link{display:inline-flex;align-items:center;gap:10px;margin-top:16px;padding:12px 17px;border:1px solid #f2d0949c;border-radius:30px;background:rgba(17,35,66,.78);color:#ffe5b3;text-decoration:none;font-size:13px;font-weight:700;line-height:1.3;transition:background .2s,transform .2s;max-width:100%}
.map-link:hover,.map-link:focus-visible{background:rgba(72,93,127,.92);transform:translateY(-2px);outline-offset:3px}
.map-link svg{flex-shrink:0}
.confetti-overlay{position:fixed;inset:0;width:100vw;height:100dvh;z-index:999;pointer-events:none}
@media(max-width:430px){.map-link{font-size:12px;padding:11px 13px}}

/* 2026 finale: expressive typography and original, continuously animated scene characters */
:root{--display:"Bodoni Moda","Cormorant Garamond",Georgia,serif;--script:"Great Vibes",cursive}
body{font-family:"DM Sans",Arial,sans-serif}
.bless,.eyebrow,.venue small{font-weight:700;letter-spacing:.22em}
.intro-panel{width:min(900px,92vw);padding-top:24px;padding-bottom:26px}
.couple{font-family:var(--display);font-weight:500;letter-spacing:-.075em;line-height:.83;font-size:clamp(77px,10.7vw,155px);margin:13px auto 15px}
.couple span{font-style:italic;display:block;background:linear-gradient(150deg,#fff9e9 10%,#f9dca7 58%,#d8a862 100%);background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 5px 20px #0005)}
.couple em{font-family:var(--script);font-size:.56em;line-height:.72;letter-spacing:0;font-weight:400;font-style:normal;color:#ffda94;margin:15px auto 9px;transform:rotate(-6deg);text-shadow:0 0 30px #e8ac5c55}
.intro-small,.intro-note{font-family:"Cormorant Garamond",Georgia,serif;line-height:1.12}
.intro-small{margin:11px auto 7px}.intro-note{margin:5px auto 8px}
.scratch{margin-top:15px;height:142px;width:min(600px,94%)}
.scratch-result b{font-family:var(--display);font-size:clamp(32px,4vw,55px);letter-spacing:-.055em}
.date-number,.date-month{font-family:var(--display);font-weight:500;letter-spacing:-.075em}
.date-number{font-size:clamp(145px,18vw,275px);line-height:.83}
.date-month{font-size:clamp(62px,6vw,102px);margin-top:10px}
.date-year{font-size:clamp(17px,2vw,28px);margin-top:13px}
.date-rule{margin-top:19px}
.event-title{font-family:var(--display);font-size:clamp(34px,3.55vw,60px);font-weight:500;line-height:1.03;letter-spacing:-.06em;max-width:16ch;margin-bottom:15px}
.event-name{font-family:"Cormorant Garamond",serif;font-size:clamp(29px,2.7vw,42px);font-weight:600}
.event-panel{padding:clamp(22px,2.8vw,38px)}
.event{padding-top:11px}.event-list{gap:10px}.venue{margin-top:15px;padding-top:14px}
.event-art{position:relative;width:min(460px,100%);height:clamp(155px,24vh,260px);margin:5px auto 0;opacity:.98;filter:drop-shadow(0 15px 32px #02091777)}
.event-art svg{display:block;width:100%;height:100%;overflow:visible}
.event-art .figure-sway,.event-art .skirt-motion,.event-art .arm-left,.event-art .arm-right,.event-art .flame,.event-art .floral-spin,.event-art .spark,.event-art .spotlight,.event-art .haldi-thali{transform-box:fill-box;transform-origin:center bottom}
.scene.active .art--sangeet .woman .figure-sway{animation:royal-dance 1.75s ease-in-out infinite alternate}
.scene.active .art--sangeet .man .figure-sway{animation:royal-dance 1.55s ease-in-out -.6s infinite alternate-reverse}
.scene.active .art--sangeet .woman .skirt-motion{animation:skirt-flare 1.45s ease-in-out infinite alternate}
.scene.active .art--sangeet .arm-right{animation:wave-right 1.3s ease-in-out infinite alternate}
.scene.active .art--sangeet .arm-left{animation:wave-left 1.6s ease-in-out -.3s infinite alternate}
.scene.active .art--sangeet .spotlight-a{animation:spotlight 3.2s ease-in-out infinite alternate}
.scene.active .art--sangeet .spotlight-b{animation:spotlight 3.5s ease-in-out -1.3s infinite alternate-reverse}
.scene.active .art--haldi .haldi-thali{animation:thali 2.4s ease-in-out infinite alternate}
.scene.active .art--haldi .haldi-friend .arm-left{animation:wave-left 2.3s ease-in-out infinite alternate}
.scene.active .art--pooja .tilak-lady .arm-left{animation:wave-left 3s ease-in-out infinite alternate}
.scene.active .art--prayer .figure-sway,.scene.active .art--wedding .figure-sway{animation:ceremony 4.8s ease-in-out infinite alternate}
.scene.active .event-art .flame{animation:flame 1.3s ease-in-out infinite alternate}
.scene.active .event-art .floral-spin{animation:slow-turn 15s linear infinite}
.scene.active .event-art .spark{animation:twinkle 2.4s ease-in-out infinite alternate}
@keyframes royal-dance{0%{transform:rotate(-5deg) translateY(0)}100%{transform:rotate(7deg) translateY(-8px)}}
@keyframes skirt-flare{0%{transform:rotate(-4deg) scaleX(.96)}100%{transform:rotate(7deg) scaleX(1.09)}}
@keyframes wave-right{0%{transform:rotate(-10deg)}100%{transform:rotate(-32deg)}}
@keyframes wave-left{0%{transform:rotate(8deg)}100%{transform:rotate(24deg)}}
@keyframes spotlight{0%{transform:rotate(-9deg);opacity:.5}100%{transform:rotate(10deg);opacity:1}}
@keyframes thali{0%{transform:translateX(-7px) translateY(2px)}100%{transform:translateX(8px) translateY(-5px)}}
@keyframes ceremony{0%{transform:rotate(-1.4deg)}100%{transform:rotate(1.4deg)}}
@keyframes flame{0%{transform:scaleX(.9) rotate(-6deg)}100%{transform:scaleX(1.1) rotate(7deg)}}
@keyframes slow-turn{to{transform:rotate(360deg)}}
@keyframes twinkle{0%{opacity:.25;transform:scale(.8)}100%{opacity:1;transform:scale(1.15)}}
.final-panel .save{font-family:var(--script);font-size:clamp(90px,12vw,175px);font-weight:400;line-height:.9;color:#fce4b6}
.final-panel .final-date{font-family:var(--display);font-weight:500;letter-spacing:-.07em}
@media(min-width:851px) and (max-height:790px){.event-art{height:150px}.date-number{font-size:clamp(140px,15vw,215px)}.date-month{font-size:clamp(60px,5vw,82px)}.event-panel{padding:24px}.event-title{font-size:clamp(32px,3vw,50px)}.intro-panel{padding:10px}.couple{font-size:clamp(75px,9vw,130px)}.scratch{height:128px}}
@media(max-width:850px){html{scroll-snap-type:y proximity}.stage{gap:13px}.date-number{font-size:clamp(115px,26vw,195px)}.date-month{font-size:clamp(48px,11vw,77px);margin-top:5px}.date-year{font-size:17px}.date-rule{margin-top:10px}.event-art{height:clamp(128px,22vh,205px);margin:0 auto}.event-panel{padding:22px}.event-title{font-size:clamp(31px,6.5vw,50px);max-width:none}.couple{font-size:clamp(70px,17vw,130px)}.intro-small{font-size:clamp(19px,4.5vw,27px)}.intro-note{font-size:clamp(18px,4.2vw,25px)}.bless{font-size:11px;letter-spacing:.12em}}
@media(max-width:430px){.scene{padding-top:53px;padding-bottom:75px}.event-art{height:138px}.date-number{font-size:112px}.date-month{font-size:48px}.date-year{font-size:15px}.event-title{font-size:32px}.event-name{font-size:26px}.event-time{font-size:12px}.event-panel{padding:20px 16px}.couple{font-size:clamp(65px,17vw,95px)}.scratch{height:132px}.intro-panel{padding:12px 5px}.final-panel .save{font-size:90px}}
@media(prefers-reduced-motion:reduce){.event-art *{animation:none!important}.scene.active .event-art *{animation:none!important}}


/* === Mobile reliability & performance patch (Nov 2026) === */
/* A single viewport-anchored next button keeps navigation in exactly the
   same place across all seven scenes, regardless of scene content height. */
.scene-continue{
  position:fixed;
  z-index:150;
  left:50%;
  bottom:max(14px, env(safe-area-inset-bottom, 0px) + 10px);
  transform:translateX(-50%);
  width:min(370px,calc(100vw - 32px));
  min-height:49px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 18px;
  text-align:center;
  white-space:normal;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.scene-continue[hidden]{display:none!important}
.scene-continue:hover{transform:translateX(-50%) translateY(-2px)}
.scene-continue:focus-visible{outline:2px solid #ffdc97;outline-offset:4px}
.scene canvas.bg{pointer-events:none}
@media(max-width:850px){
  html{scroll-snap-type:y proximity;scroll-behavior:auto}
  .scene{
    height:auto;
    min-height:100svh;
    padding:65px 0 calc(110px + env(safe-area-inset-bottom, 0px));
    scroll-snap-align:start;
  }
  .stage{width:min(650px,92vw);gap:12px}
  .event-panel{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 12px 34px #0004}
  #counter{backdrop-filter:none;-webkit-backdrop-filter:none;right:12px;top:12px;padding:8px 12px}
  .scene-continue{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(8,22,43,.96);box-shadow:0 6px 20px #0008}
  .event-art{filter:none;height:clamp(118px,17svh,158px)}
  .date-number,.date-month,.event-title,.final-panel .final-date,.scratch-result b{
    font-family:"Cormorant Garamond",Georgia,serif;
    letter-spacing:-.018em;
    line-height:1.04;
  }
  .date-number{font-size:clamp(95px,24vw,146px)}
  .date-month{font-size:clamp(45px,10vw,68px);margin-top:0}
  .date-year{font-size:16px;letter-spacing:.22em;margin-top:6px}
  .date-rule{margin-top:8px}
  .couple{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(68px,17vw,108px);font-weight:600;letter-spacing:0;line-height:1.05;margin:13px auto}
  .couple span{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-style:italic;
    font-weight:600;
    background:none;
    -webkit-background-clip:initial;
    background-clip:initial;
    -webkit-text-fill-color:#f5d69d;
    color:#f5d69d;
    filter:none;
    text-shadow:0 3px 20px #0007;
    line-height:1.05;
    letter-spacing:0;
    padding:0 .1em .08em;
  }
  .couple em{font-family:"Great Vibes","Cormorant Garamond",Georgia,serif;font-size:.52em;line-height:1.05;margin:0 auto;transform:none}
  .intro-panel{width:min(580px,92vw);padding:12px 0 8px}
  .intro-small{line-height:1.2;margin:10px auto}
  .intro-note{line-height:1.22;margin:9px auto}
  .scratch{height:135px;margin-top:13px;width:min(500px,100%)}
  .scratch-result b{font-size:clamp(29px,7.5vw,47px);font-weight:600;letter-spacing:-.015em}
  .event-title{font-size:clamp(30px,7vw,45px);letter-spacing:-.02em;line-height:1.1}
  .event-name{line-height:1.1;overflow-wrap:anywhere}
  .event-time{flex-shrink:0}
  .venue p{overflow-wrap:break-word}
  .final-panel .save{font-size:clamp(64px,16vw,110px);line-height:1.12;margin-bottom:14px}
  .final-panel .final-date{font-size:clamp(43px,10vw,80px);line-height:1.12}
}
@media(max-width:430px){
  .scene{padding-top:62px;padding-bottom:calc(105px + env(safe-area-inset-bottom, 0px))}
  .event-art{height:clamp(105px,15svh,136px)}
  .event-panel{padding:18px 15px}
  .date-number{font-size:clamp(95px,25vw,116px)}
  .date-month{font-size:clamp(44px,11vw,52px)}
  .couple{font-size:clamp(64px,17vw,78px)}
  .intro-panel{padding:4px 0 10px}
  .bless{font-size:10px;line-height:1.3}
  .scratch{height:124px}
  .event{gap:8px}
  .event-name{font-size:clamp(23px,6.2vw,29px)}
  .event-time{font-size:12px}
  .map-link{padding:10px 12px}
}
@media(max-height:700px) and (max-width:850px){
  .scene{padding-top:58px}
  .stage{gap:8px}
  .event-art{height:105px}
  .scratch{height:115px}
}
@media(prefers-reduced-motion:reduce){
  .scene-continue{transition:none}
  .scene.active .event-art *{animation:none!important}
}


/* === Final mobile navigation & event readability update ===
   Keep the original artwork, stage layout and desktop venue buttons.
   On phones, give maps and navigation their own fixed, non-overlapping dock.
   The venue map remains accessible even on taller event cards. */
.next-mobile{display:none}
.mobile-actions{display:contents}
.mobile-map{display:none}
.mobile-actions[hidden]{display:none!important}
@media(max-width:850px){
  .mobile-actions{
    position:fixed;
    z-index:150;
    left:50%;
    bottom:max(12px, env(safe-area-inset-bottom, 0px) + 8px);
    transform:translateX(-50%);
    width:min(540px,calc(100vw - 24px));
    display:flex;
    align-items:stretch;
    gap:8px;
    padding:0;
    pointer-events:auto;
  }
  .mobile-map,.mobile-actions .scene-continue{
    position:relative;
    left:auto;
    bottom:auto;
    transform:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:52px;
    padding:10px 11px;
    border-radius:28px;
    border:1px solid rgba(242,208,148,.7);
    box-shadow:0 6px 22px rgba(0,0,0,.55);
    background:#0b1c39;
    color:#ffe5b3;
    font-size:13px;
    font-weight:700;
    letter-spacing:.015em;
    line-height:1.2;
    white-space:nowrap;
    text-align:center;
    text-decoration:none;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  .mobile-map{flex:1 1 45%;}
  .mobile-actions .scene-continue{flex:1 1 55%;width:auto;text-transform:none}
  .mobile-map[hidden],.mobile-actions .scene-continue[hidden]{display:none!important}
  .mobile-actions .scene-continue:hover{transform:none}
  .mobile-map:focus-visible,.mobile-actions .scene-continue:focus-visible{outline:2px solid #ffe4aa;outline-offset:2px}
  .next-desktop{display:none}.next-mobile{display:inline}
  /* The floating map action replaces the inline link on phones; no duplicate
     map control gets hidden underneath the next-scene button. */
  .event-panel .map-link{display:none}
  .event-title{font-size:clamp(34px,7.7vw,48px);line-height:1.12}
  .event-name{font-size:clamp(29px,6.6vw,39px);line-height:1.12}
  .event-time{font-size:clamp(14px,2.8vw,17px);line-height:1.3;letter-spacing:0}
  .venue p{font-size:clamp(18px,3.8vw,21px);line-height:1.4}
  .venue small{font-size:12px}
  .scene{padding-bottom:calc(112px + env(safe-area-inset-bottom, 0px))}
}
@media(max-width:430px){
  .mobile-actions{width:calc(100vw - 22px);gap:7px}
  .mobile-map,.mobile-actions .scene-continue{font-size:12.5px;min-height:52px;padding:9px 8px}
  .event-title{font-size:34px}
  .event-name{font-size:clamp(28px,7.3vw,32px)}
  .event-time{font-size:14px}
  .venue p{font-size:18px}
  .event-panel{padding:17px 15px}
  .scene{padding-bottom:calc(108px + env(safe-area-inset-bottom, 0px))}
  /* Extra vertical space for the longest wedding-day schedule, without
     changing the stage, art, colors or the actual invitation details. */
  .scene[data-index="5"] .stage{gap:12px}
  .scene[data-index="5"] .event-art{height:110px}
}


/* === FINAL 2026 POLISH: readable lettering + unobstructed venue === */
/* Use a complete, reliably legible serif instead of the very tightly tracked
   display face that visually joined/clipped lowercase letters on desktop. */
:root{--display:"Cormorant Garamond",Georgia,serif}
.couple,.couple span,.date-number,.date-month,.event-title,.final-panel .final-date,.scratch-result b{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-kerning:normal;
  text-rendering:optimizeLegibility;
  letter-spacing:-.018em;
}
.couple{font-weight:600;line-height:1.03;letter-spacing:0;overflow:visible}
.couple span{
  font-weight:600;
  font-style:italic;
  line-height:1.07;
  letter-spacing:.005em;
  background:none;
  -webkit-background-clip:initial;
  background-clip:initial;
  -webkit-text-fill-color:#f6d99e;
  color:#f6d99e;
  filter:none;
  text-shadow:0 5px 25px #0007;
  overflow:visible;
  padding:0 .08em .045em;
}
.date-number,.date-month{letter-spacing:-.025em;line-height:1.02}
.event-title{letter-spacing:-.015em;line-height:1.12}
.final-panel .final-date{letter-spacing:-.02em;line-height:1.08}
/* On mobile the date becomes an elegant, compact side-by-side masthead. The
   illustrations, card frames, colors and event information remain intact. */
@media(max-width:850px){
  .scene:has(.stage){padding-top:50px;padding-bottom:calc(105px + env(safe-area-inset-bottom,0px))}
  .scene .stage{gap:10px;width:min(650px,92vw)}
  .scene .stage .date-block{
    display:grid;
    grid-template-columns:34% minmax(0,66%);
    grid-template-rows:auto auto auto auto;
    align-items:center;
    justify-items:stretch;
    text-align:left;
    width:100%;
  }
  .scene .stage .date-number{
    grid-column:1;grid-row:1 / 3;
    font-size:clamp(86px,24vw,112px);
    line-height:.9;
    margin:0;
    text-align:center;
  }
  .scene .stage .date-month{
    grid-column:2;grid-row:1;
    font-size:clamp(38px,10vw,54px);
    line-height:.95;
    margin:0;
    text-align:left;
  }
  .scene .stage .date-year{
    grid-column:2;grid-row:2;
    font-size:14px;
    line-height:1.2;
    margin:0 0 0 2px;
    letter-spacing:.26em;
    text-align:left;
  }
  .scene .stage .date-rule{
    grid-column:1 / -1;grid-row:3;
    width:85%;height:1px;
    margin:5px auto 5px;
    background:linear-gradient(90deg,transparent,#f3d28c 20%,#f3d28c 80%,transparent);
  }
  .scene .stage .event-art{
    grid-column:1 / -1;grid-row:4;
    height:clamp(80px,12svh,112px);
    margin:0 auto;
    width:min(340px,100%);
  }
  .scene .stage .event-panel{padding:15px 17px}
  .scene .stage .eyebrow{margin-bottom:9px;font-size:12px}
  .scene .stage .event-title{font-size:clamp(30px,7.5vw,39px);margin-bottom:10px;line-height:1.07}
  .scene .stage .event-list{gap:7px}
  .scene .stage .event{padding-top:9px}
  .scene .stage .event-name{font-size:clamp(27px,7vw,34px);line-height:1.04}
  .scene .stage .event-time{font-size:14px}
  .scene .stage .venue{margin-top:10px;padding-top:10px}
  .scene .stage .venue small{font-size:11px}
  .scene .stage .venue p{font-size:17px;line-height:1.3;margin-top:5px}
  /* Reserve space in the document for the dock so the venue can always be
     scrolled completely above it on smaller displays. */
  .scene .stage .event-panel{margin-bottom:0}
  .mobile-actions{bottom:max(9px,env(safe-area-inset-bottom,0px) + 7px)}
  .mobile-map,.mobile-actions .scene-continue{min-height:50px}
}
@media(max-width:430px) and (max-height:790px){
  .scene:has(.stage){padding-top:39px;padding-bottom:calc(91px + env(safe-area-inset-bottom,0px))}
  .scene .stage{gap:7px}
  .scene .stage .date-number{font-size:82px}
  .scene .stage .date-month{font-size:37px}
  .scene .stage .date-year{font-size:12px}
  .scene .stage .date-rule{margin:2px auto}
  .scene .stage .event-art{height:66px}
  .scene .stage .event-panel{padding:12px 14px}
  .scene .stage .eyebrow{margin-bottom:6px}
  .scene .stage .event-title{font-size:29px;margin-bottom:7px}
  .scene .stage .event-name{font-size:27px}
  .scene .stage .event-time{font-size:13px}
  .scene .stage .event-list{gap:5px}
  .scene .stage .event{padding-top:7px}
  .scene .stage .venue{margin-top:7px;padding-top:8px}
  .scene .stage .venue p{font-size:16px;line-height:1.25}
  .mobile-map,.mobile-actions .scene-continue{min-height:47px}
}
@media(max-width:850px){
  .scene .stage .date-block,.scene .stage .event-panel{flex-shrink:0}
  .scene .stage .date-block{transform:translateY(12px)}
  .scene.active .stage .date-block{transform:none}
}

/* Desktop welcome: protect the scratch card from the fixed navigation pill.
   No changes to the decorative frame or content; just use vertical space better. */
@media (min-width:851px) and (max-height:950px){
  .scene[data-index="0"] .intro-panel{padding-top:14px;padding-bottom:62px}
  .scene[data-index="0"] .couple{font-size:clamp(84px,9.4vw,137px);line-height:.99;margin:10px auto 9px}
  .scene[data-index="0"] .couple em{margin:7px auto 5px}
  .scene[data-index="0"] .intro-small{margin:7px auto 5px}
  .scene[data-index="0"] .intro-note{margin:4px auto 5px}
  .scene[data-index="0"] .scratch{height:118px;margin-top:10px}
}
