/* ==========================================================================
   Ashley & Naman: guest site
   Desktop: top navigation. Phones (≤ 820px): app-style bottom tab bar.
   ========================================================================== */
:root {
  --paper: #fbf7f0;
  --paper-2: #f3ecdf;
  --card: #fffdf9;
  --ink: #24232a;
  --ink-soft: #615d66;
  --line: #e7ddcc;
  --navy: #1f2a44;
  --navy-2: #2c3b5f;
  --gold: #a87a22;
  --gold-light: #e9c46a;
  --haldi: #e9b949;
  --haldi-soft: #fbefd0;
  --rose: #b8456b;
  --rose-soft: #f8e4ea;
  --green: #3a7550;
  --green-soft: #e3f0e6;
  --display: "Montserrat", system-ui, -apple-system, sans-serif;   /* numbers, times, dates */
  --heading: "Cormorant Garamond", Georgia, serif;                   /* names + headings */
  --body: "Montserrat", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 42, 68, .04), 0 12px 40px -12px rgba(31, 42, 68, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --tabbar-h: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: 1.65rem; font-weight: 500; }
p { margin: 0 0 1em; }
em.amp { font-style: italic; color: var(--gold); font-weight: 400; padding: 0 .04em; }
.eyebrow {
  display: block; font: 500 .72rem/1.3 var(--body); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.eyebrow.light { color: var(--gold-light); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.fine { font-size: .85rem; color: var(--ink-soft); }
.center { text-align: center; }
.mt { margin-top: 28px; }
.grow { flex: 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- header (desktop) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: rgba(251, 247, 240, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(231, 221, 204, .8); transition: background .4s, border-color .4s, color .4s;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.monogram { font: 500 1.75rem/1 var(--heading); color: var(--navy); text-decoration: none; white-space: nowrap; }
.tabs { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.tabs a {
  position: relative; padding: 8px 14px; text-decoration: none; color: var(--ink-soft);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .2s;
}
.tabs a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.tabs a:hover { color: var(--navy); }
.tabs a:hover::after, .tabs a.on::after { transform: scaleX(1); }
.tabs a.on { color: var(--navy); }
.tabs a.cta { margin-left: 10px; color: #fff; background: var(--navy); border-radius: 999px; padding: 10px 22px; }
.tabs a.cta::after { display: none; }
.tabs a.cta:hover { background: var(--navy-2); }

@media (max-width: 1120px) {
  .tabs a { padding: 8px 9px; letter-spacing: .08em; font-size: .78rem; }
  .tabs a::after { left: 9px; right: 9px; }
  .tabs a.cta { padding: 10px 16px; }
}

/* Transparent header floating over the photo story on the home page */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.solid) .monogram, .home .site-header:not(.solid) .tabs a { color: #fff; }
.home .site-header:not(.solid) em.amp { color: var(--gold-light); }
.home .site-header:not(.solid) .tabs a.cta { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.home .site-header.solid { background: rgba(251, 247, 240, .9); border-color: rgba(231, 221, 204, .8);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }

.admin-strip { background: var(--navy); color: #fff; font-size: .85rem; padding: 8px 16px; text-align: center; }
.admin-strip a { color: var(--gold-light); }
.home .admin-strip { position: fixed; bottom: calc(var(--tabbar-h) + 12px); left: 50%; transform: translateX(-50%);
  z-index: 40; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }

/* ---------- flashes ---------- */
.flashes:empty { display: none; }
.flash { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; font-size: .95rem; border: 1px solid; }
.flash.ok { background: var(--green-soft); border-color: #bcd9c5; color: #24502f; }
.flash.warn { background: var(--haldi-soft); border-color: #eed49a; color: #6b4b0d; }
.flash.error { background: var(--rose-soft); border-color: #eab9c8; color: #7a2343; }
.home .flashes { position: fixed; top: calc(var(--header-h) + 8px); left: 0; right: 0; z-index: 35; }

/* ==========================================================================
   Home: the scroll-morph photo story ("reel")
   ========================================================================== */
.reel { position: relative; height: calc(var(--n) * 100svh); background: #0d1220; }
.reel-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; color: #fff; }
.reel-stage::after { /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frame { position: absolute; inset: 0; overflow: hidden; will-change: opacity; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%);
  transform-origin: 50% 60%; will-change: transform; }
.js .frame + .frame { visibility: hidden; }
.reel-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13,18,32,.4) 0%, rgba(13,18,32,0) 20%, rgba(13,18,32,0) 40%, rgba(13,18,32,.8) 100%),
    linear-gradient(90deg, rgba(13,18,32,.35) 0%, rgba(13,18,32,0) 60%); }

.caption { position: absolute; left: max(6vw, 24px); right: max(6vw, 24px); bottom: 15svh; max-width: 780px;
  opacity: 0; will-change: opacity, transform; pointer-events: none; }
.caption.first { opacity: 1; max-width: min(62vw, 860px); }
.caption { text-shadow: 0 1px 24px rgba(13,18,32,.45); }
.caption .eyebrow.light { color: #f6dc9c; }
.caption h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 300; margin-bottom: .25em; }
.caption p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 36ch; color: rgba(255,255,255,.88); font-weight: 300; }
.chapter-no { display: block; font: 400 .85rem var(--display); letter-spacing: .2em; color: rgba(255,255,255,.7); margin-bottom: .6rem; }
.reel-names { color: #fff; font-size: clamp(3.6rem, 11vw, 9rem); font-weight: 300; line-height: .95; margin: 0 0 .25em;
  text-shadow: 0 2px 40px rgba(0,0,0,.18); }
.reel-names em.amp { color: var(--gold-light); }
.caption .reel-meta { max-width: none; font-size: .9rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.reel-meta .dot { margin: 0 .8em; color: var(--gold-light); }

.split .ch { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(3deg); filter: blur(8px);
  animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.25s + var(--d) * 45ms); }
.split .w { display: inline-block; white-space: nowrap; }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

.countdown { display: flex; gap: 10px; margin-top: 22px; }
.countdown div { min-width: 82px; padding: 10px 14px; text-align: center; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.countdown b { display: block; font: 300 1.8rem/1.15 var(--display); }
.countdown small { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }

.reel-ui { position: absolute; right: max(6vw, 24px); bottom: 6svh; display: flex; align-items: center; gap: 14px;
  font-size: .78rem; letter-spacing: .2em; color: rgba(255,255,255,.75); }
.reel-count b { color: #fff; font-weight: 500; }
.reel-bar { width: 120px; height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.reel-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.reel-hint { position: absolute; left: 50%; bottom: 5svh; transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.8);
  transition: opacity .5s; }
.reel-hint i { width: 1px; height: 44px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0));
  animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
.reel-hint.gone { opacity: 0; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- welcome + key dates ---------- */
.intro { text-align: center; padding: 110px 24px 40px; max-width: 820px; }
.display { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 300; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto; }
.lede p:last-child { margin-bottom: 0; }

.key-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin: 40px 0; }
.key-dates div { padding: 26px 20px; text-align: center; }
.key-dates div + div { border-left: 1px solid var(--line); }
.key-dates small { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.key-dates b { font: 500 1.08rem/1.4 var(--display); color: var(--navy); }
.key-dates.compact { margin: 0 0 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.weekend { padding-bottom: 80px; }

/* ---------- cards / grid / buttons ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 20px; }
.grid { display: grid; gap: 20px; }
.grid > .card { margin-bottom: 0; }
.grid.one { grid-template-columns: minmax(0, 640px); justify-content: center; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 20px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid.tight { gap: 0 16px; margin: 0; }
.summary { display: flex; flex-direction: column; align-items: flex-start; }
.summary h3 { font-size: 1.7rem; }
.summary ul { list-style: none; margin: 0 0 1.2em; padding: 0; width: 100%; }
.summary li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.summary li:last-child { border-bottom: 0; }
.summary li span:last-child { color: var(--ink-soft); white-space: nowrap; }
.summary .btn { margin-top: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: #fff;
  font: 500 .82rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .15s var(--ease), box-shadow .2s; touch-action: manipulation;
}
.btn:hover { background: var(--navy-2); box-shadow: 0 8px 24px -10px rgba(31,42,68,.6); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--paper-2); box-shadow: none; }
.btn.small { min-height: 40px; padding: 10px 18px; font-size: .74rem; }
.btn.block { width: 100%; }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; background: var(--paper-2); color: var(--ink-soft); text-decoration: none; vertical-align: middle; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.gold { background: var(--haldi-soft); color: #7a5510; }
.progress { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 6px 0 14px; width: 100%; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--haldi), var(--gold)); border-radius: 99px; }

/* ---------- page heads ---------- */
.page-head { padding: 80px 24px 36px; text-align: center; }
.page-head .lede { margin-top: 10px; }
.ornament { display: block; margin: 26px auto 0; width: 90px; height: 12px; color: var(--gold); }
.section-title { text-align: center; margin: 48px 0 24px; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }

/* ---------- schedule ---------- */
.arrival { margin: 8px 0 8px; padding: 28px 30px; border-radius: var(--radius); background: var(--paper-2);
  border: 1px dashed #dccdb1; }
.arrival h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-bottom: .3em; }
.arrival .fine { margin: 8px 0 0; }
.day { margin: 40px 0 56px; }
.day-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.day-head h2 { margin: 0; font-weight: 300; }
.day-head span { color: var(--ink-soft); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.day-head i { flex: 1; height: 1px; background: var(--line); }
.event { display: grid; grid-template-columns: 170px 1fr; gap: 32px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; margin-bottom: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.event::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--haldi); }
.event.sangeet::before { background: var(--rose); }
.event.wedding::before, .event.reception::before { background: var(--gold); }
.event.welcome::before, .event.farewell::before { background: var(--navy); }
.event .when { font: 500 1.15rem/1.3 var(--display); color: var(--navy); }
.event .when small { display: block; font: 400 .85rem/1.5 var(--body); color: var(--ink-soft); margin-top: 4px; }
.event h3 { font-size: 2rem; font-weight: 400; margin-bottom: .2em; }
.event .desc { color: var(--ink-soft); }
.event dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 20px; font-size: .95rem; }
.event dt { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: .68rem; padding-top: 5px; }
.event dd { margin: 0; }

/* ---------- travel ---------- */
.covered { background: linear-gradient(135deg, #fff9ea, #fcefd0); border: 1px solid #ecd59c; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0 12px; }
.facts div { background: rgba(255,255,255,.75); border-radius: 12px; padding: 12px 14px; }
.facts small { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.facts b { font-weight: 500; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: .5em; }
.map { width: 100%; border: 0; border-radius: 14px; height: 320px; margin: 18px 0 8px; background: var(--paper-2); }

/* ---------- room block booking (guests booking their own room) ---------- */
.book-block { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px 32px; margin-bottom: 24px;
  box-shadow: var(--shadow); }
.book-block h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.book-block p { color: rgba(255,255,255,.88); }
.book-block b { color: #fff; }
.book-block .fine { color: rgba(255,255,255,.7); margin: 18px 0 0; }
.book-block a:not(.btn) { color: var(--gold-light); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: #8f6719; border-color: #8f6719; }
.deadline-inline { font: 600 1.1rem/1.3 var(--display); color: var(--navy); margin: -6px 0 16px; }
.summary .btn.stack { margin-top: 10px; }

/* ---------- RSVP ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.deadline { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin: 0 0 28px;
  padding: 18px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.deadline span { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.deadline b { font: 500 1.3rem/1.3 var(--display); }
.deadline small { margin-top: 6px; opacity: .85; }
.deadline a { color: var(--gold-light); }
.rsvp-event header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rsvp-event header h3 { margin: 0; }
.rsvp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rsvp-row .who { font-weight: 500; }
.choice { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--paper); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: .9rem; color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s, transform .15s; white-space: nowrap; }
.choice label:active { transform: scale(.96); }
.choice input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 1px; }
.choice input[value=yes]:checked + label { background: var(--green); color: #fff; }
.choice input[value=no]:checked + label { background: var(--ink-soft); color: #fff; }
.bulk { font-size: .82rem; color: var(--ink-soft); }
.bulk button { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
.submit-bar { text-align: center; padding: 8px 0 40px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 185, 73, .22); }
textarea { min-height: 100px; resize: vertical; }

/* ---------- registry ---------- */
.fund { display: flex; flex-direction: column; align-items: flex-start; }
.fund h3 { font-size: 2.1rem; font-weight: 400; }
.registry-item { display: flex; flex-direction: column; align-items: flex-start; }
.gift-dialog { border: 0; padding: 0; border-radius: 24px; width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 40px);
  background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(13,18,32,.5); overflow: auto; }
.gift-dialog::backdrop { background: rgba(13, 18, 32, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.gift-dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.gift-form { padding: 32px 28px 28px; position: relative; }
.gift-form .close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--paper-2); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.gift-form h2 { font-size: 2.2rem; }
.gift-form .label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 10px; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 8px; }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts span { display: block; text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px;
  font: 500 1.02rem var(--display); cursor: pointer; transition: all .2s var(--ease); background: #fff; }
.amounts input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.amount-field { margin: 14px 0 0; }
.field > .money { display: flex; align-items: center; margin: 0; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding-left: 14px; }
.money i { font-style: normal; color: var(--ink-soft); }
.money input { border: 0; box-shadow: none !important; }
.money:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 185, 73, .22); }
.methods { display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; text-align: left;
  width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  font: inherit; color: var(--ink); transition: border-color .2s, transform .15s; }
.method:hover { border-color: var(--navy); }
.method:active { transform: scale(.985); }
.method b { font-weight: 500; }
.method small { grid-row: 2; color: var(--ink-soft); font-size: .82rem; }
.method span { grid-row: 1 / 3; grid-column: 2; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.method.venmo b { color: #008cff; } .method.paypal b { color: #003087; } .method.zelle b { color: #6d1ed4; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.grabber { display: none; }

/* ---------- music (top of FAQ page) ---------- */
.music-block { text-align: center; margin-bottom: 20px; }
.music-block h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: .2em; }
.music-block h3 { margin-top: 24px; }
.music-block .player { margin-top: 18px; }
.music-block .btn { display: inline-flex; }
.player { display: block; width: 100%; height: 352px; border: 0; border-radius: 14px; margin-bottom: 14px;
  box-shadow: var(--shadow); background: var(--paper-2); }
.player.apple { height: 450px; }
.player.youtube { height: auto; aspect-ratio: 16 / 9; }

/* ---------- FAQ ---------- */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
details.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font: 500 1.02rem/1.45 var(--display); color: var(--navy);
  display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font: 300 1.8rem/1 var(--body); transition: transform .3s var(--ease); flex: none; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 24px 10px; color: var(--ink-soft); }

/* ---------- wedding party ---------- */
.side-group { margin-bottom: 30px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 24px; }
.person { text-align: center; }
.person .arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; overflow: hidden; margin: 0 auto 18px; max-width: 240px;
  background: linear-gradient(160deg, var(--haldi-soft), var(--paper-2)); display: grid; place-items: center;
  box-shadow: var(--shadow); border: 6px solid #fff; }
.person .arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.person:hover .arch img { transform: scale(1.05); }
.person .initials { font: 500 3.2rem var(--heading); color: var(--gold); }
.person .eyebrow { margin-bottom: .4rem; }
.person h3 { font-size: 1.7rem; margin-bottom: .3em; }
.person p { font-size: .95rem; }

/* ---------- sign-in gate ---------- */
.gate { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.1fr minmax(360px, 460px); align-items: center;
  gap: 48px; padding: 48px max(5vw, 24px); color: #fff; overflow: hidden; background: #0d1220; }
.gate-bg { position: absolute; inset: 0; }
.gate-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12);
  transition: opacity 1.8s ease, transform 9s linear; }
.gate-bg img.on { opacity: 1; transform: scale(1); }
.gate-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,18,32,.6) 0%, rgba(13,18,32,.2) 55%, rgba(13,18,32,.45) 100%); }
.gate-title { position: relative; align-self: end; padding-bottom: 6svh; }
.gate-title h1 { color: #fff; font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: .95; margin: 0; }
.gate-title em.amp { color: var(--gold-light); }
.gate-card { position: relative; background: rgba(255, 253, 249, .96); color: var(--ink); border-radius: 26px; padding: 36px 32px 26px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: pop .8s .3s var(--ease) both; }
.gate-card h2 { font-size: 2.3rem; }
.gate-card .flash { margin: 0 0 16px; }
.gate-card .fine { margin: 14px 0 0; }
.code-input { text-transform: uppercase; letter-spacing: .3em; }
.code-input::placeholder { text-transform: none; letter-spacing: normal; }

/* ---------- footer ---------- */
footer.site { padding: 60px 0 56px; text-align: center; color: var(--ink-soft); font-size: .9rem; border-top: 1px solid var(--line); }
footer.site .monogram.big { font-size: 2.6rem; display: block; margin-bottom: 14px; }
footer.site p { margin: 0 0 4px; }
footer.site a { color: var(--ink-soft); }

/* ---------- mobile tab bar + sheet (hidden on desktop) ---------- */
.tabbar, .sheet { display: none; }

/* ==========================================================================
   Phones & small tablets
   ========================================================================== */
@media (max-width: 820px) {
  :root { --header-h: 58px; --tabbar-h: calc(66px + env(safe-area-inset-bottom)); }
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { justify-content: center; padding-top: env(safe-area-inset-top); }
  .site-header { height: calc(var(--header-h) + env(safe-area-inset-top)); }
  .tabs { display: none; }
  .monogram { font-size: 1.45rem; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    height: var(--tabbar-h); padding: 6px 6px env(safe-area-inset-bottom);
    background: rgba(251, 247, 240, .92); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid rgba(231, 221, 204, .9);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; font: 500 .64rem/1 var(--body); letter-spacing: .06em; color: var(--ink-soft);
    text-decoration: none; cursor: pointer; padding: 0; touch-action: manipulation; transition: color .2s, transform .15s var(--ease); }
  .tabbar a:active, .tabbar button:active { transform: scale(.9); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on { color: var(--navy); }
  .tabbar .on svg { stroke-width: 2; }
  .tabbar .rsvp .bubble { width: 46px; height: 46px; margin-top: -20px; border-radius: 50%; background: var(--navy); display: grid; place-items: center;
    box-shadow: 0 8px 20px -6px rgba(31,42,68,.6); border: 3px solid var(--paper); }
  .tabbar .rsvp svg { stroke: #fff; fill: var(--navy); }
  .tabbar .rsvp.on .bubble { background: var(--gold); }
  .tabbar .rsvp.on svg { fill: var(--gold); }

  .sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 60; }
  .sheet-backdrop { position: absolute; inset: 0; background: rgba(13,18,32,.4); animation: fade .25s; }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 24px 24px 0 0;
    padding: 10px 10px calc(16px + env(safe-area-inset-bottom)); animation: up .35s var(--ease); }
  .sheet-panel a { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px; text-decoration: none;
    font: 500 1.05rem var(--display); color: var(--navy); border-bottom: 1px solid var(--line); }
  .sheet-panel a span { color: var(--gold); font-family: var(--body); font-size: 1rem; }
  .sheet-panel a.on { color: var(--gold); }
  .sheet-panel a.quiet { font: 400 .9rem var(--body); color: var(--ink-soft); border: 0; justify-content: center; }
  .grabber { display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 6px; }
  @keyframes up { from { transform: translateY(100%); } }
  @keyframes fade { from { opacity: 0; } }

  /* Home on phones */
  .home .site-header { padding-top: 0; }
  .caption { bottom: calc(var(--tabbar-h) + 9svh); left: 22px; right: 22px; }
  .caption.first { max-width: none; }
  .reel-names { font-size: clamp(3.2rem, 16vw, 5rem); }
  .reel-meta { font-size: .72rem; letter-spacing: .2em; line-height: 1.8; }
  .reel-meta .dot { display: none; }
  .reel-meta .loc { display: block; }
  .countdown div { min-width: 0; flex: 1; padding: 10px 6px; }
  .countdown b { font-size: 1.7rem; }
  .reel-ui { left: 22px; right: 22px; bottom: calc(var(--tabbar-h) + 3svh); justify-content: space-between; }
  .reel-bar { flex: 1; }
  .reel-hint { display: none; }
  .intro { padding: 72px 18px 20px; }
  .key-dates { grid-template-columns: 1fr; margin: 28px 0; }
  .key-dates div + div { border-left: 0; border-top: 1px solid var(--line); }
  .key-dates div { padding: 18px 12px; }

  .page-head { padding: 48px 18px 20px; }
  .card { padding: 22px 20px; border-radius: 16px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; gap: 6px; padding: 22px 20px 22px 24px; }
  .event .when { font-size: 1.2rem; display: flex; gap: 8px; align-items: baseline; }
  .event .when small { margin: 0; }
  .event h3 { font-size: 1.75rem; }
  .day { margin: 24px 0 36px; }

  .rsvp-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .choice { display: grid; grid-template-columns: 1fr 1fr; }
  .choice label { text-align: center; padding: 12px 8px; font-size: .88rem; }
  .submit-bar { position: sticky; bottom: calc(var(--tabbar-h) + 10px); z-index: 5; padding: 0 0 20px; }
  .submit-bar .btn { width: 100%; box-shadow: 0 14px 30px -10px rgba(31,42,68,.55); }
  .deadline b { font-size: 1.4rem; }

  .people { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .person h3 { font-size: 1.35rem; }
  .person .arch { border-width: 4px; }

  .gift-dialog { width: 100vw; max-width: 100vw; max-height: 92svh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .gift-dialog[open] { animation: up .4s var(--ease); }
  .gift-form { padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); }
  .gift-form .close { display: none; }

  .gate { grid-template-columns: 1fr; align-content: end; gap: 0; padding: 0; }
  .gate-title { padding: 0 22px 22px; align-self: auto; }
  .gate-title h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .gate-card { border-radius: 26px 26px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); }
  .gate-card h2 { font-size: 2rem; }
  .gate-shade { background: linear-gradient(180deg, rgba(13,18,32,.15) 0%, rgba(13,18,32,.15) 35%, rgba(13,18,32,.65) 100%); }

  footer.site { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- end of schedule: RSVP call to action ---------- */
.schedule-end { text-align: center; padding: 20px 0 64px; }
.schedule-end h2 { margin-bottom: .2em; }
.schedule-end .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 820px) { .schedule-end .actions .btn { width: 100%; } }

/* sign-in: first + last name side by side */
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 380px) { .name-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Heading sizes (Cormorant Garamond, medium weight)
   ========================================================================== */
h1, .reel-names, .caption h2, .display, .day-head h2, .gate-title h1 { font-weight: 500; }
h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.75rem; }
.reel-names { font-size: clamp(3.8rem, 11vw, 9rem); line-height: .98; }
.caption h2 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.display { font-size: clamp(2.7rem, 6vw, 4.4rem); }
.event h3, .fund h3 { font-size: 2.1rem; }
.summary h3 { font-size: 1.8rem; }
.gate-title h1 { font-size: clamp(3.6rem, 8.5vw, 7.5rem); line-height: .98; }
.gate-card h2, .gift-form h2 { font-size: 2.3rem; }
footer.site .monogram.big { font-size: 2.7rem; }
.reel-names, .gate-title h1 { animation: name-in 1.6s var(--ease) .2s both; }
@keyframes name-in { from { opacity: 0; filter: blur(10px); transform: translateY(14px); } }
@media (max-width: 820px) {
  h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .reel-names { font-size: clamp(3.4rem, 15vw, 4.8rem); }
  .caption h2 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .gate-title h1 { font-size: clamp(3.2rem, 14vw, 4.4rem); }
  .event h3 { font-size: 1.85rem; }
  .monogram { font-size: 1.5rem; }
}

/* reserved rooms (one card per room for large families) */
.room-card + .room-card { border-top: 1px dashed #ecd59c; margin-top: 8px; padding-top: 14px; }
.room-card h3 { font-size: 1.5rem; margin: 6px 0 0; }
.room-card h3 small { font-family: var(--display); font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
