  :root{
    --linen:#fbf8f3; --linen2:#f4eee6; --ink:#4a3f3c; --soft:#7d6d68;
    --rose:#b88a8c; --rose-d:#8a6366; --blush:#ead7d3; --sage:#8a9a7b; --sage-d:#5f7257;
    --teal:#6f9688; --wis:#8f6fa8; --gold:#b8955a;
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth}
  body{
    font-family:"Cormorant Garamond",Georgia,serif; color:var(--ink);
    background:#ece6dd;
    -webkit-font-smoothing:antialiased;
  }
  body.locked{overflow:hidden;height:100vh}
  .page{
    max-width:480px;margin:0 auto;position:relative;overflow:hidden;
    background-color:var(--linen);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23eee5da' stroke-width='1'%3E%3Ccircle cx='22' cy='22' r='6'/%3E%3Ccircle cx='22' cy='22' r='11' stroke-dasharray='2 3'/%3E%3Cpath d='M22 6v5M22 33v5M6 22h5M33 22h5'/%3E%3C/g%3E%3Cg fill='%23efe7dd'%3E%3Ccircle cx='22' cy='22' r='1.6'/%3E%3Ccircle cx='0' cy='0' r='2.4'/%3E%3Ccircle cx='44' cy='0' r='2.4'/%3E%3Ccircle cx='0' cy='44' r='2.4'/%3E%3Ccircle cx='44' cy='44' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
    box-shadow:0 0 60px rgba(80,60,40,.10);
  }
  h1,h2,.serif{font-family:"Bodoni Moda",Didot,serif;font-weight:400;letter-spacing:.01em}
  h2{font-size:2.1rem;text-align:center;line-height:1.15}
  .label{font-size:.78rem;letter-spacing:.28em;text-transform:uppercase;color:var(--soft)}
  .italic{font-style:italic}
  section{position:relative;padding:72px 28px;text-align:center}
  svg{display:block}
  .deco{width:100%;height:auto}

  /* reveal */
  .rv{opacity:0;transform:translateY(24px);transition:opacity 1.1s ease, transform 1.1s ease}
  .rv.in{opacity:1;transform:none}

  /* ---------- HERO + CURTAINS ---------- */
  .hero{height:100vh;min-height:640px;padding:0;overflow:hidden}
  .hero-in{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:84px 78px 124px}
  .hero-names{opacity:0;transform:translateY(14px);transition:all 1.6s ease .5s}
  .hero-names .fam{font-style:italic;color:var(--soft);font-size:1.02rem;line-height:1.4}
  .hero-names h1{margin:14px 0}
  .hero-names .when{font-family:"Bodoni Moda",serif;font-size:.98rem;letter-spacing:.03em;color:#5f4d4a;margin-bottom:6px}
  .hero-top{position:absolute;top:0;left:0;right:0;z-index:1}
  .gone .hero-names{opacity:1;transform:none}
  .hero-names h1{font-family:"Bodoni Moda",Didot,serif;font-weight:400;font-size:1.95rem;letter-spacing:.16em;text-transform:uppercase;line-height:1.3;color:#5f4d4a}
  .hero-names .amp{display:block;font-family:"Cormorant Garamond",serif;font-style:italic;text-transform:none;letter-spacing:0;font-size:2.1rem;line-height:1.1;color:var(--rose)}
  .hero-names .rule3{width:40px;height:1px;background:#d8c8bb;margin:16px auto 12px}
  .hero-names .date{font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;color:var(--soft)}
  .hero-lace{position:absolute;inset:0;z-index:1;pointer-events:none}
  .chateau{position:relative;width:100%;max-width:280px;margin-top:clamp(14px,4vh,40px);opacity:0;transition:opacity 1.6s ease 1s}
  .gone .chateau{opacity:1}
  .scroll-cue{position:absolute;left:0;right:0;bottom:88px;z-index:3;display:flex;flex-direction:column;align-items:center;gap:6px;
    color:var(--soft);text-decoration:none;font-size:.68rem;letter-spacing:.3em;text-transform:uppercase;opacity:0;transition:opacity 1.2s ease 1s}
  .gone .scroll-cue{opacity:.85}
  .scroll-cue svg{animation:cue 2.2s ease-in-out infinite}
  @keyframes cue{0%,100%{transform:translateY(0);opacity:.6}50%{transform:translateY(5px);opacity:1}}
  /* lace gatefold cover */
  .cover{position:absolute;inset:0;z-index:5;cursor:pointer;transition:opacity 1s ease, visibility 0s 1s}
  .gone .cover{opacity:0;visibility:hidden}
  .face{position:absolute;inset:0;transition:opacity .9s ease}
  .face-top{position:absolute;top:17%;left:0;right:0;text-align:center;color:#5f4d4a}
  .face-top .nm{font-family:"Bodoni Moda",Didot,serif;font-size:1.32rem;letter-spacing:.2em;text-transform:uppercase;line-height:1.35}
  .face-top .amp2{font-family:"Cormorant Garamond",serif;font-style:italic;font-size:1.5rem;color:var(--rose);line-height:1.1}
  .face-top .rule2{width:34px;height:1px;background:#d8c8bb;margin:9px auto 8px}
  .face-top .dt{font-size:.78rem;letter-spacing:.18em;color:var(--soft)}
  .face-bot{position:absolute;bottom:17%;left:0;right:0;text-align:center;font-style:italic;font-size:1.05rem;color:var(--soft);transition:opacity .4s}
  .face-bot:before{content:'';display:block;width:1px;height:26px;background:#d8c8bb;margin:0 auto 10px}
  .opened .face-bot{opacity:0}
  .lacefr{position:absolute;inset:0;pointer-events:none}
  .cover{transform-origin:50% 45%}
  .unfold .cover{opacity:0;transform:scale(1.05) translateY(-10px);filter:blur(1.5px);
    transition:opacity 1.3s ease, transform 1.5s cubic-bezier(.2,.6,.3,1), filter 1.3s ease, visibility 0s 1.5s;visibility:hidden}
  .bigbow{position:absolute;inset:0;z-index:2}

  /* ---------- WELCOME ---------- */
  .welcome{padding:0}
  .welcome .txt{padding:10px 30px 0}
  .welcome .fam{font-size:1.15rem;color:var(--soft)}
  .welcome .caps{font-family:"Bodoni Moda",Didot,serif;font-size:1.75rem;letter-spacing:.14em;text-transform:uppercase;line-height:1.35;color:#5f4d4a;margin:18px 0 16px}
  .welcome .caps span{display:block;font-family:"Cormorant Garamond",serif;font-style:italic;text-transform:none;letter-spacing:0;color:var(--rose);font-size:1.8rem;line-height:1.1}
  .welcome .when{font-family:"Bodoni Moda",serif;font-size:1.15rem;margin-top:22px;letter-spacing:.04em}

  /* ---------- COUNTDOWN ---------- */
  .countdown{padding:0 0 30px}
  .countdown h2{margin:14px 0 4px}
  .cd-sub{color:var(--soft);font-size:1.05rem;margin-bottom:28px}
  .clock{display:flex;justify-content:center;gap:8px;padding:0 10px}
  .unit{display:flex;flex-direction:column;align-items:center;gap:12px}
  .medal{width:84px;height:84px;position:relative}
  .medal svg{width:84px;height:84px}
  .medal span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:"Bodoni Moda",serif;font-size:1.6rem;color:#5a4a46;font-variant-numeric:tabular-nums}
  .unit .label{font-size:.68rem}

  /* ---------- INVITE ---------- */
  .invite .italic{font-size:1.15rem;color:var(--soft)}
  .invite h2{font-size:2.15rem;margin:22px 0}
  .invite .and{font-family:"Bodoni Moda",serif;font-size:1.5rem;display:block;margin:6px 0}
  .invite .when{font-size:1.15rem;margin-top:26px;letter-spacing:.04em}

  /* ---------- CEREMONY ---------- */
  .ceremony{padding:20px 18px 60px}
  .card{position:relative;padding:96px 66px 84px;background:#fffdf9;outline:1px dashed #e0d2c4;outline-offset:-12px;border-radius:4px;
    box-shadow:0 1px 0 #fff inset, 0 10px 30px rgba(120,80,70,.1)}
  .card .frame{position:absolute;inset:0;pointer-events:none}
  .card h2{font-size:1.95rem}
  .card .label{margin:16px 0 22px;font-size:.72rem}
  .venue{font-family:"Bodoni Moda",serif;font-size:1.35rem}
  .venue-sub{font-size:.8rem;letter-spacing:.3em;text-transform:uppercase;color:var(--soft);margin-top:4px;line-height:1.6}
  .sched{margin:20px 0 8px;font-size:1.02rem;line-height:1.8}
  .btns{margin:24px auto 0;display:flex;flex-direction:column;align-items:stretch;gap:11px;max-width:240px}
  .btn{display:flex;align-items:center;justify-content:center;gap:10px;font-family:inherit;font-size:.74rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;
    text-decoration:none;padding:13px 14px;border-radius:40px;transition:transform .2s, box-shadow .2s, background .2s}
  .btn{height:46px;box-sizing:border-box;line-height:1;border:1.5px solid transparent}
  .btn svg{width:14px;height:14px;flex:none}
  .btn.primary{background:#8a6366;color:#fff;border-color:#8a6366;box-shadow:0 6px 16px rgba(138,99,102,.3)}
  .btn.secondary{background:#fff;color:#8a6366;border:1.5px solid #8a6366}
  .btn:active{transform:scale(.97)}
  .btn:hover{box-shadow:0 8px 22px rgba(138,99,102,.3)}
  .btn .arr{margin-left:2px;font-size:.85rem;line-height:1;letter-spacing:0}
  .venue-img{width:86%;margin:14px auto 14px;opacity:.92;
    -webkit-mask-image:radial-gradient(ellipse 62% 70% at 50% 46%,#000 55%,transparent 100%);
            mask-image:radial-gradient(ellipse 62% 70% at 50% 46%,#000 55%,transparent 100%)}
  .venue-img svg{display:block}


  /* soft halo so text lifts off the lace pattern */
  .page{--halo:0 0 2px #fdfbf7,0 0 5px #fdfbf7,0 0 10px #fdfbf7,0 0 18px rgba(253,251,247,.95),0 0 28px rgba(253,251,247,.8)}
  .page h1,.page h2,.page h3,.page p,.page li,.page .label,.page .venue,.page .venue-sub,.page .tl-time,.page .tl-what,.page .tl-where,.page .tl-sub,
  .page .face-top,.page .face-bot,.page .hero-names,.page .scroll-cue,.page .btn.secondary,.page .tab:not(.on),.page footer,.page .map-note,.page .unit .label,.page .bye{text-shadow:var(--halo)}
  .page .btn.primary,.page .tab.on,.page .p-badge,.page .parking{text-shadow:none}
  .veil{position:relative}
  .veil.sm:before{inset:-16px -22px;background:radial-gradient(closest-side,rgba(253,251,247,.95) 70%,rgba(253,251,247,0))}
  .veil:before{content:'';position:absolute;inset:-34px -40px;z-index:-1;pointer-events:none;
    background:radial-gradient(closest-side,rgba(253,251,247,.96) 55%,rgba(253,251,247,.7) 75%,rgba(253,251,247,0))}
  /* ---------- DRESS CODE ---------- */
  .dress{padding:0 0 10px}
  .dress .txt{padding:0 30px;margin-top:18px;position:relative}
  .dress h3{font-family:"Bodoni Moda",serif;font-weight:400;font-size:1.7rem;margin:12px 0 18px}
  .dress p.italic{color:var(--soft);font-size:1.02rem;line-height:1.6}

  /* ---------- STORY ---------- */
  .story{padding:0;min-height:560px}
  .story .vines{position:absolute;top:0;bottom:0;width:90px}
  .story .vines.l{left:0}.story .vines.r{right:0;transform:scaleX(-1)}
  .story .txt{padding:110px 92px 90px;position:relative}
  .story p{font-style:italic;font-size:1.08rem;line-height:1.7;color:var(--soft);margin-top:24px}

  /* ---------- TIMELINE ---------- */
  .timeline{padding:40px 22px 50px}
  .tl{position:relative;margin-top:44px;text-align:left}
  .tl-line{position:absolute;left:96px;top:48px;bottom:90px;border-left:2px dotted #a9968c}
  .tl-pearl{position:absolute;left:79px;top:36px;width:36px;height:26px;transition:top .35s ease-out}
  .tl-pearl svg{overflow:visible}
  .tl-item{display:flex;align-items:center;min-height:118px;position:relative}
  .tl-icon{width:84px;flex:none;display:flex;justify-content:center}
  .tl-icon svg{width:72px;height:72px}
  .tl-body{padding-left:34px}
  .tl-time{font-family:"Bodoni Moda",serif;font-size:1.3rem}
  .tl-what{font-size:.82rem;letter-spacing:.2em;text-transform:uppercase;color:var(--soft);margin-top:6px;line-height:1.5}
  .tl-note{font-style:italic;color:var(--soft);font-size:1.02rem;line-height:1.7;margin-top:36px;padding:0 6px}

  .heads-up{margin:10px 0 2px;font-size:.88rem;font-style:italic;color:#a08f89;letter-spacing:.02em}
  .tl-item{align-items:flex-start;padding:18px 0}
  .tl-where{font-family:"Bodoni Moda",serif;font-size:1rem;color:var(--rose-d);margin-top:8px}
  .tl-sub{font-style:italic;color:var(--soft);font-size:1rem;line-height:1.55;margin-top:8px}

  /* ---------- GETTING THERE ---------- */
  .getting{padding:20px 22px 70px}
  .map{margin:26px -4px 0;border-radius:10px;overflow:hidden;border:1px solid #dccbbf;box-shadow:0 8px 24px rgba(120,80,70,.12)}
  .map-note{font-style:italic;font-size:.85rem;color:var(--soft);margin-top:8px}
  .tabs{display:flex;justify-content:center;gap:6px;margin:28px 0 18px}
  .tab{font-family:inherit;font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;color:var(--soft);
    background:transparent;border:1px solid #dccbbf;border-radius:30px;padding:9px 14px;cursor:pointer;transition:all .3s}
  .tab.on{background:var(--rose);border-color:var(--rose);color:#fff}
  .panel{display:none;text-align:left;animation:fade .5s ease}
  .panel.on{display:block}
  @keyframes fade{from{opacity:0;transform:translateY(6px)}}
  .panel ol{list-style:none;counter-reset:s;padding:0 4px}
  .panel li{counter-increment:s;position:relative;padding:0 0 16px 42px;font-size:1.06rem;line-height:1.55}
  .panel li::before{content:counter(s);position:absolute;left:0;top:-2px;width:28px;height:28px;border-radius:50%;
    background:#fbf7f1;border:1px dashed #d9c3b8;box-shadow:0 1px 3px rgba(120,70,70,.15);
    font-family:"Bodoni Moda",serif;font-size:.9rem;display:flex;align-items:center;justify-content:center;color:var(--rose-d)}
  .panel b{font-weight:500;color:#3e3431}
  .parking{display:flex;gap:14px;align-items:flex-start;margin-top:8px;padding:16px;border-radius:10px;
    background:#fffdf9;border:1px solid #e6d9cc;font-size:1.02rem;line-height:1.5}
  .p-badge{flex:none;width:34px;height:34px;border-radius:8px;background:#5f7257;color:#fff;font-family:"Bodoni Moda",serif;
    font-size:1.2rem;display:flex;align-items:center;justify-content:center}
  .mk{display:inline-flex;width:18px;height:18px;border-radius:50%;background:#b5747a;color:#fff;font-size:.72rem;align-items:center;justify-content:center;font-family:"Bodoni Moda",serif;vertical-align:2px}
  .panel sup{color:var(--rose-d);font-size:.8em;margin-left:1px}
  .ast{display:block;margin-top:8px;font-style:italic;font-size:.95rem;line-height:1.5;color:var(--soft)}
  .tip{font-style:italic;color:var(--soft);margin:4px 4px 0 42px;line-height:1.5}

  /* ---------- RECOVERY ---------- */
  .recovery{padding:20px 26px 70px}
  .recovery .label{margin:14px 0 6px}
  .rule{width:46px;height:1px;background:var(--blush);margin:16px auto 26px}
  .recovery .venue{font-size:1.5rem;margin-top:10px}
  .rec-row{display:flex;justify-content:space-between;margin:22px 10px 8px;font-size:1.05rem}
  .addr{font-size:1.05rem;line-height:1.6}

  /* ---------- FINALE ---------- */
  .photo{padding:24px 0 0}
  .ph-fade{width:78%;margin:0 auto}
  .ph-fade img{display:block;width:100%;height:auto;filter:saturate(.88) sepia(.06) brightness(1.03);
    -webkit-mask-image:linear-gradient(to right,transparent,#000 15%,#000 85%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 85%,transparent);
    -webkit-mask-composite:source-in;
            mask-image:linear-gradient(to right,transparent,#000 15%,#000 85%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 85%,transparent);
            mask-composite:intersect}
  .finale{padding:0;margin-top:-30px;height:auto}
  .veil-ph{position:relative}
  .veil-ph img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:52% 50%;
    filter:saturate(.88) sepia(.06) brightness(1.03);
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.08) 8%,rgba(0,0,0,.3) 17%,rgba(0,0,0,.65) 28%,rgba(0,0,0,.9) 38%,#000 46%);mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.08) 8%,rgba(0,0,0,.3) 17%,rgba(0,0,0,.65) 28%,rgba(0,0,0,.9) 38%,#000 46%)}
  .page .finale .bye{position:absolute;left:0;right:0;top:30%;margin:0;font-family:"Cormorant Garamond",serif;font-style:italic;font-size:1.7rem;
    color:#fffdf8;letter-spacing:.01em;text-shadow:0 1px 3px rgba(30,40,30,.45),0 2px 18px rgba(30,40,30,.5)}
  .finale .doily{position:absolute;left:50%;top:210px;width:300px;transform:translate(-50%,-50%)}
  .finale .drape{position:absolute;top:0;bottom:0;width:36%;
    background:repeating-linear-gradient(90deg,#d9c7bb 0,#efe3db 8px,#e2d2c8 14px,#c8b2a5 20px,#d9c7bb 24px)}
  .finale .drape.l{left:0;clip-path:polygon(0 0,100% 0,62% 55%,78% 100%,0 100%)}
  .finale .drape.r{right:0;clip-path:polygon(0 0,100% 0,100% 100%,22% 100%,38% 55%)}
  .finale .seal{position:absolute;left:50%;top:210px;transform:translate(-50%,-50%)}
  footer{padding:24px;text-align:center;font-size:.72rem;letter-spacing:.25em;color:var(--soft);text-transform:uppercase}
