/* ==========================================================
   Austin & Ana — site.css v3 "keepsake invitation"
   A phone-width invitation column on a soft backdrop, in
   dusty french blue · slate · dusty rose · blush · champagne
   admin.html keeps styles.css; this file styles index.html only
   ========================================================== */

:root{
  --ivory:#F8F3EF; --cream:#FCF9F5; --parchment:#F2E7E1;
  --ink:#30374A; --ink-soft:#68708A;
  --sage:#6E93C2; --sage-deep:#4E5F82; --sage-dark:#39445E; /* legacy token names; values are the blues */
  --rose:#C08279; --rose-soft:#E9C4BD; --rose-deep:#9E6058;
  --gold:#A08850; --gold-bright:#C9B075; --gold-deep:#78643A;
  --line:rgba(48,55,74,.14); --line-strong:rgba(48,55,74,.26);
  --serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --script:'Tangerine','Snell Roundhand',cursive;
  --sans:'Jost','Helvetica Neue',Arial,sans-serif;
  --colw:430px; --nav-h:60px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--nav-h)}
body{
  margin:0;color:var(--ink);
  font-family:var(--serif);font-size:18.5px;line-height:1.65;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
  background:
    radial-gradient(90% 70% at 12% 0%,#DCE4F0 0%,rgba(220,228,240,0) 60%),
    radial-gradient(80% 60% at 88% 100%,#F0DFDA 0%,rgba(240,223,218,0) 55%),
    linear-gradient(170deg,#E9EDF4 0%,#EDE7E6 100%);
  background-attachment:fixed;
}
::selection{background:var(--sage);color:var(--cream)}
img{max-width:100%;display:block}
a{color:inherit}

/* ---------- THE KEEPSAKE COLUMN ---------- */
.sheet{
  position:relative;width:100%;max-width:var(--colw);margin:0 auto;
  background:var(--ivory);
  box-shadow:0 0 90px rgba(48,55,74,.25);
}
.container{width:100%;padding:0 24px}
.container--narrow{padding:0 24px}

/* ---------- ENVELOPE ENTRY (full viewport) ---------- */
.is-sealed{overflow:hidden}
.envelope{
  position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(120% 90% at 50% 0%, #68789B 0%, var(--sage-deep) 55%, var(--sage-dark) 100%);
  cursor:pointer;transition:opacity .9s var(--ease),visibility .9s;
}
.envelope.is-open{opacity:0;visibility:hidden;pointer-events:none}
.envelope__scene{text-align:center;padding:24px}
.envelope__paper{
  position:relative;width:min(88vw,430px);aspect-ratio:460/310;margin:0 auto;
  filter:drop-shadow(0 30px 60px rgba(20,26,44,.4));
  transition:transform .5s var(--ease);
}
.envelope:hover .envelope__paper{transform:translateY(-4px)}
.envelope__pocket,.envelope__flap,.envelope__letter{position:absolute;border-radius:6px}
.envelope__pocket{
  inset:0;background:linear-gradient(180deg,#F3ECE4 0%,#E9DFD4 100%);
  clip-path:polygon(0 0,50% 46%,100% 0,100% 100%,0 100%);
  z-index:3;border-radius:0 0 6px 6px;
}
.envelope__flap{
  left:0;right:0;top:0;height:56%;
  background:linear-gradient(180deg,#EEE5DA 0%,#E0D4C5 100%);
  clip-path:polygon(0 0,100% 0,50% 100%);
  transform-origin:top center;z-index:4;
  transition:transform 1s var(--ease) .95s,z-index 0s 1.35s;
  backface-visibility:hidden;
}
.envelope.is-open .envelope__flap,
.envelope.is-opening .envelope__flap{transform:rotateX(180deg);z-index:1}
.envelope__letter{
  left:6%;right:6%;top:8%;bottom:14%;background:var(--cream);z-index:2;
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);
  transition:transform .9s var(--ease) 1.55s;
}
.envelope.is-opening .envelope__letter{transform:translateY(-34%)}
.envelope__letter-script{font-family:var(--script);font-size:min(11vw,50px);color:var(--sage-deep);line-height:1}
.envelope__seal{
  position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);z-index:5;
  width:min(24vw,108px);height:min(24vw,108px);
  background:none;border:none;padding:0;cursor:pointer;
  filter:drop-shadow(0 6px 14px rgba(20,26,44,.4));
  transition:transform .5s var(--ease),opacity .45s;
  animation:sealPulse 2.6s ease-in-out infinite;
}
.envelope__seal:focus-visible{outline:3px solid var(--gold-bright);outline-offset:4px;border-radius:50%}
.envelope.is-opening .envelope__seal{
  transform:translate(-50%,-50%) scale(.15) rotate(18deg);opacity:0;animation:none;
  transition:transform .5s var(--ease) .85s,opacity .45s .85s;
}
@keyframes sealPulse{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.045)}}
.pug-tongue{transform-box:fill-box;transform-origin:top center;transform:scaleY(0)}
.envelope.is-opening .pug-tongue{animation:lick .8s ease-in-out .05s forwards}
@keyframes lick{0%{transform:scaleY(0)}30%{transform:scaleY(1)}50%{transform:scaleY(.72)}70%{transform:scaleY(1.05)}100%{transform:scaleY(0)}}
.envelope__hint{
  font-family:var(--sans);text-transform:uppercase;letter-spacing:.32em;font-size:11.5px;
  color:rgba(250,244,236,.85);margin:34px 0 0;animation:hintFade 2.6s ease-in-out infinite;
}
@keyframes hintFade{0%,100%{opacity:.55}50%{opacity:1}}

/* ---------- SHARED TYPE ---------- */
.section__label{font-family:var(--sans);text-transform:uppercase;letter-spacing:.3em;font-size:11px;color:var(--sage-deep);margin:0 0 10px}
.section__title{font-family:var(--serif);font-weight:500;font-size:min(10.5vw,42px);line-height:1.06;margin:0;letter-spacing:.01em;text-wrap:balance}
.section__head{text-align:center;margin-bottom:38px}
.ornament{display:block;width:170px;height:32px;margin:16px auto 0;color:var(--gold)}
.link{
  font-family:var(--sans);text-transform:uppercase;letter-spacing:.18em;font-size:12px;
  color:var(--sage-deep);text-decoration:none;border-bottom:1px solid var(--gold);padding-bottom:3px;display:inline-block;
  transition:color .25s,border-color .25s;
}
.link:hover{color:var(--ink);border-color:var(--ink)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--sage);outline-offset:3px}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-block;font-family:var(--sans);font-weight:400;text-transform:uppercase;
  letter-spacing:.2em;font-size:12.5px;padding:16px 36px;border:1px solid transparent;border-radius:2px;
  cursor:pointer;text-decoration:none;transition:background .3s,color .3s,border-color .3s,transform .2s;
}
.btn--primary{background:var(--sage);color:var(--cream)}
.btn--primary:hover{background:var(--sage-deep)}
.btn--outline{background:transparent;color:var(--sage-deep);border-color:var(--sage)}
.btn--outline:hover{background:var(--sage);color:var(--cream)}
.btn--hero{background:rgba(252,249,245,.14);border-color:rgba(252,249,245,.65);color:var(--cream);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.btn--hero:hover{background:var(--cream);color:var(--ink);border-color:var(--cream)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.55;cursor:default}

/* ---------- PHOTO PLACEHOLDERS ---------- */
.photo{position:relative;overflow:hidden;background:linear-gradient(140deg,#EDE4DC,#DEE3EA 55%,#CBD5E2);margin:0}
.photo img{width:100%;height:100%;object-fit:cover}
.photo__hint{
  position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  font-family:var(--sans);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--sage-deep);
  text-align:center;padding:16px;
}
.photo--missing img{display:none}
.photo--missing .photo__hint{display:flex}

/* ---------- NAV (slim, hamburger always) ---------- */
.nav{
  position:fixed;top:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:var(--colw);z-index:100;
  transition:background .35s,box-shadow .35s;
}
.nav__inner{display:flex;align-items:center;justify-content:space-between;height:var(--nav-h);padding:0 18px}
.nav__brand{font-family:var(--serif);font-size:21px;font-weight:500;letter-spacing:.16em;text-decoration:none;color:var(--cream);transition:color .35s}
.nav__brand span{color:var(--gold-bright)}
.nav--solid{background:rgba(252,249,245,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 1px 0 var(--line)}
.nav--solid .nav__brand{color:var(--ink)}
.nav--solid .nav__brand span{color:var(--gold)}
.nav__toggle{
  display:flex;flex-direction:column;justify-content:center;gap:5px;
  width:42px;height:42px;background:none;border:none;cursor:pointer;z-index:120;
}
.nav__toggle span{display:block;width:22px;height:2px;background:var(--cream);transition:background .3s,transform .3s,opacity .3s;margin-left:10px}
.nav--solid .nav__toggle span{background:var(--ink)}
body.nav-open .nav__toggle span{background:var(--cream)}
body.nav-open .nav__toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
body.nav-open .nav__toggle span:nth-child(2){opacity:0}
body.nav-open .nav__toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav__links{
  position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;
  background:rgba(57,68,94,.97);transform:translateY(-102%);visibility:hidden;
  transition:transform .5s var(--ease),visibility 0s linear .5s;z-index:110;
}
body.nav-open .nav__links{transform:translateY(0);visibility:visible;transition:transform .5s var(--ease),visibility 0s}
.nav__links a{
  font-family:var(--sans);text-transform:uppercase;letter-spacing:.22em;font-size:15px;
  text-decoration:none;color:var(--cream);opacity:.92;transition:color .25s,opacity .25s;
}
.nav__links a:hover{opacity:1;color:var(--gold-bright)}
.nav__cta{border:1px solid rgba(252,249,245,.55);padding:10px 26px;border-radius:2px}

/* ---------- HERO (the title card) ---------- */
.hero{
  position:relative;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:var(--cream);padding:calc(var(--nav-h) + 26px) 22px 60px;overflow:hidden;
}
.hero__media{position:absolute;inset:0;z-index:0}
.hero__media img{animation:heroDrift 26s var(--ease) infinite alternate}
@keyframes heroDrift{from{transform:scale(1.02) translateY(0)}to{transform:scale(1.1) translateY(-1.6%)}}
.hero__media.photo--missing{background:radial-gradient(130% 100% at 50% 0%, #8299BC 0%, #62759A 48%, #47536F 100%)}
.hero .photo__hint,.hero .photo--missing .photo__hint{display:none}
.hero__veil{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(31,38,58,.5) 0%,rgba(31,38,58,.26) 45%,rgba(31,38,58,.56) 100%)}
.hero__content{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;width:100%}
.hero__eyebrow{font-family:var(--sans);text-transform:uppercase;letter-spacing:.4em;font-size:11.5px;margin:0 0 4px;opacity:.95}
.hero__names{font-weight:400;margin:4px 0 0;line-height:.9}
.hero__name{display:block;font-family:var(--script);font-size:min(19vw,84px);text-shadow:0 2px 30px rgba(10,16,34,.35)}
.hero__amp{display:block;font-family:var(--serif);font-style:italic;font-size:min(6vw,26px);color:var(--gold-bright);margin:4px 0;text-shadow:0 2px 14px rgba(31,38,58,.5)}
.hero__rule{margin:14px 0 2px}
.hero__rule .wheat{display:block;width:150px;height:27px;color:var(--gold-bright);opacity:.95}
.hero__date{font-size:min(6.4vw,26px);letter-spacing:.05em;margin:10px 0 0;font-weight:500}
.hero__place{font-family:var(--sans);text-transform:uppercase;letter-spacing:.28em;font-size:11.5px;margin:7px 0 0;opacity:.92}
.countdown{display:flex;align-items:center;justify-content:center;gap:min(3.4vw,16px);margin:26px 0}
.countdown__unit{display:flex;flex-direction:column;align-items:center;min-width:52px}
.countdown__unit span{font-family:var(--serif);font-size:min(9.5vw,40px);font-weight:500;line-height:1;font-variant-numeric:tabular-nums}
.countdown__unit label{font-family:var(--sans);text-transform:uppercase;letter-spacing:.2em;font-size:9.5px;margin-top:7px;opacity:.9}
.countdown__sep{width:1px;height:34px;background:linear-gradient(180deg,transparent,rgba(252,249,245,.6),transparent)}
.hero__scroll{
  position:absolute;bottom:20px;left:50%;transform:translateX(-50%);z-index:2;
  font-family:var(--sans);text-transform:uppercase;letter-spacing:.26em;font-size:10px;color:var(--cream);
  text-decoration:none;opacity:.85;
}
.hero__scroll::after{content:"";display:block;width:1px;height:30px;background:var(--cream);margin:8px auto 0;animation:scrollPulse 2.2s ease-in-out infinite;transform-origin:top}
@keyframes scrollPulse{0%,100%{transform:scaleY(.4);opacity:.4}50%{transform:scaleY(1);opacity:1}}

/* ---------- FLORAL FRAME (the living border) ---------- */
.bloom{position:absolute;z-index:2;pointer-events:none;color:#C7D4E8}
.bloom--tl{top:calc(var(--nav-h) + 6px);left:6px;width:110px;height:150px}
.bloom--tr{top:calc(var(--nav-h) + 6px);right:6px;width:110px;height:150px;transform:scaleX(-1)}
.bloom--bl{bottom:4px;left:6px;width:120px;height:150px}
.bloom--br{bottom:4px;right:6px;width:120px;height:150px;transform:scaleX(-1)}
.bloom path,.bloom circle{stroke-width:1.3}
.bloom .sprig{transform-box:fill-box;transform-origin:bottom center;animation:sway 7s ease-in-out infinite alternate}
.bloom .sprig--2{animation-duration:8.5s;animation-delay:-2s}
.bloom .sprig--3{animation-duration:6s;animation-delay:-3.4s}
@keyframes sway{from{transform:rotate(-2.2deg)}to{transform:rotate(2.4deg)}}
.bloom .petal-rose{fill:var(--rose-soft);stroke:var(--rose)}
.bloom .petal-blue{fill:#B9CBE6;stroke:#7E97BE}
.bloom .leaf{fill:none;stroke:#9FB2CF}
.bloom .stem{fill:none;stroke:#9FB2CF}
.bloom .bud{fill:var(--gold-bright);stroke:var(--gold)}
/* draw-in on entrance */
.bloom path{stroke-dasharray:320;stroke-dashoffset:320;transition:stroke-dashoffset 2.2s var(--ease) .6s}
.bloom circle{opacity:0;transition:opacity 1.2s var(--ease) 1.6s}
.is-entered .bloom path{stroke-dashoffset:0}
.is-entered .bloom circle{opacity:1}

/* hero entrance choreography */
[data-enter]{opacity:0;transform:translateY(24px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
.is-entered [data-enter]{opacity:1;transform:none}
.is-entered [data-enter]:nth-child(1){transition-delay:.1s}
.is-entered [data-enter]:nth-child(2){transition-delay:.28s}
.is-entered [data-enter]:nth-child(3){transition-delay:.5s}
.is-entered [data-enter]:nth-child(4){transition-delay:.62s}
.is-entered [data-enter]:nth-child(5){transition-delay:.74s}
.is-entered [data-enter]:nth-child(6){transition-delay:.9s}
.is-entered [data-enter]:nth-child(7){transition-delay:1.05s}

/* ---------- SCROLL REVEALS ---------- */
[data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .95s var(--ease),transform .95s var(--ease)}
[data-reveal].in-view{opacity:1;transform:none}

/* ---------- BAND ---------- */
.band{background:var(--cream);text-align:center;padding:64px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.band__script{font-family:var(--script);font-size:min(15vw,64px);line-height:1;color:var(--sage-deep);margin:0}
.band__text{max-width:300px;margin:14px auto 0;color:var(--ink-soft);font-size:16.5px}

/* ---------- SECTIONS ---------- */
.section{padding:64px 0}
.story{background:var(--ivory)}
.day{background:var(--cream)}
.venue{background:var(--ivory)}
.colors{background:var(--cream)}
.gallery{background:var(--ivory)}
.faq{background:var(--cream)}
.ticket-scene{background:var(--ivory)}
.rsvp{background:var(--sage-dark);color:var(--cream)}

/* ---------- STORY collage (stacked, mobile-native) ---------- */
.story__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.story__card{border:1px solid var(--line);border-radius:4px;aspect-ratio:1}
.story__card--tall{grid-row:span 2;aspect-ratio:auto}
.story__card--wide{grid-column:span 2;aspect-ratio:16/9}
.story__note{
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  background:var(--parchment);border-radius:4px;border:1px solid var(--line);padding:16px;
}
.story__script{font-family:var(--script);font-size:min(8.5vw,36px);line-height:1;color:var(--sage-deep);margin:0 0 8px}
.story__note p:last-child{font-size:13.5px;color:var(--ink-soft);margin:0}

/* ---------- TIMELINE ---------- */
.timeline{position:relative;margin:0 auto;padding-left:34px}
.timeline__rail{position:absolute;left:5px;top:8px;bottom:8px;width:2px;background:var(--line)}
.timeline__rail-fill{position:absolute;left:0;top:0;width:100%;height:0%;background:linear-gradient(180deg,var(--gold),var(--sage));transition:height .25s linear}
.timeline__item{position:relative;padding:0 0 34px}
.timeline__item:last-child{padding-bottom:0}
.timeline__dot{
  position:absolute;left:-28px;top:7px;width:11px;height:11px;border-radius:50%;
  background:var(--cream);border:2px solid var(--sage);box-shadow:0 0 0 4px var(--cream);
}
.timeline__time{font-family:var(--sans);text-transform:uppercase;letter-spacing:.2em;font-size:10.5px;color:var(--gold-deep);margin:0 0 3px}
.timeline__name{font-family:var(--serif);font-weight:500;font-size:23px;margin:0 0 5px}
.timeline__desc{margin:0;color:var(--ink-soft);font-size:16px}
.day__note{text-align:center;font-family:var(--sans);font-size:11.5px;letter-spacing:.08em;color:var(--ink-soft);margin:36px 0 0}

/* ---------- VENUE ---------- */
.venue__art{margin:0 0 30px;padding:0}
.venue__art img{width:100%;mix-blend-mode:multiply;filter:saturate(1.04)}

.venue__grid{display:flex;flex-direction:column;gap:22px}
.venue__info{display:flex;flex-direction:column;gap:12px}
.venue__script{font-family:var(--script);font-size:min(10vw,42px);line-height:1;color:var(--sage-deep);margin:0}
.venue__info>p{margin:0;color:#4A5066;font-size:17px}
.venue__info address{font-style:normal;font-size:17px;border-left:2px solid var(--gold);padding-left:14px;line-height:1.6}
.venue__points{display:flex;flex-direction:column;gap:10px;margin-top:2px}
.venue__points div{display:flex;flex-direction:column;border-top:1px solid var(--line);padding-top:10px}
.venue__points strong{font-family:var(--sans);text-transform:uppercase;letter-spacing:.16em;font-size:10.5px;color:var(--sage-deep);font-weight:500;margin-bottom:2px}
.venue__points span{font-size:15.5px;color:var(--ink-soft)}
.venue__info .link{margin-top:8px;align-self:flex-start}
.venue__map{border:1px solid var(--line);border-radius:4px;overflow:hidden;filter:saturate(.82)}
.venue__map iframe{width:100%;height:300px;border:0;display:block}

/* ---------- COLORS OF THE DAY ---------- */
.colors__lead{text-align:center;color:var(--ink-soft);font-size:16.5px;max-width:300px;margin:0 auto 26px}
.swatches{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.swatch{display:flex;flex-direction:column;align-items:center;gap:8px}
.swatch i{
  display:block;width:52px;height:52px;border-radius:50%;
  border:3px solid var(--cream);box-shadow:0 4px 14px rgba(48,55,74,.22);
}
.swatch span{font-family:var(--sans);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft)}
.colors__note{text-align:center;font-family:var(--sans);font-size:11.5px;letter-spacing:.06em;color:var(--ink-soft);margin:26px 0 0}

/* ---------- GALLERY ---------- */
.gallery__grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gallery__grid .photo{aspect-ratio:1;border:1px solid var(--line);border-radius:4px}
.gallery__grid .photo img{transition:transform .7s var(--ease)}
.gallery__grid .photo:hover img{transform:scale(1.05)}
.gallery__grid .photo:nth-child(1),.gallery__grid .photo:nth-child(6){grid-column:span 2;aspect-ratio:16/10}

/* ---------- FAQ ---------- */
.faq__list{border-top:1px solid var(--line-strong)}
.faq__item{border-bottom:1px solid var(--line-strong);padding:2px 0}
.faq__item summary{cursor:pointer;list-style:none;padding:18px 34px 18px 2px;font-size:19px;position:relative;font-weight:500}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{
  content:"+";position:absolute;right:6px;top:50%;transform:translateY(-50%);
  font-family:var(--sans);color:var(--gold-deep);font-size:24px;font-weight:300;transition:transform .3s var(--ease);
}
.faq__item[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.faq__item p{margin:0 0 18px;padding:0 2px;color:var(--ink-soft);font-size:16px}

/* ---------- BOARDING PASS ---------- */
.ticket{
  background:var(--cream);border:1px solid var(--line-strong);border-radius:10px;overflow:hidden;
  box-shadow:0 18px 44px rgba(48,55,74,.16);
  font-family:var(--sans);
}
.ticket__head{
  display:flex;justify-content:space-between;align-items:center;
  background:var(--sage-dark);color:var(--cream);padding:12px 18px;
}
.ticket__head b{font-family:var(--sans);letter-spacing:.3em;font-size:11px;font-weight:500}
.ticket__head span{font-family:var(--script);font-size:26px;line-height:1;color:var(--gold-bright)}
.ticket__body{padding:18px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px 10px}
.ticket__cell label{display:block;font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:3px}
.ticket__cell b{font-family:var(--serif);font-size:19px;font-weight:500;letter-spacing:.02em}
.ticket__cell--wide{grid-column:span 3}
.ticket__cell--wide b{font-size:22px}
.ticket__tear{position:relative;border-top:2px dashed var(--line-strong);margin:0 12px}
.ticket__tear::before,.ticket__tear::after{
  content:"";position:absolute;top:-9px;width:18px;height:18px;border-radius:50%;
  background:var(--ivory);border:1px solid var(--line-strong);
}
.ticket__tear::before{left:-22px}
.ticket__tear::after{right:-22px}
.ticket__stub{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;gap:14px}
.ticket__code{
  flex:1;height:34px;
  background:repeating-linear-gradient(90deg,var(--ink) 0 2px,transparent 2px 5px,var(--ink) 5px 6px,transparent 6px 10px,var(--ink) 10px 13px,transparent 13px 15px);
  opacity:.82;border-radius:2px;
}
.ticket__stub span{font-size:10.5px;letter-spacing:.18em;color:var(--ink-soft);white-space:nowrap}
.ticket-scene .day__note{margin-top:22px}

/* ---------- RSVP (dark stage) ---------- */
.rsvp .section__label{color:var(--gold-bright)}
.rsvp .ornament{color:var(--gold-bright)}
.rsvp__lead{margin:18px auto 0;color:rgba(252,249,245,.85);font-size:16.5px;max-width:320px}
.rsvp__card{
  margin:0 auto;background:var(--cream);color:var(--ink);
  border-radius:6px;padding:26px 20px;
  box-shadow:0 26px 70px rgba(15,21,40,.4);
}
.field{text-align:left;margin-bottom:20px}
.field__label{display:block;font-family:var(--sans);text-transform:uppercase;letter-spacing:.18em;font-size:10.5px;color:var(--sage-deep);margin-bottom:8px}
.field input,.field select,.field textarea{
  width:100%;font-family:var(--serif);font-size:18px;color:var(--ink);
  background:var(--ivory);border:1px solid var(--line);border-radius:3px;padding:13px 14px;transition:border-color .25s;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--sage)}
.field textarea{resize:vertical;min-height:84px}
.field__hint{font-family:var(--sans);font-size:11.5px;letter-spacing:.04em;color:var(--ink-soft);margin:6px 0 0;text-transform:none}
.rsvp__msg{font-family:var(--sans);font-size:13.5px;margin:14px 0 0;min-height:18px}
.rsvp__msg--err{color:#A4533F}
.rsvp__msg--ok{color:var(--sage-deep)}
.rsvp__found{font-family:var(--serif);font-size:24px;margin:0 0 4px;font-weight:500}
.rsvp__sub{font-family:var(--sans);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--sage-deep);margin:0 0 22px}
.guest-row{border-top:1px solid var(--line);padding:18px 0}
.guest-row__name{font-size:21px;margin:0 0 10px;font-weight:500}
.attend{display:flex;gap:8px;flex-wrap:wrap}
.attend button{
  flex:1;min-width:120px;font-family:var(--sans);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  padding:12px 10px;background:var(--ivory);border:1px solid var(--line);border-radius:3px;cursor:pointer;
  color:var(--ink-soft);transition:all .2s;
}
.attend button:hover{border-color:var(--sage);color:var(--ink)}
.attend button.is-yes{background:var(--sage);border-color:var(--sage);color:var(--cream)}
.attend button.is-no{background:var(--rose);border-color:var(--rose);color:var(--cream)}
.guest-meal{margin-top:12px}
.rsvp__actions{display:flex;gap:14px;margin-top:24px;align-items:center;flex-wrap:wrap}
.rsvp__back{background:none;border:none;cursor:pointer;font-family:var(--sans);text-transform:uppercase;letter-spacing:.16em;font-size:11.5px;color:var(--ink-soft)}
.rsvp__back:hover{color:var(--ink)}
.rsvp__done{text-align:center}
.rsvp__done h3{font-family:var(--script);font-size:56px;line-height:1;margin:0 0 12px;color:var(--sage-deep);font-weight:400}
.rsvp__done p{color:#4A5066}
.party-choice{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.party-choice button{font-family:var(--serif);font-size:18px;text-align:left;padding:14px 16px;background:var(--ivory);border:1px solid var(--line);border-radius:3px;cursor:pointer;transition:border-color .2s}
.party-choice button:hover{border-color:var(--sage)}

/* ---------- FOOTER ---------- */
.footer{background:var(--sage-dark);color:var(--cream);text-align:center;padding:56px 20px 64px}
.ornament--footer{color:var(--gold-bright);margin:0 auto 4px}
.footer__names{font-family:var(--script);font-size:min(14vw,58px);line-height:.95;margin:0}
.footer__names span{color:var(--gold-bright)}
.footer__date{font-family:var(--sans);letter-spacing:.22em;text-transform:uppercase;font-size:10.5px;margin:12px 0 0;opacity:.9}
.footer__thanks{font-style:italic;font-size:18px;margin:18px 0 0;opacity:.95}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-reveal],[data-enter]{opacity:1 !important;transform:none !important;transition:none !important}
  .hero__media img{animation:none}
  .envelope,.envelope__flap,.envelope__letter,.envelope__seal{transition:none;animation:none}
  .pug-tongue{animation:none !important}
  .bloom .sprig{animation:none}
  .bloom path{stroke-dashoffset:0;transition:none}
  .bloom circle{opacity:1;transition:none}
  .hero__scroll::after{animation:none}
}

/* ==========================================================
   DESKTOP — the keepsake sheet widens into a full invitation
   (appended last so these rules win the cascade at >=861px)
   ========================================================== */
@media (min-width:861px){
  :root{--colw:960px;--nav-h:72px}
  body{font-size:19.5px}
  .container{max-width:880px;margin:0 auto;padding:0 40px}
  .container--narrow{max-width:680px;margin:0 auto}

  /* nav: inline links, no hamburger */
  .nav__inner{padding:0 30px}
  .nav__brand{font-size:24px}
  .nav__toggle{display:none}
  .nav__links{
    position:static;inset:auto;width:auto;height:auto;z-index:auto;
    flex-direction:row;gap:26px;background:transparent;
    transform:none;visibility:visible;transition:none;
  }
  .nav__links a{font-size:12.5px;letter-spacing:.16em}
  .nav--solid .nav__links a{color:var(--ink);opacity:.85}
  .nav--solid .nav__links a:hover{color:var(--sage-deep);opacity:1}
  .nav--solid .nav__cta{border-color:var(--sage)}

  /* hero scales up */
  .hero{padding:calc(var(--nav-h) + 30px) 40px 70px}
  .hero__eyebrow{font-size:13px;letter-spacing:.42em}
  .hero__name{font-size:min(11vw,148px)}
  .hero__amp{font-size:34px;margin:6px 0}
  .hero__rule .wheat{width:180px;height:32px}
  .hero__date{font-size:29px}
  .hero__place{font-size:13px}
  .countdown{gap:30px;margin:36px 0}
  .countdown__unit{min-width:70px}
  .countdown__unit span{font-size:50px}
  .countdown__unit label{font-size:11px}
  .countdown__sep{height:42px}
  .bloom--tl{top:calc(var(--nav-h) + 10px);left:14px;width:150px;height:205px}
  .bloom--tr{top:calc(var(--nav-h) + 10px);right:14px;width:150px;height:205px}
  .bloom--bl{bottom:10px;left:14px;width:165px;height:205px}
  .bloom--br{bottom:10px;right:14px;width:165px;height:205px}

  /* sections breathe */
  .section{padding:110px 0}
  .section__head{margin-bottom:56px}
  .section__title{font-size:56px}
  .section__label{font-size:12px}
  .ornament{width:200px}
  .band{padding:96px 40px}
  .band__script{font-size:78px}
  .band__text{max-width:520px;font-size:19px}

  /* story collage: three columns */
  .story__grid{grid-template-columns:repeat(3,1fr);grid-auto-rows:225px;gap:16px}
  .story__card{aspect-ratio:auto}
  .story__card--tall{grid-row:span 2}
  .story__card--wide{grid-column:span 2;aspect-ratio:auto}
  .story__script{font-size:40px}
  .story__note p:last-child{font-size:15.5px}

  /* timeline centered, roomier */
  .timeline{max-width:600px;margin:0 auto;padding-left:46px}
  .timeline__rail{left:9px}
  .timeline__dot{left:-33px}
  .timeline__item{padding-bottom:48px}
  .timeline__name{font-size:30px}
  .timeline__desc{font-size:17.5px;max-width:52ch}
  .timeline__time{font-size:11.5px}

  .venue__art{max-width:760px;margin:0 auto 44px}
  /* venue: side by side */
  .venue__grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:stretch}
  .venue__script{font-size:46px}
  .venue__info>p{font-size:18px}
  .venue__map{min-height:440px}
  .venue__map iframe{height:100%;min-height:440px}

  /* swatches larger */
  .swatches{gap:22px}
  .swatch i{width:68px;height:68px}
  .swatch span{font-size:10.5px}
  .colors__lead{max-width:420px;font-size:18px}

  /* gallery: three columns */
  .gallery__grid{grid-template-columns:repeat(3,1fr);gap:14px}
  .gallery__grid .photo:nth-child(1),.gallery__grid .photo:nth-child(6){grid-column:span 2;aspect-ratio:auto}

  /* faq */
  .faq__item summary{font-size:22px;padding:22px 40px 22px 4px}
  .faq__item p{font-size:17.5px}

  /* ticket + rsvp centered cards */
  .ticket{max-width:560px;margin:0 auto}
  .ticket__body{padding:22px 24px;gap:16px 12px}
  .ticket__cell b{font-size:21px}
  .ticket__cell--wide b{font-size:25px}
  .ticket-scene .day__note{margin-top:26px}
  .rsvp__lead{max-width:480px;font-size:18px}
  .rsvp__card{max-width:580px;padding:46px 48px}
  .rsvp__done h3{font-size:64px}

  .footer{padding:76px 24px 84px}
  .footer__names{font-size:min(9vw,74px)}
  .footer__thanks{font-size:20px}

  /* envelope slightly grander on big screens */
  .envelope__paper{width:min(80vw,520px)}
  .envelope__letter-script{font-size:56px}
}

/* ==========================================================
   WATERCOLOR SKIN — pigment washes, paper grain, soft daubs
   (final layer; overrides earlier flat backgrounds)
   ========================================================== */

/* paper grain over everything, whisper-quiet */
body::after{
  content:"";position:fixed;inset:0;z-index:2;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* the desk: loose pigment blooms instead of clean gradients */
body{
  background:
    radial-gradient(42% 34% at 14% 8%,rgba(110,147,194,.34),rgba(110,147,194,0) 70%),
    radial-gradient(50% 40% at 88% 16%,rgba(233,196,189,.4),rgba(233,196,189,0) 72%),
    radial-gradient(46% 38% at 12% 86%,rgba(229,200,123,.22),rgba(229,200,123,0) 70%),
    radial-gradient(52% 44% at 86% 88%,rgba(110,147,194,.3),rgba(110,147,194,0) 72%),
    linear-gradient(168deg,#F1F2F1 0%,#EFEAE6 100%);
  background-attachment:fixed;
}

/* envelope stage gets evening washes */
.envelope{
  background:
    radial-gradient(48% 38% at 22% 24%,rgba(233,196,189,.16),transparent 70%),
    radial-gradient(54% 42% at 80% 74%,rgba(229,200,123,.12),transparent 72%),
    radial-gradient(120% 90% at 50% 0%, #68789B 0%, var(--sage-deep) 55%, var(--sage-dark) 100%);
}

/* hero: pigment blooming through the night blue */
.hero__veil{
  background:
    radial-gradient(46% 36% at 20% 22%,rgba(233,196,189,.15),transparent 70%),
    radial-gradient(52% 40% at 82% 70%,rgba(110,147,194,.26),transparent 72%),
    linear-gradient(180deg,rgba(31,38,58,.5) 0%,rgba(31,38,58,.26) 45%,rgba(31,38,58,.56) 100%);
}

/* florals become translucent watercolor petals */
.bloom path,.bloom circle{stroke-width:1.1}
.bloom .petal-rose{fill:rgba(233,196,189,.78);stroke:rgba(192,130,121,.55)}
.bloom .petal-blue{fill:rgba(185,203,230,.78);stroke:rgba(126,151,190,.5)}
.bloom .bud{fill:rgba(229,200,123,.82);stroke:rgba(183,154,91,.5)}
.bloom .stem,.bloom .leaf{stroke:rgba(176,192,216,.7)}

/* every light section carries two soft washes */
.story{background:
  radial-gradient(70% 42% at 86% 6%,rgba(220,228,240,.55),transparent 70%),
  radial-gradient(62% 46% at 6% 94%,rgba(240,223,218,.5),transparent 72%),var(--ivory)}
.day{background:
  radial-gradient(64% 42% at 8% 8%,rgba(240,223,218,.55),transparent 70%),
  radial-gradient(70% 46% at 94% 92%,rgba(220,228,240,.55),transparent 74%),var(--cream)}
.venue{background:
  radial-gradient(66% 40% at 90% 10%,rgba(229,200,123,.2),transparent 70%),
  radial-gradient(64% 44% at 8% 90%,rgba(220,228,240,.55),transparent 72%),var(--ivory)}
.colors{background:
  radial-gradient(60% 40% at 12% 10%,rgba(220,228,240,.5),transparent 70%),
  radial-gradient(66% 44% at 90% 88%,rgba(240,223,218,.55),transparent 72%),var(--cream)}
.gallery{background:
  radial-gradient(64% 42% at 88% 8%,rgba(240,223,218,.5),transparent 70%),
  radial-gradient(62% 44% at 10% 92%,rgba(229,200,123,.18),transparent 70%),var(--ivory)}
.faq{background:
  radial-gradient(62% 40% at 10% 8%,rgba(220,228,240,.55),transparent 70%),
  radial-gradient(64% 44% at 92% 90%,rgba(240,223,218,.5),transparent 72%),var(--cream)}
.ticket-scene{background:
  radial-gradient(64% 42% at 88% 10%,rgba(220,228,240,.5),transparent 70%),
  radial-gradient(62% 44% at 10% 92%,rgba(240,223,218,.55),transparent 72%),var(--ivory)}
.band{background:
  radial-gradient(70% 60% at 50% 0%,rgba(220,228,240,.45),transparent 75%),
  radial-gradient(60% 50% at 50% 100%,rgba(240,223,218,.5),transparent 75%),var(--cream)}

/* a loose daub of color breathes behind each section title */
.section{isolation:isolate}
.section__head{position:relative}
.section__head::before{
  content:"";position:absolute;left:50%;top:-30px;z-index:-1;
  width:min(330px,88%);height:130px;
  transform:translateX(-50%) rotate(-2deg);
  background:radial-gradient(60% 55% at 50% 50%,var(--wash,rgba(110,147,194,.16)),transparent 74%);
  border-radius:54% 46% 58% 42%/50% 62% 38% 50%;
}
.story{--wash:rgba(110,147,194,.2)}
.day{--wash:rgba(192,130,121,.18)}
.venue{--wash:rgba(110,147,194,.18)}
.colors{--wash:rgba(229,200,123,.26)}
.gallery{--wash:rgba(192,130,121,.16)}
.faq{--wash:rgba(110,147,194,.16)}
.ticket-scene{--wash:rgba(229,200,123,.2)}
.rsvp{--wash:rgba(110,147,194,.3)}

/* swatches become paint daubs */
.swatch i{
  border:none;border-radius:57% 43% 52% 48%/46% 58% 42% 54%;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),0 6px 16px rgba(48,55,74,.2);
  transform:rotate(-3deg);
}
.swatch:nth-child(2n) i{transform:rotate(3deg);border-radius:46% 54% 44% 56%/58% 44% 56% 42%}

/* timeline dots as little daubs */
.timeline__dot{border-radius:60% 40% 55% 45%/45% 60% 40% 55%;transform:rotate(8deg)}

/* parchment note takes an inner wash */
.story__note{background:radial-gradient(85% 75% at 28% 22%,#F8EAE4,var(--parchment))}

/* photos and cards soften at the corners */
.photo,.story__card,.venue__map{border-radius:6px}

/* dark stage: night water */
.rsvp{background:
  radial-gradient(60% 42% at 16% 10%,rgba(110,147,194,.38),transparent 70%),
  radial-gradient(56% 40% at 86% 88%,rgba(192,130,121,.24),transparent 70%),
  var(--sage-dark)}
.footer{background:
  radial-gradient(64% 50% at 82% 12%,rgba(110,147,194,.34),transparent 72%),
  radial-gradient(58% 46% at 12% 90%,rgba(192,130,121,.2),transparent 70%),
  var(--sage-dark)}

/* venue: pure white paper so the watercolor illustration blends seamlessly */
.venue{background:#FFFFFF}
.venue__art{margin-top:-8px}
.venue__art img{mix-blend-mode:normal}

/* ==========================================================
   HERO REDUX — living watercolor: drifting pigment blooms
   ========================================================== */
.hero__media.photo--missing{background:
  radial-gradient(120% 90% at 50% -10%,#5E7096 0%,#48557A 46%,#333D5C 100%)}
.hero__wash{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}
.wash-blob{
  position:absolute;display:block;
  filter:blur(clamp(34px,7vw,72px));
  will-change:transform;
}
.wash-blob--blue{
  width:75%;aspect-ratio:1;left:-18%;top:-12%;
  background:radial-gradient(closest-side,rgba(139,172,214,.75),rgba(139,172,214,0) 72%);
  mix-blend-mode:screen;border-radius:55% 45% 60% 40%/50% 58% 42% 50%;
  animation:blobA 26s ease-in-out infinite alternate;
}
.wash-blob--rose{
  width:66%;aspect-ratio:1;right:-20%;top:26%;
  background:radial-gradient(closest-side,rgba(233,178,172,.6),rgba(233,178,172,0) 72%);
  mix-blend-mode:screen;border-radius:48% 52% 42% 58%/56% 44% 60% 40%;
  animation:blobB 34s ease-in-out infinite alternate;
}
.wash-blob--gold{
  width:52%;aspect-ratio:1;left:-8%;bottom:-14%;
  background:radial-gradient(closest-side,rgba(229,200,123,.42),rgba(229,200,123,0) 70%);
  mix-blend-mode:screen;border-radius:60% 40% 55% 45%/45% 60% 40% 55%;
  animation:blobC 22s ease-in-out infinite alternate;
}
.wash-blob--deep{
  width:85%;aspect-ratio:1;right:-26%;bottom:-30%;
  background:radial-gradient(closest-side,rgba(24,31,54,.9),rgba(24,31,54,0) 74%);
  mix-blend-mode:multiply;border-radius:52% 48% 58% 42%/46% 56% 44% 54%;
  animation:blobD 40s ease-in-out infinite alternate;
}
@keyframes blobA{
  0%{transform:translate(0,0) scale(1) rotate(0deg)}
  50%{transform:translate(9%,7%) scale(1.14) rotate(14deg)}
  100%{transform:translate(-4%,12%) scale(.94) rotate(-10deg)}
}
@keyframes blobB{
  0%{transform:translate(0,0) scale(1) rotate(0deg)}
  50%{transform:translate(-11%,-8%) scale(1.18) rotate(-16deg)}
  100%{transform:translate(5%,-14%) scale(.9) rotate(12deg)}
}
@keyframes blobC{
  0%{transform:translate(0,0) scale(1)}
  50%{transform:translate(12%,-9%) scale(1.22)}
  100%{transform:translate(-6%,4%) scale(.92)}
}
@keyframes blobD{
  0%{transform:translate(0,0) scale(1) rotate(0deg)}
  100%{transform:translate(-10%,-12%) scale(1.16) rotate(9deg)}
}
/* veil relaxes a touch so the color breathes; text still protected */
.hero__veil{
  z-index:1;
  background:
    linear-gradient(180deg,rgba(31,38,58,.42) 0%,rgba(31,38,58,.18) 42%,rgba(31,38,58,.5) 100%);
}
/* florals sit above the washes */
.bloom{z-index:2}
@media (prefers-reduced-motion:reduce){
  .wash-blob{animation:none !important}
}

/* story: watercolor of the two of us, painted onto the page */
.story__art{margin:18px 0 0;padding:0}
.story__art img{width:100%;mix-blend-mode:multiply;filter:saturate(1.03)}
@media (min-width:861px){
  .story__art{max-width:720px;margin:34px auto 0}
}

/* ==========================================================
   HERO: THE PAINTED SKY - light, editorial, art-led
   (final override layer)
   ========================================================== */
.hero--painted{
  background:
    radial-gradient(70% 40% at 50% 100%,rgba(240,223,218,.5),transparent 75%),
    var(--cream);
  color:var(--ink);
  justify-content:flex-start;
  padding:0 0 52px;
}
.hero--painted .hero__media,.hero--painted .hero__veil{display:none}
.hero__art{
  position:relative;z-index:1;width:100%;margin:0;
  height:44svh;min-height:280px;
}
.hero__art img{
  width:100%;height:100%;object-fit:cover;object-position:50% 72%;
  mix-blend-mode:multiply;filter:saturate(1.06);
  -webkit-mask-image:linear-gradient(180deg,#000 76%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 76%,transparent 100%);
}
.hero--painted .hero__content{position:relative;z-index:2;margin-top:-1svh;padding:0 22px}
.hero--painted .hero__eyebrow{color:var(--sage-deep);opacity:1}
.hero--painted .hero__name{color:var(--ink);text-shadow:0 2px 26px rgba(252,249,245,.9);font-size:min(17.5vw,78px)}
.hero--painted .hero__amp{color:var(--gold-deep);text-shadow:none}
.hero--painted .hero__rule .wheat{color:var(--gold)}
.hero--painted .hero__date,.hero--painted .hero__place{color:var(--ink)}
.hero--painted .hero__place{color:var(--ink-soft)}
.hero--painted .countdown{color:var(--ink);margin:24px 0 26px}
.hero--painted .countdown__unit label{color:var(--ink-soft);opacity:1}
.hero--painted .countdown__sep{background:linear-gradient(180deg,transparent,rgba(48,55,74,.45),transparent)}
.hero--painted .hero__scroll{color:var(--ink-soft)}
.hero--painted .hero__scroll::after{background:var(--ink-soft)}
/* washes drift on the paper, behind everything */
.hero--painted .hero__wash{z-index:0}
.wash-blob--mint{
  width:70%;aspect-ratio:1;left:-16%;top:6%;
  background:radial-gradient(closest-side,rgba(158,208,196,.5),rgba(158,208,196,0) 72%);
  mix-blend-mode:multiply;border-radius:55% 45% 60% 40%/50% 58% 42% 50%;
  animation:blobA 28s ease-in-out infinite alternate;
}
.hero--painted .wash-blob--rose{
  width:58%;right:-14%;top:34%;
  background:radial-gradient(closest-side,rgba(233,178,172,.42),rgba(233,178,172,0) 72%);
  mix-blend-mode:multiply;animation-duration:36s;
}
.hero--painted .wash-blob--gold{
  width:52%;left:-6%;bottom:-10%;
  background:radial-gradient(closest-side,rgba(229,200,123,.34),rgba(229,200,123,0) 70%);
  mix-blend-mode:multiply;animation-duration:24s;
}
/* florals sit on the paper zone */
.hero--painted .bloom{z-index:2;color:#B9C6DC}
.hero--painted .bloom--bl{bottom:6px;left:6px}
.hero--painted .bloom--br{bottom:6px;right:6px}
/* nav over the light sky: ink from the start */
.nav__brand{color:var(--ink)}
.nav__brand span{color:var(--gold)}
.nav__links a{color:var(--cream)}
.nav__toggle span{background:var(--ink)}
@media (min-width:861px){
  .nav__links a{color:var(--ink);opacity:.85}
  .nav__links a:hover{color:var(--sage-deep);opacity:1}
  .nav__cta{border-color:var(--sage)}
  .hero__art{height:54svh;min-height:420px}
  .hero--painted .hero__content{margin-top:-2svh}
  .hero--painted .hero__name{font-size:min(10.5vw,124px)}
}
@media (prefers-reduced-motion:reduce){
  .hero--painted .wash-blob{animation:none !important}
}

/* story: the painting stands alone */
.story__art{margin:0}
.story__cap{font-family:var(--script);font-size:min(9vw,40px);color:var(--sage-deep);text-align:center;margin-top:10px;line-height:1}

/* ==========================================================
   HERO v3 — text above, painting anchored at the bottom;
   names on a single line. Story art full sheet width.
   ========================================================== */
.hero--painted{display:flex;flex-direction:column;justify-content:flex-start;padding:0}
.hero--painted .hero__content{
  order:1;margin:calc(var(--nav-h) + 22px) 0 0;padding:0 22px;
}
.hero--painted .hero__names{display:flex;flex-direction:row;align-items:baseline;justify-content:center;gap:.16em;line-height:1;margin-top:8px}
.hero--painted .hero__name{display:inline;font-size:min(15vw,66px)}
.hero--painted .hero__amp{display:inline;font-size:min(7vw,32px);margin:0}
.hero--painted .countdown{margin:22px 0 24px}
.hero--painted .hero__art{
  order:2;flex:1 1 auto;width:100%;height:auto;min-height:30svh;
  margin:16px 0 0;
}
.hero--painted .hero__art img{
  object-position:50% 62%;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 24%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 24%);
}
.hero--painted .bloom{display:none}
.hero--painted .hero__scroll{color:var(--cream);text-shadow:0 1px 10px rgba(31,38,58,.6)}
.hero--painted .hero__scroll::after{background:var(--cream)}

/* story painting: full sheet width, centered by construction */
.story__art{width:100%;margin:8px 0 0}
.story__cap{padding:0 20px}
@media (min-width:861px){
  .hero--painted .hero__name{font-size:min(8.5vw,104px)}
  .hero--painted .hero__amp{font-size:min(3.4vw,44px)}
  .hero--painted .hero__art{min-height:34svh}
  .story__art{max-width:none;margin:16px 0 0}
}

/* ==========================================================
   TIMELINE MARKERS - little pug faces, centered on the rail
   (rail center mobile = 6px from timeline edge; item is inset
   34px, so marker center sits at -28px; desktop 10px/46px = -36)
   ========================================================== */
.timeline__dot{
  left:-41px;top:0;width:26px;height:26px;
  border-radius:50%;transform:none;
  background:var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 10 Q6 4 11 3 Q15 5 15.5 8 Z' fill='%237D6329'/%3E%3Cpath d='M24 10 Q26 4 21 3 Q17 5 16.5 8 Z' fill='%237D6329'/%3E%3Ccircle cx='16' cy='17' r='11' fill='%23C9AF74' stroke='%236E5626' stroke-width='1.6'/%3E%3Ccircle cx='11.8' cy='14.8' r='2' fill='%234E3D17'/%3E%3Ccircle cx='20.2' cy='14.8' r='2' fill='%234E3D17'/%3E%3Ccircle cx='12.5' cy='14.1' r='.6' fill='%23F3EAD3'/%3E%3Ccircle cx='20.9' cy='14.1' r='.6' fill='%23F3EAD3'/%3E%3Cellipse cx='16' cy='21' rx='5.2' ry='4' fill='%23A98B47'/%3E%3Cpath d='M14 19.2 Q16 18 18 19.2 Q17.6 21.4 16 21.5 Q14.4 21.4 14 19.2 Z' fill='%234E3D17'/%3E%3Cpath d='M16 21.5 L16 23.2 M13.6 24.4 Q16 26 18.4 24.4' stroke='%234E3D17' stroke-width='1.1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/82% no-repeat;
  border:1.5px solid rgba(183,154,91,.65);
  box-shadow:0 0 0 4px var(--cream);
}
@media (min-width:861px){
  .timeline__dot{left:-49px;width:28px;height:28px}
}

/* timeline markers: the flat pug face (per Austin's reference) */
.timeline__dot{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle cx='50' cy='50' r='45'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='47' fill='white' stroke='%23111111' stroke-width='5'/%3E%3Cg clip-path='url(%23c)'%3E%3Cellipse cx='50' cy='54' rx='41' ry='40' fill='%23EFE7D2'/%3E%3Cpath d='M15 34 Q9 13 27 11 Q40 13 41 26 Q31 42 15 34 Z' fill='%23563F28' stroke='%23241A10' stroke-width='2'/%3E%3Cpath d='M85 34 Q91 13 73 11 Q60 13 59 26 Q69 42 85 34 Z' fill='%23563F28' stroke='%23241A10' stroke-width='2'/%3E%3Cpath d='M38 20 Q50 13 62 20' fill='none' stroke='%23D9C9A8' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M40 28 Q50 22 60 28' fill='none' stroke='%23D9C9A8' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M43 40 Q50 36 57 40 Q60 52 58 61 Q50 56 42 61 Q40 52 43 40 Z' fill='%236B4F33'/%3E%3Ccircle cx='32' cy='48' r='9.5' fill='%231D1A16'/%3E%3Ccircle cx='68' cy='48' r='9.5' fill='%231D1A16'/%3E%3Ccircle cx='35.5' cy='45' r='2.6' fill='white'/%3E%3Ccircle cx='71.5' cy='45' r='2.6' fill='white'/%3E%3Cpath d='M31 61 Q50 51 69 61 Q76 73 66 85 Q50 93 34 85 Q24 73 31 61 Z' fill='%232B2723'/%3E%3Cpath d='M42 61 Q50 55 58 61 Q58 69 50 71 Q42 69 42 61 Z' fill='%230D0B09'/%3E%3Cpath d='M50 71 L50 78 M37 78 Q50 87 63 78' fill='none' stroke='%230D0B09' stroke-width='2.2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
  border:none;box-shadow:0 0 0 4px var(--cream);
  width:30px;height:30px;left:-43px;top:-2px;
}
@media (min-width:861px){
  .timeline__dot{width:32px;height:32px;left:-51px}
}

/* hero CTA: rounded, transparent, gold outline + gold text */
.hero--painted .btn--primary{
  background:transparent;
  color:var(--gold-deep);
  border:1.5px solid var(--gold);
  border-radius:999px;
  padding:15px 40px;
}
.hero--painted .btn--primary:hover{
  background:var(--gold);
  color:var(--cream);
  border-color:var(--gold);
}

/* ==========================================================
   GOLD PUG ICON - ornaments and timeline markers (raster art)
   ========================================================== */
img.ornament--pug{width:auto;height:48px;display:block;margin:16px auto 0}
.footer img.ornament--pug{margin:0 auto 8px}
img.wheat--pug{width:auto;height:44px;display:block;margin:0 auto}
.hero--painted .hero__rule{margin:12px 0 0}
.timeline__dot{
  background:var(--cream) url("../assets/photos/pug-icon.png?v=27") center/76% no-repeat;
  border:1px solid rgba(183,154,91,.5);border-radius:50%;
  box-shadow:0 0 0 4px var(--cream);
  width:32px;height:32px;left:-44px;top:-2px;
}
@media (min-width:861px){
  .timeline__dot{width:34px;height:34px;left:-53px}
}

/* hero pug: win the sizing cascade over legacy .wheat rules */
.hero--painted .hero__rule .wheat,
.hero--painted .hero__rule img.wheat--pug{width:auto;height:48px;opacity:1}

/* ==========================================================
   ORNAMENT SET: line - dot - pug - dot - line
   ========================================================== */
.ornament--set{
  display:flex;align-items:center;justify-content:center;gap:13px;
  width:min(250px,72%);height:auto;margin:16px auto 0;color:var(--gold);
}
.ornament--set i{flex:1;height:1px;background:currentColor;position:relative;opacity:.85}
.ornament--set i::after{
  content:"";position:absolute;top:-1.6px;width:4px;height:4px;border-radius:50%;background:currentColor;
}
.ornament--set i:first-child::after{right:-1px}
.ornament--set i:last-child::after{left:-1px}
.ornament--set .ornament__pug{height:42px;width:auto;display:block}
.rsvp .ornament--set{color:var(--gold-bright)}
.footer .ornament--set{color:var(--gold-bright);margin:0 auto 8px}
.ornament--set-hero{width:min(320px,82%);margin:12px auto 0}
.ornament--set-hero .ornament__pug{height:48px}

/* hero rule must span so the ornament lines can stretch */
.hero--painted .hero__rule{width:100%;display:flex;justify-content:center}
.ornament--set-hero{width:min(320px,82%)}

/* RSVP buttons: gold pill to match the hero CTA */
.rsvp .btn--primary{
  background:transparent;color:var(--gold-deep);
  border:1.5px solid var(--gold);border-radius:999px;padding:15px 40px;
}
.rsvp .btn--primary:hover{background:var(--gold);color:var(--cream);border-color:var(--gold)}

/* nav RSVP: gold pill outline */
.nav__cta{border:1.5px solid var(--gold) !important;border-radius:999px;padding:9px 24px;color:var(--gold-deep) !important}
.nav__cta:hover{background:var(--gold);color:var(--cream) !important;opacity:1 !important}
body.nav-open .nav__cta{color:var(--gold-bright) !important;border-color:var(--gold-bright) !important}
body.nav-open .nav__cta:hover{background:var(--gold-bright);color:var(--sage-dark) !important}

/* pug icons: smaller, daintier */
.ornament--set .ornament__pug{height:20px}
.ornament--set{gap:11px}
.ornament--set-hero .ornament__pug{height:24px}
.timeline__dot{width:26px;height:26px;left:-41px;top:0;background-size:72%}
@media (min-width:861px){
  .timeline__dot{width:28px;height:28px;left:-50px}
}

/* ==========================================================
   MOBILE HERO: tighter stack so the painting clears the fold
   ========================================================== */
@media (max-width:860px){
  .hero--painted .hero__content{margin-top:calc(var(--nav-h) + 4px);padding:0 18px}
  .hero--painted .hero__names{margin-top:4px}
  .hero--painted .hero__name{font-size:min(13.5vw,58px)}
  .hero--painted .hero__amp{font-size:min(6vw,26px)}
  .hero--painted .hero__rule{margin:6px 0 0}
  .ornament--set-hero .ornament__pug{height:20px}
  .hero--painted .hero__date{font-size:min(5.8vw,23px);margin-top:6px}
  .hero--painted .hero__place{font-size:10.5px;margin-top:4px}
  .hero--painted .countdown{margin:14px 0 16px;gap:min(3vw,14px)}
  .hero--painted .countdown__unit{min-width:46px}
  .hero--painted .countdown__unit span{font-size:min(8.6vw,34px)}
  .hero--painted .countdown__unit label{font-size:8.5px;margin-top:5px}
  .hero--painted .countdown__sep{height:26px}
  .hero--painted .btn--primary{padding:12px 30px;font-size:11.5px}
  .hero--painted .hero__art{margin-top:10px;min-height:24svh}
}

/* pug icons: one notch smaller */
.ornament--set .ornament__pug{height:16px}
.ornament--set{gap:10px}
.ornament--set-hero .ornament__pug{height:20px}
.timeline__dot{width:24px;height:24px;left:-40px}
@media (min-width:861px){
  .timeline__dot{width:25px;height:25px;left:-48px}
}
@media (max-width:860px){
  .ornament--set-hero .ornament__pug{height:17px}
}

/* ==========================================================
   FIXES: nav centering without transform (mobile menu was
   trapping its fixed overlay inside the transformed navbar),
   scroll cue removed
   ========================================================== */
.nav{left:0;right:0;transform:none;margin:0 auto}
body.nav-open{overflow:hidden}
.hero__scroll{display:none}

/* ==========================================================
   LIVING WATERCOLOR - ambient blooms in every section
   (pseudo-element washes on slow drift loops; content unaffected)
   ========================================================== */
.section,.band,.footer{position:relative;overflow:hidden}
.section::before,.section::after,
.band::before,.band::after,
.footer::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:62%;aspect-ratio:1;border-radius:55% 45% 60% 40%/50% 58% 42% 50%;
  filter:blur(clamp(28px,5vw,52px));
}
.band::before{left:-18%;top:-20%;background:radial-gradient(closest-side,rgba(158,208,196,.5),transparent 72%);mix-blend-mode:multiply;animation:blobA 30s ease-in-out infinite alternate}
.band::after{right:-16%;bottom:-24%;background:radial-gradient(closest-side,rgba(233,178,172,.45),transparent 72%);mix-blend-mode:multiply;animation:blobB 38s ease-in-out -9s infinite alternate}
.story::before{right:-16%;top:-10%;background:radial-gradient(closest-side,rgba(233,178,172,.4),transparent 72%);mix-blend-mode:multiply;animation:blobB 34s ease-in-out infinite alternate}
.story::after{left:-18%;bottom:-14%;background:radial-gradient(closest-side,rgba(139,172,214,.38),transparent 72%);mix-blend-mode:multiply;animation:blobC 27s ease-in-out -12s infinite alternate}
.day::before{left:-16%;top:-8%;background:radial-gradient(closest-side,rgba(139,172,214,.36),transparent 72%);mix-blend-mode:multiply;animation:blobA 36s ease-in-out -6s infinite alternate}
.day::after{right:-14%;bottom:-16%;background:radial-gradient(closest-side,rgba(229,200,123,.3),transparent 70%);mix-blend-mode:multiply;animation:blobD 44s ease-in-out infinite alternate}
.colors::before{left:14%;top:-22%;background:radial-gradient(closest-side,rgba(229,200,123,.32),transparent 70%);mix-blend-mode:multiply;animation:blobC 32s ease-in-out infinite alternate}
.colors::after{right:-14%;bottom:-18%;background:radial-gradient(closest-side,rgba(158,208,196,.4),transparent 72%);mix-blend-mode:multiply;animation:blobB 40s ease-in-out -15s infinite alternate}
.gallery::before{right:-18%;top:-12%;background:radial-gradient(closest-side,rgba(233,178,172,.4),transparent 72%);mix-blend-mode:multiply;animation:blobD 30s ease-in-out -4s infinite alternate}
.gallery::after{left:-16%;bottom:-14%;background:radial-gradient(closest-side,rgba(158,208,196,.42),transparent 72%);mix-blend-mode:multiply;animation:blobA 26s ease-in-out -18s infinite alternate}
.faq::before{left:-16%;top:-6%;background:radial-gradient(closest-side,rgba(139,172,214,.34),transparent 72%);mix-blend-mode:multiply;animation:blobB 33s ease-in-out -7s infinite alternate}
.faq::after{right:-18%;bottom:-18%;background:radial-gradient(closest-side,rgba(233,178,172,.36),transparent 72%);mix-blend-mode:multiply;animation:blobC 41s ease-in-out infinite alternate}
.rsvp::before{left:-14%;top:-10%;background:radial-gradient(closest-side,rgba(139,172,214,.5),transparent 72%);mix-blend-mode:screen;animation:blobA 34s ease-in-out infinite alternate}
.rsvp::after{right:-16%;bottom:-14%;background:radial-gradient(closest-side,rgba(216,140,150,.34),transparent 72%);mix-blend-mode:screen;animation:blobC 42s ease-in-out -11s infinite alternate}
.footer::before{right:-14%;top:-18%;background:radial-gradient(closest-side,rgba(139,172,214,.44),transparent 72%);mix-blend-mode:screen;animation:blobB 36s ease-in-out -5s infinite alternate}
/* venue stays pure white for the illustration - no blooms there */
.venue::before,.venue::after{content:none}

/* parallax layers */
[data-plx]{will-change:transform}
.hero__art img[data-plx]{transform:scale(1.12)}
.story__art img[data-plx],.venue__art img[data-plx]{transform:scale(1.08)}

@media (prefers-reduced-motion:reduce){
  .section::before,.section::after,.band::before,.band::after,.footer::before{animation:none !important}
  [data-plx]{will-change:auto}
}

/* clip the scaled parallax layers to their frames */
.hero__art,.story__art,.venue__art{overflow:hidden}

/* paintings breathe again: no crop, no pre-scale - soft edges blend
   into the page and simply drift with the parallax */
.hero__art,.story__art,.venue__art{overflow:visible}
.hero__art img[data-plx],.story__art img[data-plx],.venue__art img[data-plx]{transform:none}

/* hero art: fixed cream dissolve at the frame bottom so the parallax
   never shows a hard crop against the next section */
.hero__art{position:relative}
.hero__art::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:130px;
  background:linear-gradient(180deg,rgba(252,249,245,0) 0%,var(--cream) 92%);
  pointer-events:none;z-index:2;
}

/* ==========================================================
   DESKTOP BACKDROP: the aurora painting, dream-blurred,
   filling the space beside the sheet
   ========================================================== */
@media (min-width:861px){
  body::before{
    content:"";position:fixed;inset:-48px;z-index:-1;pointer-events:none;
    background:url("../assets/photos/hero-illustration.jpg?v=38") center 32%/cover no-repeat;
    filter:blur(36px) saturate(1.05) brightness(1.04);
    opacity:.5;
    transform:scale(1.06);
  }
}

/* ==========================================================
   DISPLAY FACE: Moelania for the main headlines
   (demo covers A-Z a-z , . only; Cormorant fills the rest)
   ========================================================== */
@font-face{
  font-family:'Moelania';
  src:url("../assets/fonts/Moelania.woff2?v=39") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
:root{--display:'Moelania','Cormorant Garamond',Georgia,serif}
.hero__name{font-family:var(--display)}
.section__title{font-family:var(--display);font-weight:400}
/* Moelania reads larger than the Tangerine script it replaces */
.hero--painted .hero__name{font-size:min(12.5vw,58px)}
.section__title{font-size:min(9vw,38px);line-height:1.12}
@media (min-width:861px){
  .hero--painted .hero__name{font-size:min(7vw,88px)}
}

/* ==========================================================
   HERO PARALLAX = OUR STORY PARALLAX
   whole painting at natural aspect, soft watercolor edges,
   no crop box, no mask, no overlay gradient
   ========================================================== */
.hero--painted .hero__art{height:auto;min-height:0;overflow:visible}
.hero--painted .hero__art::after{content:none}
.hero--painted .hero__art img{
  height:auto;object-fit:unset;object-position:center;
  -webkit-mask-image:none;mask-image:none;
}

/* ==========================================================
   DISPLAY FACE v2: Jenna Sue for headlines and titles
   (full charset incl. digits and ampersand)
   ========================================================== */
@font-face{
  font-family:'Jenna Sue';
  src:url("../assets/fonts/JennaSue.woff2?v=41") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
:root{--display:'Jenna Sue','Cormorant Garamond',Georgia,serif}
/* narrow, thin script reads smaller: scale headlines back up */
.hero--painted .hero__name{font-size:min(17vw,80px)}
.hero--painted .hero__amp{
  font-family:var(--display);font-style:normal;
  font-size:min(9.5vw,46px);
}
.section__title{font-size:min(11vw,50px);line-height:1.05}
@media (min-width:861px){
  .hero--painted .hero__name{font-size:min(9vw,120px)}
  .hero--painted .hero__amp{font-size:min(4.5vw,64px)}
}


/* band title joins the display face */
.band__script{font-family:var(--display);font-size:min(13vw,58px)}

/* countdown digits + footer names join the display face */
.countdown__unit span{font-family:var(--display);font-size:min(10.5vw,46px)}
.footer__names{font-family:var(--display);font-size:min(13vw,54px);line-height:1.05}
@media (min-width:861px){
  .countdown__unit span{font-size:48px}
  .footer__names{font-size:min(8vw,68px)}
}

/* ==========================================================
   HERO BLEND, MADE BULLETPROOF
   The cream page color is baked into the painting itself, so
   no browser blending is needed. Hero backdrop is uniform
   cream - no tint boundaries around the art on any GPU.
   ========================================================== */
.hero--painted{background:var(--cream)}
.hero--painted .hero__wash{display:none}
.hero--painted .hero__art img{mix-blend-mode:normal;filter:none}

/* Helvetica replaces Cormorant everywhere */
:root{
  --serif:'Helvetica Neue',Helvetica,Arial,sans-serif;
  --display:'Jenna Sue','Helvetica Neue',Helvetica,Arial,sans-serif;
}
body{font-size:16px;line-height:1.6}

/* nav brand joins the display face */
.nav__brand{font-family:var(--display);font-size:27px;letter-spacing:.04em}

/* ==========================================================
   GALLERY: four keepsake prints
   ========================================================== */
.gallery__grid--four{grid-template-columns:1fr 1fr;gap:14px}
.gallery__grid--four .photo:nth-child(n){
  grid-column:auto;aspect-ratio:auto;overflow:visible;
  background:#FFFFFF;border:1px solid rgba(160,136,80,.16);border-radius:6px;
  padding:8px 8px 12px;box-shadow:0 12px 30px rgba(57,68,94,.10);
  transition:transform .5s var(--ease),box-shadow .5s var(--ease);
}
.gallery__grid--four .photo img{
  aspect-ratio:2/3;width:100%;height:auto;object-fit:cover;
  border-radius:3px;transition:none;
}
.gallery__grid--four .photo:hover{
  transform:translateY(-4px);box-shadow:0 20px 44px rgba(57,68,94,.16);
}
.gallery__grid--four .photo:hover img{transform:none}
.gallery__grid--four .photo__hint{display:none}
@media (min-width:861px){
  .gallery__grid--four{grid-template-columns:1fr 1fr;gap:24px}
  .gallery__grid--four .photo{padding:12px 12px 16px}
}

/* ==========================================================
   TYPE SYSTEM, FINAL: two voices only
   Jenna Sue = titles + script accents. Jost = everything else.
   (--script had pointed at Tangerine, which is no longer
   loaded - those accents were falling back to system cursive)
   ========================================================== */
:root{
  --display:'Jenna Sue','Jost',cursive;
  --script:'Jenna Sue','Jost',cursive;
  --serif:'Jost','Helvetica Neue',Arial,sans-serif;
  --sans:'Jost','Helvetica Neue',Arial,sans-serif;
}
body{font-family:var(--serif);font-size:15.5px;line-height:1.7;font-weight:300;letter-spacing:.01em}
b,strong{font-weight:500}

/* pieces sized for serifs, retuned for Jost */
.hero__date{font-weight:400;letter-spacing:.06em}
.timeline__name{font-size:19px;font-weight:500;letter-spacing:.02em}
.ticket__cell b{font-size:16.5px;font-weight:500}
.faq__item summary{font-weight:400}
.footer__thanks{font-weight:300}
.rsvp__search input,.party-choice button{font-size:16px;font-weight:300}

/* script accents sized for Jenna Sue's proportions */
.rsvp__found{font-family:var(--display);font-size:34px;font-weight:400}
.rsvp__done h3{font-size:52px}
.story__script,.venue__script{font-size:min(9vw,38px)}
@media (min-width:861px){
  body{font-size:16px}
  .hero--painted .hero__date{font-size:24px}
}

/* band title color matches section titles */
.band__script{color:var(--ink)}

/* ==========================================================
   LOVELINE: horizontal story timeline
   gold line, alternating labels, Bobby's stop is the pug
   ========================================================== */
.loveline{
  list-style:none;display:flex;margin:26px 0 6px;padding:0;position:relative;
}
.loveline::before{
  content:"";position:absolute;top:50%;left:1%;right:1%;height:1px;
  background:linear-gradient(90deg,transparent,var(--gold) 10%,var(--gold) 90%,transparent);
}
.loveline li{position:relative;flex:1;height:128px}
.loveline__dot{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:9px;height:9px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 0 3px var(--cream),0 0 0 4px rgba(160,136,80,.45);
}
.loveline__dot--wed{
  width:13px;height:13px;background:var(--gold-bright);
  box-shadow:0 0 0 3px var(--cream),0 0 0 4.5px var(--gold);
}
.loveline__dot--pug{
  width:30px;height:22px;border-radius:0;background:none;box-shadow:none;
}
.loveline__dot--pug img{
  width:30px;height:auto;display:block;
  filter:drop-shadow(0 0 3px var(--cream)) drop-shadow(0 0 3px var(--cream));
}
.loveline__date{
  position:absolute;left:50%;transform:translateX(-50%);bottom:calc(50% + 16px);
  font-family:var(--sans);font-size:9px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold-deep);white-space:nowrap;
}
.loveline__label{
  position:absolute;left:50%;transform:translateX(-50%);top:calc(50% + 15px);
  width:120px;text-align:center;
  font-family:var(--display);font-size:16.5px;line-height:1.15;color:var(--ink);
}
/* alternate: even stops flip above the line */
.loveline li:nth-child(even) .loveline__date{bottom:auto;top:calc(50% + 16px)}
.loveline li:nth-child(even) .loveline__label{top:auto;bottom:calc(50% + 13px)}
@media (min-width:861px){
  .loveline{margin:40px 0 10px}
  .loveline li{height:150px}
  .loveline__date{font-size:10px}
  .loveline__label{font-size:21px;width:150px}
  .loveline__dot--pug{width:36px;height:26px}
  .loveline__dot--pug img{width:36px}
}

/* loveline sits above the painting now; last leg dotted (still to come) */
.loveline{margin:10px 0 4px}
.loveline::before{
  left:2%;right:auto;width:73%;
  background:linear-gradient(90deg,rgba(160,136,80,0),var(--gold) 10%);
}
.loveline::after{
  content:"";position:absolute;top:50%;left:75%;width:16.67%;height:1px;
  background:repeating-linear-gradient(90deg,var(--gold) 0 4px,rgba(160,136,80,0) 4px 9px);
}
@media (min-width:861px){
  .loveline{margin:18px 0 10px}
}

/* ==========================================================
   LOVELINE v2: vertical on phones (no collisions), and a
   tighter seam under the Our Story title everywhere
   ========================================================== */
#story .section__head{margin-bottom:4px}
.loveline{margin:4px 0 4px}
@media (min-width:861px){
  .loveline{margin:8px 0 10px}
}
@media (max-width:860px){
  .loveline{display:block;padding:0 0 0 12px}
  .loveline::before{
    left:100.5px;right:auto;top:22px;width:1px;height:176px;
    background:linear-gradient(180deg,rgba(160,136,80,0),var(--gold) 12%);
  }
  .loveline::after{
    left:100.5px;top:198px;width:1px;height:44px;
    background:repeating-linear-gradient(180deg,var(--gold) 0 4px,rgba(160,136,80,0) 4px 9px);
  }
  .loveline li{display:flex;align-items:center;height:44px;position:static}
  .loveline li .loveline__date{
    position:static;transform:none;flex:0 0 74px;text-align:right;margin-right:14px;
  }
  .loveline li .loveline__dot{
    position:static;transform:none;flex:0 0 9px;margin-right:14px;
  }
  .loveline li .loveline__dot--wed{flex-basis:13px;margin-left:-2px;margin-right:12px}
  .loveline li .loveline__dot--pug{
    flex-basis:26px;width:26px;height:19px;margin-left:-8.5px;margin-right:5.5px;
  }
  .loveline__dot--pug img{width:26px}
  .loveline li .loveline__label{
    position:static;transform:none;width:auto;text-align:left;font-size:17.5px;
  }
}

/* ==========================================================
   LOVELINE v3: horizontal on mobile too.
   One date row above the line; labels below in two staggered
   tiers so six stops fit a phone without collisions.
   ========================================================== */
@media (max-width:860px){
  .loveline{display:flex;padding:0;margin:6px 0 0}
  .loveline::before{
    left:2%;top:34px;width:73%;height:1px;
    background:linear-gradient(90deg,rgba(160,136,80,0),var(--gold) 10%);
  }
  .loveline::after{
    left:75%;top:34px;width:16.67%;height:1px;
    background:repeating-linear-gradient(90deg,var(--gold) 0 4px,rgba(160,136,80,0) 4px 9px);
  }
  .loveline li{position:relative;flex:1;height:126px;display:block}
  /* faint tick tying lower-tier labels to their dot */
  .loveline li:nth-child(even)::after{
    content:"";position:absolute;left:50%;top:40px;width:1px;height:44px;
    background:linear-gradient(180deg,rgba(160,136,80,.5),rgba(160,136,80,.12));
  }
  .loveline li:nth-child(n) .loveline__date{
    position:absolute;top:14px;bottom:auto;left:50%;transform:translateX(-50%);
    margin:0;text-align:center;font-size:7.5px;letter-spacing:.14em;white-space:nowrap;
  }
  .loveline li:nth-child(n) .loveline__dot{
    position:absolute;top:34px;left:50%;transform:translate(-50%,-50%);margin:0;
  }
  .loveline li:nth-child(n) .loveline__dot--pug{width:26px;height:19px}
  .loveline li:nth-child(n) .loveline__dot--pug img{width:26px}
  .loveline li:nth-child(n) .loveline__label{
    position:absolute;top:48px;bottom:auto;left:50%;transform:translateX(-50%);
    margin:0;width:96px;text-align:center;font-size:14.5px;line-height:1.12;
  }
  .loveline li:nth-child(even) .loveline__label{top:88px;bottom:auto}
}

/* ==========================================================
   BODY FACE v3: Nunito Sans - warm and soft next to Jenna Sue
   (replaces Jost; no more Helvetica Neue in any stack)
   ========================================================== */
:root{
  --serif:'Nunito Sans','Segoe UI',Arial,sans-serif;
  --sans:'Nunito Sans','Segoe UI',Arial,sans-serif;
  --display:'Jenna Sue','Nunito Sans',cursive;
  --script:'Jenna Sue','Nunito Sans',cursive;
}
body{font-weight:400;font-size:15px;line-height:1.7}
@media (min-width:861px){
  body{font-size:15.5px}
}

/* ==========================================================
   NAV FIX: backdrop-filter on .nav made it the containing
   block for the fixed menu overlay, clipping it to the bar
   once scrolled (.nav--solid). The blur now lives on a
   ::before, so the overlay escapes to the full viewport.
   ========================================================== */
.nav--solid{
  background:transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  box-shadow:none;
}
.nav--solid::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:rgba(252,249,245,.92);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:0 1px 0 var(--line);
}

/* ==========================================================
   BODY FACE v4: Josefin Sans - vintage invitation geometry
   (low x-height, so body runs slightly larger)
   ========================================================== */
:root{
  --serif:'Josefin Sans','Segoe UI',Arial,sans-serif;
  --sans:'Josefin Sans','Segoe UI',Arial,sans-serif;
  --display:'Jenna Sue','Josefin Sans',cursive;
  --script:'Jenna Sue','Josefin Sans',cursive;
}
body{font-size:16px;line-height:1.75;font-weight:400}
@media (min-width:861px){
  body{font-size:16.5px}
}

/* ==========================================================
   BODY FACE, FINAL: Quicksand
   ========================================================== */
:root{
  --serif:'Quicksand','Segoe UI',Arial,sans-serif;
  --sans:'Quicksand','Segoe UI',Arial,sans-serif;
  --display:'Jenna Sue','Quicksand',cursive;
  --script:'Jenna Sue','Quicksand',cursive;
}
body{font-size:15.5px;line-height:1.7;font-weight:400}
@media (min-width:861px){
  body{font-size:16px}
}

/* scroll cue under the Save-the-date band */
.band__scroll{
  display:block;width:max-content;margin:26px auto 0;
  font-family:var(--sans);text-transform:uppercase;letter-spacing:.26em;font-size:10px;
  color:var(--ink-soft);text-decoration:none;text-align:center;
}
.band__scroll::after{
  content:"";display:block;width:1px;height:30px;background:var(--gold);
  margin:8px auto 0;animation:scrollPulse 2.2s ease-in-out infinite;transform-origin:top;
}
@media (prefers-reduced-motion:reduce){.band__scroll::after{animation:none}}

/* Friday PTO note atop The Day timeline */
.day__note--pto{margin:-14px 0 30px;color:var(--gold-deep)}

/* the logo: A squared */
.nav__brand sup{
  font-size:.6em;color:var(--gold);line-height:0;
  position:relative;top:-.42em;margin-left:2px;
}

/* logo, a touch bigger */
.nav__brand{font-size:33px}

/* loveline: more air between the line and its labels */
.loveline li:nth-child(n) .loveline__date{bottom:calc(50% + 22px)}
.loveline li:nth-child(even) .loveline__date{top:calc(50% + 22px);bottom:auto}
.loveline li:nth-child(n) .loveline__label{top:calc(50% + 22px)}
.loveline li:nth-child(even) .loveline__label{bottom:calc(50% + 20px);top:auto}
@media (max-width:860px){
  .loveline li{height:150px}
  .loveline li:nth-child(n) .loveline__date{top:8px;bottom:auto}
  .loveline li:nth-child(n) .loveline__label{top:56px;bottom:auto}
  .loveline li:nth-child(even) .loveline__label{top:104px;bottom:auto}
  .loveline li:nth-child(even)::after{top:40px;height:60px}
}

/* RSVP pill lives in the mobile bar, not just the menu */
.nav__cta--bar{display:none}
@media (max-width:860px){
  .nav__cta--bar{
    display:inline-block;margin-left:auto;margin-right:12px;
    font-family:var(--sans);text-transform:uppercase;letter-spacing:.18em;
    font-size:10.5px;text-decoration:none;padding:7px 16px !important;
  }
  body.nav-open .nav__cta--bar{visibility:hidden}
}

/* the pug stop: soft cream disc masks the line behind Bobby */
.loveline li:nth-child(n) .loveline__dot--pug{
  width:48px;height:34px;border-radius:50%;
  background:radial-gradient(closest-side,var(--cream) 62%,rgba(252,249,245,0));
  box-shadow:none;display:flex;align-items:center;justify-content:center;
}
.loveline__dot--pug img{filter:none}
@media (max-width:860px){
  .loveline li:nth-child(n) .loveline__dot--pug{width:42px;height:30px}
}

/* same cream halo behind the Married dot: dotted leg stops short */
.loveline__dot--wed{position:relative}
.loveline__dot--wed::before{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:44px;height:34px;border-radius:50%;z-index:-1;
  background:radial-gradient(closest-side,var(--cream) 55%,rgba(252,249,245,0));
}

/* ==========================================================
   LOVELINE GAPS v2: no painted halos (they glowed on tinted
   backgrounds). The line itself is masked out around Bobby,
   and the dotted leg stops short of the Married dot.
   Bobby = stop 3 of 6: ol center 41.667%; line box starts at
   2% and is 73% wide -> window center (41.667-2)/73 = 54.33%.
   ========================================================== */
.loveline__dot--pug,
.loveline li:nth-child(n) .loveline__dot--pug{background:none}
.loveline__dot--wed::before{content:none}
.loveline::before{
  -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(54.33% - 17px),transparent calc(54.33% - 17px),transparent calc(54.33% + 17px),#000 calc(54.33% + 17px),#000 100%);
  mask-image:linear-gradient(90deg,#000 0,#000 calc(54.33% - 17px),transparent calc(54.33% - 17px),transparent calc(54.33% + 17px),#000 calc(54.33% + 17px),#000 100%);
}
.loveline::after{width:calc(16.67% - 13px)}

/* ==========================================================
   OUR STORY VIDEO: brushy soft edges, blends like the paintings
   ========================================================== */
.story__art video{
  display:block;width:100%;height:auto;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent),linear-gradient(180deg,transparent,#000 10%,#000 90%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent),linear-gradient(180deg,transparent,#000 10%,#000 90%,transparent);
  mask-composite:intersect;
}

/* story art: painting on desktop, living painting on phones */
.story__art--video{display:none}
@media (max-width:860px){
  .story__art--img{display:none}
  .story__art--video{display:block}
}

/* ==========================================================
   MOBILE STORY: background runs to white behind the video so
   its paper blends; bottom-left blue wash + bloom retired
   ========================================================== */
@media (max-width:860px){
  .story{
    background:
      radial-gradient(66% 40% at 90% 10%,rgba(229,200,123,.2),transparent 70%),
      linear-gradient(180deg,var(--ivory) 0%,var(--ivory) 28%,#FFFFFF 52%,#FFFFFF 90%,var(--ivory) 100%);
  }
  .story::after{display:none}
}

/* gentler side feather on the story video */
.story__art video{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 3.5%,#000 96.5%,transparent),linear-gradient(180deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 3.5%,#000 96.5%,transparent),linear-gradient(180deg,transparent,#000 8%,#000 92%,transparent);
  mask-composite:intersect;
}

/* no side fade on the story video - vertical feather only */
.story__art video{
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-composite:source-over;
  mask-image:linear-gradient(180deg,transparent,#000 8%,#000 92%,transparent);
  mask-composite:add;
}

/* ==========================================================
   MOBILE STORY, cleaner still: video unmasked entirely,
   section runs white to its very bottom, and The Day opens
   with a white-to-cream ramp so there is no seam
   ========================================================== */
@media (max-width:860px){
  .story__art video{
    -webkit-mask-image:none;mask-image:none;
  }
  .story{
    background:
      radial-gradient(66% 40% at 90% 10%,rgba(229,200,123,.2),transparent 70%),
      linear-gradient(180deg,var(--ivory) 0%,var(--ivory) 24%,#FFFFFF 42%,#FFFFFF 100%);
  }
  .day{
    background:
      linear-gradient(180deg,#FFFFFF 0%,rgba(255,255,255,0) 16%),
      radial-gradient(64% 42% at 8% 8%,rgba(240,223,218,.55),transparent 70%),
      radial-gradient(70% 46% at 94% 92%,rgba(220,228,240,.55),transparent 74%),var(--cream);
  }
}

/* The Day opens with a visible dusty-blue wash so the section
   boundary reads against the white story bottom */
@media (max-width:860px){
  .day{
    background:
      linear-gradient(180deg,rgba(205,218,234,.42) 0%,rgba(205,218,234,.15) 11%,rgba(205,218,234,0) 26%),
      radial-gradient(64% 42% at 8% 8%,rgba(240,223,218,.55),transparent 70%),
      radial-gradient(70% 46% at 94% 92%,rgba(220,228,240,.55),transparent 74%),var(--cream);
  }
}

/* ==========================================================
   HERO SKY: the aurora's glow continues up behind the names,
   so the section is one painted sky instead of cream + art
   ========================================================== */
.hero--painted{
  background:
    url("../assets/photos/hero-sky.jpg?v=77") top center/100% 420px no-repeat,
    var(--cream);
}
@media (min-width:861px){
  .hero--painted{
    background:
      url("../assets/photos/hero-sky.jpg?v=77") top center/100% auto no-repeat,
      var(--cream);
  }
}

/* ==========================================================
   HERO SKY v2: wash height is set by JS to end exactly under
   the painting's top; the painting's top edge crossfades into
   it via alpha mask - one continuous sky, no white valley
   ========================================================== */
.hero--painted{
  background:
    url("../assets/photos/hero-sky.jpg?v=78") top center/100% var(--sky-h,440px) no-repeat,
    var(--cream);
}
.hero--painted .hero__art img{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 110px);
  mask-image:linear-gradient(180deg,transparent 0,#000 110px);
}

/* smoother wash-to-painting handoff + desktop fold lift + descender room */
.hero--painted .hero__art img{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 200px);
  mask-image:linear-gradient(180deg,transparent 0,#000 200px);
}
.section__title{padding-bottom:.16em;margin-bottom:-.06em}
@media (min-width:861px){
  .hero--painted .hero__content{margin-top:calc(var(--nav-h) + 8px)}
  .hero--painted .countdown{margin:14px 0 18px}
  .hero--painted .hero__art{margin-top:-34px}
}

/* loveline milestone labels, a notch larger */
.loveline li:nth-child(n) .loveline__label{font-size:16px}
@media (min-width:861px){
  .loveline li:nth-child(n) .loveline__label{font-size:23px}
}

/* footer goes light */
.footer{
  background:
    radial-gradient(70% 60% at 50% 0%,rgba(220,228,240,.4),transparent 70%),
    var(--ivory);
  color:var(--ink);
}
.footer__names span{color:var(--gold)}
.footer__date{color:var(--gold-deep);opacity:1}
.footer__thanks{color:var(--ink-soft)}
.footer .ornament--set i{background:var(--gold)}

/* ==========================================================
   GALLERY LIGHTBOX
   ========================================================== */
.gallery__grid .photo{cursor:zoom-in}
.lightbox{
  position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;
  background:rgba(31,38,58,.94);opacity:0;visibility:hidden;
  transition:opacity .35s var(--ease),visibility 0s .35s;
}
.lightbox.is-open{opacity:1;visibility:visible;transition:opacity .35s var(--ease)}
.lightbox__img{
  max-width:92vw;max-height:86vh;border-radius:4px;
  background:#fff;padding:8px;box-shadow:0 30px 80px rgba(0,0,0,.4);
}
.lightbox__close{
  position:absolute;top:10px;right:14px;font-size:38px;line-height:1;
  background:none;border:none;color:var(--cream);cursor:pointer;font-family:var(--sans);
}
.lightbox__nav{
  position:absolute;top:50%;transform:translateY(-50%);font-size:46px;line-height:1;
  background:none;border:none;color:var(--cream);cursor:pointer;padding:16px;opacity:.8;
}
.lightbox__nav:hover{opacity:1}
.lightbox__nav--prev{left:4px}
.lightbox__nav--next{right:4px}
body.lightbox-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){.lightbox{transition:none}}

/* seam geometry corrected: fade 160px, wash overlaps 220px past img top */
.hero--painted .hero__art img{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 160px);
  mask-image:linear-gradient(180deg,transparent 0,#000 160px);
}
@media (min-width:861px){
  .hero--painted .hero__content{margin-top:calc(var(--nav-h) + 2px)}
  .hero--painted .countdown{margin:10px 0 14px}
  .hero--painted .hero__art{margin-top:-70px}
}

/* ultra-smooth handoff, deeper desktop lift, glow behind hero text */
.hero--painted .hero__art img{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 260px);
  mask-image:linear-gradient(180deg,transparent 0,#000 260px);
}
.hero--painted .hero__content::before{
  content:"";position:absolute;left:-44px;right:-44px;top:-26px;bottom:-30px;z-index:-1;
  background:radial-gradient(ellipse 74% 62% at 50% 44%,rgba(252,249,245,.74),rgba(252,249,245,0) 74%);
  pointer-events:none;
}
@media (min-width:861px){
  .hero--painted .hero__art{margin-top:-120px}
}

/* higher still on desktop; stronger cream pool over countdown + CTA */
.hero--painted .hero__content::before{
  left:-56px;right:-56px;top:-24px;bottom:-48px;
  background:
    radial-gradient(ellipse 66% 46% at 50% 78%,rgba(252,249,245,.85),rgba(252,249,245,0) 76%),
    radial-gradient(ellipse 74% 62% at 50% 38%,rgba(252,249,245,.74),rgba(252,249,245,0) 74%);
}
@media (min-width:861px){
  .hero--painted .hero__art{margin-top:-170px}
}

/* glow pool: taller box, ellipses fade fully inside it (no clip line);
   painting higher still on desktop */
.hero--painted .hero__content::before{
  left:-56px;right:-56px;top:-24px;bottom:-170px;
  background:
    radial-gradient(ellipse 66% 30% at 50% 58%,rgba(252,249,245,.85),rgba(252,249,245,0) 72%),
    radial-gradient(ellipse 74% 46% at 50% 28%,rgba(252,249,245,.74),rgba(252,249,245,0) 74%);
}
@media (min-width:861px){
  .hero--painted .hero__art{margin-top:-230px}
}

/* CTA readability: frosted cream fill + a tight bright pool behind it */
.hero--painted .hero__content .btn{
  background:rgba(252,249,245,.5);
}
.hero--painted .hero__content .btn:hover{background:var(--gold)}
.hero--painted .hero__content::before{
  background:
    radial-gradient(ellipse 48% 13% at 50% 64%,rgba(252,249,245,.92),rgba(252,249,245,0) 78%),
    radial-gradient(ellipse 66% 30% at 50% 56%,rgba(252,249,245,.88),rgba(252,249,245,0) 72%),
    radial-gradient(ellipse 74% 46% at 50% 28%,rgba(252,249,245,.74),rgba(252,249,245,0) 74%);
}

/* frosted RSVP pill in the nav (bar + desktop row) */
.nav__cta{background:rgba(252,249,245,.5) !important}
.nav__cta:hover{background:var(--gold) !important}
body.nav-open .nav__links .nav__cta{background:transparent !important}

/* painting sits flush on the hero's bottom edge */
.hero--painted{padding-bottom:0}
.hero--painted .hero__art{margin-bottom:0}
.hero--painted .hero__art img{display:block}

/* no hairline between the painting and the band */
.band{border-top:none}

/* venue illustration runs the full sheet width */
.venue__art{margin:-8px -24px 30px;max-width:none}
@media (min-width:861px){
  .venue__art{
    width:min(960px,100vw);max-width:none;
    margin:-8px 0 44px calc(50% - min(960px,100vw) / 2);
  }
}

/* FIX: wed dot back to absolute (position:relative collapsed the
   inline <i> to 0x0, painting its ring shadows as a tiny square) */
.loveline__dot--wed{position:absolute}

/* FIX: crossfade scaled to the mobile painting (260px desktop fade
   covered the whole 265px-tall image on phones) */
@media (max-width:860px){
  .hero--painted .hero__art img{
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 90px);
    mask-image:linear-gradient(180deg,transparent 0,#000 90px);
  }
}


/* venue art: soft top edge, no hard line against the white section */
.venue__art img{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 70px);
  mask-image:linear-gradient(180deg,transparent 0,#000 70px);
}

/* ==========================================================
   RSVP v2: role badges + progressive contact step
   ========================================================== */
.guest-row__role{
  display:inline-block;margin-left:10px;padding:3px 12px;vertical-align:2px;
  font-family:var(--sans);font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold-deep);border:1px solid var(--gold);border-radius:999px;
  background:rgba(201,176,117,.12);white-space:nowrap;
}
.guest-row__roleline{
  margin:2px 0 10px;font-family:var(--display);font-size:19px;color:var(--gold-deep);
}
.rsvp__contact{margin-top:28px}
.rsvp__contact.is-in{animation:contactIn .6s var(--ease) both}
@keyframes contactIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.rsvp__contact-head{
  font-family:var(--display);font-size:26px;color:var(--ink);margin:0 0 14px;
}
@media (prefers-reduced-motion:reduce){.rsvp__contact.is-in{animation:none}}

/* longer hero crossfade to match the deeper baked blur */
.hero--painted .hero__art img{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 400px);
  mask-image:linear-gradient(180deg,transparent 0,#000 400px);
}
@media (max-width:860px){
  .hero--painted .hero__art img{
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 150px);
    mask-image:linear-gradient(180deg,transparent 0,#000 150px);
  }
}

/* ==========================================================
   HERO/BAND SEAM: the figure was a stretching flex item, so
   it grew taller than the painting and left a cream sliver.
   Hug the image exactly, and trim the band's empty top.
   ========================================================== */
.hero--painted .hero__art{flex:0 0 auto;min-height:0;line-height:0}
.band{padding-top:40px}
@media (min-width:861px){
  .band{padding-top:56px}
}

/* the hero was pinned to 100svh, so leftover viewport height pooled as
   empty cream under the painting - let it hug its content instead */
.hero--painted{min-height:0;height:auto}

/* ==========================================================
   HERO = exactly one screen. The painting is anchored to the
   hero's bottom edge (absolute), so its bottom and the section
   bottom are the same line: full-height fold, zero gap.
   ========================================================== */
.hero--painted{min-height:100svh;height:auto;position:relative;overflow:hidden}
.hero--painted .hero__art{
  position:absolute;left:0;right:0;bottom:0;margin:0;width:100%;
}
.hero--painted .hero__content{position:relative;z-index:2}

/* no hairline under the nav - the frosted blur is separation enough */
.nav--solid::before{box-shadow:none}
.nav--solid{box-shadow:none;border-bottom:0}

/* ==========================================================
   SCROLLED NAV: a floating frosted pill, 95% width, no hairline
   ========================================================== */
.nav{transition:padding .35s var(--ease)}
.nav--solid{padding:8px 0}
.nav--solid::before{
  left:2.5%;right:2.5%;
  background:rgba(252,249,245,.62);
  border-radius:999px;
  border:1px solid rgba(160,136,80,.18);
  box-shadow:0 6px 24px rgba(57,68,94,.10);
}
.nav--solid .nav__inner{padding:0 30px}
@media (max-width:860px){
  .nav--solid .nav__inner{padding:0 22px}
}

/* pill edge: shadow only, no border line */
.nav--solid::before{border:0;box-shadow:0 8px 26px rgba(57,68,94,.12)}

/* ==========================================================
   CALL AUSTIN: mobile-only menu link + its modal
   ========================================================== */
.nav__joke{
  font-family:var(--sans);text-transform:uppercase;letter-spacing:.22em;font-size:15px;
  text-decoration:none;color:var(--cream);opacity:.92;
}
@media (min-width:861px){ .nav__joke{display:none} }

.jokebox{
  position:fixed;inset:0;z-index:3200;display:flex;align-items:center;justify-content:center;
  padding:24px;background:rgba(57,68,94,.55);backdrop-filter:blur(3px);
}
.jokebox[hidden]{display:none}
.jokebox__card{
  background:var(--cream);border-radius:8px;padding:34px 26px 30px;max-width:400px;width:100%;
  text-align:center;box-shadow:0 30px 70px rgba(31,38,58,.35);
  animation:jokeIn .4s var(--ease) both;
}
@keyframes jokeIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.jokebox__title{font-family:var(--display);font-size:46px;line-height:1;margin:10px 0 12px;color:var(--ink)}
.jokebox__text{margin:0 0 22px;color:var(--ink-soft);font-size:15.5px}
.jokebox__actions{display:flex;flex-direction:column;align-items:center;gap:12px}
body.joke-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){.jokebox__card{animation:none}}

/* nav back to full width, square, flush - keep the frosted blur, no line */
.nav--solid{padding:0}
.nav--solid::before{
  left:0;right:0;border-radius:0;border:0;box-shadow:none;
  background:rgba(252,249,245,.9);
}
.nav--solid .nav__inner{padding:0 18px}
@media (min-width:861px){
  .nav--solid .nav__inner{padding:0 30px}
}

/* hero fills the *visible* viewport: svh stays short when a phone's
   address bar hides, which let the next section peek in */
.hero--painted{min-height:100vh;min-height:100dvh}

/* joke modal CTA matches the hero/RSVP gold pill */
.jokebox .btn--primary{
  background:rgba(252,249,245,.5) !important;
  color:var(--gold-deep) !important;
  border:1.5px solid var(--gold) !important;
  border-radius:999px;
}
.jokebox .btn--primary:hover{background:var(--gold) !important;color:var(--cream) !important}

/* keep the joke CTA on one line on phones */
@media (max-width:860px){
  .jokebox__card{padding:32px 20px 28px}
  .jokebox .btn--primary{
    white-space:nowrap;padding:12px 16px;font-size:10.5px;letter-spacing:.1em;
  }
}

/* mobile crossfade sized to the shallower baked blur */
@media (max-width:860px){
  .hero--painted .hero__art img{
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 90px);
    mask-image:linear-gradient(180deg,transparent 0,#000 90px);
  }
}

/* ==========================================================
   MAP: graceful fallback when the embed is blocked or slow
   ========================================================== */
.venue__map{position:relative}
.venue__map-fallback{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;
  min-height:300px;padding:28px 20px;text-align:center;background:var(--ivory);
}
.venue__map-fallback[hidden]{display:none}
.venue__map-addr{
  margin:0;font-family:var(--sans);font-size:14px;line-height:1.8;letter-spacing:.04em;color:var(--ink);
}
.venue__map-links{display:flex;flex-direction:column;align-items:center;gap:10px}
.venue__map--failed iframe{display:none}
@media (min-width:861px){
  .venue__map-fallback{min-height:440px}
}

/* ==========================================================
   REGISTRY: the House Fund board
   ========================================================== */
.page-registry .sheet{padding-top:0}
.reg{background:
  radial-gradient(66% 40% at 88% 8%,rgba(229,200,123,.2),transparent 70%),
  radial-gradient(62% 44% at 8% 92%,rgba(220,228,240,.5),transparent 72%),var(--cream)}
.page-registry .section{padding-top:calc(var(--nav-h) + 34px)}
.reg__lede{font-size:16.5px;line-height:1.75;color:var(--ink);margin:0 0 18px;text-align:center}
.reg__lede--twist{color:var(--ink-soft)}

.reg__board{
  margin:34px 0 8px;padding:22px 20px 18px;background:#fff;border-radius:8px;
  border:1px solid rgba(160,136,80,.16);box-shadow:0 14px 34px rgba(57,68,94,.09);
  transition:transform .5s var(--ease),box-shadow .5s var(--ease);
}
.reg__board.is-bumped{transform:translateY(-3px);box-shadow:0 20px 44px rgba(57,68,94,.14)}
.reg__board-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
.reg__board-title{font-family:var(--display);font-size:30px;margin:0;color:var(--ink)}
.reg__board-sub{margin:0;font-family:var(--sans);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-deep)}
.reg__states{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.reg__state{display:grid;grid-template-columns:20px 92px 1fr 54px;align-items:center;gap:10px}
.reg__state-rank{font-family:var(--sans);font-size:11px;color:var(--ink-soft);text-align:center}
.reg__state-name{font-family:var(--display);font-size:21px;color:var(--ink);line-height:1}
.reg__state-bar{height:9px;border-radius:999px;background:rgba(57,68,94,.08);overflow:hidden}
.reg__state-bar i{
  display:block;height:100%;border-radius:999px;
  background:linear-gradient(90deg,var(--sage),var(--sage-deep));
  transition:width .8s var(--ease);
}
.reg__state--lead .reg__state-bar i{background:linear-gradient(90deg,var(--gold-bright),var(--gold))}
.reg__state--lead .reg__state-name{color:var(--gold-deep)}
.reg__state--you .reg__state-name::after{content:" (you)";font-family:var(--sans);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep)}
.reg__state-pct{font-family:var(--sans);font-size:12.5px;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.reg__state--skeleton{opacity:.5;grid-template-columns:1fr}
.reg__fineprint{margin:16px 0 0;font-family:var(--sans);font-size:11px;letter-spacing:.05em;color:var(--ink-soft);text-align:center}

.reg__give{margin-top:38px;padding:26px 20px 24px;background:var(--ivory);border-radius:8px;border:1px solid var(--line)}
.reg__give-title{font-family:var(--display);font-size:30px;margin:0 0 18px;color:var(--ink);text-align:center}
.reg__picks{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.reg__pick{
  padding:14px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer;
  display:flex;flex-direction:column;gap:3px;align-items:center;transition:border-color .25s,background .25s,transform .25s;
}
.reg__pick b{font-family:var(--display);font-size:22px;font-weight:400;color:var(--ink);line-height:1}
.reg__pick span{font-family:var(--sans);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft)}
.reg__pick:hover{border-color:var(--gold)}
.reg__pick.is-on{border-color:var(--gold);background:rgba(201,176,117,.14);transform:translateY(-2px)}
.reg__amounts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.reg__amt{
  padding:11px 4px;border:1px solid var(--line);border-radius:999px;background:#fff;cursor:pointer;
  font-family:var(--sans);font-size:13px;color:var(--ink);transition:border-color .25s,background .25s;
}
.reg__amt:hover{border-color:var(--gold)}
.reg__amt.is-on{border-color:var(--gold);background:rgba(201,176,117,.16);color:var(--gold-deep)}
.reg__actions{display:flex;justify-content:center;margin-top:6px}
.reg__pay{margin-top:24px;padding-top:22px;border-top:1px solid var(--line);text-align:center}
.reg__pay[hidden]{display:none}
.reg__pay-title{font-family:var(--display);font-size:26px;margin:0 0 6px;color:var(--ink)}
.reg__pay-sub{margin:0 0 16px;color:var(--ink-soft);font-size:15px}
.reg__pay-links{display:flex;flex-direction:column;align-items:center;gap:10px}
.reg__zelle{margin:0;font-size:14.5px;color:var(--ink)}
.reg__footnote{margin:30px 0 0;text-align:center;font-size:14.5px;color:var(--ink-soft)}

@media (min-width:861px){
  .reg__board{padding:28px 28px 24px}
  .reg__state{grid-template-columns:24px 120px 1fr 62px;gap:14px}
  .reg__state-name{font-size:25px}
  .reg__give{padding:32px 30px 28px}
  .reg__picks{grid-template-columns:repeat(4,1fr)}
}

/* prefilled phone reads as already-on-file until you click in */
#rsvpPhone[data-masked]{color:var(--ink-soft);letter-spacing:.08em}
#rsvpPhone.is-editing{color:var(--ink)}
.rsvp__done-next{margin:18px 0 0;color:var(--ink-soft);font-size:15px}

/* ---- registry v2: any state, richer board, payment methods ---- */
.reg__state{grid-template-columns:18px 30px 1fr 1.35fr 52px;gap:8px}
.reg__state-abbr{
  font-family:var(--sans);font-size:10px;letter-spacing:.1em;color:var(--gold-deep);
  border:1px solid rgba(160,136,80,.3);border-radius:4px;padding:2px 0;text-align:center;
}
.reg__state-name{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reg__state--p1 .reg__state-bar i{background:linear-gradient(90deg,var(--gold-bright),var(--gold))}
.reg__state--p2 .reg__state-bar i{background:linear-gradient(90deg,#B9C6DC,var(--sage))}
.reg__state--p3 .reg__state-bar i{background:linear-gradient(90deg,#E3C9C4,var(--rose))}
.reg__state--p1 .reg__state-name{color:var(--gold-deep)}
.reg__more{margin:14px 0 0;text-align:center;font-family:var(--sans);font-size:11px;letter-spacing:.08em;color:var(--gold-deep)}
.reg__anystate{margin:12px 0 8px;text-align:center;font-size:14px;color:var(--ink-soft)}
.reg__select{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;
  font-family:var(--sans);font-size:15px;color:var(--ink);
}
.reg__amounts{grid-template-columns:repeat(3,1fr)}
.reg__methods{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px}
.reg__method{
  padding:12px 6px;border:1px solid var(--line);border-radius:999px;background:#fff;cursor:pointer;
  font-family:var(--sans);font-size:12px;letter-spacing:.06em;color:var(--ink);transition:border-color .25s,background .25s;
}
.reg__method:hover{border-color:var(--gold)}
.reg__method.is-on{border-color:var(--gold);background:rgba(201,176,117,.16);color:var(--gold-deep)}
.reg__handle{margin:10px 0 0;font-size:14.5px;color:var(--ink)}
.reg__handle--big{font-family:var(--display);font-size:24px;color:var(--ink);margin:0}
@media (min-width:861px){
  .reg__state{grid-template-columns:22px 36px 150px 1fr 60px;gap:12px}
  .reg__state-name{font-size:23px}
  .reg__methods{grid-template-columns:repeat(4,1fr)}
}

/* ---- registry v3: locked state, stable layout ---- */
.reg__board,.reg__give,.reg__pay{scroll-margin-top:calc(var(--nav-h) + 22px)}
.reg__amounts{grid-template-columns:repeat(4,1fr)}
#regAmount[hidden]{display:none}
.reg__state-name{min-width:0}
.reg__state--you .reg__state-name::after{content:none}
.reg__state--you .reg__state-abbr{background:rgba(201,176,117,.22);border-color:var(--gold)}
.reg__state--you .reg__state-pct::after{
  content:" you";font-family:var(--sans);font-size:8.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--gold-deep);
}
.reg__give.is-locked .reg__pick,
.reg__give.is-locked .reg__select,
.reg__give.is-locked .reg__amt,
.reg__give.is-locked #regAmount,
.reg__give.is-locked #regName{pointer-events:none;opacity:.55}
#regSubmit.is-locked{background:rgba(201,176,117,.2) !important;border-color:var(--gold) !important;color:var(--gold-deep) !important;cursor:default}
.reg__actions{flex-direction:column;align-items:center;gap:10px}
.reg__edit{
  background:none;border:0;cursor:pointer;font-family:var(--sans);font-size:11.5px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft);text-decoration:underline;
  text-underline-offset:4px;padding:4px 8px;
}
.reg__edit:hover{color:var(--gold-deep)}
.reg__edit[hidden]{display:none}
#regSubmit.is-locked{pointer-events:none}

/* dollar sign inside the amount field */
.reg__amount-wrap{position:relative}
.reg__amount-wrap[hidden]{display:none}
.reg__amount-sign{
  position:absolute;left:15px;top:50%;transform:translateY(-50%);
  font-family:var(--sans);font-size:16px;color:var(--ink-soft);pointer-events:none;
}
.reg__amount-wrap #regAmount{padding-left:32px}

/* ---- RSVP: already-responded summary ---- */
.rsvp__already{margin:18px 0 0;display:flex;flex-direction:column;gap:10px}
.rsvp__already-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;background:var(--ivory);border:1px solid var(--line);border-radius:6px;
}
.rsvp__already-name{font-family:var(--display);font-size:22px;color:var(--ink);line-height:1}
.rsvp__already-pill{
  font-family:var(--sans);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;
  padding:5px 12px;border-radius:999px;border:1px solid var(--line);color:var(--ink-soft);white-space:nowrap;
}
.rsvp__already-pill.is-yes{border-color:var(--gold);background:rgba(201,176,117,.16);color:var(--gold-deep)}
.rsvp__already-pill.is-no{border-color:rgba(192,130,121,.5);background:rgba(192,130,121,.1);color:var(--rose)}
.rsvp__already-note{margin:18px 0 0;color:var(--ink-soft);font-size:15px;text-align:center}
#rsvpEmail[data-masked]{color:var(--ink-soft);letter-spacing:.02em}
#rsvpEmail.is-editing{color:var(--ink)}

/* native anchor jumps clear the fixed nav too */
.section[id],section[id],#rsvp,#story,#day,#venue,#gallery,#faq{scroll-margin-top:calc(var(--nav-h) + 14px)}

/* ==========================================================
   HERO, DESKTOP: same approach as Our Story - text, then the
   painting at its natural size, full sheet width. No stretched
   background wash, no viewport-height crop, no masks.
   ========================================================== */
@media (min-width:861px){
  .hero--painted{
    min-height:0;height:auto;overflow:visible;
    background:var(--cream);
    padding:0 0 0;
  }
  .hero--painted .hero__wash{display:none}
  .hero--painted .hero__content{
    position:relative;margin:calc(var(--nav-h) + 30px) 0 0;padding:0 22px;
  }
  .hero--painted .hero__content::before{content:none}   /* glow pools not needed on cream */
  .hero--painted .hero__art{
    position:static;width:100%;margin:26px 0 0;
  }
  .hero--painted .hero__art img{
    width:100%;height:auto;display:block;
    object-fit:unset;object-position:center;
    -webkit-mask-image:none;mask-image:none;
  }
}

/* hero art now carries its own dissolving paper edge - no masks needed */
.hero--painted .hero__art img{-webkit-mask-image:none;mask-image:none}
@media (max-width:860px){
  .hero--painted .hero__art img{
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 60px);
    mask-image:linear-gradient(180deg,transparent 0,#000 60px);
  }
}

/* ==========================================================
   HERO WASHES on desktop: same ambient colour blooms the story
   section uses, drifting behind the text
   ========================================================== */
@media (min-width:861px){
  .hero--painted .hero__wash{
    display:block;position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;
  }
  .hero--painted .hero__content{z-index:2}
  .hero--painted .hero__art{position:relative;z-index:1}
  .hero--painted .wash-blob{
    position:absolute;border-radius:50%;filter:blur(46px);mix-blend-mode:multiply;
  }
  .hero--painted .wash-blob--mint{
    width:46%;aspect-ratio:1;left:-8%;top:-6%;
    background:radial-gradient(closest-side,rgba(158,208,196,.42),rgba(158,208,196,0) 72%);
    animation:blobA 30s ease-in-out infinite alternate;
  }
  .hero--painted .wash-blob--rose{
    width:40%;aspect-ratio:1;right:-6%;top:8%;
    background:radial-gradient(closest-side,rgba(233,178,172,.38),rgba(233,178,172,0) 72%);
    animation:blobB 36s ease-in-out -6s infinite alternate;
  }
  .hero--painted .wash-blob--gold{
    width:44%;aspect-ratio:1;left:22%;top:26%;
    background:radial-gradient(closest-side,rgba(229,200,123,.3),rgba(229,200,123,0) 70%);
    animation:blobC 27s ease-in-out -12s infinite alternate;
  }
}

/* section blooms take a parallax offset from the scroll engine.
   `translate` is its own property, so it composes with the drifting
   `transform` in the blob keyframes instead of overriding it. */
.section::before,.section::after,
.band::before,.band::after,
.footer::before,
.hero--painted .wash-blob{
  translate:0 var(--bloom-y, 0px);
}
@media (prefers-reduced-motion:reduce){
  .section::before,.section::after,.band::before,.band::after,
  .footer::before,.hero--painted .wash-blob{translate:none}
}


/* ==========================================================
   HERO WASHES, refined: colour lives up top behind the names;
   around the painting it settles into one calm tone so the art
   melts into the page.
   ========================================================== */
@media (min-width:861px){
  .hero--painted .hero__wash{
    inset:0 0 auto 0;
    height:var(--wash-h, 46%);      /* ends exactly where the painting starts */
    -webkit-mask-image:linear-gradient(180deg,#000 58%,rgba(0,0,0,0) 100%);
    mask-image:linear-gradient(180deg,#000 58%,rgba(0,0,0,0) 100%);
  }
  .hero--painted .wash-blob--mint{
    width:52%;left:-10%;top:-14%;
    background:radial-gradient(closest-side,rgba(158,208,196,.4),rgba(158,208,196,0) 72%);
  }
  .hero--painted .wash-blob--rose{
    width:44%;right:-8%;top:-6%;
    background:radial-gradient(closest-side,rgba(233,178,172,.34),rgba(233,178,172,0) 72%);
  }
  .hero--painted .wash-blob--gold{
    width:46%;left:26%;top:2%;
    background:radial-gradient(closest-side,rgba(229,200,123,.26),rgba(229,200,123,0) 70%);
  }
  /* one steady tone behind the painting itself */
  .hero--painted{background:var(--cream)}   /* one flat tone behind the art */
}

/* ==========================================================
   HERO WASHES everywhere: flat page colour behind the painting,
   colour blooms only above it. The old sky-wash JPEG (built from
   the previous artwork) is no longer used.
   ========================================================== */
.hero--painted{background:var(--cream)}
.hero--painted .hero__wash{
  display:block;position:absolute;inset:0 0 auto 0;z-index:0;
  height:var(--wash-h,46%);overflow:hidden;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,#000 58%,rgba(0,0,0,0) 100%);
  mask-image:linear-gradient(180deg,#000 58%,rgba(0,0,0,0) 100%);
}
.hero--painted .wash-blob{
  position:absolute;aspect-ratio:1;border-radius:50%;
  filter:blur(46px);mix-blend-mode:multiply;
}
.hero--painted .wash-blob--mint{
  width:62%;left:-14%;top:-12%;
  background:radial-gradient(closest-side,rgba(158,208,196,.4),rgba(158,208,196,0) 72%);
  animation:blobA 30s ease-in-out infinite alternate;
}
.hero--painted .wash-blob--rose{
  width:54%;right:-12%;top:-4%;
  background:radial-gradient(closest-side,rgba(233,178,172,.34),rgba(233,178,172,0) 72%);
  animation:blobB 36s ease-in-out -6s infinite alternate;
}
.hero--painted .wash-blob--gold{
  width:56%;left:20%;top:6%;
  background:radial-gradient(closest-side,rgba(229,200,123,.26),rgba(229,200,123,0) 70%);
  animation:blobC 27s ease-in-out -12s infinite alternate;
}

/* save-the-date band: matching rule above and below */
.band{border-top:1px solid var(--line)}

/* the following sections sit above the hero, so the drifting painting
   slides under the save-the-date band instead of over it */
.hero--painted{position:relative;z-index:0}
.band{position:relative;z-index:2;background-color:var(--cream)}
.section{position:relative;z-index:1}

/* mobile hero: the new painting dissolves on its own, so drop the old
   top fade, and give the button room to breathe above it */
@media (max-width:860px){
  .hero--painted .hero__art img{-webkit-mask-image:none;mask-image:none}
  .hero--painted .hero__content{padding-bottom:26px}
  .hero--painted .hero__content .btn{margin-bottom:8px}
}

/* mobile hero art drifts within the hero, never past its edges */
@media (max-width:860px){
  .hero--painted{overflow:hidden}
  .hero--painted .hero__art img{will-change:transform}
}

/* story video: show its poster immediately and hold the space so the
   section never appears blank while the clip spins up */
.story__art--video{background:var(--ivory)}
.story__art--video video{
  display:block;width:100%;height:auto;aspect-ratio:1422/1080;object-fit:cover;
  background:var(--ivory);
}

/* mobile hero: art flows after the content with a guaranteed 25px gap,
   and still sits on the bottom edge when there is room to spare */
@media (max-width:860px){
  .hero--painted{display:flex;flex-direction:column;justify-content:space-between}
  .hero--painted .hero__art{position:static;margin:10px 0 0;width:100%}
  .hero--painted .hero__content{padding-bottom:0}
  .hero--painted .hero__content .btn{margin-bottom:0}
}

/* keep the moving layers on their own compositor layers so scrolling
   does not repaint the blurred washes every frame */
.hero__art img,.story__art img,.venue__art img{will-change:transform}
.hero--painted .wash-blob{will-change:transform}
@media (max-width:860px){
  /* mobile: blurred multiply layers are the main scroll cost */
  .section::before,.section::after,.band::before,.band::after,.footer::before{
    translate:none;
  }
  .hero--painted .wash-blob{filter:blur(38px)}
}

/* ==========================================================
   SCROLL PERFORMANCE: the ambient blooms were blurred, blended
   layers being re-composited every frame (24ms/frame on desktop).
   The gradients are already soft, so the blur filter is redundant;
   dropping it and the per-frame offset restores 60fps while the
   blooms keep drifting via their compositor-driven keyframes.
   ========================================================== */
.section::before,.section::after,
.band::before,.band::after,
.footer::before{
  filter:none;
  translate:none;
  will-change:transform;
}
.hero--painted .wash-blob{filter:blur(30px);translate:none}

/* The section blooms were animating continuously across huge blended
   layers, which forced a re-composite every frame (34ms). They hold
   their position now - the colour and softness are unchanged - and the
   drifting is left to the hero blobs, which are small enough to be free. */
.section::before,.section::after,
.band::before,.band::after,
.footer::before{
  animation:none;
  will-change:auto;
}

/* hero art may now be wrapped in <picture> */
.hero__art picture{display:block;width:100%}
/* make sure the ambient blooms really are held still (equal specificity
   rules exist further up the file) */
.section::before,.section::after,
.band::before,.band::after,
.footer::before{animation:none !important}

/* ==========================================================
   The ambient washes are soft radial gradients already, so the
   blur filter and multiply blend added nothing but cost: with
   both on, scrolling ran at 41ms/frame; without them, 16.7ms.
   Alpha is nudged so they read the same over the page colours.
   ========================================================== */
.section::before,.section::after,
.band::before,.band::after,
.footer::before{
  filter:none !important;
  mix-blend-mode:normal !important;
  will-change:auto !important;
}

/* the hero blobs were the last scroll cost (40ms -> 17ms when hidden):
   they are radial gradients already, so the blur and multiply blend are
   dropped and the softness comes from the gradient itself */
.hero--painted .wash-blob{
  filter:none !important;
  mix-blend-mode:normal !important;
}
.hero--painted .wash-blob--mint{
  background:radial-gradient(closest-side,rgba(158,208,196,.34),rgba(158,208,196,0) 78%);
}
.hero--painted .wash-blob--rose{
  background:radial-gradient(closest-side,rgba(233,178,172,.3),rgba(233,178,172,0) 78%);
}
.hero--painted .wash-blob--gold{
  background:radial-gradient(closest-side,rgba(229,200,123,.24),rgba(229,200,123,0) 76%);
}

/* the story clip is a hard-edged rectangle (its paper edge was cropped
   out when the bars were removed), so feather it into the page */
.story__art--video video{
  -webkit-mask-image:
    linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),
    linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:
    linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),
    linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  mask-composite:intersect;
  background:transparent;
}
.story__art--video{background:transparent}

/* hero uses the frozen pixel height so a collapsing phone toolbar can
   never reflow the page mid-scroll (falls back to svh without JS) */
@media (max-width:860px){
  .hero--painted{min-height:var(--hero-h,100svh)}
}

/* the painting flows straight into the save-the-date band */
.band{border-top:0}

/* JS drives the smooth anchor scrolling; leaving CSS smooth-scroll on as
   well meant two animations competing for the scroll position on touch */
html{scroll-behavior:auto}

/* back to the CSS fade on the video edges */
.story__art--video video{
  -webkit-mask-image:
    linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),
    linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:
    linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),
    linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  mask-composite:intersect;
  background:transparent;
}
