/* Nimantron / Marriage Ceremony Signature
 * Final client compactness pass — 2026-10-27
 * Loaded last. Keep burgundy, wax seal, cinematic reveals, and 11 guided scenes.
 * One predictable rhythm across desktop, 700px mobile, narrow/short viewports.
 */
:root{
  --ms-type-xs:11px;
  --ms-type-body:13px;
  --ms-gap-xs:5px;
  --ms-gap-sm:10px;
  --ms-gap-md:16px;
  --ms-gold:#c6a267;
  --ms-wine:#581c2d;
}
.page>section{box-sizing:border-box}
.page .eyebrow{
  font-size:10px!important;line-height:1.25!important;
  letter-spacing:.15em!important;margin:0 0 5px!important;
}
.page .section-title,
.page .section .section-title{
  font-size:clamp(30px,4vw,43px)!important;
  line-height:1.14!important;
  margin:5px auto 10px!important;
  font-weight:500!important;
  letter-spacing:0!important;
  text-wrap:balance;
}
.page .section-title.en-title,
.page .section .section-title.en-title{
  font-size:clamp(43px,5.8vw,62px)!important;
  line-height:1.04!important;
  margin:4px auto 10px!important;
  font-family:"Cormorant Garamond","Kalpurush",serif!important;
  letter-spacing:-.015em!important;
}
.page .bn-copy,
.page .section .bn-copy{
  max-width:580px;
  font-size:13px!important;
  line-height:1.55!important;
  margin:0 auto!important;
  text-wrap:pretty;
}
.page .gold-line{margin:11px auto!important;height:1px!important;width:64px!important}
.page>section.section:not(.hero):not(.final){
  padding-top:clamp(44px,6vh,60px)!important;
  padding-bottom:clamp(50px,7vh,70px)!important;
}
.page>section .reveal{transition-duration:.7s}
.page :is(h2,h3,p){overflow-wrap:break-word}
.page :is(button,a,summary){-webkit-tap-highlight-color:transparent}

/* 01 — elegant cover: compact centered copy without shrinking hero imagery. */
.page>.hero{padding:clamp(48px,6vh,70px) 18px!important}
.page>.hero .hero-frame{
  width:min(100%,710px)!important;
  min-height:clamp(465px,72dvh,680px)!important;
  max-height:none!important;
  padding:clamp(22px,3.5vh,36px) 22px!important;
  gap:0!important;
}
.page>.hero .crest{
  width:62px!important;height:62px!important;
  min-width:62px!important;margin:0 auto 9px!important;
  font-size:22px!important;flex:none;
}
.page>.hero .eyebrow{margin:2px 0 2px!important;letter-spacing:.16em!important}
.page>.hero h1{
  font-family:"Great Vibes","Cormorant Garamond",serif!important;
  font-size:clamp(67px,8.2vw,97px)!important;
  line-height:1.09!important;
  padding:.07em 0!important;
  margin:2px auto 1px!important;
  max-width:98%!important;
  overflow-wrap:normal!important;
}
.page>.hero .hero-bn{font-size:18px!important;line-height:1.3!important;margin:0!important}
.page>.hero .hero-date{
  margin:10px auto 10px!important;padding:5px 12px!important;
  line-height:1.25!important;font-size:11px!important;
}
.page>.hero .hero-scroll{
  margin:10px auto 0!important;min-height:40px!important;
  padding:7px 15px!important;font-size:11px!important;
}

/* 02 — countdown */
.page>.countdown .count-frame{
  width:min(100%,430px)!important;
  padding:29px 26px!important;
  border-radius:170px 170px 18px 18px!important;
}
.page>.countdown .count-frame:before{inset:12px!important;border-radius:inherit!important}
.page>.countdown .count-num{
  font-size:clamp(89px,15vw,123px)!important;
  line-height:.9!important;
  margin:8px auto 4px!important;
}
.page>.countdown .count-label{font-size:14px!important;line-height:1.3!important}
.page>.countdown .count-days{font-size:13px!important;line-height:1.3!important}
.page>.countdown .gold-line{margin:10px auto!important}

/* 03 — ceremony + reception: shorten the separation between copy and cards. */
.page>.special .event-grid{
  width:min(100%,750px)!important;
  gap:14px!important;margin:18px auto 0!important;
}
.page>.special .event-card{
  height:auto!important;min-height:0!important;
  padding:16px 15px!important;
  border-radius:180px 180px 22px 22px!important;
}
.page>.special .event-card .event-art.photo-art{
  height:clamp(120px,21dvh,178px)!important;
  margin:0 0 9px!important;
}
.page>.special .event-card .eyebrow{font-size:9px!important;letter-spacing:.1em!important;margin-bottom:2px!important}
.page>.special .event-card h3{
  font-size:clamp(26px,3.3vw,32px)!important;
  line-height:1.06!important;margin:3px 0 5px!important;
}
.page>.special .event-card p{
  font-size:12px!important;line-height:1.4!important;margin:2px 0!important;
}
.page>.special .event-card .pin{width:20px!important;height:20px!important;margin-top:7px!important;font-size:10px!important}

/* 04 — venue: remove double-spacing between address, statement, and directions. */
.page>.venue .venue-grid{
  width:min(100%,780px)!important;
  grid-template-columns:.94fr 1.06fr!important;
  gap:24px!important;max-height:none!important;
}
.page>.venue .venue-copy .eyebrow,
.page>.venue .venue-copy .section-title,
.page>.venue .venue-copy .bn-copy{text-align:left!important}
.page>.venue .venue-copy .section-title.en-title{
  font-size:clamp(44px,5.3vw,58px)!important;margin:4px 0 9px!important;
}
.page>.venue .venue-copy .gold-line{margin:8px 0 12px!important}
.page>.venue .venue-name{
  font-size:17px!important;line-height:1.35!important;
  margin:8px 0 2px!important;
}
.page>.venue .venue-address{font-size:12px!important;line-height:1.3!important;margin:0 0 8px!important}
.page>.venue .venue-copy .bn-copy{
  max-width:340px!important;line-height:1.5!important;margin:5px 0 0!important;
}
.page>.venue .venue-btn{margin-top:14px!important;padding:9px 14px!important;font-size:12px!important;min-height:41px}
.page>.venue .palace{height:clamp(250px,43dvh,365px)!important;min-height:0!important}

/* 05 — wardrobe: retain expressive fabric cards, reduce unused card padding. */
.page>.dress .dress-shell{width:min(100%,780px)!important;max-height:none!important}
.page>.dress .dress-head{padding:18px 22px 9px!important}
.page>.dress .dress-head .section-title{margin:4px auto 7px!important}
.page>.dress .dress-grid{gap:10px!important;padding:0 12px 12px!important}
.page>.dress .wardrobe-card{padding:7px 9px 12px!important}
.page>.dress .wardrobe-label{height:clamp(138px,24dvh,202px)!important}
.page>.dress .wardrobe-serif{font-size:clamp(28px,4.1vw,46px)!important;line-height:1!important}
.page>.dress .wardrobe-label>span:first-child{font-size:9px!important}
.page>.dress .wardrobe-card h3{
  font-size:22px!important;line-height:1.18!important;
  margin:9px 0 3px!important;
}
.page>.dress .wardrobe-card p{font-size:12px!important;line-height:1.45!important;margin:0!important}

/* 06 — schedule: three compact time blocks, no artificial vertical gaps. */
.page>.programme .timeline{
  width:min(100%,750px)!important;margin:18px auto 0!important;gap:10px!important;
}
.page>.programme .timeline:before{top:33px!important}
.page>.programme .step{padding:0 7px!important}
.page>.programme .step-icon{
  width:67px!important;height:67px!important;
  font-size:27px!important;line-height:1!important;margin:0 auto 9px!important;
}
.page>.programme .step h3{font-size:24px!important;line-height:1.07!important;margin:0 0 4px!important}
.page>.programme .step p{font-size:12px!important;line-height:1.35!important;margin:0!important}
.page>.programme .step strong{font-size:12px!important;line-height:1.3!important;margin-top:5px!important}

/* 07 — Moments interactive chapter. */
.page>.moments-scene .moments-layout{
  width:min(100%,800px)!important;gap:clamp(14px,3vw,30px)!important;
  margin:17px auto 0!important;
  grid-template-columns:1.02fr .98fr!important;
}
.page>.moments-scene .moments-stage{aspect-ratio:1.25!important;max-height:360px!important}
.page>.moments-scene .moments-kicker{font-size:10px!important;line-height:1.25!important;margin:0!important}
.page>.moments-scene .moments-copy h3{
  font-size:clamp(28px,3.8vw,36px)!important;
  line-height:1.2!important;margin:7px 0!important;
}
.page>.moments-scene .moments-copy>p:not(.moments-kicker):not(.moments-quiet){
  font-size:13px!important;line-height:1.55!important;margin:4px 0!important;
}
.page>.moments-scene .moments-tabs{gap:6px!important;margin-top:11px!important}
.page>.moments-scene .moment-tab{padding:9px 11px!important;font-size:11px!important;min-height:39px}
.page>.moments-scene .moments-quiet{margin:9px 0 0!important;font-size:11px!important;line-height:1.4!important}

/* 08 — Story remains cinematic but the caption is intentionally compact. */
.page>.story .story-card{
  width:min(660px,calc(100% - 36px))!important;
  max-height:none!important;padding:22px 27px!important;margin:0 auto!important;
}
.page>.story .story-card h2{
  font-size:clamp(28px,4.3vw,40px)!important;
  line-height:1.2!important;margin:3px auto 8px!important;
}
.page>.story .story-card p{max-width:555px;margin:0 auto!important;font-size:13px!important;line-height:1.6!important}

/* 09 — Gallery photo rhythm. */
.page>.gallery .gallery-grid{
  width:min(100%,760px)!important;gap:10px!important;
  grid-template-rows:min(28dvh,220px) min(21dvh,160px)!important;
  margin:18px auto 0!important;
}
.page>.gallery .gallery-item{border-radius:135px 135px 16px 16px!important}

/* 10 — Guest guide: compact accordion without tiny text. */
.page>.guest-guide .guest-guide-grid{
  width:min(100%,800px)!important;
  grid-template-columns:.85fr 1.15fr!important;
  gap:clamp(15px,3vw,27px)!important;
  margin:17px auto 0!important;
}
.page>.guest-guide .guest-guide-photo{height:clamp(228px,39dvh,340px)!important}
.page>.guest-guide .guide-detail{padding:0!important}
.page>.guest-guide .guide-detail summary{
  font-size:14px!important;line-height:1.4!important;
  padding:11px 6px 11px 2px!important;
  min-height:43px;
}
.page>.guest-guide .guide-detail p{
  font-size:12.5px!important;line-height:1.55!important;
  margin:0 5px 10px 2px!important;
}
.page>.guest-guide .guide-actions{gap:7px!important;margin-top:14px!important}
.page>.guest-guide .guide-actions :is(a,button){padding:9px 12px!important;min-height:42px;font-size:11px!important}

/* 11 — RSVP remains comfortably readable and doesn't clip the active panel. */
.page>.final{padding:46px 18px 94px!important;overflow:visible!important}
.page>.final .final-frame{
  width:min(100%,730px)!important;
  max-height:none!important;
  border-radius:140px 140px 26px 26px!important;
  padding:23px 22px 21px!important;
}
.page>.final .crest{width:49px!important;height:49px!important;font-size:20px!important;margin:0 auto 4px!important}
.page>.final .final-frame h2{
  font-size:clamp(27px,3.9vw,37px)!important;
  line-height:1.2!important;margin:4px auto 6px!important;
  max-width:560px!important;
}
.page>.final .final-frame>p{
  font-size:12px!important;line-height:1.5!important;
  max-width:510px!important;margin:0 auto!important;
}
.page>.final .attendance-flow{max-width:680px!important;margin:12px auto 0!important}
.page>.final .response-options{gap:7px!important}
.page>.final .response-card{
  min-height:56px!important;padding:8px 8px 8px 34px!important;
  font-size:11px!important;line-height:1.35!important;
}
.page>.final .response-card .response-icon{left:8px!important}
.page>.final .response-panel{margin-top:9px!important}
.page>.final .response-grid{gap:7px!important}
.page>.final .response-grid-gift{grid-template-columns:1fr 1.4fr!important}
.page>.final .response-grid label{gap:3px!important;font-size:11px!important;line-height:1.3!important}
.page>.final .response-grid :is(input,select,textarea){font-size:12px!important;min-height:39px!important}
.page>.final .guest-summary{margin-top:6px!important;font-size:11px!important}
.page>.final .response-submit{min-height:42px!important;margin-top:9px!important;font-size:12px!important}
.page>.final .response-success{margin-top:5px!important;line-height:1.4!important}
.page>.final .final-actions{margin:9px auto 0!important;gap:7px!important}
.page>.final .fine{margin-top:8px!important;font-size:10px!important;line-height:1.4!important}

/* Tablet and narrow desktops avoid clipped content, while desktop remains a
   guided one-scene-per-scroll invitation. */
@media (min-width:701px) and (max-width:950px){
  .page>.venue .venue-grid{gap:17px!important}
  .page>.moments-scene .moments-layout{gap:20px!important}
  .page>.guest-guide .guest-guide-grid{gap:18px!important}
}
@media (max-width:700px){
  .page>section.section:not(.hero):not(.final){
    height:auto!important;min-height:100dvh!important;overflow:visible!important;
    padding:69px 15px 95px!important;scroll-snap-stop:normal!important;
  }
  .page .section-title,.page .section .section-title{
    font-size:clamp(27px,7.5vw,35px)!important;
    line-height:1.18!important;margin:3px auto 7px!important;
  }
  .page .section-title.en-title,.page .section .section-title.en-title{
    font-size:clamp(39px,10.3vw,55px)!important;
    line-height:1.05!important;margin:3px auto 7px!important;
  }
  .page .bn-copy,.page .section .bn-copy{
    font-size:12px!important;line-height:1.5!important;
    max-width:390px!important;
  }
  .page .eyebrow{font-size:9px!important;letter-spacing:.12em!important;margin-bottom:3px!important}
  .page>.hero{height:auto!important;min-height:100dvh!important;padding:65px 12px 85px!important;overflow:visible!important}
  .page>.hero .hero-frame{
    width:100%!important;max-width:600px!important;
    min-height:clamp(410px,70dvh,610px)!important;
    padding:24px 15px!important;
  }
  .page>.hero .crest{width:53px!important;height:53px!important;min-width:53px!important;margin-bottom:5px!important;font-size:19px!important}
  .page>.hero h1{font-size:clamp(55px,12.8vw,77px)!important;line-height:1.11!important;margin:2px auto 0!important}
  .page>.hero .hero-bn{font-size:16px!important;line-height:1.28!important}
  .page>.hero .hero-date{margin:8px auto!important;font-size:10px!important}
  .page>.hero .hero-scroll{margin-top:7px!important}
  .page>.countdown .count-frame{padding:23px 19px!important;width:min(100%,360px)!important}
  .page>.countdown .count-num{font-size:clamp(79px,20vw,110px)!important}
  .page>.special .event-grid{grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:12px!important}
  .page>.special .event-card{padding:11px 7px 13px!important;border-radius:95px 95px 15px 15px!important}
  .page>.special .event-card .event-art.photo-art{height:clamp(93px,16dvh,125px)!important;margin-bottom:6px!important}
  .page>.special .event-card h3{font-size:clamp(19px,5.2vw,24px)!important;line-height:1.02!important}
  .page>.special .event-card p{font-size:10.5px!important;line-height:1.3!important}
  .page>.venue .venue-grid{grid-template-columns:1fr!important;gap:14px!important}
  .page>.venue .venue-copy{text-align:center!important}
  .page>.venue .venue-copy :is(.eyebrow,.section-title,.bn-copy){text-align:center!important;margin-left:auto!important;margin-right:auto!important}
  .page>.venue .venue-copy .section-title.en-title{font-size:clamp(38px,10vw,50px)!important;margin-bottom:6px!important}
  .page>.venue .venue-copy .gold-line{margin:8px auto!important}
  .page>.venue .venue-name{font-size:16px!important;margin:5px 0 2px!important}
  .page>.venue .venue-address{font-size:12px!important;margin-bottom:5px!important}
  .page>.venue .venue-copy .bn-copy{max-width:360px!important;margin:0 auto!important}
  .page>.venue .venue-btn{margin-top:11px!important}
  .page>.venue .palace{height:clamp(190px,28dvh,275px)!important;min-height:0!important}
  .page>.dress .dress-head{padding:17px 12px 7px!important}
  .page>.dress .dress-grid{grid-template-columns:1fr 1fr!important;gap:7px!important;padding:0 8px 9px!important}
  .page>.dress .wardrobe-card{padding:5px 5px 10px!important}
  .page>.dress .wardrobe-label{height:clamp(114px,19dvh,151px)!important}
  .page>.dress .wardrobe-serif{font-size:clamp(23px,6vw,34px)!important}
  .page>.dress .wardrobe-card h3{font-size:18px!important;margin:6px 0 2px!important}
  .page>.dress .wardrobe-card p{font-size:11px!important;line-height:1.35!important}
  .page>.programme .timeline{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin-top:14px!important}
  .page>.programme .timeline:before{top:29px!important}
  .page>.programme .step{padding:0 2px!important}
  .page>.programme .step-icon{width:59px!important;height:59px!important;font-size:23px!important;margin-bottom:7px!important}
  .page>.programme .step h3{font-size:clamp(16px,4.3vw,21px)!important;line-height:1.1!important}
  .page>.programme .step p{font-size:10.5px!important}
  .page>.programme .step strong{font-size:10.5px!important;margin-top:3px!important}
  .page>.moments-scene .moments-layout{grid-template-columns:1fr!important;gap:12px!important;margin-top:13px!important;text-align:center!important}
  .page>.moments-scene .moments-stage{width:min(100%,320px)!important;aspect-ratio:1.55!important;max-height:245px!important;margin:0 auto!important}
  .page>.moments-scene .moments-copy h3{font-size:26px!important;line-height:1.25!important;margin:6px 0!important}
  .page>.moments-scene .moments-copy>p:not(.moments-kicker):not(.moments-quiet){font-size:12px!important;line-height:1.45!important;max-width:340px;margin:auto!important}
  .page>.moments-scene .moments-tabs{justify-content:center!important;margin-top:11px!important}
  .page>.moments-scene .moment-tab{font-size:10px!important;min-height:39px!important}
  .page>.moments-scene .moments-quiet{margin-top:8px!important}
  .page>.story .story-photo{min-height:100dvh!important;height:100dvh!important;padding:65px 14px 90px!important}
  .page>.story .story-card{width:100%!important;max-width:480px!important;padding:19px 17px!important}
  .page>.story .story-card h2{font-size:28px!important;line-height:1.2!important}
  .page>.story .story-card p{font-size:12px!important;line-height:1.52!important}
  .page>.gallery .gallery-grid{
    margin:14px auto 0!important;gap:7px!important;
    grid-template-rows:min(26dvh,215px) min(18dvh,135px)!important;
  }
  .page>.guest-guide .guest-guide-grid{grid-template-columns:1fr!important;gap:12px!important;margin-top:13px!important}
  .page>.guest-guide .guest-guide-photo{height:clamp(172px,23dvh,228px)!important;width:min(100%,340px)!important;margin:auto!important}
  .page>.guest-guide .guide-detail summary{font-size:13px!important;padding:8px 5px!important;min-height:41px!important}
  .page>.guest-guide .guide-detail p{font-size:12px!important;line-height:1.47!important;margin-bottom:9px!important}
  .page>.guest-guide .guide-actions{justify-content:center;margin-top:10px!important}
  .page>.final{
    height:auto!important;min-height:100dvh!important;overflow:visible!important;
    padding:68px 14px 102px!important;
  }
  .page>.final .final-frame{width:min(100%,560px)!important;padding:19px 13px 17px!important;border-radius:68px 68px 22px 22px!important}
  .page>.final .crest{width:44px!important;height:44px!important;font-size:18px!important;margin-bottom:3px!important}
  .page>.final .final-frame h2{font-size:clamp(23px,6.4vw,28px)!important;margin:3px auto 5px!important;line-height:1.2!important}
  .page>.final .final-frame>p{font-size:11.5px!important;line-height:1.43!important}
  .page>.final .attendance-flow{margin-top:10px!important}
  .page>.final .response-options{grid-template-columns:1fr!important;gap:5px!important}
  .page>.final .response-card{min-height:42px!important;padding:7px 8px 7px 34px!important;font-size:11.5px!important}
  .page>.final .response-grid-attend{grid-template-columns:1.2fr .85fr .78fr!important}
  .page>.final .response-grid-attend .response-note{grid-column:1/-1!important}
  .page>.final .response-grid-gift{grid-template-columns:1fr!important}
  .page>.final .response-grid label{font-size:10.5px!important}
  .page>.final .response-grid :is(input,select,textarea){font-size:12px!important}
  .page>.final .response-submit{min-height:42px!important;margin-top:8px!important}
  .page>.final .final-actions{margin-top:8px!important}
  .page>.final .final-actions button{min-height:40px!important}
}
@media(max-width:370px){
  .page>.hero h1{font-size:clamp(49px,13vw,58px)!important}
  .page>.hero .hero-frame{min-height:430px!important}
  .page>.special .event-grid{grid-template-columns:1fr 1fr!important}
  .page>.special .event-card h3{font-size:18px!important}
  .page>.special .event-card p{font-size:10px!important}
  .page>.dress .wardrobe-label{height:111px!important}
  .page>.dress .wardrobe-serif{font-size:22px!important}
  .page>.programme .step-icon{width:50px!important;height:50px!important;font-size:20px!important}
  .page>.programme .timeline:before{top:25px!important}
  .page>.programme .step h3{font-size:16px!important}
  .page>.moments-scene .moments-stage{max-height:195px!important}
  .page>.final .final-frame{padding-left:11px!important;padding-right:11px!important}
  .page>.final .response-card{font-size:11px!important}
}
@media(min-width:701px) and (max-height:740px){
  .page>section.section:not(.hero):not(.final){
    height:auto!important;min-height:100dvh!important;
    overflow:visible!important;padding:65px 25px 78px!important;
    scroll-snap-stop:normal!important;
  }
  .page>.hero .hero-frame{min-height:clamp(430px,77dvh,560px)!important}
  .page>.final{height:auto!important;min-height:100dvh!important}
}
@media(prefers-reduced-motion:reduce){
  .page .reveal{transition-duration:0.01ms}
}


/* Wedding opening — single source of truth for reveal typography and layers.
 * Matches the user's intermediate-animation screenshot (2026-10-27).
 * Closed seal: headline outside. Open seal: entire stationary ivory card,
 * readable two-name stack and date, no ghost rectangle or overlapping ornament.
 */
.opening .opening-stage{
  position:relative;width:min(94vw,445px)!important;
  height:min(74dvh,610px)!important;max-height:610px!important;
}
.opening .wedding-opening-heading{
  position:absolute;z-index:5;left:50%;top:0;
  width:min(96%,405px);transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;text-align:center;
  color:#f8e1b7;text-shadow:0 3px 12px #22000fae;
  transition:opacity .4s ease,transform .4s ease;pointer-events:none;
}
.opening .wedding-opening-heading-label{
  font:500 10px/1.5 Arial,sans-serif;letter-spacing:.24em;color:#f1d4a4;
}
.opening .wedding-opening-couple{
  display:block;max-width:100%;white-space:nowrap;
  font:400 clamp(36px,5.4vw,52px)/1.2 "Great Vibes","Cormorant Garamond",serif;
  color:#fff1d6;text-shadow:0 3px 12px #20000f;
}
.opening .wedding-opening-couple span{color:#e4ba7b;font-style:italic;padding:0 3px}
.opening .wedding-opening-heading-date{
  font:500 10px/1.6 Arial,sans-serif;letter-spacing:.17em;color:#e6c796;
}
.opening .invitation-envelope{
  z-index:3;top:49%!important;height:min(44dvh,386px)!important;
  transform:translate(-50%,-50%)!important;overflow:visible!important;
}
.opening .invitation-envelope::after{
  content:"";position:absolute;left:9%;right:9%;top:7%;bottom:6%;
  z-index:1;pointer-events:none;
  background:linear-gradient(145deg,#9b4d62,#662337 48%,#430b20);
  border:1px solid #bd795f;border-radius:7px;
  box-shadow:inset 0 0 0 9px #d8ac7730,0 14px 24px #25030fa6;
  opacity:1;visibility:visible;transition:opacity .34s ease,visibility .34s ease;
}
/* Closed paper is never rendered above the sealed envelope. */
.opening .invitation-envelope .envelope-card{
  position:absolute;top:2%!important;bottom:2%!important;left:8%!important;right:8%!important;
  height:96%!important;box-sizing:border-box;
  z-index:4;opacity:0!important;visibility:hidden!important;
  border:1px solid #cda967!important;border-radius:6px!important;
  outline:1px solid #f9e5bf82!important;outline-offset:-9px!important;
  background:linear-gradient(138deg,#fffcf4 0%,#f5ebd9 49%,#fffbf0 100%)!important;
  box-shadow:0 11px 30px #29061395,inset 0 0 0 11px #fff9ed95!important;
  transform:translateY(12%) scale(.94)!important;
  transition:transform .78s cubic-bezier(.19,.78,.18,1),
             opacity .27s ease,visibility .27s ease!important;
  pointer-events:none;overflow:hidden!important;
}
/* Decoration is bounded and never floats across the couple names. */
.opening .envelope-card-inner{
  position:absolute!important;inset:15px!important;
  box-sizing:border-box;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  gap:3px!important;
  border:1px solid #c3a16b66!important;
  padding:12px 14px!important;
  text-align:center!important;overflow:hidden!important;
}
.opening .envelope-card-inner::before,
.opening .envelope-card-inner::after{content:none!important;display:none!important}
.opening .envelope-kicker{
  font:500 9px/1.3 Arial,sans-serif!important;
  letter-spacing:.19em!important;color:#8a5a47!important;
  margin:0!important;white-space:nowrap;
}
.opening .envelope-crest{
  font:500 20px/1 "Cormorant Garamond",serif!important;
  letter-spacing:.1em!important;color:#77273b!important;
  margin:3px 0!important;white-space:nowrap;
}
.opening .envelope-crest span{color:#865d2b!important}
.opening .envelope-card h1.envelope-couple-names{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:0!important;
  width:100%!important;max-width:100%!important;
  margin:3px 0 4px!important;padding:0!important;
  font-family:"Great Vibes","Cormorant Garamond",serif!important;
  font-size:clamp(35px,4.2vw,45px)!important;
  line-height:1!important;font-weight:400!important;letter-spacing:0!important;
  color:#68182e!important;text-wrap:nowrap!important;
}
.opening .envelope-couple-names .envelope-first-name,
.opening .envelope-couple-names .envelope-second-name{
  display:block!important;max-width:100%!important;
  white-space:nowrap!important;line-height:1.16!important;padding:0 3px!important;
  color:#68182e!important;
}
.opening .envelope-couple-names .envelope-amp{
  font:italic 500 20px/.87 "Cormorant Garamond",serif!important;
  color:#865d2b!important;padding:0!important;margin:-1px auto!important;
}
.opening .envelope-gold-rule{
  flex:none;width:72px!important;height:1px!important;
  margin:4px auto!important;
  background:linear-gradient(90deg,transparent,#af8546,transparent)!important;
}
.opening .envelope-card p{
  color:#663844!important;font-size:12px!important;line-height:1.45!important;
  margin:0 auto 2px!important;max-width:97%!important;
}
.opening .envelope-card time{
  display:block!important;position:relative!important;
  color:#684032!important;font:600 10px/1.4 Arial,sans-serif!important;
  letter-spacing:.11em!important;white-space:nowrap!important;
  margin:2px auto 0!important;padding:0!important;
}
/* One delicate border line at either edge, instead of clipped repeated lace symbols. */
.opening .invitation-envelope .envelope-lace{
  left:13%;right:13%;height:2px!important;
  opacity:.77;pointer-events:none;
  background:linear-gradient(90deg,transparent,#d7b17a 16%,#fff0c6 50%,#d7b17a 84%,transparent)!important;
  background-size:100% 100%!important;mask-image:none!important;box-shadow:none!important;
}
.opening .invitation-envelope .lace-top{top:3%!important}
.opening .invitation-envelope .lace-bottom{
  top:auto!important;bottom:4%!important;transform:none!important;
}
.opening .invitation-envelope .wax-seal{z-index:12}
.opening .invitation-envelope .envelope-pocket{
  z-index:7;transition:opacity .38s ease,transform .56s ease;
}
.opening .invitation-envelope .envelope-flap{z-index:9}
.opening .open-cta{
  z-index:18;left:50%!important;bottom:53px!important;
  min-width:205px!important;min-height:49px!important;
  padding:0 20px!important;line-height:1.15!important;white-space:nowrap;
}
.opening .opening-note{
  z-index:14;bottom:15px!important;left:50%;
  font-size:9px!important;line-height:1.3!important;letter-spacing:.15em!important;
}
.opening.untie .open-cta,
.opening.card-reveal .open-cta{opacity:0!important;pointer-events:none}
.opening.card-reveal .wedding-opening-heading{
  opacity:0;transform:translate(-50%,-10px);
}
.opening.card-reveal .invitation-envelope::after{
  opacity:0!important;visibility:hidden!important;
}
.opening.card-reveal .invitation-envelope .envelope-card{
  z-index:15;opacity:1!important;visibility:visible!important;
  transform:translateY(-3%) scale(1)!important;
  box-shadow:0 22px 43px #2906139b!important;
}
.opening.card-reveal .invitation-envelope .envelope-pocket{
  opacity:0!important;visibility:hidden!important;
  transform:translateY(18%);pointer-events:none;
}
.opening.card-reveal .invitation-envelope .envelope-lace,
.opening.card-reveal .invitation-envelope .envelope-flap{
  opacity:0!important;visibility:hidden!important;pointer-events:none;
}
.opening.card-reveal .invitation-envelope .wax-seal{opacity:0!important}

@media(max-width:700px){
  .opening .opening-stage{
    width:min(94vw,410px)!important;height:min(76dvh,600px)!important;
  }
  .opening .wedding-opening-heading{top:0;width:95%}
  .opening .wedding-opening-couple{font-size:clamp(37px,10vw,48px)}
  .opening .wedding-opening-heading-label{font-size:9px;letter-spacing:.18em}
  .opening .wedding-opening-heading-date{font-size:9px}
  .opening .invitation-envelope{height:min(44dvh,350px)!important}
  .opening .open-cta{bottom:53px!important;min-height:48px!important;min-width:195px!important;font-size:14px!important}
  .opening .opening-note{bottom:13px!important;font-size:8px!important}
  .opening .envelope-card-inner{inset:12px!important;padding:9px 10px!important;gap:2px!important}
  .opening .envelope-card h1.envelope-couple-names{font-size:clamp(38px,9.5vw,48px)!important}
  .opening .envelope-crest{font-size:19px!important;margin:2px 0!important}
  .opening .envelope-card p{font-size:12.5px!important;line-height:1.38!important}
  .opening .envelope-card time{font-size:10px!important}
}
@media(max-width:380px), (max-height:680px){
  .opening .opening-stage{height:min(77dvh,505px)!important}
  .opening .invitation-envelope{height:min(40dvh,285px)!important}
  .opening .wedding-opening-couple{font-size:clamp(34px,9.5vw,42px)}
  .opening .open-cta{bottom:50px!important;min-height:46px!important}
  .opening .envelope-card-inner{inset:10px!important;padding:6px 8px!important;gap:1px!important}
  .opening .envelope-crest{font-size:16px!important;margin:1px auto!important}
  .opening .envelope-card h1.envelope-couple-names{
    font-size:clamp(34px,9vw,41px)!important;margin:1px 0 2px!important;
  }
  .opening .envelope-couple-names .envelope-amp{font-size:17px!important}
  .opening .envelope-gold-rule{margin:2px auto!important}
  .opening .envelope-card p{font-size:12px!important;line-height:1.28!important;margin-bottom:1px!important}
  .opening .envelope-card time{font-size:9px!important}
  .opening .envelope-kicker{font-size:8px!important}
}
@media(prefers-reduced-motion:reduce){
  .opening .wedding-opening-heading,.opening .invitation-envelope .envelope-card,
  .opening .invitation-envelope .envelope-pocket{transition-duration:.01ms!important}
}


/* Deterministic visual QA frame. This class is enabled only by a demo
   screenshot query parameter; real invitation animations stay unchanged. */
.opening.qa-card,.opening.qa-card *, .opening.qa-card *::before,.opening.qa-card *::after{
  animation:none!important;
  transition:none!important;
}


/* 2026-10-27 | Hero chrome review from marked client screenshot.
   The three UI zones (header, wedding artwork, scroll cue) must never collide.
   Remove the decorative pseudo-curtain discs; preserve the full image/frame. */
.page>.hero::before,
.page>.hero::after{
  content:none!important;display:none!important;
}
.top-controls{
  top:max(15px,env(safe-area-inset-top))!important;
  left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  width:min(calc(100% - 28px),920px)!important;
  display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:14px!important;
  z-index:1400!important;
}
.top-controls .top-controls-actions{
  display:flex!important;align-items:center!important;
  gap:8px!important;margin-left:auto!important;
}
.top-controls .back-to-template{
  display:inline-flex!important;align-items:center!important;
  justify-content:center!important;gap:5px!important;
  font:500 13px/1.2 Arial,sans-serif!important;
  letter-spacing:.01em!important;
  min-height:44px!important;
  padding:0 16px!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  border:1px solid #ddbc8580!important;
  background:#511629ef!important;
  color:#fff3dc!important;
  box-shadow:0 8px 20px #20040f72!important;
}
.top-controls .back-to-template span{text-decoration:none!important}
.top-controls .round{
  display:inline-grid!important;place-items:center!important;
  flex:0 0 44px!important;
  width:44px!important;height:44px!important;
  min-width:44px!important;min-height:44px!important;
  padding:0!important;
  border:1px solid #ddbc8580!important;
  background:#511629ef!important;
  color:#fff3dc!important;
  font:500 20px/1 Arial,sans-serif!important;
  box-shadow:0 8px 20px #20040f72!important;
}
.top-controls :is(a,button):hover{
  background:#77283e!important;
  border-color:#f0cc93!important;
  transform:translateY(-1px);
}
.top-controls :is(a,button):focus-visible,
.scroll-button:focus-visible{
  outline:3px solid #edc58b!important;
  outline-offset:4px!important;
}
.scroll-button{
  bottom:max(16px,env(safe-area-inset-bottom))!important;
  width:150px!important;height:73px!important;
  padding:0!important;gap:4px!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;backdrop-filter:none!important;
  display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:center!important;
  isolation:isolate;
}
.scroll-button .mouse-shell{
  width:29px!important;height:39px!important;
  border:2px solid #f8e3bb!important;border-radius:15px!important;
  background:#4c1527f5!important;
  box-shadow:0 5px 16px #18000dc0!important;
}
.scroll-button .mouse-wheel{
  background:#f7d8a0!important;width:4px!important;height:9px!important;
}
.scroll-button .scroll-caption{
  display:block!important;
  border:1px solid #ddbc8595!important;
  border-radius:30px!important;
  background:#511a2ded!important;
  color:#fff4e0!important;
  padding:6px 11px!important;
  box-shadow:0 5px 15px #220a14b0!important;
  font:500 12px/1.25 "Kalpurush",sans-serif!important;
  white-space:nowrap!important;
  text-shadow:none!important;
}
.scroll-button:hover .scroll-caption{background:#742c42!important}
.scroll-button.at-end{
  transform:translateX(-50%)!important;
}
.scroll-button.at-end .mouse-shell{transform:rotate(180deg)}
/* Keep the hero's lower engraved border clear of the fixed scroll prompt. */
.page>.hero{
  min-height:100dvh!important;
  padding:76px 16px 111px!important;
}
.page>.hero .hero-frame{
  margin:0 auto!important;
  min-height:clamp(400px,70dvh,640px)!important;
  max-height:calc(100dvh - 203px)!important;
}
body.hero-qa .top-controls,body.hero-qa .scroll-button,
body.hero-qa .scene-nav{opacity:1!important;transition:none!important}
body.hero-qa .hero .reveal{opacity:1!important;transform:none!important;transition:none!important}

@media(max-width:700px){
  .top-controls{
    width:calc(100% - 22px)!important;
    top:max(10px,env(safe-area-inset-top))!important;
    gap:7px!important;
  }
  .top-controls .top-controls-actions{gap:6px!important}
  .top-controls .back-to-template{
    min-height:41px!important;padding:0 11px!important;
    font-size:12px!important;
  }
  .top-controls .round{
    width:41px!important;height:41px!important;
    min-width:41px!important;min-height:41px!important;
    flex-basis:41px!important;font-size:18px!important;
  }
  .page>.hero{
    min-height:100dvh!important;
    padding:72px 12px 100px!important;
  }
  .page>.hero .hero-frame{
    min-height:clamp(365px,64dvh,555px)!important;
    max-height:calc(100dvh - 184px)!important;
  }
  .scroll-button{
    width:150px!important;height:73px!important;
    bottom:max(13px,env(safe-area-inset-bottom))!important;
  }
}
@media(max-width:370px){
  .top-controls .back-to-template{padding:0 9px!important;font-size:11px!important}
  .top-controls .round{
    width:39px!important;height:39px!important;
    min-width:39px!important;min-height:39px!important;
    flex-basis:39px!important;
  }
  .page>.hero .hero-frame{
    min-height:clamp(345px,61dvh,505px)!important;
    max-height:calc(100dvh - 185px)!important;
  }
}
@media(min-width:701px) and (max-height:740px){
  .page>.hero{padding:74px 16px 106px!important}
  .page>.hero .hero-frame{
    min-height:clamp(350px,62dvh,465px)!important;
    max-height:calc(100dvh - 188px)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .top-controls :is(a,button),.scroll-button .mouse-wheel{
    animation:none!important;transition:none!important;
  }
}


/* Never paint a fading envelope behind the opened invitation. */
.opening[hidden]{display:none!important;visibility:hidden!important}
.hero-qa .opening{display:none!important}
/* Disabled page arrows looked like broken controls and crowded the cue.
   Only actionable arrows remain; the page counter stays visible. */
.scene-nav button:disabled{display:none!important}
@media(max-width:700px){
  .scene-nav{
    right:max(8px,env(safe-area-inset-right))!important;
    bottom:76px!important;
    gap:6px!important;
    z-index:1380!important;
  }
  .scene-nav button,.scene-nav span{min-width:38px!important}
}


/* Client screenshot audit, 2026-10-27:
   A hanging chandelier collided with "WEDDING INVITATION" and the mouse cue's
   instruction was too tiny. Separate decoration/content and use an ivory cue. */
.opening .opening-chandelier{
  top:4px!important;
  transform:translateX(-50%) scale(.56)!important;
  transform-origin:top center!important;
  opacity:.88!important;
  pointer-events:none!important;
}
.opening .wedding-opening-heading{
  top:5px!important;
}
.opening .wedding-opening-heading-label{
  color:#ffdfa5!important;
  font-size:12px!important;line-height:1.45!important;
  font-weight:600!important;letter-spacing:.17em!important;
  text-shadow:0 2px 8px #2a0315b8!important;
}
.opening .wedding-opening-couple{
  color:#fff2dc!important;
  line-height:1.14!important;
  margin:3px 0!important;
}
.opening .wedding-opening-heading-date{
  color:#f7d5a0!important;
  font-size:11px!important;line-height:1.5!important;
}
.scroll-button{
  width:186px!important;height:81px!important;
  gap:6px!important;
  bottom:max(17px,env(safe-area-inset-bottom))!important;
  overflow:visible!important;
}
.scroll-button .mouse-shell{
  width:31px!important;height:40px!important;
  flex:0 0 40px!important;
  border:2px solid #f8e9c8!important;
  background:#56192bed!important;
}
.scroll-button .scroll-caption{
  display:block!important;
  padding:7px 14px!important;
  min-width:164px!important;
  min-height:30px!important;
  border:1px solid #eed2a4!important;
  border-radius:999px!important;
  background:#fff4df!important;
  color:#5a1730!important;
  font:500 14px/1.32 "Kalpurush",sans-serif!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  box-shadow:0 6px 19px #1e031085!important;
  text-align:center!important;
  white-space:nowrap!important;
}
.scroll-button:hover .scroll-caption{
  background:#ffe6ba!important;
  color:#4c1024!important;
}
.scene-nav #prevPage:disabled,.scene-nav #nextPage:disabled{display:none!important}
@media(max-width:700px){
  .opening .opening-chandelier{
    top:3px!important;
    transform:translateX(-50%) scale(.48)!important;
  }
  .opening .wedding-opening-heading-label{font-size:10px!important;letter-spacing:.13em!important}
  .opening .wedding-opening-heading-date{font-size:10px!important}
  .scroll-button{
    width:177px!important;height:78px!important;
    bottom:max(15px,env(safe-area-inset-bottom))!important;
  }
  .scroll-button .scroll-caption{
    min-width:158px!important;
    font-size:13px!important;
    padding:6px 11px!important;
  }
  .scene-nav{bottom:92px!important}
}
@media(max-height:700px){
  /* The invitation heading is closer to the top on short screens. */
  .opening .opening-chandelier{
    top:0!important;
    transform:translateX(-50%) scale(.34)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .scroll-button .mouse-wheel{animation:none!important}
}


/* 2026-10-27: client demo names + two red-marked duplicate prompts.
   Keep one functional and readable next-page control. */
.opening .wedding-opening-couple{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  gap:0!important;white-space:normal!important;max-width:100%!important;
  font-size:clamp(28px,3.9vw,42px)!important;
  line-height:1.01!important;
  margin:1px auto!important;
  text-wrap:balance!important;
}
.opening .wedding-opening-couple .cover-groom,
.opening .wedding-opening-couple .cover-bride{
  display:block!important;white-space:nowrap!important;
  max-width:100%!important;
  padding:0 2px!important;
  color:#fff1d6!important;
  line-height:1.04!important;
}
.opening .wedding-opening-couple .cover-amp{
  font:italic 500 16px/1.05 "Cormorant Garamond",serif!important;
  color:#e9c58c!important;
  padding:1px 0!important;
}
.page>.hero h1.hero-couple-name{
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  gap:0!important;
  width:100%!important;max-width:96%!important;
  overflow:visible!important;overflow-wrap:normal!important;
  margin:9px auto 6px!important;padding:0!important;
  font-family:"Great Vibes","Cormorant Garamond",serif!important;
  font-size:clamp(55px,6.1vw,79px)!important;
  font-weight:400!important;letter-spacing:0!important;
  line-height:1.02!important;
}
.page>.hero h1.hero-couple-name .hero-groom,
.page>.hero h1.hero-couple-name .hero-bride{
  display:block!important;white-space:nowrap!important;
  max-width:100%!important;min-width:0;
  padding:0 .07em!important;
  color:#fff1d7!important;
  line-height:1.16!important;
}
.page>.hero h1.hero-couple-name .hero-amp{
  display:block!important;
  color:#eac68d!important;
  font:italic 500 clamp(23px,2.5vw,31px)/.88 "Cormorant Garamond",serif!important;
  margin:-2px 0!important;padding:0!important;
}
.page>.hero .hero-frame{gap:0!important}
.page>.hero .hero-bn{margin:4px auto 0!important}
.page>.hero .hero-date{margin:7px auto 0!important}
.page>.hero .hero-scroll{display:none!important}
.scroll-button .scroll-caption{
  font:500 15px/1.25 "Kalpurush",sans-serif!important;
  min-width:128px!important;
  padding:7px 14px!important;
  white-space:nowrap!important;
}
@media(max-width:700px){
  .opening .wedding-opening-couple{font-size:clamp(28px,8.3vw,35px)!important}
  .opening .wedding-opening-couple .cover-amp{font-size:14px!important}
  .page>.hero h1.hero-couple-name{
    font-size:clamp(40px,10.9vw,55px)!important;
    line-height:1.04!important;
    margin:6px auto 3px!important;
  }
  .page>.hero h1.hero-couple-name .hero-amp{
    font-size:22px!important;margin:0!important;
  }
  .scroll-button .scroll-caption{font-size:14px!important}
}
@media(max-width:370px){
  .opening .wedding-opening-couple{font-size:28px!important}
  .page>.hero h1.hero-couple-name{font-size:clamp(37px,11vw,42px)!important}
  .scroll-button .scroll-caption{font-size:14px!important}
}
@media(max-height:700px){
  .opening .wedding-opening-couple{font-size:clamp(24px,4vw,33px)!important}
  .page>.hero h1.hero-couple-name{font-size:clamp(37px,5.2vw,62px)!important}
  .page>.hero h1.hero-couple-name .hero-amp{font-size:20px!important}
}


/* Two-line names on sealed invitation — keep clear of envelope and chandelier. */
.opening .wedding-opening-couple{
  font-size:clamp(25px,3vw,34px)!important;
  line-height:1.01!important;
  margin:1px auto!important;
}
.opening .wedding-opening-couple .cover-bride-line{
  display:flex!important;flex-direction:row!important;align-items:baseline!important;
  justify-content:center!important;gap:7px!important;
  white-space:nowrap!important;
}
.opening .wedding-opening-couple .cover-amp{
  font:italic 500 19px/1 "Cormorant Garamond",serif!important;
  padding:0!important;
}
@media(max-width:700px){
  .opening .wedding-opening-couple{font-size:clamp(26px,7.4vw,32px)!important}
  .opening .wedding-opening-couple .cover-amp{font-size:16px!important}
}
@media(max-height:700px){
  .opening .wedding-opening-couple{font-size:clamp(23px,6vw,28px)!important}
}
