/* Page layer on top of the Classical design system (ds/styles.css).
   Light sections use the system's ivory ground; hero, RSVP and footer sit on
   a deep warm near-black "colophon" with gold applied as stroke. */

:root {
  --night: #0e0c0a;
  --night-2: #17130f;
  --paper: #efe7da;
  --gold: var(--color-accent-400);
  --gold-deep: var(--color-accent);
  --foil: linear-gradient(100deg, var(--color-accent-500) 0%, var(--color-accent-300) 28%, #fbeccb 46%, var(--color-accent-400) 58%, var(--color-accent-600) 100%);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--color-bg); overflow-x: hidden; }
.deva { font-family: "Noto Serif Devanagari", serif; font-weight: 400; font-style: normal; }
.gold { color: var(--gold); }
.np { color: var(--color-neutral-700); font-size: 15px; margin: 0; }

.foil {
  background: var(--foil); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: foil 9s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 520px; }

/* ───────── reveal + entrance ───────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.rise { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ───────── HERO ───────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; justify-content: center;
  padding: 46px 0 64px; color: var(--paper);
  background:
    radial-gradient(70% 38% at 50% 34%, rgba(182,130,53,.20), transparent 70%),
    radial-gradient(90% 60% at 50% 100%, rgba(182,130,53,.10), transparent 70%),
    var(--night);
}
.hero-inner { width: 100%; max-width: 520px; padding: 0 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; position: relative; z-index: 2; }

.frame { position: absolute; pointer-events: none; z-index: 1; border: 1px solid; }
.frame-outer { inset: 14px; border-color: rgba(225,173,102,.42); }
.frame-inner { inset: 21px; border-color: rgba(225,173,102,.16); }
.gem { position: absolute; width: 9px; height: 9px; background: var(--night); border: 1px solid var(--gold); transform: rotate(45deg); z-index: 1; }
.gem-tl { top: 10px; left: 10px; } .gem-tr { top: 10px; right: 10px; }
.gem-bl { bottom: 10px; left: 10px; } .gem-br { bottom: 10px; right: 10px; }

.dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--color-accent-300); opacity: 0; box-shadow: 0 0 8px 1px rgba(250,203,141,.7); animation: twinkle 7s ease-in-out infinite; }
.dust i:nth-child(1){ left: 12%; top: 18%; animation-delay: 0s; }
.dust i:nth-child(2){ left: 84%; top: 12%; animation-delay: 1.2s; }
.dust i:nth-child(3){ left: 22%; top: 46%; animation-delay: 2.4s; }
.dust i:nth-child(4){ left: 90%; top: 40%; animation-delay: 3.1s; }
.dust i:nth-child(5){ left: 8%;  top: 72%; animation-delay: 4.0s; }
.dust i:nth-child(6){ left: 78%; top: 66%; animation-delay: 1.8s; }
.dust i:nth-child(7){ left: 50%; top: 8%;  animation-delay: 5.2s; }
.dust i:nth-child(8){ left: 66%; top: 88%; animation-delay: 2.9s; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: translateY(0) scale(.6); } 45% { opacity: .9; transform: translateY(-14px) scale(1); } 70% { opacity: .2; } }

.orn { display: flex; align-items: center; gap: 14px; width: 100%; color: var(--gold); }
.orn span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); opacity: .7; }
.orn span:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }

.eyebrow { margin: 0; font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(239,231,218,.72); }
.name { margin: 2px 0 0; font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: clamp(78px, 24vw, 128px); line-height: .95; letter-spacing: -.015em; padding: 0 .08em .06em; }
.name-np { margin: -6px 0 6px; font-size: 22px; color: var(--color-accent-300); letter-spacing: .04em; }

.arch-wrap { width: min(82%, 330px); padding: 9px; border: 1px solid rgba(225,173,102,.55); border-radius: 999px 999px 4px 4px; margin: 8px 0 10px; box-shadow: 0 0 90px rgba(182,130,53,.22), 0 30px 60px rgba(0,0,0,.5); }
.arch { aspect-ratio: 2 / 3; border-radius: 999px 999px 2px 2px; overflow: hidden; background: #000; }
.arch img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.38) saturate(.92) contrast(1.04); }

.lede { margin: 6px 0 0; font-size: 16.5px; line-height: 1.7; color: rgba(239,231,218,.9); text-wrap: pretty; max-width: 400px; }
.lede-np { margin: 0; font-size: 14.5px; line-height: 1.9; color: rgba(239,231,218,.58); text-wrap: pretty; max-width: 400px; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; margin-top: 14px; }
.countdown div { border: 1px solid rgba(225,173,102,.34); padding: 12px 4px 10px; background: linear-gradient(180deg, rgba(225,173,102,.07), transparent); }
.countdown b { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 34px; line-height: 1; color: var(--color-accent-300); font-feature-settings: "tnum"; }
.countdown small { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(239,231,218,.55); }

.cta { margin-top: 12px; min-height: 52px; padding-inline: 30px; font-size: 16px; letter-spacing: .06em; color: var(--gold); border-color: var(--gold-deep); }
.cta:hover { background: rgba(225,173,102,.14); }

/* ───────── light sheets ───────── */
.sheet { padding: 78px 0; background: var(--color-bg); position: relative; }
.sheet + .sheet { border-top: 1px solid var(--color-divider); }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 34px; }
.sec-head h2 { margin: 0; font-weight: 400; font-size: clamp(42px, 11vw, 54px); line-height: 1; }
.sec-head .kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--color-accent-700); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sec-head .kicker::before, .sec-head .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.sec-head .kicker.gold { color: var(--gold); }
.deadline { margin: 14px 0 0; font-size: 15px; color: var(--color-accent-300); }
.deadline strong { font-weight: 500; letter-spacing: .02em; }

.rows { border-top: 1px solid var(--color-divider); }
.row-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--color-divider); }
.row-item > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ico { flex: none; margin-top: 4px; color: var(--color-accent); }
.big { font-family: var(--font-heading); font-size: 28px; font-weight: 500; line-height: 1.12; }
.mid { font-size: 16.5px; }
.sub { font-size: 15px; line-height: 1.6; color: var(--color-neutral-800); text-wrap: pretty; }
.over { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-neutral-700); }
.lnk { font-size: 14px; margin-top: 2px; color: var(--color-accent-700); }
.lnk:hover { color: var(--color-accent-800); }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-divider); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--color-divider); align-items: baseline; }
.timeline time { font-family: var(--font-heading); font-size: 26px; font-weight: 500; color: var(--color-accent-700); font-feature-settings: "tnum"; }
.timeline li > div { display: flex; flex-direction: column; gap: 3px; font-size: 16.5px; }

.just { margin: 0 0 16px; font-size: 16.5px; line-height: 1.8; text-align: justify; hyphens: auto; text-wrap: pretty; }
.np-body { font-size: 15px; line-height: 2; color: var(--color-neutral-800); }

.map { border: 6px solid var(--color-surface); outline: 1px solid var(--color-divider); aspect-ratio: 4 / 3; width: 100%; background: var(--color-surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.18) saturate(.8); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two .btn { min-height: 50px; font-size: 15px; }

/* ───────── night sections ───────── */
.night { background: radial-gradient(80% 60% at 50% 0%, rgba(182,130,53,.12), transparent 70%), var(--night); color: var(--paper); }
.rsvp { padding: 88px 0 96px; }
.rsvp .sec-head h2 { padding-bottom: .06em; }
.rsvp .np { color: rgba(239,231,218,.6); }

.card-gold { position: relative; border: 1px solid rgba(225,173,102,.5); padding: 30px 22px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.card-gold::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(225,173,102,.18); pointer-events: none; }
#rsvp-form { display: flex; flex-direction: column; gap: 26px; position: relative; }
.field { display: flex; flex-direction: column; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }
#rsvp-form[hidden], .field[hidden], .done[hidden], .cal[hidden], .err[hidden] { display: none; }
.field label, .field legend { font-size: 15px; color: var(--paper); padding: 0; }
.field .np { color: rgba(239,231,218,.55); font-size: 13.5px; }
.opt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239,231,218,.42); margin-left: 6px; }

.f-input { width: 100%; font: inherit; font-size: 17px; color: var(--paper); background: rgba(255,255,255,.04); border: 1px solid rgba(225,173,102,.32); border-radius: var(--radius-md); padding: 13px 14px; min-height: 52px; transition: border-color .2s, background .2s; }
.f-input::placeholder { color: rgba(239,231,218,.32); }
.f-input:hover { border-color: rgba(225,173,102,.6); }
.f-input:focus-visible { outline: none; border-color: var(--gold); background: rgba(225,173,102,.07); box-shadow: 0 0 0 3px rgba(225,173,102,.16); }
textarea.f-input { min-height: 96px; resize: vertical; line-height: 1.55; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { position: relative; cursor: pointer; display: flex; }
.pick-box { flex: 1; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-box { min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; padding: 8px; border: 1px solid rgba(225,173,102,.3); border-radius: var(--radius-md); transition: all .25s; }
.pick-box b { font-weight: 400; font-size: 15.5px; color: var(--paper); }
.pick-box i { font-size: 12.5px; color: rgba(239,231,218,.5); }
.pick:hover .pick-box { border-color: rgba(225,173,102,.7); }
.pick input:checked + .pick-box { border-color: var(--gold); background: rgba(225,173,102,.14); box-shadow: inset 0 0 0 1px var(--gold), 0 0 28px rgba(225,173,102,.14); }
.pick input:checked + .pick-box b { color: var(--color-accent-300); }
.pick input:focus-visible + .pick-box { outline: 2px solid var(--gold); outline-offset: 2px; }


.err { margin: -6px 0 0; font-size: 14.5px; color: #f1b48a; text-align: center; }
.send { min-height: 58px; font-size: 18px; letter-spacing: .05em; width: 100%; gap: 10px; color: var(--gold); border-color: var(--gold-deep); background: linear-gradient(180deg, rgba(225,173,102,.12), rgba(225,173,102,.04)); }
.send:hover { background: rgba(225,173,102,.22); }
.send:disabled { opacity: .55; cursor: progress; }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 14px 0 6px; color: var(--gold); position: relative; }
.done h3 { margin: 0; font-weight: 400; font-style: italic; font-size: 46px; line-height: 1.05; padding: 0 .06em .06em; }
.done-body { margin: 0; font-size: 16.5px; line-height: 1.7; color: rgba(239,231,218,.88); text-wrap: pretty; max-width: 380px; }
.cal { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.cal .btn { min-height: 52px; font-size: 16px; width: 100%; }
.night .btn-secondary { color: var(--paper); border-color: rgba(239,231,218,.25); }
.night .btn-secondary:hover { background: rgba(239,231,218,.08); }
.night .btn-ghost { color: var(--gold); }

.foot { padding: 70px 22px 60px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; border-top: 1px solid rgba(225,173,102,.3); }
.foot .orn { max-width: 320px; margin-bottom: 10px; }
.foot .sign { margin: 0; font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1.1; padding: 0 .06em .06em; }
.foot .np { color: rgba(239,231,218,.55); margin-bottom: 14px; }

@media (min-width: 720px) {
  .hero-inner { max-width: 560px; }
  .sheet { padding: 96px 0; }
}
@media (max-width: 480px) {
  .form-two { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .choice-grid { grid-template-columns: 1fr; }
  .countdown b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .foil, .dust i { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dust { display: none; }
}

/* Cormorant's default old-style 1 reads as "I"; use lining figures for counts and times */
.countdown b, .timeline time, 
/* ═════════════════════════════════════════════════════════════════════════
   Animation layer. Everything here is decorative: with prefers-reduced-motion
   (or no JS) the page is fully visible and static.
   ═════════════════════════════════════════════════════════════════════════ */

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--color-accent-600), var(--color-accent-300), var(--color-accent-500)); box-shadow: 0 0 10px rgba(225,173,102,.6); }

/* ── opening gate ── */
.gate { display: none; }
html.gated { overflow: hidden; }
.gated .gate { display: grid; position: fixed; inset: 0; z-index: 100; place-items: center; touch-action: none; overscroll-behavior: contain; }
.gate-half { position: absolute; top: 0; bottom: 0; width: 50.2%; background: radial-gradient(120% 70% at 50% 40%, #1d1710, var(--night) 70%); transition: transform 1.3s cubic-bezier(.77, 0, .18, 1); }
.gate-l { left: 0; border-right: 1px solid rgba(225,173,102,.55); }
.gate-r { right: 0; border-left: 1px solid rgba(225,173,102,.55); }
.gate.opening .gate-l { transform: translateX(-101%); }
.gate.opening .gate-r { transform: translateX(101%); }
.gate-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 0 24px; color: var(--paper); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) .15s both; transition: opacity .55s ease, transform .9s cubic-bezier(.4,0,.2,1); }
.gate.opening .gate-center { opacity: 0; transform: scale(1.35); }
.gate-kicker { margin: 0; font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase; color: rgba(239,231,218,.7); }
.gate-name { margin: 0 0 14px; font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: clamp(44px, 13vw, 68px); line-height: 1.05; padding: 0 .08em .08em; }
.gate-hint { margin: 6px 0 0; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.gate-hint .deva { letter-spacing: .04em; text-transform: none; font-size: 14px; }
.seal { position: relative; width: 116px; height: 116px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; cursor: pointer; background: radial-gradient(circle at 50% 38%, rgba(225,173,102,.24), rgba(225,173,102,.04) 70%); box-shadow: 0 0 60px rgba(182,130,53,.3), inset 0 0 0 7px var(--night), inset 0 0 0 8px rgba(225,173,102,.5); transition: transform .45s cubic-bezier(.3,1.4,.5,1), box-shadow .45s; }
.seal:hover { transform: scale(1.07); box-shadow: 0 0 90px rgba(225,173,102,.45), inset 0 0 0 7px var(--night), inset 0 0 0 8px rgba(225,173,102,.7); }
.seal:active { transform: scale(.96); }
.seal:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.seal::before, .seal::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: ping 3.2s ease-out infinite; pointer-events: none; }
.seal::after { animation-delay: 1.6s; }
.seal svg { width: 46px; height: 46px; animation: breathe 4.5s ease-in-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.1) rotate(4deg); } }

/* hold the hero's intro until the gate has opened */
html.gated .hero, html.gated .hero * { animation-play-state: paused !important; }

/* ── hero intro ── */
.frame { animation: frameIn 1.8s cubic-bezier(.2,.7,.2,1) both; }
.frame-inner { animation-delay: .18s; }
@keyframes frameIn { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
.gem { animation: gemIn .9s cubic-bezier(.3,1.6,.5,1) 1s both; }
@keyframes gemIn { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }

.hero .orn span { animation: grow 1.4s cubic-bezier(.2,.7,.2,1) .25s both; }
.hero .orn span:first-child { transform-origin: 100% 50%; }
.hero .orn span:last-child { transform-origin: 0 50%; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .orn svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s ease .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* the name is written in: a soft wipe with the blur lifting */
.hero .name { animation: wipe 2.1s cubic-bezier(.3,.7,.2,1) var(--d, .35s) both, foil 9s ease-in-out 2.6s infinite alternate; }
@keyframes wipe {
  from { clip-path: inset(-12% 100% -12% -12%); filter: blur(7px); transform: scale(1.04); }
  to   { clip-path: inset(-12% -12% -12% -12%); filter: blur(0); transform: none; }
}

/* portrait: slow push-in, breathing glow, an occasional glint */
.arch { position: relative; animation: glow 7s ease-in-out 2.4s infinite; }
.arch img { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.arch::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(112deg, transparent 38%, rgba(255,226,160,.42) 50%, transparent 62%); transform: translateX(-130%); animation: glint 10s ease-in-out 3.4s infinite; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 rgba(225,173,102,0); } 50% { box-shadow: 0 0 70px rgba(225,173,102,.32); } }
@keyframes glint { 0% { transform: translateX(-130%); } 16%, 100% { transform: translateX(130%); } }

/* rice grains drift down through the hero */
.dust { transform: translate3d(0, var(--py, 0px), 0); }
.grains { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.grain { position: absolute; top: 0; border-radius: 50%; background: linear-gradient(180deg, #fbeccb, var(--color-accent-500)); box-shadow: 0 0 7px rgba(250,203,141,.55); opacity: 0; animation: fall var(--t, 12s) linear var(--dl, 0s) infinite; will-change: transform; }
@keyframes fall {
  0%   { transform: translate3d(0, -24px, 0) rotate(var(--r0, 0deg)); opacity: 0; }
  8%   { opacity: .9; }
  85%  { opacity: .65; }
  100% { transform: translate3d(var(--sx, 0px), var(--dist, 900px), 0) rotate(var(--r1, 200deg)); opacity: 0; }
}

.cta svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.cta, .send { position: relative; overflow: hidden; }
.cta::after, .send::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255,236,190,.2) 50%, transparent 60%); transform: translateX(-130%); animation: sweep 6s ease-in-out 2s infinite; }
@keyframes sweep { 0% { transform: translateX(-130%); } 20%, 100% { transform: translateX(130%); } }

/* countdown ticks */
.countdown b.tick { animation: tick .5s cubic-bezier(.2,.8,.2,1); }
@keyframes tick { from { transform: translateY(-38%); opacity: .15; } to { transform: none; opacity: 1; } }

/* ── scroll reveals ── */
.js .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * .15s); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger > * .ico { transform: scale(.35) rotate(-24deg); transition: transform .9s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i, 0) * .15s + .3s); }
.js .stagger.in > * .ico { transform: none; }

.js .sec-head h2 { filter: blur(9px); transition: filter 1.1s ease .15s; }
.js .sec-head.in h2 { filter: none; }
.js .sec-head .kicker::before, .js .sec-head .kicker::after { width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1) .25s; }
.js .sec-head.in .kicker::before, .js .sec-head.in .kicker::after { width: 28px; }

/* ── RSVP card: a thread of light travels the border ── */
.card-gold::after { content: ""; position: absolute; inset: -1px; padding: 1px; pointer-events: none; background: conic-gradient(from var(--ang), transparent 0 72%, rgba(251,236,203,.95) 86%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 8s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }

.pick input:checked + .pick-box { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.95); } 55% { transform: scale(1.035); } 100% { transform: scale(1); } }
.count output.bump { animation: bump .4s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 40% { transform: scale(1.3); color: #fff2d6; } }
.f-input { transition: border-color .25s, background .25s, box-shadow .25s; }

/* ── thank-you ── */
.ck-c, .ck-t { stroke-dasharray: 1; stroke-dashoffset: 1; }
.done:not([hidden]) .ck-c { animation: draw 1s ease .1s forwards; }
.done:not([hidden]) .ck-t { animation: draw .6s ease .95s forwards; }
.done:not([hidden]) > *:not(.ck):not(h3) { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.done:not([hidden]) > p:nth-of-type(1) { animation-delay: .9s; }
.done:not([hidden]) > p:nth-of-type(2) { animation-delay: 1.05s; }
.done:not([hidden]) > .cal { animation-delay: 1.25s; }
.done:not([hidden]) > #edit { animation-delay: 1.4s; }
.done h3 { animation: wipe 1.4s cubic-bezier(.3,.7,.2,1) .55s both, foil 9s ease-in-out 2s infinite alternate; }
.spark { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: var(--br, 50%); background: linear-gradient(180deg, #fbeccb, var(--color-accent-500)); box-shadow: 0 0 8px rgba(250,203,141,.65); pointer-events: none; opacity: 0; animation: spark var(--dur, 1.6s) cubic-bezier(.12,.7,.3,1) forwards; z-index: 3; }
@keyframes spark {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  65%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.35); }
}

/* ── calm mode ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .stagger > *, .js .stagger > * .ico { opacity: 1; transform: none; }
  .js .sec-head h2 { filter: none; }
  .js .sec-head .kicker::before, .js .sec-head .kicker::after { width: 28px; }
  .hero .orn svg path, .ck-c, .ck-t { stroke-dashoffset: 0; }
  .gate, .grains, .spark, .card-gold::after, .arch::after, .progress { display: none !important; }
}
