/* Vertical wedding scenes. Gifts deliberately retains its own compact stylesheet. */
.opening-monogram{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:clamp(68px,8vw,110px);line-height:.95;letter-spacing:.025em;margin-block:24px 22px;padding:8px 0;overflow:visible;text-transform:uppercase}
.opening-monogram .opening-name{display:block;color:var(--ivory);font-size:1em;line-height:1}
.opening-monogram .opening-amp{font-size:.32em;margin:0;line-height:1.1}
.opening-monogram.is-visible .opening-name{animation:verticalNameIn 1.1s var(--motion-ease) both}
.opening-monogram.is-visible .opening-name:last-child{animation-delay:.18s}
.opening-date{display:flex;flex-direction:column;gap:7px;letter-spacing:.24em}
.opening-date span:last-child{font-size:8px;letter-spacing:.2em}
@keyframes verticalNameIn{from{opacity:0;clip-path:inset(100% 0 0);transform:translateY(12px);filter:blur(2px)}to{opacity:1;clip-path:inset(0);transform:none;filter:none}}

/* A portrait film poster: text sits in the sky, faces remain unobstructed. */
.home.section{padding:0;background:var(--ivory)}
.home .home-composition{display:block;margin:0}
.home-visual{position:relative;isolation:isolate;height:calc(100svh - 74px);min-height:650px;max-height:1050px;overflow:hidden;background:var(--espresso-deep)}
.home-visual:before,.home-visual:after{content:'';position:absolute;inset:0;pointer-events:none}
.home-visual:before{z-index:2;background:url('../assets/decor/paper-grain.svg') repeat;opacity:.022;mix-blend-mode:soft-light}
.home-visual:after{z-index:1;background:linear-gradient(90deg,rgba(30,21,18,.72),rgba(30,21,18,.36) 31%,transparent 55%),linear-gradient(180deg,rgba(30,21,18,.26),transparent 48%,transparent 76%,rgba(30,21,18,.5))}
.home-visual .home-photo{position:absolute;inset:0;width:100%;height:100%;margin:0;aspect-ratio:auto;outline:0;border:0}
.home-visual .home-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center bottom;transform:none}
.home .home-head{position:absolute;z-index:3;top:clamp(65px,9vh,115px);left:var(--gutter);width:min(490px,42%);color:var(--ivory);text-shadow:0 2px 24px rgba(0,0,0,.18)}
.home-head:before{display:none}
.home .home-head>.label{text-align:left;font-size:8px;letter-spacing:.2em;color:var(--champagne)}
.home .home-head h1{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;margin:22px 0 0;font-size:clamp(86px,9vw,144px);line-height:.94;letter-spacing:-.04em}
.home .home-head h1>span{line-height:1.04}
.home .home-head h1>em{font-size:.38em;line-height:1.25;color:var(--champagne);padding-left:.1em}
.home .home-caption{justify-content:flex-start;flex-wrap:wrap;gap:13px;margin-top:28px}
.home .home-caption .label{font-size:7px;letter-spacing:.14em;color:var(--ivory)}
.home .home-line{width:30px;background:var(--antique-gold)}
.home .home-botanical{right:5px;bottom:-25px;color:var(--champagne);--decor-opacity:.12;max-width:100px}
.home .home-side{display:block;position:absolute;z-index:3;right:28px;bottom:24px;margin:0;writing-mode:horizontal-tb;font-size:7px;color:var(--ivory);letter-spacing:.18em}
.home .photo-caption{left:var(--gutter);bottom:24px;color:var(--espresso);background:rgba(246,240,231,.88);font-size:7px}
.home .home-date{display:grid;grid-template-columns:1fr 2fr auto;gap:8px 30px;align-items:center;padding:30px var(--gutter);margin:0;color:var(--espresso);background:var(--ivory)}
.home .home-date>.label:first-child{grid-column:1;grid-row:1}
.home .home-date>p{grid-column:2;grid-row:1/3;max-width:none;margin:0;font-size:clamp(25px,3vw,39px);letter-spacing:-.02em}
.home .home-date>.label:nth-of-type(2){grid-column:1;grid-row:2}
.home .home-date .text-link{grid-column:3;grid-row:1/3;align-self:center;width:auto;margin:0;gap:20px;color:var(--wine)}
.home .home-foot{margin:0;padding:19px var(--gutter);background:var(--ivory);color:var(--ink-muted);border-top:1px solid var(--line)}

/* Screening room and the next chapter breathe like separate film scenes. */
.film-section .section-head{max-width:1120px;margin-inline:auto}
.film-scene-caption,.film-frame.prenup-video-wrap{max-width:1120px;margin-inline:auto}
.film-frame.prenup-video-wrap{position:relative;box-shadow:none}
.cinema-ready .film-frame.cinematic-reveal{transform:translateY(var(--reveal-y,0px)) scale(calc(.96 + var(--story-entry,1)*.04))}
.film-frame:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:2;opacity:.02;background:url('../assets/decor/paper-grain.svg') repeat}
.film-is-playing .film-frame:after{opacity:0}
.next-chapter{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:86svh;padding-block:90px;margin-top:80px}
.next-chapter h3{font-size:clamp(46px,6vw,88px);max-width:800px}
.chapter-date{margin-top:25px;color:var(--espresso);opacity:calc((.25 + .75*var(--story-entry,1))*(1 - .75*var(--scene-exit,0)))}
.chapter-date p{font-size:clamp(31px,4vw,58px);line-height:1.08;letter-spacing:-.035em;margin:0}
.chapter-date p[data-date=year]{color:var(--wine);font-style:italic;margin-top:4px}
.chapter-date>.label{display:block;color:var(--ink-muted);font-size:9px;letter-spacing:.2em;margin-top:20px}
.next-chapter .story-cue{opacity:calc(var(--cue-progress,1)*(1 - .75*var(--scene-exit,0)))}
.day-section{padding-block:100px}
.countdown-numbers>div{padding-inline:10px;border-color:rgba(185,148,99,.35)}
.countdown-numbers strong{font-weight:400}
.venues-section{padding-block:110px;background:linear-gradient(var(--ivory),#ede1d3 60%,var(--ivory))}
.venue-map-frame{border:0;padding:0;background:transparent;box-shadow:none;outline:1px solid rgba(185,148,99,.45);outline-offset:8px}
.unified-venue .venue-info h2{max-width:580px;letter-spacing:-.04em}
.dress-section{min-height:70svh;display:flex;flex-direction:column;justify-content:center}
.dress-section .section-head{margin-bottom:30px}
.wine-swatches{margin-bottom:35px}
.wine-swatches>span{position:relative;width:34px;height:66px;border-radius:22px 22px 3px 3px}
.wine-swatches>span:after{content:attr(aria-label);position:absolute;top:calc(100% + 11px);left:50%;translate:-50% 0;width:56px;font:500 6.5px/1.5 var(--sans);letter-spacing:.06em;text-transform:uppercase;text-align:center;color:var(--ink-muted)}

/* Full photographs, offset pages and tiny captions, not a uniform mobile grid. */
.moments-section{padding-top:110px}
#editorialGallery .gallery-image{outline:0;background:transparent}
#editorialGallery .gallery-item figcaption{font-size:7px;letter-spacing:.16em}
html.cinema-ready #editorialGallery .gallery-item.cinematic-reveal{opacity:var(--reveal-opacity,1)}
.cinema-ready #editorialGallery .gallery-item[data-photo-motion=portrait] .media{clip-path:inset(0 0 var(--photo-mask,0%) 0)}
.cinema-ready #editorialGallery .gallery-item[data-photo-motion=landscape] .media{clip-path:inset(0 var(--photo-mask,0%) 0 0)}

/* A warm, unillustrated pause after the photographs. */
.foundation-section.dark{display:grid;place-items:center;min-height:80svh;padding-block:90px;background:#F6F0E7;color:var(--espresso)}
.foundation-section.dark:before{display:none}
.foundation-section.dark:after{background:linear-gradient(to top,#efe5d6,transparent)}
.foundation-section blockquote{font-size:clamp(31px,4vw,58px);line-height:1.28}
.foundation-note{color:var(--ink-muted)}
.foundation-section .foundation-divider{margin-bottom:30px}
.foundation-section .foundation-branch{--decor-opacity:.15}
.final-section.dark{min-height:100svh}
.final-section .altar{letter-spacing:.22em}

@media(max-width:820px){
  .home-visual{height:calc(100svh - 65px);min-height:620px;max-height:1000px}
  .home-visual:before,.film-frame:after{display:none}
  .home-visual:after{background:linear-gradient(180deg,rgba(30,21,18,.76),rgba(30,21,18,.42) 36%,transparent 61%,transparent 82%,rgba(30,21,18,.5))}
  .home .home-head{left:20px;right:20px;top:52px;width:auto;text-align:center}
  .home .home-head>.label{text-align:center;font-size:7px}
  .home .home-head h1{align-items:center;font-size:clamp(64px,18vw,96px);margin-top:22px}
  .home .home-caption{justify-content:center;gap:10px;margin-top:22px}
  .home .home-caption .label{font-size:6px}
  .home .home-botanical{display:none}
  .home .home-side{left:20px;right:20px;bottom:17px;font-size:6px;text-align:left}
  .home .photo-caption{left:20px;bottom:48px;font-size:6px;padding:5px 8px}
  .home .home-date{grid-template-columns:minmax(0,1fr) auto;padding:27px 20px;gap:8px 14px}
  .home .home-date>.label:first-child{grid-column:1;grid-row:1}
  .home .home-date>p{grid-column:1;grid-row:2;font-size:clamp(20px,5.4vw,30px)}
  .home .home-date>.label:nth-of-type(2){grid-column:1;grid-row:3}
  .home .home-date .text-link{grid-column:2;grid-row:1/4;font-size:7px;gap:10px}
  .home .home-foot{padding:17px 20px;font-size:6px;gap:20px}
  .film-section .section-head{margin-bottom:35px}
  .film-section .section-head h2{font-size:clamp(48px,13vw,78px)}
  .film-frame.prenup-video-wrap{width:calc(100% + 2*var(--cinema-pad));max-width:none;margin-inline:calc(-1*var(--cinema-pad));border:0}
  .cinema-ready .film-frame.cinematic-reveal{transform:translateY(var(--reveal-y,0px)) scale(calc(.985 + var(--story-entry,1)*.015))}
  .next-chapter{min-height:86svh;margin-top:65px;padding-block:80px}
  .next-chapter h3{font-size:clamp(43px,11vw,68px);line-height:1.04;max-width:520px}
  .chapter-date p{font-size:clamp(38px,10vw,62px)}
  .day-section{padding-block:90px}
  .countdown-numbers{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 0;max-width:420px}
  .countdown-numbers>div:nth-child(2){border-right:0}
  .countdown-numbers>div:nth-child(3){border-right:1px solid var(--line)}
  .venues-section{padding-block:90px}
  .venue-map-frame{outline-offset:5px}
  .dress-section{min-height:72svh;padding-block:85px}
  .wine-swatches{gap:12px}
  .wine-swatches>span{width:32px;height:62px}
  .moments-section{--gallery-gutter:20px;padding-inline:var(--gallery-gutter);padding-top:90px}
  .moments-heading{margin-bottom:45px}
  .moments-heading h2{font-size:clamp(58px,16vw,100px)}
  .editorial-gallery{display:block}
  #editorialGallery .gallery-item{position:relative;min-width:0;width:88%;margin:0 0 56px!important;transform:none}
  #editorialGallery .gallery-item:nth-of-type(odd){margin-left:auto!important}
  #editorialGallery .gallery-item:nth-of-type(even){margin-right:auto!important}
  #editorialGallery .gallery-image{aspect-ratio:auto!important}
  #editorialGallery .gallery-image img{position:relative;inset:auto;width:100%;height:auto;max-width:100%;object-fit:contain}
  .cinema-ready #editorialGallery .gallery-item[data-photo-motion] .media{clip-path:none;transform:none}
  #editorialGallery .gallery-item:is(.gallery-item-1,.gallery-item-4,.gallery-item-9){width:calc(100% + 2*var(--gallery-gutter));margin-left:calc(-1*var(--gallery-gutter))!important;margin-right:calc(-1*var(--gallery-gutter))!important;margin-bottom:64px!important}
  #editorialGallery .gallery-item:is(.gallery-item-1,.gallery-item-4,.gallery-item-9):after{content:'';position:absolute;z-index:1;inset:auto 0 0;height:75px;background:linear-gradient(transparent,rgba(36,27,24,.55));pointer-events:none}
  #editorialGallery .gallery-item:is(.gallery-item-1,.gallery-item-4,.gallery-item-9) figcaption{position:absolute;z-index:2;left:20px;right:20px;bottom:15px;margin:0;color:var(--ivory);font-size:7px;opacity:1}
  #editorialGallery .gallery-item-10{width:76%;margin-left:auto!important;margin-right:auto!important}
  .gallery-decoration{margin-block:0 55px}
  .foundation-section.dark{min-height:80svh;padding-block:75px}
  .foundation-section blockquote{font-size:clamp(28px,7.4vw,43px)}
  .foundation-note{font-size:19px}
  .final-section h2{font-size:clamp(50px,13vw,92px)}
}
@media(max-width:768px){
  .menu-toggle{width:58px;padding-inline:0}
  .menu-toggle span{display:none}
  .menu-toggle:after{content:'MENU';font:500 9px var(--sans);letter-spacing:.18em}
  .menu-toggle[aria-expanded=true]:after{content:'CLOSE'}
}
@media(max-width:359px){
  .home .home-date{padding-inline:16px}
  .home .home-head{left:16px;right:16px}
  .home .home-caption .label{font-size:5.5px}
  .home .home-foot{padding-inline:16px}
}
@media(max-height:600px){.opening-monogram{font-size:clamp(48px,12vh,76px);margin-block:14px}}
@media(prefers-reduced-motion:reduce){
  .opening-monogram.is-visible .opening-name{animation:none;opacity:1;transform:none;filter:none;clip-path:none}
  .home-visual:before,.film-frame:after{display:none}
  .cinematic-reveal,.next-chapter .story-cue,.chapter-date{opacity:1!important;transform:none!important;filter:none!important}
  #editorialGallery .gallery-item .media{clip-path:none!important}
}
