:root{
    --cream:#f4f8fd;
    --cream-deep:#e1ebf7;
    --gold:#7fa6d4;
    --gold-deep:#3d6596;
    --gold-light:#c3d8ee;
    --ink:#1f2e44;
    --ink-soft:#54667f;
    --glass:rgba(250,253,255,0.68);
    color-scheme: light;
    box-sizing:border-box;
    padding-top:env(safe-area-inset-top,0px);
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  *{box-sizing:border-box;}
  html{scroll-padding-top:env(safe-area-inset-top,0px); scroll-behavior:smooth;}
  html.locked, html.locked body{overflow:hidden;}
  body{
    margin:0;
    font-family:'Jost',sans-serif;
    background:var(--cream);
    color:var(--ink);
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
  }
  body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:50;background:transparent;}
  h1,h2,h3{font-family:'Cormorant Garamond',serif; margin:0; font-weight:500;}
  .script{font-family:'Parisienne',cursive;}
  .serif-i{font-family:'Cormorant Garamond',serif; font-style:italic;}
  p{line-height:1.7; color:var(--ink-soft); font-weight:300;}
  img{max-width:100%; display:block;}
  button{font-family:inherit; cursor:pointer;}

  /* ---------- cream-gold textured background (no image asset) ---------- */
  .gold-bg{
    position:relative;
    background:
      radial-gradient(ellipse 120% 80% at 15% -10%, rgba(190,214,242,0.55), transparent 55%),
      radial-gradient(ellipse 120% 80% at 90% 110%, rgba(95,140,200,0.28), transparent 55%),
      linear-gradient(170deg, var(--cream) 0%, var(--cream-deep) 55%, #d2e2f4 100%);
  }
  .gold-bg::after{
    content:"";
    position:absolute; inset:0; pointer-events:none;
    background-image:
      radial-gradient(circle, rgba(50,90,150,0.09) 1px, transparent 1.4px);
    background-size:5px 5px;
    opacity:.5;
    mix-blend-mode:multiply;
  }
  .divider{
    width:46px; height:46px; margin:0 auto 18px;
    opacity:.8;
  }
  .divider svg{width:100%;height:100%;}

  /* ================= ENVELOPE INTRO ================= */
  #envelope-screen{
    position:fixed; inset:0; z-index:40;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:
      radial-gradient(ellipse 100% 60% at 50% 0%, #e9ecf1 0%, #cfd7e0 60%, #b7c2cf 100%);
    padding:28px 20px calc(28px + env(safe-area-inset-bottom,0px));
    transition:opacity .9s ease, visibility .9s ease;
  }
  #envelope-screen.hidden{opacity:0; visibility:hidden; pointer-events:none;}
  .env-eyebrow{
    font-family:'Cormorant Garamond',serif; font-style:italic; letter-spacing:.12em;
    color:#5b6675; font-size:14px; text-transform:uppercase; margin-bottom:14px; text-align:center;
  }
  .env-wrap{
    position:relative; width:min(78vw,300px);
    filter:drop-shadow(0 25px 45px rgba(40,50,70,0.35));
    animation:floatEnv 5s ease-in-out infinite;
  }
  @keyframes floatEnv{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
  .env-wrap img{width:100%; border-radius:4px;}
  .seal-hot{
    position:absolute; left:50%; top:60%; width:84px; height:84px;
    transform:translate(-50%,-50%); z-index:3;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:transparent; border:none; padding:0;
  }
  .seal-ring{
    position:absolute; inset:-14px;
    border-radius:50%;
    border:1.5px solid rgba(201,168,106,0.9);
    animation:pulseRing 2.2s ease-out infinite;
  }
  .seal-ring.d2{animation-delay:.7s;}
  @keyframes pulseRing{
    0%{transform:scale(.75); opacity:.9;}
    80%{transform:scale(1.55); opacity:0;}
    100%{opacity:0;}
  }
  .env-cta{
    position:absolute; left:0; right:0; bottom:calc(46px + env(safe-area-inset-bottom,0px)); text-align:center; z-index:3;
    transition:opacity .5s ease; text-shadow:0 1px 8px rgba(255,255,255,.7);
  }
  .env-cta .tap-txt{
    font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px; color:#2f3a4c;
  }
  .env-cta .sub-txt{
    font-family:'Jost',sans-serif; letter-spacing:.22em; font-size:10px; text-transform:uppercase;
    color:#7c879a; margin-top:6px;
  }

  /* ================= VIDEO OVERLAY ================= */
  #video-overlay{
    position:fixed; inset:0; z-index:50; background:#0d1016;
    opacity:0; visibility:hidden; transition:opacity .5s ease;
  }
  #video-overlay.show{opacity:1; visibility:visible;}
  #seal-video{width:100%; height:100%; object-fit:cover;}

  /* ================= SITE (revealed) ================= */
  #site{opacity:0; transition:opacity 1.1s ease;}
  #site.show{opacity:1;}

  /* ---- Hero ---- */
  .hero{
    position:relative; min-height:100svh; display:flex; align-items:flex-end;
    overflow:hidden;
  }
  .hero img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    transform:scale(1.12); opacity:0;
    transition:transform 2.6s cubic-bezier(.19,1,.22,1), opacity 1.6s ease;
  }
  #site.show .hero img{transform:scale(1); opacity:1;}
  .hero::after{
    content:""; position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(14,24,40,0.08) 0%, rgba(14,24,40,0.1) 40%, rgba(12,22,38,0.72) 100%);
  }
  .hero-content{
    position:relative; z-index:2; width:100%;
    padding:0 26px calc(56px + env(safe-area-inset-bottom,0px));
    text-align:center; color:#f6faff;
  }
  .hero-content .pre{
    font-family:'Cormorant Garamond',serif; font-style:italic; letter-spacing:.3em; text-transform:uppercase;
    font-size:12px; opacity:0; transform:translateY(16px);
    transition:opacity 1s ease .6s, transform 1s ease .6s;
  }
  .hero-names{
    font-size:clamp(40px,12vw,64px); margin:10px 0 4px; line-height:1.05;
    opacity:0; transform:translateY(20px);
    transition:opacity 1.1s ease .9s, transform 1.1s ease .9s;
  }
  .hero-sub{
    font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px; color:#d6e6f7;
    opacity:0; transform:translateY(16px);
    transition:opacity 1s ease 1.2s, transform 1s ease 1.2s;
  }
  .hero-date{
    margin-top:18px; font-size:12px; letter-spacing:.22em; text-transform:uppercase; color:#c5daf0;
    opacity:0; transform:translateY(16px);
    transition:opacity 1s ease 1.45s, transform 1s ease 1.45s;
  }
  #site.show .hero-content .pre,
  #site.show .hero-content .hero-names,
  #site.show .hero-content .hero-sub,
  #site.show .hero-content .hero-date{opacity:1; transform:translateY(0);}
  .scroll-cue{
    position:absolute; bottom:calc(18px + env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%);
    width:1px; height:34px; background:linear-gradient(#fff,transparent); opacity:.6; z-index:2;
  }

  /* ---- generic section shell ---- */
  section{padding:76px 24px; position:relative;}
  .eyebrow{
    text-align:center; font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--gold-deep);
    margin-bottom:10px;
  }
  .sec-title{text-align:center; font-size:clamp(28px,7vw,36px); color:var(--ink); margin-bottom:18px;}
  .sec-text{max-width:460px; margin:0 auto; text-align:center; font-size:15.5px;}

  /* ---- Date / scratch reveal ---- */
  .date-cards{display:flex; gap:14px; justify-content:center; max-width:420px; margin:30px auto 0; flex-wrap:wrap;}
  .date-card{
    width:98px; height:120px; border-radius:14px; position:relative; overflow:hidden;
    background:linear-gradient(160deg,#f9fcff,#dce9f6);
    border:1px solid rgba(95,140,200,0.35);
    box-shadow:0 10px 24px rgba(50,90,150,0.14);
  }
  .date-card .reveal{
    position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  }
  .date-card .reveal .num{font-family:'Cormorant Garamond',serif; font-size:30px; color:var(--gold-deep);}
  .date-card .reveal .lbl{font-size:9px; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-soft); margin-top:4px;}
  .date-card canvas{position:absolute; inset:0; width:100%; height:100%; touch-action:none;}
  .scratch-hint{text-align:center; font-size:11px; letter-spacing:.1em; color:var(--gold-deep); margin-top:16px; opacity:.85;}

  .gold-bg::after{z-index:0;}
  .gold-bg > *{z-index:1;}
  :root{--env:url("assets/envelope.webp");}
  .fx{opacity:0; transform:translateY(24px); transition:opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);}
  .fx.in{opacity:1; transform:none;}

  /* ---- You're invited: card pops out of the envelope on scroll ---- */
  .invite-track{height:calc(100svh + 170vh); padding:0;}
  .invite-stage{position:sticky; top:0; height:100svh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:0 0 4svh;}
  .invited{font-family:'Parisienne',cursive; font-weight:400; font-size:clamp(38px,11vw,50px); color:var(--ink); margin:0;}
  .hearts{position:relative; width:min(92vw,440px); height:64px; margin-bottom:2px;}
  .hearts svg{position:absolute; fill:none; stroke:var(--gold); stroke-width:1.5; stroke-linejoin:round; width:30px; height:28px; animation:heartFloat 4.5s ease-in-out infinite;}
  .hearts .h1{left:44%; top:6px; width:34px; height:32px;}
  .hearts .h2{left:55%; top:26px; animation-delay:-2s;}
  @keyframes heartFloat{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-9px) rotate(5deg)}}
  .hearts-in{position:absolute; inset:0; opacity:0;}
  .env3d{position:relative; width:min(92vw,440px); aspect-ratio:847/855; container-type:inline-size;}
  .env-back,.env-pocket>div{position:absolute; inset:0; background:var(--env) center/100% 100% no-repeat;}
  .env-back{filter:drop-shadow(0 26px 34px rgba(60,80,110,0.28));}
  .env-pocket{position:absolute; inset:0; z-index:3; pointer-events:none; filter:drop-shadow(0 -5px 8px rgba(30,60,110,0.22));}
  .env-pocket>div{clip-path:polygon(0.2% 40.7%, 36.2% 62.7%, 64.6% 62.7%, 98.9% 40.7%, 100% 100%, 0 100%);}
  .card-clip{position:absolute; inset:0; z-index:2; clip-path:inset(-200% -10% 0 -10%);}
  .env-card-wrap{position:absolute; left:13%; top:0; width:74%; height:74%; z-index:2; transform:translateY(40.5%); will-change:transform; filter:drop-shadow(0 10px 16px rgba(40,50,70,0.25));}
  .env-card{width:100%; height:100%; background:linear-gradient(180deg,#ffffff,#f3f8fd); clip-path:polygon(0 0,100% 0,100% 90%,50% 100%,0 90%); padding:6cqw 5cqw 0; text-align:center;}
  .env-card .c-head{font-family:'Parisienne',cursive; font-size:7cqw; color:var(--gold-deep); line-height:1.15; margin-bottom:2.2cqw;}
  .env-card p{font-family:'Cormorant Garamond',serif; font-weight:500; font-size:3.8cqw; line-height:1.36; color:var(--ink); margin:0 0 2.4cqw;}
  .env-card .c-sign{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:4.4cqw; color:var(--gold-deep);}

  /* ---- Programs: clouds part to reveal the timeline ---- */
  .prog-track{height:calc(100svh + 190vh); padding:0;}
  .prog-stage{position:sticky; top:0; height:100svh; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center;}
  .prog-title{font-family:'Parisienne',cursive; font-weight:400; font-size:clamp(34px,10vw,44px); color:var(--ink); margin:0 0 22px; text-align:center;}
  .tl{position:relative; width:min(90vw,380px);}
  .tl-line{position:absolute; left:50%; top:12px; bottom:40px; width:1.5px; margin-left:-.75px; background:linear-gradient(var(--gold),var(--gold-deep)); transform-origin:top; transform:scaleY(0);}
  .tl-row{position:relative; height:80px; opacity:0;}
  .dia{position:absolute; left:50%; top:10px; width:9px; height:9px; margin-left:-4.5px; background:var(--gold-deep); transform:rotate(45deg);}
  .tl-txt{position:absolute; top:0; width:calc(50% - 22px);}
  .tl-row.r .tl-txt{left:calc(50% + 22px); text-align:left;}
  .tl-row.l .tl-txt{right:calc(50% + 22px); text-align:right;}
  .tl-txt b{display:block; font-family:'Cormorant Garamond',serif; font-weight:400; font-size:20px; color:var(--ink); line-height:1.1;}
  .tl-txt span{display:block; margin-top:3px; font-size:13px; line-height:1.3; color:var(--ink-soft);}
  .clouds{position:absolute; inset:0; z-index:5; pointer-events:none;}
  .cl{position:absolute; will-change:transform,opacity;}
  .cl img{width:100%; display:block; animation:bob 9s ease-in-out infinite alternate;}
  @keyframes bob{from{transform:translateY(-6px)}to{transform:translateY(8px)}}

  /* ---- Venue ---- */
  .venue-sec{padding:84px 0 0; overflow:hidden;}
  .v-title{font-family:'Parisienne',cursive; font-weight:400; font-size:clamp(34px,10vw,44px); color:var(--ink); margin:0; text-align:center;}
  .v-info{display:flex; align-items:center; gap:14px; width:min(88vw,380px); margin:26px auto 0;}
  .v-info svg{flex:none; width:34px; height:42px;}
  .v-name{font-family:'Cormorant Garamond',serif; font-size:20px; color:var(--ink);}
  .v-addr{font-size:13px; color:var(--ink-soft); margin-top:2px;}
  .v-img{position:relative; margin-top:-8px; overflow:hidden;}
  .v-img img{width:100%; display:block; transform:scale(1.12); transition:transform 2.4s cubic-bezier(.19,1,.22,1); -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 34%); mask-image:linear-gradient(to bottom,transparent 0,#000 34%);}
  .v-img.in img{transform:scale(1);}

  /* ---- Dress code ---- */
  .dress-sec{padding:84px 24px 90px;}
  .palette-label{text-align:center; font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--gold-deep); margin:34px 0 16px;}
  .palette{display:flex; justify-content:center; gap:14px; flex-wrap:wrap; max-width:380px; margin:0 auto;}
  .palette div{display:flex; flex-direction:column; align-items:center; gap:8px; font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft);}
  .palette i{display:block; width:52px; height:52px; border-radius:50%; background:radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), transparent 45%), var(--c); box-shadow:0 10px 20px rgba(50,90,150,.22), inset 0 0 0 1px rgba(255,255,255,.55); transform:scale(.4); opacity:0; transition:transform .9s cubic-bezier(.2,1.2,.3,1), opacity .9s ease;}
  .palette.in i{transform:scale(1); opacity:1;}
  .palette.in div:nth-child(2) i{transition-delay:.12s}.palette.in div:nth-child(3) i{transition-delay:.24s}.palette.in div:nth-child(4) i{transition-delay:.36s}.palette.in div:nth-child(5) i{transition-delay:.48s}
  .dress-notes{max-width:420px; margin:36px auto 0; text-align:center;}
  .dress-notes p{font-size:15px; margin:0 0 14px;}
  .dress-notes b{font-family:'Cormorant Garamond',serif; font-weight:500; color:var(--ink);}

  /* ---- RSVP ---- */
  .rsvp-card{
    max-width:420px; margin:34px auto 0; background:var(--glass);
    border:1px solid rgba(95,140,200,0.35); border-radius:18px; padding:28px 24px;
    backdrop-filter:blur(10px); box-shadow:0 20px 40px rgba(50,90,150,0.14);
  }
  .field{margin-bottom:16px; text-align:left;}
  .field label{display:block; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-deep); margin-bottom:6px;}
  .field input, .field textarea, .field select{
    width:100%; border:none; border-bottom:1px solid rgba(50,90,150,0.4); background:transparent;
    padding:9px 2px; font-size:14.5px; font-family:'Jost',sans-serif; color:var(--ink); outline:none;
  }
  .field input:focus, .field textarea:focus{border-color:var(--gold-deep);}
  .radio-row{display:flex; flex-direction:column; gap:9px; margin-top:4px;}
  .radio-row label{display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink-soft); letter-spacing:0; text-transform:none; font-family:'Jost',sans-serif;}
  .radio-row input{width:auto;}
  .submit-btn{
    width:100%; margin-top:8px; padding:13px; border:none; border-radius:30px;
    background:linear-gradient(135deg,var(--gold),var(--gold-deep)); color:#f9fcff;
    font-size:13px; letter-spacing:.16em; text-transform:uppercase; box-shadow:0 10px 22px rgba(50,90,150,0.35);
  }
  .thank-msg{display:none; text-align:center; padding:10px 0 2px;}
  .thank-msg .script{font-size:24px; color:var(--gold-deep);}

  footer{text-align:center; padding:40px 20px calc(30px + env(safe-area-inset-bottom,0px)); color:var(--ink-soft); font-size:11px; letter-spacing:.1em;}
  footer .script{display:block; font-size:22px; color:var(--gold-deep); margin-bottom:6px;}

  /* ---- music toggle ---- */
  #music-toggle{
    position:fixed; right:16px; bottom:calc(16px + env(safe-area-inset-bottom,0px)); z-index:30;
    width:48px; height:48px; border-radius:50%; border:1px solid rgba(95,140,200,0.5);
    background:linear-gradient(145deg,#f9fcff,#cfe0f2); color:var(--gold-deep);
    display:flex; align-items:center; justify-content:center; box-shadow:0 10px 22px rgba(90,70,40,0.25);
    opacity:0; transform:scale(.8); transition:opacity .6s ease .3s, transform .6s ease .3s;
  }
  #music-toggle.show{opacity:1; transform:scale(1);}
  #music-toggle svg{width:20px;height:20px;}
  #music-toggle .bars span{display:inline-block; width:2.5px; margin:0 1px; background:var(--gold-deep); border-radius:2px; animation:eq 1s ease-in-out infinite;}
  #music-toggle.paused .bars span{animation-play-state:paused; height:4px !important;}
  .bars span:nth-child(1){height:10px; animation-delay:-.6s;}
  .bars span:nth-child(2){height:16px; animation-delay:-.3s;}
  .bars span:nth-child(3){height:8px; animation-delay:-.9s;}
  @keyframes eq{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}

  @media (min-width:640px){
    .hero-content{padding-bottom:84px;}
  }

  /* ================= PREMIUM OVERRIDES ================= */
  body{background:linear-gradient(180deg,#f8fbff 0%,#e8f0fa 26%,#f6f9fe 52%,#e2ecf8 78%,#f5f8fd 100%);}
  .gold-bg{background:none !important;}
  .gold-bg::after{display:none !important;}
  .ambient{position:fixed; inset:-10%; z-index:0; pointer-events:none;
    background:
      radial-gradient(circle at 18% 12%, rgba(173,203,240,.62), transparent 42%),
      radial-gradient(circle at 88% 38%, rgba(222,212,244,.5), transparent 46%),
      radial-gradient(circle at 12% 78%, rgba(186,218,246,.55), transparent 44%),
      radial-gradient(circle at 80% 95%, rgba(210,228,248,.6), transparent 40%);
    animation:ambient 22s ease-in-out infinite alternate;}
  @keyframes ambient{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(-2%,3%,0) scale(1.08)}}
  #site{position:relative; z-index:1;}

  .eyebrow{display:flex; align-items:center; justify-content:center; gap:14px; font-size:10.5px; letter-spacing:.38em; font-weight:500; margin-bottom:10px;}
  .eyebrow::before,.eyebrow::after{content:""; width:30px; height:1px; background:linear-gradient(90deg,transparent,var(--gold-deep)); opacity:.7;}
  .eyebrow::after{transform:scaleX(-1);}
  .sec-title,.invited,.prog-title,.v-title{font-family:'Parisienne',cursive; font-weight:400; font-size:clamp(42px,12.5vw,56px); line-height:1.1; color:var(--ink); text-align:center; margin:0 0 14px;}
  .invited{margin:0;} .prog-title{margin:0 0 26px;}
  .sec-text{font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:500; font-size:20px; line-height:1.5; color:var(--ink-soft); max-width:360px;}

  .hero-names{font-family:'Cormorant Garamond',serif; font-weight:400; font-size:clamp(54px,17vw,84px); line-height:.95; letter-spacing:.01em; margin:12px 0 10px;}
  .hero-names .amp{display:block; font-family:'Parisienne',cursive; font-size:.55em; color:#c5daf0; line-height:1.05; margin:2px 0;}
  .hero-content{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px));}
  .hero-fade{position:absolute; left:0; right:0; bottom:-1px; height:96px; z-index:1; background:linear-gradient(to bottom,rgba(248,251,255,0),#f8fbff);}
  .scroll-cue{background:linear-gradient(var(--gold-deep),transparent); opacity:.8; z-index:2;}

  .date-card{width:100px; height:128px; border-radius:18px; background:linear-gradient(160deg,#ffffff,#e6effa); border:1px solid rgba(255,255,255,.95); box-shadow:0 20px 34px -14px rgba(50,90,150,.42), inset 0 1px 0 #fff;}
  .date-card .reveal .num{font-size:40px; font-weight:500; color:var(--gold-deep);}
  .date-card .reveal .lbl{letter-spacing:.28em; font-size:9px;}
  .scratch-hint{letter-spacing:.3em; text-transform:uppercase; font-size:10px;}

  .tl-txt b{font-size:30px; font-weight:500; line-height:1;}
  .tl-txt span{font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; margin-top:6px;}

  .v-name{font-size:30px; font-weight:500; line-height:1;}
  .v-addr{font-size:11px; letter-spacing:.18em; text-transform:uppercase; margin-top:6px;}
  .v-img img{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 30%,#000 76%,transparent 100%); mask-image:linear-gradient(to bottom,transparent 0,#000 30%,#000 76%,transparent 100%);}
  .dress-sec{padding-top:34px;}
  .dress-notes p{font-family:'Cormorant Garamond',serif; font-size:20px; font-weight:500; line-height:1.5; color:var(--ink-soft); margin:0 0 20px;}
  .dress-notes b{display:block; font-family:'Jost',sans-serif; font-size:10.5px; letter-spacing:.32em; text-transform:uppercase; color:var(--gold-deep); font-weight:500; margin-bottom:6px;}
  .palette-label{letter-spacing:.38em; font-size:10.5px;}

  /* RSVP */
  .rsvp-card{position:relative; max-width:430px; margin:38px auto 0; padding:38px 26px 30px; border-radius:28px;
    background:linear-gradient(155deg,rgba(255,255,255,.84),rgba(238,245,253,.5));
    -webkit-backdrop-filter:blur(22px) saturate(1.4); backdrop-filter:blur(22px) saturate(1.4);
    border:1px solid rgba(255,255,255,.95);
    box-shadow:0 40px 80px -30px rgba(40,80,140,.45), 0 8px 24px rgba(40,80,140,.08), inset 0 1px 0 #fff;}
  .rsvp-card::before{content:""; position:absolute; inset:9px; border-radius:20px; border:1px solid rgba(95,140,200,.22); pointer-events:none;}
  .field{margin-bottom:22px; position:relative;}
  .field>label{display:block; font-size:10.5px; letter-spacing:.24em; color:var(--gold-deep); margin-bottom:10px; font-weight:500; text-transform:uppercase;}
  .field input[type=text]{width:100%; border:1px solid rgba(95,140,200,.28); border-radius:14px; background:rgba(255,255,255,.75); padding:15px 16px; font-size:15px; color:var(--ink); box-shadow:inset 0 1px 2px rgba(50,90,150,.06); transition:border-color .3s, box-shadow .3s, background .3s;}
  .field input[type=text]::placeholder{color:#93a3b8;}
  .field input[type=text]:focus{border-color:#6f97c8; background:#fff; box-shadow:0 0 0 4px rgba(111,151,200,.18);}
  .opts{display:flex; flex-direction:column; gap:10px;}
  .field label.opt{display:flex; align-items:center; gap:13px; margin:0; padding:14px 16px; border-radius:14px; border:1px solid rgba(95,140,200,.25); background:rgba(255,255,255,.6); font-family:'Jost',sans-serif; font-size:14.5px; letter-spacing:0; text-transform:none; color:var(--ink); cursor:pointer; transition:all .35s ease;}
  .opt input{position:absolute; opacity:0; pointer-events:none; width:0; height:0;}
  .tick{flex:none; width:20px; height:20px; border-radius:50%; border:1.5px solid rgba(95,140,200,.6); position:relative; transition:all .35s ease;}
  .opt input:checked + .tick{background:linear-gradient(135deg,#7fa6d4,#3d6596); border-color:transparent;}
  .opt input:checked + .tick::after{content:""; position:absolute; left:6px; top:3px; width:5px; height:9px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg);}
  .opt:has(input:checked){border-color:#6f97c8; background:#fff; box-shadow:0 10px 22px -10px rgba(60,100,160,.45);}
  .submit-btn{position:relative; overflow:hidden; width:100%; height:56px; margin-top:8px; border:none; border-radius:30px; background:linear-gradient(135deg,#7fa6d4 0%,#4a76ab 55%,#2f4f80 100%); color:#fff; font-size:12px; letter-spacing:.3em; text-transform:uppercase; font-weight:500; box-shadow:0 18px 32px -10px rgba(47,79,128,.6), inset 0 1px 0 rgba(255,255,255,.35);}
  .submit-btn::after{content:""; position:absolute; top:0; left:-60%; width:40%; height:100%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent); transform:skewX(-20deg); animation:shine 3.8s ease-in-out infinite;}
  @keyframes shine{0%,60%{left:-60%}100%{left:130%}}
  .thank-msg{padding:6px 0 4px;}
  .thank-msg .chk{width:62px; height:62px; margin:0 auto 10px; display:block; fill:none; stroke:var(--gold-deep); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;}
  .thank-msg .chk path{stroke-dasharray:40; stroke-dashoffset:40; animation:draw .9s .2s ease forwards;}
  @keyframes draw{to{stroke-dashoffset:0}}
  .thank-msg .script{font-size:40px; color:var(--ink);}
  .thank-msg p{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px;}
  footer .script{font-size:34px; color:var(--ink);}

  /* hero text sits in the sky, clear of the couple */
  .hero{align-items:flex-start;}
  .hero::after{background:linear-gradient(180deg,rgba(246,250,255,.62) 0%,rgba(246,250,255,.18) 38%,rgba(246,250,255,0) 55%);}
  .hero-content{padding:calc(11svh + env(safe-area-inset-top,0px)) 22px 0; color:var(--ink); text-shadow:0 1px 16px rgba(255,255,255,.75);}
  .hero-content .pre{color:var(--gold-deep);}
  .hero-names{color:var(--ink); font-size:clamp(44px,13.6vw,68px); white-space:nowrap; margin:12px 0 6px;}
  .hero-names .amp{display:inline; font-size:.62em; margin:0 .14em; color:#5f8ccb;}
  .hero-sub{color:var(--gold-deep); font-size:21px;}
  .hero-date{color:var(--gold-deep); font-weight:500;}
  /* palette in one row */
  .palette{flex-wrap:nowrap; gap:8px; max-width:400px;}
  .palette div{flex:1; min-width:0; font-size:8.5px; letter-spacing:.08em;}
  .palette i{width:clamp(42px,12.5vw,52px); height:clamp(42px,12.5vw,52px);}

  .hero-content{padding-top:calc(5.5svh + env(safe-area-inset-top,0px));}
  .hero img{object-position:center top;}
  #music-toggle{z-index:70;}
  .date-cards{flex-wrap:nowrap; gap:clamp(8px,3vw,14px); width:100%; max-width:420px; padding:0 2px;}
  .date-card{flex:1 1 0; min-width:0; width:auto; max-width:100px; height:auto; aspect-ratio:100/128;}
  .date-card .reveal .num{font-size:clamp(24px,9.2vw,40px); white-space:nowrap;}
  .date-card .reveal .lbl{font-size:clamp(7px,2.2vw,9px); letter-spacing:.2em;}
  .cd{margin:0 auto; width:min(92%,380px); text-align:center; max-height:0; overflow:hidden; opacity:0; transform:translateY(14px); transition:max-height 1.1s ease, opacity 1s ease .25s, margin 1s ease, transform 1s ease .25s;}
  .cd.show{margin-top:40px; max-height:280px; opacity:1; transform:none;}
  .cd-label{font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:500; font-size:20px; color:var(--ink-soft); margin-bottom:16px;}
  .cd-row{display:flex; gap:9px; justify-content:center;}
  .cd-box{position:relative; flex:1; max-width:84px; padding:16px 0 12px; border-radius:16px; background:linear-gradient(160deg,rgba(255,255,255,.92),rgba(232,241,251,.62)); border:1px solid rgba(255,255,255,.95); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:0 18px 32px -16px rgba(50,90,150,.5), inset 0 1px 0 #fff;}
  .cd-box::after{content:""; position:absolute; left:10px; right:10px; top:calc(16px + 17px); height:1px; background:rgba(95,140,200,.18);}
  .cd-box b{display:block; font-family:'Cormorant Garamond',serif; font-weight:500; font-size:36px; line-height:1; color:var(--gold-deep); font-variant-numeric:tabular-nums;}
  .cd-box b.flip{animation:cdflip .5s cubic-bezier(.2,.8,.2,1);}
  @keyframes cdflip{from{transform:translateY(-8px); opacity:.25}to{transform:none; opacity:1}}
  .cd-box span{display:block; margin-top:9px; font-size:8.5px; letter-spacing:.24em; text-transform:uppercase; color:var(--ink-soft); font-weight:500;}
  .cd-done{display:none; font-family:'Parisienne',cursive; font-size:34px; color:var(--ink);}
  .cd.done .cd-row{display:none;}
  .cd-row{gap:clamp(5px,2vw,9px);}
  .cd-box b{font-size:clamp(24px,8.8vw,36px);}
  .cd-box span{font-size:clamp(7px,2.1vw,8.5px); letter-spacing:.16em;}
  .cd.done .cd-done{display:block;}
  .cal-btn{display:flex; align-items:center; gap:10px; margin:26px auto 0; padding:14px 26px; border-radius:30px; border:1px solid rgba(95,140,200,.45); background:linear-gradient(160deg,rgba(255,255,255,.92),rgba(235,243,252,.6)); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); color:var(--gold-deep); font-size:11.5px; letter-spacing:.24em; text-transform:uppercase; font-weight:500; box-shadow:0 14px 28px -12px rgba(50,90,150,.45), inset 0 1px 0 #fff;}
  .cal-btn svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;}
  .cal-sheet{position:fixed; inset:0; z-index:90; display:flex; align-items:flex-end; justify-content:center; background:rgba(20,36,62,.38); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); opacity:0; visibility:hidden; transition:opacity .4s ease, visibility .4s ease;}
  .cal-sheet.open{opacity:1; visibility:visible;}
  .cal-card{width:min(100%,460px); padding:28px 22px calc(26px + env(safe-area-inset-bottom,0px)); border-radius:28px 28px 0 0; background:linear-gradient(180deg,#ffffff,#eef4fb); box-shadow:0 -20px 50px rgba(30,60,110,.28); text-align:center; transform:translateY(40px); transition:transform .5s cubic-bezier(.2,.8,.2,1);}
  .cal-sheet.open .cal-card{transform:none;}
  .cal-title{font-family:'Parisienne',cursive; font-size:38px; color:var(--ink); line-height:1.1;}
  .cal-sub{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px; color:var(--ink-soft); margin:2px 0 18px;}
  .cal-opt{display:block; padding:16px; margin-bottom:10px; border-radius:16px; border:1px solid rgba(95,140,200,.3); background:#fff; color:var(--ink); text-decoration:none; font-size:13px; letter-spacing:.18em; text-transform:uppercase; font-weight:500; box-shadow:0 8px 18px -10px rgba(50,90,150,.35);}
  .cal-close{margin-top:6px; border:none; background:none; color:var(--gold-deep); font-size:11px; letter-spacing:.28em; text-transform:uppercase; padding:10px;}
  a.v-img{display:block; text-decoration:none; cursor:pointer;}
  .v-dir{position:absolute; left:50%; bottom:22%; transform:translateX(-50%); display:flex; align-items:center; gap:9px; padding:12px 22px; border-radius:30px; background:rgba(255,255,255,.84); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); color:var(--gold-deep); font-size:11px; letter-spacing:.24em; text-transform:uppercase; font-weight:500; white-space:nowrap; box-shadow:0 14px 28px -10px rgba(20,40,80,.5);}
  .v-dir svg{width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;}
  .hero-names{font-size:clamp(38px,11.2vw,58px);}
  .hero-date{display:none;}
  /* hero typography */
  .hero-content .pre{font-family:'Jost',sans-serif; font-style:normal; font-size:10px; letter-spacing:.3em; font-weight:500; color:var(--gold-deep); text-transform:uppercase;}
  .hero-names{opacity:1 !important; transform:none !important; transition:none !important; font-family:'Parisienne',cursive; font-weight:400; font-size:min(13.2vw,7.2svh,66px); line-height:1.08; letter-spacing:0; white-space:nowrap; display:flex; flex-wrap:nowrap; justify-content:center; align-items:baseline; gap:0 .2em; margin:12px 0 4px; color:var(--ink); text-shadow:0 2px 22px rgba(255,255,255,.85), 0 0 2px rgba(255,255,255,.5);}
  .hero-names .nm{display:inline-block; white-space:nowrap;}
  .hero-names .amp{display:inline-block; font-size:.68em; color:#5f8ccb; margin:0;}
  .ch{display:inline-block; opacity:0; filter:blur(12px); transform:translateY(16px) scale(.94); transition:opacity 1.2s ease, filter 1.2s ease, transform 1.3s cubic-bezier(.2,.8,.2,1); transition-delay:calc(1s + var(--i,0)*.075s);}
  #site.show .ch{opacity:1; filter:blur(0); transform:none;}
  .hero-orn{display:flex; align-items:center; justify-content:center; gap:12px; margin:8px auto 10px; opacity:0; transform:scaleX(.4); transition:opacity 1s ease 2.1s, transform 1.3s cubic-bezier(.2,.8,.2,1) 2.1s;}
  .hero-orn i{width:46px; height:1px; background:linear-gradient(90deg,transparent,var(--gold-deep));}
  .hero-orn i:last-child{transform:scaleX(-1);}
  .hero-orn b{width:6px; height:6px; background:var(--gold-deep); transform:rotate(45deg); opacity:.85;}
  #site.show .hero-orn{opacity:1; transform:none;}
  .hero-sub{font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:500; font-size:clamp(22px,6.4vw,27px); letter-spacing:.02em; color:var(--gold-deep); transition:opacity 1.2s ease 2.4s, transform 1.2s ease 2.4s !important;}
  footer.ft{position:relative; margin-top:30px; padding:0; color:#fff; text-align:center; letter-spacing:0; font-size:inherit;}
  .ft-wave{display:block; width:100%; height:40px; fill:#7fa6d4; filter:drop-shadow(0 -8px 14px rgba(60,100,160,.18));}
  .ft-in{background:linear-gradient(180deg,#7fa6d4 0%,#4a76ab 55%,#2f4f80 100%); padding:20px 24px calc(46px + env(safe-area-inset-bottom,0px)); margin-top:-1px;}
  .ft-mono{font-family:'Cormorant Garamond',serif; font-size:20px; letter-spacing:.36em; color:#d6e6f7; font-weight:500;}
  .ft-mono i{font-family:'Parisienne',cursive; font-style:normal; letter-spacing:0; font-size:1.2em; margin:0 .1em;}
  .ft-names{font-family:'Parisienne',cursive; font-size:clamp(38px,11.5vw,50px); line-height:1.15; margin:10px 0 4px; color:#fff; text-shadow:0 2px 18px rgba(20,40,80,.3);}
  .ft-date{font-size:11px; letter-spacing:.38em; text-transform:uppercase; color:#d6e6f7; font-weight:500;}
  .ft-line{width:64px; height:1px; margin:20px auto 16px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);}
  .ft-in p{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px; color:#e6f0fb; margin:0;}
