/* Arshdeep & Morgan — public RSVP site (prototype)
   Aesthetic authority: docs/rsvp/assets/invitation-designer-brief.pdf + RSVP website design reference.
   Warm ivory ground · gold AM monogram with a soft glow · crimson script · multi-lobed gold mehrab frame
   · painted rose + foliage corners that grow in. */

:root{
  /* Palette — design reference tokens */
  --ivory:#FAF8F4; --ivory-hi:#FFFEFB;
  --ink:#302F2C; --ink-soft:#5B524B; --muted:#74675A;   /* muted: 5.2:1 on ivory (WCAG AA for small text) */
  --crimson:#C52E3B; --crimson-text:#AD2633;
  --gold:#AA824B; --gold-deep:#86632F; --gold-hi:#E3C88E;
  --green:#32694D; --peacock:#1D6176;
  --ev:var(--green);   /* a celebration colour, unless it has its own below */
  --gold-grad:linear-gradient(135deg,#86632F 0%,#C49A55 36%,#EBD39B 50%,#B8904F 64%,#7E5C30 100%);

  /* One motion language for the whole site */
  --ease:cubic-bezier(.22,.61,.36,1);      /* soft, settled ease-out */
  --ease-io:cubic-bezier(.65,0,.35,1);     /* graceful in-out for drawn lines */
  --petal:cubic-bezier(.4,.06,.22,1);      /* rose petals: a brief bud, a steady opening, a soft settle */
  --leaf:cubic-bezier(.2,.8,.3,1.06);      /* leaves: sprout fast, unfurl, settle with the faintest overshoot */
  --stagger:110ms;

  --script:'Pinyon Script','Snell Roundhand',cursive;
  --serif:'Cormorant Garamond','Cormorant',Garamond,'Times New Roman',serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; min-height:100vh; min-height:100svh; overflow-x:hidden;
  color:var(--ink); font-family:var(--serif); font-size:18px; line-height:1.55;
  /* faint paper grain over a soft ivory glow — painted with the page (not a fixed full-screen layer,
     which costs ~20 MB of GPU memory on an iPad) */
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .033 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1100px 760px at 50% -8%, #FFFEFB 0%, var(--ivory) 52%, #F1EADD 100%), var(--ivory);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
.defs{position:absolute; width:0; height:0; overflow:hidden}

.stage{
  position:relative; z-index:1; min-height:100vh; min-height:100svh; display:grid; place-items:center; align-content:center; overflow-x:clip;
  padding:max(26px, env(safe-area-inset-top)) 14px max(30px, env(safe-area-inset-bottom));
}

/* ── The card + multi-lobed mehrab frame ─────────────────── */
.card{
  position:relative; width:min(100%, 480px); isolation:isolate;
  /* The arch has three zones: the top dome holds the monogram; all text and controls live between
     the straight walls (full width); the bottom dome holds a small ornament. Padding is derived from
     the arch height (--ah) so nothing ever crosses the scalloped lobes. */
  padding:calc(var(--ah, 160px) * .22 + 4px) clamp(22px, 7vw, 46px) calc(var(--bh, 90px) * .88 + 6px);
}
/* its own GPU layer: the gold line drawing in (and the frame following the card's height) repaints
   only the frame, not the text and florals around it */
.frame{position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; overflow:visible; z-index:-1; pointer-events:none; will-change:transform}
.frame-fill{fill:var(--ivory-hi); opacity:0; transition:opacity 2s var(--ease) .8s}
.card.is-drawn .frame-fill{opacity:.8}
.frame-l,.frame-r{fill:none; stroke:url(#goldStroke); stroke-width:1.35; stroke-linecap:round; stroke-linejoin:round}
.finial{fill:url(#goldBall); opacity:0; transform-box:fill-box; transform-origin:center; transform:scale(.2);
  transition:opacity .7s var(--ease), transform 1s var(--ease)}
.card.is-drawn .finial{opacity:1; transform:none}

/* ── Steps: stacked; the container glides to each step's height and the frame follows ── */
.steps{position:relative; z-index:2; transition:height .75s var(--ease)}
.step{position:absolute; top:0; left:0; right:0; text-align:center; visibility:hidden; pointer-events:none; --base:80ms}
.step.is-active{visibility:visible; pointer-events:auto}
.step[data-step="welcome"]{--base:950ms}          /* wait for the monogram to bloom */
.step :focus{outline:none}
.step :focus-visible{outline:2px solid var(--gold); outline-offset:4px}

/* Reveal: fade + rise, staggered by --i (no blur — animating blur on text stutters on iPad/iPhone) */
.reveal{
  opacity:0; transform:translate3d(0,14px,0);
  transition:opacity .95s var(--ease), transform 1.1s var(--ease);
  transition-delay:calc(var(--base) + var(--i, 0) * var(--stagger));
}
.step.is-in .reveal{opacity:1; transform:none}
.step.is-leaving .reveal{opacity:0; transform:translate3d(0,-10px,0); transition-duration:.42s; transition-delay:0s}

/* ── Monogram with soft golden glow + a passing sheen ── */
.mono{position:relative; width:min(48vw, 236px); margin:0 auto 2px; isolation:isolate}
.mono picture,.mono-img{display:block; width:100%; height:auto}
/* Fade + gentle scale only. (No animated blur on the big image — heavy on phones, and a
   suspect in WebKit's white-box glitch.) The drop shadow is static, never animated. */
.mono-img{
  opacity:0; transform:scale(.93);
  filter:drop-shadow(0 10px 18px rgba(110,78,22,.2)) drop-shadow(0 1px 1px rgba(110,78,22,.25));
  transition:opacity 1.5s var(--ease) .25s, transform 2.1s var(--ease) .25s;
}
.step.is-in .mono-img{opacity:1; transform:none}
.step.is-leaving .mono-img{opacity:0; transform:scale(.97); transition-duration:.42s; transition-delay:0s}
.mono-glow{
  position:absolute; left:50%; top:52%; width:175%; aspect-ratio:1.7; z-index:-1; border-radius:50%;
  background:radial-gradient(closest-side, rgba(233,203,140,.52) 0%, rgba(233,203,140,.2) 45%, rgba(233,203,140,0) 100%);
  transform:translate(-50%,-50%) scale(.55); opacity:0;
  transition:opacity 2.2s var(--ease) .15s, transform 2.8s var(--ease) .15s;
}
.step.is-in .mono-glow{opacity:1; transform:translate(-50%,-50%) scale(1); animation:breathe 6s ease-in-out 3.4s infinite}
.step.is-leaving .mono-glow{opacity:0; transition-duration:.42s; transition-delay:0s; animation:none}
@keyframes breathe{0%,100%{opacity:1} 50%{opacity:.7}}
/* A soft band of light sweeps across the gold letters every ~9s (SVG, see #monoMask) */
.mono-sheen{position:absolute; top:0; right:0; bottom:0; left:0; pointer-events:none; line-height:0}
.mono-sheen svg{display:block; width:100%; height:100%; overflow:hidden}
.sheen-band{transform:translateX(0)}
.step.is-in .sheen-band{animation:sheen 9s var(--ease-io) 2s infinite}
@keyframes sheen{0%{transform:translateX(0)} 22%,100%{transform:translateX(1060px)}}
.mono-done{width:min(42vw, 200px); margin-bottom:6px}

/* Fills the top dome; the bottom margin drops the heading below the lobes to the full-width walls */
.mono-sm{position:relative; width:140px; margin:0 auto max(6px, calc(var(--ah, 160px) * .78 - 100px)); isolation:isolate}
.mono-sm img{display:block; width:100%; height:auto; filter:drop-shadow(0 6px 12px rgba(110,78,22,.18))}
.mono-sm::before{
  content:""; position:absolute; left:50%; top:52%; width:200%; aspect-ratio:1.7; z-index:-1; border-radius:50%;
  transform:translate(-50%,-50%); background:radial-gradient(closest-side, rgba(233,203,140,.38), rgba(233,203,140,0));
}

/* ── Type ── */
.kicker{margin:12px 0 2px; font-size:13px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--muted)}
@media (max-width:420px){ .kicker{font-size:12px; letter-spacing:.15em} }
/* Each full name on its own line (per the brief); JS sizes --names-fs so the longest name fits */
.names{margin:6px 0 0; font-family:var(--script); font-weight:400; color:var(--crimson); line-height:1.12; font-size:var(--names-fs, clamp(28px, 8vw, 52px))}
.names span{display:block; width:max-content; max-width:none; margin-inline:auto; white-space:nowrap}
.names .amp{
  font-family:var(--serif); font-style:italic; font-weight:500; line-height:1;
  font-size:calc(var(--names-fs, 40px) * .82); margin:0 auto 4px; padding:0 .06em;
  background:var(--gold-grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.script-h{margin:4px 0 2px; font-family:var(--script); font-weight:400; color:var(--crimson); font-size:clamp(36px, 9.4vw, 46px); line-height:1.12}
.lede{margin:4px auto 0; max-width:32ch; font-size:18.5px; color:var(--ink-soft)}
.lede strong{font-weight:600; color:var(--ink)}
.meta{margin:0; font-size:20px; font-weight:500; letter-spacing:.03em}
.meta span{display:block; margin-top:3px; font-size:13.5px; font-weight:600; letter-spacing:.24em; text-transform:uppercase; color:var(--muted)}
.deadline{margin:18px 0 26px; font-size:17.5px; font-style:italic; color:var(--ink-soft)}
.deadline em{color:var(--crimson-text); font-weight:500}
.family{margin:2px 0 0; font-size:16.5px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--ink)}

/* ── Divider: gold lines draw outward from an eight-petal rosette ── */
.divider{display:flex; justify-content:center; margin:16px 0 14px}
.divider svg{overflow:visible}
.divider .dl{fill:none; stroke:url(#goldLine); stroke-width:1.1; stroke-dasharray:84; stroke-dashoffset:84;
  transition:stroke-dashoffset 1.4s var(--ease-io);
  transition-delay:calc(var(--base) + var(--i, 0) * var(--stagger) + 140ms)}
.step.is-in .divider .dl{stroke-dashoffset:0}
.divider .rosette{opacity:0; transform-box:fill-box; transform-origin:center; transform:scale(.2) rotate(-90deg);
  transition:opacity .8s var(--ease), transform 1.3s var(--ease);
  transition-delay:calc(var(--base) + var(--i, 0) * var(--stagger))}
.divider .rosette path,.divider .rosette ellipse{fill:none; stroke:url(#goldStroke); stroke-width:1.15; stroke-linecap:round}
.divider .rosette circle{fill:url(#goldBall)}
.step.is-in .divider .rosette{opacity:1; transform:none}

/* ── Buttons ── */
.btn{
  position:relative; overflow:hidden; display:inline-flex; align-items:center; justify-content:center;
  min-width:min(196px, 100%); max-width:100%; min-height:54px; padding:10px 30px 10px calc(30px + .26em); line-height:1.25; text-align:center;
  border:0; border-radius:3px; cursor:pointer; text-decoration:none; -webkit-tap-highlight-color:transparent;
  font:600 15px/1.25 var(--serif); letter-spacing:.24em; text-transform:uppercase; color:#FFFBF2;
  background:linear-gradient(180deg,#CD3645 0%, var(--crimson) 58%, #AF2633 100%);
  box-shadow:0 14px 28px -16px rgba(146,30,43,.72), inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), opacity .35s;
}
.btn::before{content:""; position:absolute; top:5px; right:5px; bottom:5px; left:5px; border:1px solid rgba(227,200,142,.66); border-radius:1px; pointer-events:none}
.btn::after{
  content:""; position:absolute; top:0; bottom:0; left:-80%; width:55%; pointer-events:none;
  background:linear-gradient(100deg, transparent, rgba(255,240,210,.3), transparent); transform:skewX(-18deg);
  transition:left 1s var(--ease);
}
@media (hover:hover){
  .btn:hover{transform:translateY(-1px); box-shadow:0 18px 32px -16px rgba(146,30,43,.8), inset 0 1px 0 rgba(255,255,255,.14)}
  .btn:hover::after{left:130%}
}
.btn:active{transform:scale(.985)}
.btn:disabled{opacity:.7; cursor:progress}
.link{
  background:none; border:0; cursor:pointer; padding:12px 14px; -webkit-tap-highlight-color:transparent;
  font:600 13.5px/1 var(--serif); letter-spacing:.2em; text-transform:uppercase; color:var(--muted);
  transition:color .3s var(--ease);
}
.link:hover{color:var(--gold-deep)}
.link-sm{display:block; margin:10px auto 0; letter-spacing:.06em; text-transform:none; font-size:15px; font-style:italic; font-weight:500}
.actions{display:flex; flex-direction:column; align-items:center; gap:2px; margin-top:24px}

/* ── Errors: specific, calm, never just a colour ── */
.err{margin:7px 0 0; font-size:15px; line-height:1.35; font-style:italic; font-weight:500; color:var(--crimson-text); text-align:left}
.err:empty{display:none}
.form-err{text-align:center; margin-top:16px}

/* ── Address form: underline fields with floating small-caps labels ── */
.addr{margin-top:6px; text-align:left}
.field{position:relative; margin-top:12px}
.addr-grid{display:grid; grid-template-columns:1.25fr 1fr; column-gap:18px}
.addr-grid > .field{min-width:0}
.addr-grid .f-city{grid-column:1 / -1}
/* Germany: postcode before the town, on one line ("10115 Berlin") */
.addr[data-cc="DE"] .addr-grid{grid-template-columns:1fr 1.7fr}
.addr[data-cc="DE"] .f-postal{order:1}
.addr[data-cc="DE"] .f-city{order:2; grid-column:auto}
/* Another country and India: long labels ("PIN code (optional)"), so one box per line */
.addr[data-cc="OTHER"] .addr-grid, .addr[data-cc="IN"] .addr-grid{grid-template-columns:1fr}
/* the smallest phones: one box per line, so no label is cut short */
@media (max-width:360px){
  .addr[data-cc] .addr-grid{grid-template-columns:1fr}
  .addr[data-cc] .addr-grid .f-city{grid-column:auto}
}
/* The country dropdown, styled like the other fields; its label always sits up top */
.field select{
  display:block; width:100%; border:0; border-radius:0; -webkit-appearance:none; appearance:none; cursor:pointer;
  border-bottom:1px solid rgba(134,99,47,.38); outline:none;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386632F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px;
  font:500 19px/1.2 var(--serif); color:var(--ink); padding:25px 26px 9px 2px;
}
.field select ~ label{transform:translateY(-19px) scale(.84); color:var(--gold-deep)}
.field select:focus-visible{outline:none}
.field input{
  display:block; width:100%; border:0; border-radius:0; background:transparent; -webkit-appearance:none; appearance:none;
  border-bottom:1px solid rgba(134,99,47,.38);
  font:500 19px/1.2 var(--serif); color:var(--ink); padding:25px 2px 9px; outline:none;
}
.field input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #FEFCF8 inset; -webkit-text-fill-color:var(--ink)}
.field label{
  position:absolute; left:2px; top:26px; pointer-events:none; transform-origin:0 0; white-space:nowrap;
  font:600 13px/1 var(--serif); letter-spacing:.18em; text-transform:uppercase; color:var(--muted);
  transition:transform .4s var(--ease), color .4s var(--ease);
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label{transform:translateY(-19px) scale(.84); color:var(--gold-deep)}
.field .opt{text-transform:none; letter-spacing:.02em; font-style:italic; font-weight:500}
.field::after{
  content:""; position:absolute; left:50%; right:50%; top:56px; height:2px; background:var(--gold-grad);
  transition:left .55s var(--ease), right .55s var(--ease);
}
.field:focus-within::after{left:0; right:0}
.field input:focus-visible{outline:none}   /* the gold underline + floating label are the focus indicator */
.field.is-invalid input{border-bottom-color:rgba(173,38,51,.65)}
.field.is-invalid label{color:var(--crimson-text)}
.shake{animation:shake .5s var(--ease)}
@keyframes shake{0%,100%{transform:none} 20%{transform:translateX(-6px)} 40%{transform:translateX(5px)} 60%{transform:translateX(-3px)} 80%{transform:translateX(2px)}}

/* smooth expand/collapse (country field, per-event headcounts) */
.collapse{display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .55s var(--ease), opacity .45s var(--ease)}
.collapse > div{overflow:hidden; min-height:0}
.collapse.open{grid-template-rows:1fr; opacity:1}

/* While an invitation is being looked up (only when the envelope isn't playing): the button says so */
.btn[aria-busy="true"]{cursor:progress; opacity:.88}
/* visually hidden, still read aloud */
.vh{position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}

/* ── Per-event RSVP cards (event colour always paired with the event name) ── */
.ev-wedding{--ev:var(--crimson)} .ev-reception{--ev:var(--peacock)}
.events{display:grid; grid-template-columns:minmax(0, 1fr); gap:14px; margin-top:20px; text-align:left}
.event-card{
  position:relative; padding:18px 18px 16px; border-radius:6px;
  background:var(--ivory-hi); border:1px solid rgba(170,130,75,.3);
  box-shadow:0 12px 26px -22px rgba(80,60,30,.45);
  transition:border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.event-card::before{content:""; position:absolute; left:16px; right:16px; top:-1px; height:2px; border-radius:0 0 2px 2px; background:var(--ev)}
.event-card.is-invalid{border-color:rgba(173,38,51,.55); box-shadow:0 0 0 3px rgba(197,46,59,.08)}
.ev-name{margin:0; font-family:var(--script); font-weight:400; font-size:33px; line-height:1.1; color:var(--ev)}
.ev-sub{margin:0; font-size:13px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--ev)}
.ev-when{margin:6px 0 0; font-size:16px; font-weight:600; line-height:1.35; color:var(--ink)}
.ev-where{margin:1px 0 0; font-size:15.5px; font-style:italic; color:var(--ink-soft)}
.choice{display:flex; flex-wrap:wrap; gap:6px; margin-top:14px}   /* yes · maybe · no: one row, or more rows with large text */
.pill{
  position:relative; flex:1 1 84px; display:flex; align-items:center; justify-content:center; min-height:52px; padding:8px 6px;
  border:1px solid rgba(170,130,75,.5); border-radius:4px; background:#fff; cursor:pointer; text-align:center;
  font:600 13.5px/1.25 var(--serif); letter-spacing:.07em; text-transform:uppercase; color:var(--ink-soft);
  -webkit-tap-highlight-color:transparent;
  transition:background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), transform .25s var(--ease);
}
.pill input{position:absolute; top:0; right:0; bottom:0; left:0; margin:0; opacity:0; cursor:pointer}
.pill:active{transform:scale(.985)}
.pill:focus-within{outline:2px solid var(--gold); outline-offset:2px}
.pill:has(input:not(:focus-visible)):focus-within{outline:none}
.event-card[data-answer="yes"] .pill-yes{background:var(--ev); border-color:var(--ev); color:#FFFDF8; box-shadow:0 10px 20px -14px var(--ev)}
.event-card[data-answer="no"] .pill-no{background:var(--ink); border-color:var(--ink); color:#FFFDF8}
/* "Maybe": outlined in the event's colour, so it reads as a softer answer than a filled "Will attend" */
.event-card[data-answer="maybe"] .pill-maybe{background:#fff; border-color:var(--ev); color:var(--ev); box-shadow:inset 0 0 0 1px var(--ev)}
.maybe-hint{display:none; margin:0 0 -4px; font-size:15.5px; font-style:italic; color:var(--ink-soft)}
.event-card[data-answer="maybe"] .maybe-hint{display:block}
.counts{display:grid; gap:10px; padding-top:16px}
.counter{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px}
.c-label{font-size:17.5px; font-weight:600; line-height:1.2; color:var(--ink)}
.c-label small{display:block; font-size:13.5px; font-weight:500; font-style:italic; color:var(--muted)}
.stepper{display:flex; align-items:center; gap:6px; margin-left:auto}
.step-btn{
  width:44px; height:44px; border-radius:50%; border:1px solid rgba(170,130,75,.55); background:#fff; cursor:pointer;
  font:500 24px/1 var(--serif); color:var(--gold-deep); -webkit-tap-highlight-color:transparent;
  transition:background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease), opacity .3s;
}
.step-btn:active{transform:scale(.92)}
@media (hover:hover){ .step-btn:not(:disabled):hover{background:var(--ev); color:#fff; border-color:var(--ev)} }
.step-btn:disabled{opacity:.3; cursor:default}
.stepper output{display:inline-block; min-width:30px; text-align:center; font-size:23px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums}
.stepper output.bump{animation:bump .45s var(--ease)}
@keyframes bump{from{opacity:.2; transform:translateY(-8px)} to{opacity:1; transform:none}}

/* household details — visible labels, plain opaque fields */
.household{margin:26px 0 0; padding:0; border:0; min-width:0; text-align:left}
.household legend{padding:0; margin:0 auto 2px; width:100%; text-align:center}
.field-a{margin-top:14px}
.field-a label{display:block; margin-bottom:6px; font:600 13px/1.3 var(--serif); letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft)}
.field-a .opt{text-transform:none; letter-spacing:.02em; font-style:italic; font-weight:500; color:var(--muted)}
.field-a textarea{
  display:block; width:100%; resize:vertical; outline:none;
  border:1px solid rgba(170,130,75,.4); border-radius:4px; background:#fff; padding:11px 12px;
  font:500 18px/1.45 var(--serif); color:var(--ink);
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field-a textarea::placeholder{color:#A99B8D; font-style:italic; white-space:pre-wrap}
.field-a textarea:focus{border-color:var(--gold); box-shadow:0 0 0 3px rgba(170,130,75,.18)}
.field-a.is-invalid textarea{border-color:rgba(173,38,51,.6)}
/* Reception guest names: one row per guest, in the Reception's peacock accent */
.guest-names{margin-top:16px; padding:14px 14px 4px; border:1px solid rgba(29,97,118,.25); border-top:2px solid var(--peacock);
  border-radius:6px; background:#fff}
.gn-title{margin:0; font:600 13px/1.3 var(--serif); letter-spacing:.16em; text-transform:uppercase; color:var(--peacock)}
.gn-hint{margin:2px 0 12px; font-size:15px; font-style:italic; line-height:1.35; color:var(--muted)}
.gn-row{display:grid; grid-template-columns:76px 1fr; align-items:center; gap:10px; margin-bottom:10px}
.gn-row label{font:600 13px/1.2 var(--serif); letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft)}
.gn-row input{
  display:block; width:100%; min-width:0; border:1px solid rgba(170,130,75,.4); border-radius:4px; background:#fff;
  padding:10px 12px; font:500 18px/1.3 var(--serif); color:var(--ink); outline:none; -webkit-appearance:none; appearance:none;
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.gn-row input::placeholder{color:#A99B8D; font-style:italic}
.gn-row input:focus{border-color:var(--gold); box-shadow:0 0 0 3px rgba(170,130,75,.18)}
.gn-row.is-invalid input{border-color:rgba(173,38,51,.6)}
#e-rec-names{margin:0 0 12px}
.addr-confirm{margin-top:18px; padding:14px 16px 6px; border:1px dashed rgba(170,130,75,.45); border-radius:5px; text-align:center}
.ac-label{display:block; font-size:13px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--muted)}
.ac-addr{display:block; margin-top:4px; font-size:17.5px; color:var(--ink)}
.addr-confirm .link-sm{margin-top:2px}

/* ── Review ── */
.review-list{display:grid; grid-template-columns:minmax(0, 1fr); gap:10px; margin-top:18px; text-align:left}
.rv-row{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px;
  padding:12px 16px; border-radius:5px; background:var(--ivory-hi); border:1px solid rgba(170,130,75,.28);
  border-left:3px solid var(--ev);
}
.rv-ev{font-family:var(--script); font-size:27px; line-height:1.1; color:var(--ev)}
.rv-ans{margin-left:auto; font-size:16px; font-weight:600; line-height:1.3; color:var(--ink); text-align:right}
.rv-ans small{display:block; font-size:14px; font-weight:500; font-style:italic; color:var(--ink-soft)}
.rv-ans.no{color:var(--muted); font-weight:500; font-style:italic}
.rv-ans.maybe{color:var(--ink-soft); font-style:italic}
.rv-extra{padding:12px 16px; border-radius:5px; background:var(--ivory-hi); border:1px solid rgba(170,130,75,.22)}
.rv-extra dt{font-size:13px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--muted)}
.rv-extra dd{margin:2px 0 10px; font-size:17px; color:var(--ink); white-space:pre-line}
.rv-extra dd:last-child{margin-bottom:0}

/* ── Florals: vines grow out of the corner, painted leaves sprout and unfurl along them, roses bloom.
   The stems are drawn live (app.js: a tapered outline redrawn each frame up to the growing tip); the
   leaves and roses move by transform + opacity only, so the GPU moves ready-made layers. (No CSS masks,
   no animated blur: those repaint paintings every frame, which is what stuttered on iPad/iPhone.) ── */
.flora{position:absolute; width:clamp(104px, 34%, 240px); aspect-ratio:1; z-index:1; pointer-events:none}
@media (min-width:720px){ .flora{width:44%} }
.flora-bl{left:0; bottom:0; transform:translate(-9%, 7%)}                 /* nestled into the corner beside the lobes */
/* the top arch is deeper than the bottom one (--ah vs --bh), so the top-right group sits a little lower
   (60% of the difference) to rest on the upper lobes like the bottom-left group rests on the lower ones,
   while keeping clear of the monogram and headings (owner, 2026-09-29) */
.flora-tr{right:0; top:calc((var(--ah, 160px) - var(--bh, 88px)) * .6); transform:translate(9%, -7%) rotate(180deg)}

/* stems: deep olive body + a warm highlight down the middle (colours sampled from the painted stems) */
.vines{position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; overflow:visible; will-change:transform}
.stem{fill:#4B4A1E}
.stem-hi{fill:#8A7D3A; opacity:.55}

/* Leaves: each is anchored where it joins the stem (.leaf, turned to its final angle); inside it the
   painted leaf's stalk sits on that point with its midrib along +x. It sprouts folded against the stem,
   tiny and narrow, then grows out, widens and swings open to its angle, with a soft settle. */
.leaves{position:absolute; top:0; right:0; bottom:0; left:0}
.leaf{position:absolute; transform-origin:0 0; transform:rotate(var(--phi))}
.leaf-g{
  transform-origin:0 0; transform:rotate(var(--u)) scale(.08, calc(.03 * var(--m))); opacity:0;
  transition:transform 1.15s var(--leaf), opacity .28s linear;   /* no will-change: layers are promoted only while animating */
}
.leaf.is-grown .leaf-g{transform:scale(1, var(--m)); opacity:1}
/* the stalk end (--bx,--by) moves onto the anchor point and the midrib (--a0) turns to +x */
.leaf img{display:block; width:100%; height:auto; transform-origin:var(--bx) var(--by);
  transform:translate(calc(var(--bx) * -1), calc(var(--by) * -1)) rotate(calc(var(--a0) * -1))}

/* Roses */
.fl{
  position:absolute; left:var(--x); top:var(--y); width:var(--w);
  transform-origin:var(--ox) var(--oy);
  transform:translate(calc(var(--ox) * -1), calc(var(--oy) * -1)) rotate(var(--rot));
}
.fl-sway{transform-origin:var(--ox) var(--oy)}
.fl-sway img{display:block; width:100%; height:auto}
.fl-rose.is-open .fl-sway{animation:sway calc(var(--sw, 8s) * 2) linear 3.6s infinite}
/* a slow sine sway that starts from rest (no jump when it kicks in) */
@keyframes sway{
  0%  {transform:rotate(0);       animation-timing-function:cubic-bezier(.33,1,.68,1)}
  25% {transform:rotate(1.2deg);  animation-timing-function:cubic-bezier(.32,0,.67,0)}
  50% {transform:rotate(0);       animation-timing-function:cubic-bezier(.33,1,.68,1)}
  75% {transform:rotate(-1.2deg); animation-timing-function:cubic-bezier(.32,0,.67,0)}
  100%{transform:rotate(0)}
}
/* A rose is five stacked copies of the painting: four rings cut along its painted petal rims (tight
   centre → inner cup → cup petals → middle petals) over the full painting (outer petals). Each ring
   unfurls from a smaller, twisted start, centre first, so the flower opens outward and every edge you
   see mid-bloom is a real petal edge. At rest they recompose the painting exactly. */
.rose{position:relative}
.rose .pl{
  transform-origin:53.1% 39.4%;                  /* the spiral's centre in crimson-rose */
  transform:rotate(var(--a0)) scale(var(--s0)); opacity:0;
  transition:transform var(--pd) var(--petal) calc(var(--d) + var(--pt)), opacity .35s linear calc(var(--d) + var(--pt));
}
.rose .pl + .pl{position:absolute; left:0; top:0}
/* Every ring starts tucked inside the bud, a little smaller than the ring above it (s0 × its radius
   shrinks outward: ≈22, 20, 18, 16, 14px of the painting), so each outer ring opens out from
   underneath the petals before it: no ring ever appears as a pale ghost around the flower. */
.pl-0{--a0:-96deg; --s0:.49; --pt:0ms;   --pd:2s}
.pl-1{--a0:-74deg; --s0:.25; --pt:120ms; --pd:2.4s}
.pl-2{--a0:-54deg; --s0:.15; --pt:260ms; --pd:2.8s}
.pl-3{--a0:-38deg; --s0:.09; --pt:420ms; --pd:3.1s}
.pl-4{--a0:-24deg; --s0:.05; --pt:600ms; --pd:3.4s}
.fl-rose.is-open .rose .pl{transform:none; opacity:1}

/* ── Updates for guests: a quiet card above the invitation, only when there is one ── */
.notice{
  width:min(100%, 480px); margin:0 0 18px; padding:12px 20px 13px; text-align:center;
  background:var(--ivory-hi); border:1px solid rgba(170,130,75,.4); border-radius:6px;
  box-shadow:0 10px 24px -20px rgba(80,60,30,.5);
  opacity:0; transform:translate3d(0,-6px,0); transition:opacity .9s var(--ease) .6s, transform .9s var(--ease) .6s;
}
.notice[hidden]{display:none}
.notice.is-in{opacity:1; transform:none}
.notice-k{margin:0 0 3px; font-size:12.5px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--crimson-text)}
.notice-d::before{content:" · "; color:var(--muted)}
.notice-d:empty{display:none}
.notice-t{margin:0; font-size:17.5px; line-height:1.45; color:var(--ink)}

/* ── "Which invitation is yours?" (several invitations at one address) ── */
.choose-list{display:grid; gap:10px; margin:18px auto 6px; max-width:22em}
.choose-btn{min-height:52px; padding:10px 16px; border:1px solid rgba(170,130,75,.5); border-radius:5px; background:#fff; cursor:pointer;
  font:600 17px/1.3 var(--serif); color:var(--ink); overflow-wrap:anywhere; -webkit-tap-highlight-color:transparent; transition:border-color .3s var(--ease), box-shadow .3s var(--ease)}
.choose-btn:hover,.choose-btn:focus-visible{border-color:var(--gold-deep); box-shadow:0 8px 18px -14px rgba(80,60,30,.6)}

/* ── After the wedding: the landing becomes a thank-you (site mode "thanks") ── */
.thanks-only{display:none}
.mode-thanks .thanks-only{display:block}
.mode-thanks .rsvp-only{display:none}
.share-wrap{margin:0 0 12px}            /* guest photo sharing (once the weekend starts): above the RSVP button */
.share-wrap[hidden]{display:none}
/* The same width as the buttons under it: its words are longer, so it gets slimmer side padding */
.share-wrap .btn, #details-share{min-width:min(256px,100%); padding:10px 18px 10px calc(18px + .26em)}
#details-share{margin-bottom:12px}
#details-share[hidden]{display:none}

/* ── Countdown on the welcome + the Weekend details page (owner 2026-10-27) ── */
.countdown{display:flex; justify-content:center; flex-wrap:wrap; gap:4px clamp(14px, 5vw, 26px); margin:16px 0 0}
.countdown[hidden]{display:none}
.cd-part{display:flex; flex-direction:column; align-items:center; min-width:3.4em}
.cd-n{font-size:28px; font-weight:500; line-height:1.05; color:var(--gold-deep); font-variant-numeric:lining-nums tabular-nums}
.cd-u{margin-top:3px; font-size:11.5px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--muted)}
.countdown + .deadline{margin-top:14px}
/* a quieter second button (Weekend Details) under the crimson one */
.btn-ghost{margin-top:12px; min-height:50px; color:var(--gold-deep); background:rgba(255,254,251,.65); border:1px solid rgba(134,99,47,.5); box-shadow:none}
.btn-ghost::before{border-color:rgba(170,130,75,.28)}
.btn-ghost::after{background:linear-gradient(100deg, transparent, rgba(227,200,142,.28), transparent)}
@media (hover:hover){ .btn-ghost:hover{box-shadow:0 14px 26px -18px rgba(110,78,22,.45)} }
.btn-ghost:active{background:var(--ivory)}
.step[data-step="done"] .btn-ghost{margin-top:2px}
/* A household's welcome: same-width buttons */
.step[data-step="hello"] .btn{min-width:min(256px,100%)}
.step[data-step="hello"] .countdown{margin-top:14px}
.step[data-step="hello"] .actions{margin-top:20px}
.check-pill{position:fixed; left:50%; bottom:calc(14px + env(safe-area-inset-bottom, 0px)); transform:translateX(-50%); z-index:60; margin:0; max-width:calc(100vw - 24px);
  padding:8px 14px; border-radius:20px; background:#302F2C; color:#fff; font-size:14px; line-height:1.3; text-align:center}
.check-pill[hidden]{display:none}
.details-top{margin-top:16px}
.details-top .btn{min-width:min(256px,100%); margin-top:0}
#opening-fail .lede{margin-top:12px}
.details-list{margin-top:18px}
.detail-card .ev-when{margin-top:4px}
.ev-note{margin:2px 0 0; font-size:15.5px; font-style:italic; color:var(--ink-soft)}
.ev-venue{margin:10px 0 0; font-size:17px; font-weight:600; line-height:1.3; color:var(--ink)}
.ev-addr{margin:1px 0 0; font-size:16px; line-height:1.4; color:var(--ink-soft)}
.ev-dir{display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:12px}
.ev-dir-k,.ev-info-k{font-size:12px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--muted)}
.ev-info{margin:12px 0 0; font-size:16px; line-height:1.45; color:var(--ink)}
.ev-info-k{display:block; margin-bottom:2px}
.ev-todo{padding:6px 8px; border:1px dashed rgba(170,130,75,.55); border-radius:4px; font-style:italic; color:var(--muted)}
#details-cal{margin-top:24px}
.faq{margin:24px auto 0; max-width:26em; text-align:left}
.faq-h{margin:0 0 8px; text-align:center; font-size:13px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--muted)}
.faq-list{margin:0}
.faq-item{padding:12px 2px; border-top:1px solid rgba(170,130,75,.25)}
.faq-item:last-child{border-bottom:1px solid rgba(170,130,75,.25)}
.faq-item dt{font-size:17px; font-weight:600; color:var(--ink)}
.faq-item dd{margin:2px 0 0; font-size:16.5px; line-height:1.5; color:var(--ink-soft)}
.step[data-step="welcome"] .btn{min-width:min(256px, 100%)}    /* RSVP and Weekend Details the same width */
@media (max-width:340px){ .cd-n{font-size:24px} .cd-part{min-width:3em} }
/* short phones (iPhone SE size): one compact line, so the RSVP button stays as close to where it was as possible */
@media (max-height:720px){
  .countdown{margin-top:8px; gap:2px 14px}
  .cd-part{flex-direction:row; align-items:baseline; gap:5px; min-width:0}
  .cd-n{font-size:21px} .cd-u{margin-top:0; font-size:10.5px; letter-spacing:.16em}
  .countdown + .deadline{margin-top:8px}
}
/* Laptops and other short, wide screens: a slightly smaller opening, so the RSVP button is on the first screen */
@media (min-width:721px) and (max-height:720px){
  .mono{width:min(48vw, 186px)}
  .step[data-step="welcome"] .kicker{margin-top:6px}
  .step[data-step="welcome"] .divider{margin:10px 0 8px}
  .step[data-step="welcome"] .deadline{margin-bottom:14px}
}
.mode-thanks .thanks-only.lede{max-width:24em; margin-left:auto; margin-right:auto}

/* ── "Need help?" — a quiet line with a tap-to-text link ── */
.help{margin:18px auto 0; max-width:22em; text-align:center; font-size:17px; font-weight:500; line-height:1.5; color:var(--ink)}   /* owner: easier to see */
.help:empty{display:none}
.help a,.lede a{display:inline-block; max-width:100%; color:var(--crimson-text); font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(173,38,51,.45)}

/* ── Add to calendar (thank-you step): one row per celebration they're attending ── */
.cal{margin:22px auto 20px; max-width:26em; text-align:left}
.cal[hidden]{display:none}
.cal-k{margin:0 0 8px; text-align:center; font-size:13px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--muted)}
.cal-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
  padding:11px 14px; margin-top:8px; border-radius:5px; background:var(--ivory-hi);
  border:1px solid rgba(170,130,75,.28); border-left:3px solid var(--ev, var(--gold));
}
.cal-ev{font-size:19px; font-weight:600; line-height:1.2; color:var(--ink)}
.cal-ev small{display:block; margin-top:2px; font-size:14.5px; font-weight:500; color:var(--ink-soft)}
.cal-links{display:flex; flex-wrap:wrap; gap:8px}
.cal-links a{
  display:inline-flex; align-items:center; min-height:40px; padding:0 12px; border-radius:20px;
  font-size:14.5px; font-weight:600; color:var(--ink); text-decoration:none; white-space:nowrap;
  border:1px solid rgba(48,47,44,.5); background:transparent; -webkit-tap-highlight-color:transparent;   /* charcoal outline, never filled (owner, 2026-11-04) */
}
.cal-links a:active{background:rgba(48,47,44,.07)}
/* the button that suits this device (see calendarFor in app.js): a firmer outline */
.cal-links a.is-suggested{border-color:var(--ink); box-shadow:inset 0 0 0 .5px var(--ink)}
/* iPhone/iPad browsers other than Safari can't open Apple calendar files: a short tip instead */
.cal-tip{margin:0 auto 4px; max-width:24em; text-align:center; font-size:15.5px; font-style:italic; line-height:1.4; color:var(--ink-soft)}
.cal-tip[hidden]{display:none}
.cal-tip.nudge{animation:nudge .6s var(--ease)}
@keyframes nudge{0%,100%{transform:none} 25%{transform:translateX(-5px)} 55%{transform:translateX(4px)} 80%{transform:translateX(-2px)}}

/* ── The envelope (after the address is found; first time on a device only) ──
   The crimson envelope from the invitation suite: it rests a moment sealed, then the flap (carrying the
   gold AM seal) turns open to show the painted garden-and-peacock liner, the guest's card slides out, the
   envelope fades away beneath it and the card settles into the welcome. ~5 s, unhurried on purpose:
   every move and fade uses a soft in-out curve, and each stage begins before the last one ends.
   WebKit-safe: only transform / opacity move. The flap turns in 3D, but its two faces are swapped
   by opacity at the edge-on moment (no backface-visibility, no preserve-3d, no animated masks).
   Timeline (s): ground + envelope in 0–1.55, resting sealed · then from "opening": flap 0–1.4 · card out
   1.05–2.65 · then app.js takes over. */
.intro{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:100; display:grid; place-items:center; overflow:hidden;
  cursor:pointer; -webkit-tap-highlight-color:transparent; transition:opacity .45s ease-in-out;
  --soft:cubic-bezier(.33,0,.2,1);          /* a long, gentle settle */
  --turn:cubic-bezier(.37,0,.63,1);         /* symmetric (sine) in-out: the flap is edge-on exactly halfway */
  --lift:cubic-bezier(.45,0,.25,1);         /* the card: eases out of the envelope, glides to a stop */
}
.intro[hidden]{display:none}
.intro.is-skipping{opacity:0; pointer-events:none}
/* a clean ivory ground for the envelope; it lifts away slowly as the card settles into the welcome */
.intro-bg{
  position:absolute; top:0; right:0; bottom:0; left:0; opacity:0; transition:opacity .85s ease-in-out;
  background:radial-gradient(1100px 760px at 50% -8%, #FFFEFB 0%, var(--ivory) 52%, #F1EADD 100%), var(--ivory);
}
.intro.is-playing .intro-bg{opacity:1}
.intro.is-revealing .intro-bg{opacity:0; transition-duration:1.5s; transition-delay:.3s}
html.intro-on body{overflow:hidden}
.env-enter{opacity:0}
.env{
  position:relative;
  width:min(84vw, 480px, 54vh); width:min(84vw, 480px, 54svh);
  height:calc(min(84vw, 480px, 54vh) * .7333); height:calc(min(84vw, 480px, 54svh) * .7333);
}
.env > *{position:absolute}
.env-shadow{top:0; right:0; bottom:0; left:0; z-index:0; border-radius:2px; box-shadow:0 16px 34px -14px rgba(90,22,18,.42), 0 2px 6px rgba(90,22,18,.12)}
.env-inner{top:0; right:0; bottom:0; left:0; width:100%; height:100%; z-index:0; display:block}
.env-cardwrap{left:5.5%; top:7%; width:89%; height:84%; z-index:2}
.env-card{position:absolute; top:0; right:0; bottom:0; left:0; display:flex; flex-direction:column; align-items:center; justify-content:center}
/* the paper (and its gold rules) is its own layer, so it can fade away and leave just the monogram */
.env-paper{position:absolute; top:0; right:0; bottom:0; left:0; border-radius:1.5%; background:linear-gradient(180deg, #FFFDF8, #F6F0E3); box-shadow:0 2px 8px rgba(60,20,10,.16)}
.env-paper::before{
  content:''; position:absolute; top:4.5%; right:4.5%; bottom:4.5%; left:4.5%; border:1px solid rgba(170,130,75,.6);
  box-shadow:inset 0 0 0 3px #FBF7EE, inset 0 0 0 3.8px rgba(170,130,75,.38);
}
/* the same size as the welcome's monogram (140px), so it can slide straight onto it without being
   scaled (scaling would soften it, and it would sharpen with a visible snap as it lands) */
.env-card img{position:relative; width:min(140px, 48%); height:auto; display:block}
.env-fam{position:relative; margin:.7em 0 0; font-weight:600; letter-spacing:.2em; padding-left:.2em; text-transform:uppercase; color:var(--ink); line-height:1.2; text-align:center}
.env-fam[hidden]{display:none}
.env-pocket{top:0; right:0; bottom:0; left:0; width:100%; height:100%; z-index:4; display:block}
/* flap boxes are 750 × 405 envelope units (to the unrounded apex) = 73.64% of the envelope's height */
.env-flapshade{left:0; top:0; width:100%; height:73.64%; z-index:5; overflow:visible; display:block}
.env-flapwrap{top:0; right:0; bottom:0; left:0; z-index:6; perspective:1300px; perspective-origin:50% 0}
.env-flap{position:absolute; left:0; top:0; width:100%; height:73.64%; transform-origin:50% 0; will-change:transform}
.flap-front,.flap-out,.flap-in{position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; display:block}
.flap-in{transform:scaleY(-1); opacity:0}
.env-seal{position:absolute; left:50%; top:84%; width:27%; height:auto; transform:translate(-50%,-50%); display:block}

/* Two phases. On "Continue" the address page fades into the sealed envelope (.is-playing), which rests
   while the invitation is looked up; once it's found (and it has rested at least ~1 s) app.js adds
   .is-opening and the flap opens. Delays below are from that moment. */
.intro.is-playing .env-enter{animation:envEnter 1.2s var(--soft) .35s both}   /* .3s: lets a phone keyboard slide away first */
.intro.is-opening .env-flapshade{animation:envFade .85s ease-in-out both}
.intro.is-opening .env-flap{animation:flapOpen 1.4s var(--turn) both}
/* the faces swap exactly when the flap is edge-on (--turn is symmetric, so that's the halfway mark) */
.intro.is-opening .flap-front{animation:faceHide 1.4s linear both}
.intro.is-opening .flap-in{animation:faceShow 1.4s linear both}
.intro.is-opening .env-flapwrap{animation:flapBehind 1.4s linear both}
.intro.is-opening .env-cardwrap > .env-card{animation:cardRise 1.6s var(--lift) 1.05s both}
.intro.is-opening .env{animation:envFollow 1.65s var(--lift) 1s both}

@keyframes envEnter{from{opacity:0; transform:translate3d(0,22px,0) scale(.965)} to{opacity:1; transform:none}}
@keyframes envFade{to{opacity:0}}
@keyframes flapOpen{from{transform:rotateX(0deg)} to{transform:rotateX(180deg)}}
@keyframes faceHide{0%,49.9%{opacity:1} 50%,100%{opacity:0}}
@keyframes faceShow{0%,49.9%{opacity:0} 50%,100%{opacity:1}}
@keyframes flapBehind{0%,49.9%{z-index:6} 50%,100%{z-index:1}}
@keyframes cardRise{to{transform:translate3d(0,-110%,0)}}
@keyframes envFollow{to{transform:translate3d(0,30%,0)}}
/* The rest is in app.js: once the card is clear, a copy of it takes its place outside the envelope, so the
   envelope can fade away as one piece (fading its overlapping layers separately would let the liner show
   through the paper) while the card glides onto the welcome's monogram and dissolves into it. */
.env-card-fly{position:fixed; z-index:3; pointer-events:none}

/* Arriving from the envelope: the card's paper fades away and its monogram alone glides onto this spot.
   While it's on its way this monogram is held invisible (.mono-hold); the moment it lands this one appears
   underneath at full strength and the gliding one fades off it (app.js), while the soft halo fades in. */
.from-intro .step[data-step="hello"] .mono-sm{transform:none; transition:none}
.mono-hold .step[data-step="hello"] .mono-sm img,
.mono-hold .step[data-step="hello"] .mono-sm::before{opacity:0}
.step[data-step="hello"] .mono-sm::before{transition:opacity 1.1s ease-in-out}
/* …and the welcome's words follow once it has landed */
.from-intro .step[data-step="hello"]{--base:1400ms}
/* The same landing on the general welcome, when a card's first visit ends there */
.from-intro .step[data-step="welcome"] .mono-img{transform:none; transition:none}
.mono-hold .step[data-step="welcome"] .mono-img,
.mono-hold .step[data-step="welcome"] .mono-glow,
.mono-hold .step[data-step="welcome"] .mono-sheen{opacity:0}
.from-intro .step[data-step="welcome"]{--base:1400ms}
/* Playing the envelope again (owner 2026-11-10): the "Open the envelope again" link, or a tap on the monogram, on
   the Welcome pages and the Weekend Details. It lands back on the same page, so the Weekend Details get the same landing. */
.from-intro .step[data-step="details"] .mono-sm{transform:none; transition:none}
.mono-hold .step[data-step="details"] .mono-sm img,
.mono-hold .step[data-step="details"] .mono-sm::before{opacity:0}
.step[data-step="details"] .mono-sm::before{transition:opacity 1.1s ease-in-out}
.from-intro .step[data-step="details"]{--base:1400ms}
/* the page goes back to its starting point under the envelope, in one frame, so its words can arrive again */
.step.no-trans,.step.no-trans *,.step.no-trans *::before,.step.no-trans *::after{transition:none !important}
.replay-ic{width:1.15em; height:auto; margin-right:.5em; vertical-align:-.12em; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linejoin:round}
.can-replay .step[data-step="welcome"] .mono,
.can-replay .step[data-step="hello"] .mono-sm,
.can-replay .step[data-step="details"] .mono-sm{cursor:pointer; -webkit-tap-highlight-color:transparent}
/* That tap first sends one quick pass of the light band across the letters (owner 2026-11-10). The small
   monograms on the reply page and Weekend Details carry the band for this only, never on the 9 s loop. */
.step.is-in .mono-sm .sheen-band{animation:none}
/* It starts just off the letters, so the light arrives ~0.2 s after the tap and crosses them in ~0.4 s, the same
   pace as the loop's pass; it leaves them ~0.6 s in, as the envelope begins (app.js glint) */
.step.is-active .mono-sheen.glint .sheen-band{animation:glint 1s cubic-bezier(.3,0,.5,1) both}
@keyframes glint{0%{transform:translateX(250px)} 100%{transform:translateX(1060px)}}

/* Design-review screenshots (?static): show every step in its finished state */
.static *,.static *::before,.static *::after{transition:none !important}

/* ── Respect "reduce motion": keep gentle fades, drop movement ── */
@media (prefers-reduced-motion: reduce){
  .intro{display:none !important}
  .steps{transition:none}
  .reveal{transform:none !important; filter:none !important; transition:opacity .45s ease !important}
  .mono-img{transform:none !important; transition:opacity .45s ease !important}
  .mono-glow{transform:translate(-50%,-50%) !important; transition:opacity .45s ease !important; animation:none !important}
  .mono-sheen{display:none}
  .divider .dl{stroke-dashoffset:0 !important; transition:none !important}
  .divider .rosette{transform:none !important}
  .btn::after{display:none}
  .rose .pl,.leaf-g{transition:opacity .8s ease !important}
  .fl-rose.is-open .rose .pl{transform:none !important}
  .leaf.is-grown .leaf-g{transform:scale(1, var(--m)) !important}
  .fl-sway{animation:none !important}
}

/* Anything marked hidden stays hidden, whatever its own display (buttons and links set one) */
[hidden]{display:none !important}

/* ── Large text and zoom (Safari's aA zoom, Android's text size): nothing runs off the card ──
   A full name that can't fit on one line even at its smallest size wraps (app.js fitNames). */
.names.wrap span{width:auto; max-width:100%; white-space:normal}
/* An address label too long for its box sits above the box instead of inside it (app.js fitLabels) */
.field.long-label{display:flex; flex-direction:column}
.addr .field.long-label label{order:-1; position:static; transform:none; white-space:normal; margin:12px 0 0; line-height:1.3; color:var(--gold-deep)}
.field.long-label input, .field.long-label select{padding-top:6px}
.field.long-label::after{display:none}
.field.long-label input:focus, .field.long-label select:focus{border-bottom-color:var(--gold-deep)}
/* Heavy zoom only (the page is under 300px wide, e.g. Safari's aA at 200% on a phone): slimmer side margins
   so the cards, steppers and buttons fit; the normal-size design is untouched */
@media (max-width:300px){
  .stage{padding-left:6px; padding-right:6px}
  .card{padding-left:12px; padding-right:12px}
  .event-card{padding-left:12px; padding-right:12px}
  .rv-row, .rv-extra, .cal-row{padding-left:12px; padding-right:12px}
  .btn{padding-left:14px; padding-right:14px; letter-spacing:.14em}
  .mono-sm{width:min(140px, 100%)}
  .rv-ev{font-size:22px}
  .gn-row{grid-template-columns:minmax(0, 1fr); gap:4px}
  .gn-row input{min-width:0}
}
/* Safari's largest zoom (300%: the page is ~130px wide). Everything is already three times its size, so the
   script headings, margins and steppers can give a little room back; body text stays as large as it was */
@media (max-width:200px){
  .stage{padding-left:4px; padding-right:4px}
  .card{padding-left:7px; padding-right:7px}
  .event-card{padding-left:6px; padding-right:6px}
  .rv-row, .rv-extra, .cal-row{padding-left:8px; padding-right:8px}
  .guest-names{padding-left:8px; padding-right:8px}
  .ev-name{font-size:24px}
  .rv-ev{font-size:19px}
  .pill{flex-basis:100%; letter-spacing:.02em}
  .stepper{gap:2px}
  .step-btn{width:32px; height:32px; font-size:20px}
  .stepper output{min-width:22px; font-size:19px}
  .btn{padding-left:8px; padding-right:8px; letter-spacing:.08em}
  .link{max-width:100%; padding-left:6px; padding-right:6px; letter-spacing:.08em; line-height:1.3}
}
