/* The guest-facing invitation. */

body.invite {
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.16; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; }
.wrap--narrow { max-width: 860px; }

/* ---------- section rhythm ---------- */

.sec { position: relative; padding: 104px 0; overflow: hidden; }
.sec--tight { padding: 66px 0; }
.sec--dark { background: var(--grad-brand); color: var(--champagne); }
.sec--dark h2, .sec--dark h3 { color: var(--gold-pale); }
.sec--cream { background: var(--cream); }
.sec--parchment { background: linear-gradient(180deg, var(--cream), var(--parchment) 50%, var(--cream)); }

/* One fixed grain layer over the whole page, under the nav and the gate. Flat
   hex fills are most of what makes a page look machine-made; a little noise
   reads as ink on card instead. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 55;
  pointer-events: none;
  background-image: var(--grain);
  background-repeat: repeat;
  opacity: .28;
  mix-blend-mode: soft-light;
}

/* Sections used to butt straight up against each other, which is what made the
   page read as flat alternating bands. A hairline of gold light along the seam
   gives each one an edge. */
.sec + .sec { border-top: 1px solid rgba(201, 162, 39, .16); }

/* jaali texture wash over dark sections */
.sec--dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  color: var(--gold-lit);
  background-image:
    repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 15px),
    repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 15px);
  opacity: .055;
}

/* Section heads are editorial rather than centred: the title sits left against
   a hairline rule with its index in the margin, and the standfirst sits in the
   right-hand column at a readable measure. Centring every head was what made
   the page read as one flat band after another — an asymmetric head gives the
   eye somewhere to enter each section. */
.sec__head {
  margin-bottom: clamp(38px, 5vw, 68px);
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(14px, 3vw, 48px);
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.sec__head h2 {
  font-size: var(--fs-display);
  line-height: .96;
  letter-spacing: -.012em;
  color: var(--brand);
  text-wrap: balance;
  margin: 0;
}
.sec--dark .sec__head h2 { color: var(--gold-pale); }
.sec__head p {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.62;
}
.sec--dark .sec__head p { color: rgba(247, 236, 201, .74); }

/* The index number sits just under the rule, right-aligned — print-style, and
   without needing to mask the rule with a matching background colour. */
.sec__head::before {
  content: attr(data-index);
  position: absolute; top: 8px; right: 0;
  font-family: var(--display);
  font-size: var(--fs-micro);
  letter-spacing: .34em;
  color: var(--gold-dark);
}
.sec--dark .sec__head::before { color: var(--gold); }

/* Centred variant, kept for the places where centring is genuinely right —
   the invitation card and the RSVP, which are both addressed to one person. */
.sec__head--mid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center; text-align: center;
  border-top: 0; padding-top: 0;
}
.sec__head--mid p { margin-inline: auto; }
.sec__head--mid::before { display: none; }

@media (max-width: 760px) {
  .sec__head { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
}

.eyebrow {
  font-size: var(--fs-micro); letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 500; display: block; margin-bottom: 12px;
}
.sec--dark .eyebrow { color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 999px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--champagne);
  cursor: pointer; text-decoration: none; overflow: hidden;
  transition: transform .32s var(--ease-out), box-shadow .32s ease, background .3s ease, color .3s ease, border-color .3s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-gold); opacity: 0;
  transition: opacity .35s ease;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(43, 8, 16, .55); color: var(--night); border-color: var(--gold); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn--gold::before { background: linear-gradient(135deg, #fff3cf, #e8c86a); }
.btn--gold:hover { color: var(--night); }

.btn--ghost { background: transparent; color: var(--brand); border-color: rgba(110, 21, 38, .35); }
.btn--ghost:hover { color: var(--night); }
.sec--dark .btn--ghost, .gate .btn--ghost,
.me__hero .btn--ghost, .psec--dark .btn--ghost {
  color: var(--gold-pale); border-color: rgba(232, 200, 106, .5);
  background: rgba(253, 250, 241, .06);
}

.btn--sm { padding: 9px 18px; font-size: 11px; letter-spacing: .14em; }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .45s ease, box-shadow .45s ease, padding .45s ease, backdrop-filter .45s ease;
  padding: 20px 0;
}
.nav.is-stuck {
  background: rgba(43, 8, 16, .93);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(232, 200, 106, .18);
  padding: 11px 0;
}
/* Before it sticks, the nav floats over the garland — a scrim keeps it legible. */
.nav:not(.is-stuck)::before {
  content: ''; position: absolute; inset: -8px 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 6, 12, .82) 0%, rgba(30, 6, 12, .45) 55%, transparent 100%);
}
.nav__in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  position: relative;
}
.nav__mono {
  font-family: var(--display); font-size: 17px; letter-spacing: .2em;
  text-decoration: none; color: var(--gold-pale); white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(247, 236, 201, .8); text-decoration: none; position: relative; padding: 4px 0;
  transition: color .3s ease;
}
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease-out);
}
.nav__links a:not(.btn):hover { color: var(--gold-lit); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
@media (max-width: 920px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  /* An implicit auto column would size to the card's max-content and spill off
     narrow screens. minmax(0, 1fr) pins it to the viewport. */
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: 132px 0 84px;
  background: var(--grad-hero);
  color: var(--champagne); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; color: var(--gold-lit);
  background-image:
    repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 16px);
  opacity: .06;
}
/* vignette */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 45%, transparent 40%, rgba(43, 8, 16, .72) 100%);
}

.hero__mandala {
  position: absolute; top: 50%; left: 50%; width: 108vmin; height: 108vmin;
  margin: -54vmin 0 0 -54vmin; color: var(--gold); opacity: .16; z-index: 1;
}
.hero__mandala svg { width: 100%; height: 100%; }

.hero__feather {
  position: absolute; color: var(--gold); opacity: .17; z-index: 1; width: 120px;
}
.hero__feather svg { width: 100%; height: auto; }
.hero__feather--l { left: 3%; top: 24%; transform: rotate(-19deg); }
.hero__feather--r { right: 3%; top: 30%; transform: rotate(19deg) scaleX(-1); }
@media (max-width: 980px) { .hero__feather { display: none; } }

/* the invitation card itself.
   The hero centres .wrap as a shrink-to-fit grid item, so the card must size
   from the wrap rather than the viewport or its padding overflows on phones. */
.hero .wrap { width: 100%; }

.card-invite {
  position: relative; z-index: 6;
  width: 100%; max-width: 660px; margin: 0 auto;
  padding: 74px 42px 52px; text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, #fffdf6 0%, var(--ivory) 45%, var(--cream) 100%);
  border-radius: 340px 340px 20px 20px;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .65), 0 0 0 1px rgba(201, 162, 39, .5);
}
.card-invite::before {
  content: ''; position: absolute; inset: 11px; pointer-events: none;
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: 330px 330px 12px 12px;
}
.card-invite::after {
  content: ''; position: absolute; inset: 17px; pointer-events: none;
  border: 1px solid rgba(201, 162, 39, .2);
  border-radius: 324px 324px 8px 8px;
}
.card-invite__corner {
  position: absolute; width: 54px; height: 54px; color: var(--gold); opacity: .55;
}
.card-invite__corner svg { width: 100%; height: 100%; }
.card-invite__corner--bl { left: 22px; bottom: 22px; }
.card-invite__corner--br { right: 22px; bottom: 22px; transform: scaleX(-1); }

.card-invite__ganesh {
  font-family: var(--deva); font-size: 15px; color: var(--brand); letter-spacing: .04em;
}
.card-invite__pre {
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 4px;
}
.names { position: relative; }
.names__n {
  display: block; font-family: var(--script);
  font-size: var(--fs-mega); line-height: .8;
  color: var(--brand);
}
.names__amp {
  display: block; font-family: var(--display); font-size: clamp(13px, 2vw, 17px);
  letter-spacing: .42em; text-transform: uppercase; color: var(--gold-dark);
  margin: 12px 0 6px;
}
/* Both sets of parents, side by side under the names — the traditional
   "son of / daughter of" line off a printed card. */
.parents {
  display: flex; justify-content: center; gap: 12px 34px; flex-wrap: wrap;
  margin-top: 22px;
}
.parents__side { flex: 0 1 214px; }
.parents__side span {
  display: block; font-size: 9.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.parents__side b {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 15px; line-height: 1.4; color: var(--brand);
  /* The two names are different lengths; balance keeps the wrap tidy. */
  text-wrap: balance;
}

.card-invite__meta { margin-top: 26px; }
.card-invite__date {
  font-family: var(--display); font-size: clamp(17px, 2.6vw, 23px);
  color: var(--brand); letter-spacing: .1em;
}
.card-invite__muhurat { font-size: 13px; color: var(--muted); letter-spacing: .12em; margin-top: 6px; }
.card-invite__place {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--brand); margin-top: 12px;
}
.card-invite__cta { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.card-invite__tag {
  margin-top: 24px; font-size: 11px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-dark);
}

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 6; text-align: center; color: rgba(247, 236, 201, .6);
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue i {
  display: block; width: 1px; height: 44px; margin: 10px auto 0;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: .25; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- countdown ---------- */

.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cd {
  position: relative; min-width: 110px; padding: 22px 14px 16px; text-align: center;
  background: rgba(255, 253, 246, .06); border: 1px solid rgba(232, 200, 106, .28);
  border-radius: 12px; overflow: hidden;
}
.cd::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cd b {
  display: block; font-family: var(--display); font-size: 40px; line-height: 1;
  color: var(--gold-lit); font-variant-numeric: tabular-nums;
}
.cd span {
  display: block; margin-top: 8px; font-size: 9.5px; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(247, 236, 201, .62);
}

/* ---------- function cards ---------- */

/* Four cards in an auto-fit grid gave three across and one orphan underneath.
   A twelve-column bento instead, with the widths alternating 4/8 then 8/4: no
   orphan, and the wider cards get room for the longer ceremony names. */
.fns {
  display: grid; gap: clamp(16px, 1.6vw, 24px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.fn { grid-column: span 12; }
@media (min-width: 900px) {
  .fn:nth-child(4n+1) { grid-column: span 4; }
  .fn:nth-child(4n+2) { grid-column: span 8; }
  .fn:nth-child(4n+3) { grid-column: span 8; }
  .fn:nth-child(4n+4) { grid-column: span 4; }
}
@media (min-width: 620px) and (max-width: 899.9px) {
  .fn { grid-column: span 6; }
}

.fn {
  position: relative; padding: 32px 26px 28px; border-radius: var(--radius);
  background: var(--ivory); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              border-color .5s var(--ease-out);
}
/* Lift on hover, so the card reads as a thing you can look into. */
@media (hover: hover) {
  .fn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
  }
  .fn:hover .fn__glyph { opacity: .13; transform: rotate(-6deg) scale(1.06); }
}
.fn__glyph { transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }

/* The wide cards would otherwise run one short column down a lot of empty
   space, so their detail rows split into two columns. */
@media (min-width: 900px) {
  .fn:nth-child(4n+2) .fn__rows,
  .fn:nth-child(4n+3) .fn__rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
  }
}
.fn::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--marigold), var(--gold-lit), var(--brand-soft));
}
.fn__glyph {
  position: absolute; right: -18px; top: -10px; width: 128px; color: var(--brand);
  opacity: .07; pointer-events: none;
}
.fn__glyph svg { width: 100%; height: auto; }
.fn__no {
  font-family: var(--display); font-size: 11px; letter-spacing: .3em;
  color: var(--gold-dark); text-transform: uppercase;
}
.fn__name { font-family: var(--display); font-size: 26px; color: var(--brand); margin: 10px 0 4px; }
.fn__tag { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--muted); margin-bottom: 18px; }
.fn__blurb {
  font-family: var(--serif); font-size: 16.5px; line-height: 1.55;
  color: var(--ink); opacity: .78; margin: 0 0 20px;
  max-width: 46ch; position: relative; z-index: 1;
}
.fn__rows { display: grid; gap: 9px; font-size: 13.8px; position: relative; z-index: 1; }
.fn__row { display: flex; gap: 12px; }
.fn__row b {
  min-width: 66px; font-weight: 500; font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-dark); padding-top: 3px;
}
.fn__row span { flex: 1; }
.fn__note {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12.8px; color: var(--muted);
}

/* ---------- timeline ---------- */

.day { margin-bottom: clamp(44px, 6vw, 76px); position: relative; }
.day__head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}
.day__head h3 { font-size: var(--fs-h3); margin: 0; color: var(--gold-pale); letter-spacing: .01em; }
.day__head span {
  font-size: var(--fs-micro); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(232, 200, 106, .35);
  padding: 4px 12px; border-radius: 999px;
}

/* The running order is long, so it needs hierarchy and a sense of travel.
   The times sit in their own column, the marker rail is a two-layer track, and
   the handful of beats that actually matter are set much larger than the
   logistics around them. */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 18px;
  padding: 0 0 22px 30px;
  align-items: baseline;
}

/* unlit rail */
.tl::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 14px; width: 1px;
  background: rgba(232, 200, 106, .2);
}
/* The lit rail draws itself as the list scrolls past. Native scroll-driven CSS
   is ~85% of browsers and Firefox has it behind a flag, so it is additive only:
   without support the line simply stays fully drawn, which is the old look. */
.tl::after {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 14px; width: 1px;
  background: linear-gradient(180deg, var(--marigold), var(--gold-lit));
  box-shadow: 0 0 12px rgba(240, 167, 42, .45);
  transform-origin: top;
}
@supports (animation-timeline: scroll()) {
  .tl::after {
    animation: tl-draw 1ms linear both;
    animation-timeline: view(block);
    animation-range: cover 10% cover 68%;
  }
}
@keyframes tl-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* Scroll-driven animations are not covered by the reveal overrides in
   motion.css, so the rail has to opt out here or it still animates. */
@media (prefers-reduced-motion: reduce) {
  .tl::after { animation: none !important; transform: none !important; }
}

.tl li::before {
  content: ''; position: absolute; left: -4.5px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-deep); border: 1.5px solid rgba(232, 200, 106, .5);
}
.tl li.is-key::before {
  left: -6.5px; top: 10px; width: 13px; height: 13px;
  background: var(--marigold); border-color: var(--marigold);
  box-shadow: 0 0 0 5px rgba(240, 167, 42, .16), 0 0 16px rgba(240, 167, 42, .5);
}
.tl time {
  font-family: var(--display); font-size: var(--fs-small);
  color: rgba(232, 200, 106, .66);
  letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.tl p { margin: 0; font-size: 14.6px; color: rgba(247, 236, 201, .72); line-height: 1.5; }

/* The moments people are actually turning up for. */
.tl li.is-key { padding-bottom: 26px; }
.tl li.is-key time { color: var(--marigold); }
/* The serif, not the display face: Cinzel is caps-only, and a full sentence of
   capitals shouts rather than emphasises. */
.tl li.is-key p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.3; color: var(--champagne); font-weight: 500;
  letter-spacing: .004em;
}

@media (max-width: 560px) {
  .tl li { grid-template-columns: 52px minmax(0, 1fr); gap: 0 12px; }
}

/* ---------- info cards ---------- */

/* Twelve columns, so the four short travel-mode cards can sit three-wide each
   while the prose cards take half and full width. Auto-fit left "Where to stay"
   stranded in a 258px column, wrapping its sentences every few words. */
.info-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.info { grid-column: span 12; }
@media (min-width: 900px) { .info { grid-column: span 3; } }
@media (min-width: 620px) and (max-width: 899.9px) { .info { grid-column: span 6; } }

.info {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: var(--ivory); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out),
              box-shadow .5s var(--ease-out);
}
@media (hover: hover) {
  .info:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
}
.info h4 { font-size: 18px; color: var(--brand); margin-bottom: 10px; }
.info p { font-size: 13.8px; color: var(--muted); margin: 0 0 7px; }
.info strong { color: var(--ink); }

/* The Udaipur guide is far longer than the other cards. Let it take the whole
   row and flow into columns, rather than becoming one tall thin strip. */
.info--wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .info--half { grid-column: span 6; }
  /* Its two sentences read better side by side than as one narrow ribbon. */
  .info--half p { columns: 2; column-gap: 32px; }
}
.info--wide p { columns: 250px 3; column-gap: 36px; margin: 0; }
/* One block per idea, so a heading is never stranded at the foot of a column. */
.wh { display: block; break-inside: avoid; margin-bottom: 15px; }
.wh:last-child { margin-bottom: 0; }
.wh b {
  display: block; color: var(--brand); font-weight: 500;
  font-family: var(--display); font-size: 14.5px;
  letter-spacing: .04em; margin-bottom: 3px;
}

/* ---------- portal call-to-action ---------- */

.portal-cta {
  position: relative; text-align: center; padding: 56px 34px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, #5f1220, #47101c 60%, #2b0810);
  border: 1px solid rgba(232, 200, 106, .32);
}
.portal-cta::before {
  content: ''; position: absolute; inset: 0; color: var(--gold-lit); opacity: .07;
  background-image:
    repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 14px);
}
/* A warm glow behind the copy, so the band reads as lit from within rather than
   as a flat dark rectangle — it was the plainest block on the page. */
.portal-cta::after {
  content: ''; position: absolute; pointer-events: none;
  left: 50%; top: -40%; width: min(760px, 120%); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240, 167, 42, .3) 0%, rgba(240, 167, 42, .08) 42%, transparent 68%);
}
.portal-cta h2 { color: var(--gold-pale); font-size: var(--fs-h2); position: relative; }
.portal-cta p {
  color: rgba(247, 236, 201, .82); max-width: 58ch; margin: 0 auto 28px;
  position: relative; font-size: var(--fs-lead);
}
.portal-cta .btn { position: relative; }

/* ---------- RSVP ---------- */

.rsvp-card {
  position: relative; max-width: 700px; margin: 0 auto; padding: 38px;
  background: var(--ivory); border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, .4); box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 7px; font-weight: 500;
}
input[type=text], input[type=tel], input[type=email], input[type=number],
input[type=date], input[type=time], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  /* Warm off-white rather than pure #fff: on a cream card a white field looks
     like a hole punched in the paper. */
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
input[type=text]:hover, input[type=tel]:hover, input[type=number]:hover,
input[type=date]:hover, select:hover, textarea:hover { border-color: var(--gold-pale); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .2);
}
textarea { min-height: 88px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 580px) { .grid-2 { grid-template-columns: 1fr; } }

.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.8px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; cursor: pointer; flex: none; }

.rsvp-fns { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rsvp-fns .check {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; background: #fff; transition: border-color .25s, background .25s;
}
.rsvp-fns .check:hover { border-color: var(--gold); background: #fffdf4; }

.done { text-align: center; padding: 22px 6px; }
.done__tick {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(31, 122, 77, .1); border: 1px solid rgba(31, 122, 77, .3);
  color: var(--ok); display: grid; place-items: center; font-size: 30px;
  animation: pop-in .5s var(--ease-back);
}
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------- footer ---------- */

.foot {
  position: relative; text-align: center; padding: 68px 28px 54px;
  background: var(--night); color: rgba(247, 236, 201, .7); overflow: hidden;
}
.foot__names { font-family: var(--script); font-size: 52px; line-height: 1; margin-bottom: 8px; }
.foot p { font-size: 13px; margin: 6px 0 0; }
.foot a { color: var(--gold-lit); }
.foot__mandala {
  position: absolute; bottom: -140px; left: 50%; width: 320px; height: 320px;
  margin-left: -160px; color: var(--gold); opacity: .12;
}
.foot__mandala svg { width: 100%; height: 100%; }

/* ---------- toasts ---------- */

.toast-host {
  position: fixed; z-index: 950; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none;
}
.toast {
  background: var(--brand-deep); color: var(--champagne); font-size: 13.5px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(232, 200, 106, .35);
  box-shadow: var(--shadow); max-width: 88vw; text-align: center;
  animation: toast-in .3s var(--ease-back);
}
.toast--warn { border-color: rgba(180, 113, 26, .6); }
.toast--bad { background: #5c1016; border-color: rgba(163, 39, 49, .7); }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- phones ---------- */

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 72px 0; }
  .sec--tight { padding: 52px 0; }

  .card-invite { padding: 52px 24px 38px; border-radius: 240px 240px 16px 16px; }
  .card-invite::before { inset: 9px; border-radius: 232px 232px 10px 10px; }
  .card-invite::after { display: none; }
  .card-invite__corner { width: 38px; height: 38px; }
  .card-invite__corner--bl { left: 14px; bottom: 14px; }
  .card-invite__corner--br { right: 14px; bottom: 14px; }
  .card-invite__pre { letter-spacing: .2em; font-size: 9.5px; }
  .card-invite__cta { flex-direction: column; align-items: stretch; }
  .card-invite__cta .btn { width: 100%; }

  .countdown { gap: 9px; }
  .cd { min-width: 0; flex: 1 1 calc(50% - 5px); padding: 16px 8px 12px; }
  .cd b { font-size: 32px; }

  .fn { padding: 26px 20px 22px; }
  .day__head h3 { font-size: 21px; }
  .tl li { padding-left: 22px; }
  .rsvp-card { padding: 24px 18px; }
  .foot__names { font-size: 40px; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
