/* Gulmohar - an original wedding invitation theme (sample site). Colours and fonts are set once, here. */
:root {
  --wine: #4A1424; --wine-2: #6A1E33; --wine-3: #2C0A15;
  --red: #8E1B2E; --flame: #D9482B; --marigold: #F2A93B;
  --gold: #C99A3D; --gold-2: #E6C77E; --gold-3: #9C7428;
  --ivory: #FBF5EA; --paper: #F4E8D3; --sand: #EADBC0;
  --ink: #3B1D22; --ink-2: #6B4A4D;
  --serif: 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, 'Times New Roman', serif;
  --display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', 'Great Vibes', 'Segoe Script', cursive;
  --ui: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --deva: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', 'Nirmala UI', serif;
  --foil: linear-gradient(100deg, #A27A2C 0%, #F3DC9A 28%, #C99A3D 50%, #F6E3AE 72%, #A67C2E 100%);
  --shadow: 0 22px 50px -26px rgba(74, 20, 36, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 500 1.18rem/1.6 var(--serif); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.locked, html.locked body { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h2, h3, .sec-sub, .event-desc, .person-bio, .inv-text, .inv-when, .venue-note, .scratch-hint, .info-card p, .moment p { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
p:empty { display: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }
[lang="hi"] { font-family: var(--deva); }
.amp { font-family: var(--display); }

/* ---------- shared pieces ---------- */
.section { position: relative; padding: clamp(76px, 11vw, 128px) 20px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 6vw, 56px); }
.eyebrow { font: 500 .78rem/1.4 var(--ui); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-3); }
.sec-head h2 { font: 400 clamp(2.3rem, 6vw, 3.3rem)/1.1 var(--display); color: var(--wine); margin-top: 10px; }
.sec-sub { margin-top: 14px; font-style: italic; color: var(--ink-2); font-size: 1.25rem; }
.divider { width: min(300px, 72vw); height: auto; margin: 16px auto 0; }
.sec-head.light .eyebrow { color: var(--gold-2); }
.sec-head.light h2 { color: var(--ivory); }
.sec-head.light .sec-sub { color: rgba(251, 245, 234, .82); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .86rem/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--foil); background-size: 200% 100%; color: var(--wine-3); box-shadow: 0 10px 24px -12px rgba(156, 116, 40, .9); }
.btn-gold:hover { background-position: 100% 0; }
.btn-line { border-color: rgba(156, 116, 40, .55); color: var(--wine); background: rgba(255, 255, 255, .55); }
.btn-line:hover { background: var(--wine); color: var(--ivory); border-color: var(--wine); }
.btn-light { color: var(--gold-2); border-color: rgba(230, 199, 126, .5); background: transparent; }
.btn-light:hover { background: var(--gold-2); color: var(--wine-3); border-color: var(--gold-2); }
.btn-wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 6px; color: var(--gold-3); font: 500 .8rem/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.toran { position: absolute; left: 0; right: 0; top: 0; height: 104px; background: url(../assets/art/toran.svg) repeat-x 0 0 / 200px 104px; z-index: 3; pointer-events: none; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .28)); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 199, 126, .55), 0 10px 22px -8px rgba(0, 0, 0, .6); } 60% { box-shadow: 0 0 0 16px rgba(230, 199, 126, 0), 0 10px 22px -8px rgba(0, 0, 0, .6); } }

/* ---------- 1. envelope intro ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 110px 16px 28px; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse at 50% 45%, #FFFBF3 0%, var(--paper) 60%, var(--sand) 100%);
  transition: opacity .8s ease 2.1s, transform .8s ease 2.1s;
}
.intro-mandala { position: absolute; width: min(140vmin, 980px); left: 50%; top: 54%; translate: -50% -50%; opacity: .16; animation: spin 160s linear infinite; pointer-events: none; }
.intro-kicker { position: relative; font: 500 .82rem/1.4 var(--ui); letter-spacing: .34em; text-transform: uppercase; color: var(--gold-3); transition: opacity .4s; }
.intro-hint { position: relative; font-style: italic; color: var(--ink-2); font-size: 1.05rem; transition: opacity .4s; }
.envelope { position: relative; width: min(88vw, 460px); aspect-ratio: 4 / 3; perspective: 1400px; }
.env-back { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(160deg, #5E1526, #3F0D1A); box-shadow: 0 30px 60px -28px rgba(44, 10, 21, .8); }
.env-letter {
  position: absolute; left: 5%; right: 5%; top: 5%; height: 90%; z-index: 1; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px;
  background: linear-gradient(180deg, #FFFDF7, #F7EBD5); border: 1px solid rgba(201, 154, 61, .6); border-radius: 4px;
  box-shadow: inset 0 0 0 6px #FFFDF7, inset 0 0 0 7px rgba(201, 154, 61, .45);
  transition: transform 1s cubic-bezier(.3, .7, .2, 1) .95s;
}
.letter-mandala { position: absolute; width: 130%; opacity: .1; left: 50%; top: 50%; translate: -50% -50%; }
.letter-small { position: relative; font: 500 .7rem/1.4 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); }
.letter-names { position: relative; font: 400 clamp(2.2rem, 9vw, 3.1rem)/1.15 var(--script); color: var(--wine); }
.letter-names .amp { font-size: .5em; color: var(--gold); padding: 0 .1em; }
.env-front { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, .25)); }
.env-pocket { fill: #7A1E30; }
.env-line { fill: none; stroke: var(--gold-2); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .75; }
.env-to { position: absolute; z-index: 3; left: 0; right: 0; bottom: 7%; font: 400 clamp(1.3rem, 5.4vw, 1.8rem)/1.2 var(--script); color: var(--gold-2); padding: 0 7%; }
.env-flap { position: absolute; left: 0; top: 0; width: 100%; height: 57%; z-index: 4; transform-origin: 50% 0; transform: rotateX(0); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); transition: transform .8s cubic-bezier(.5, 0, .3, 1) .3s, z-index 0s .75s; }
.env-flap-paper { fill: #8A2236; }
.seal {
  position: absolute; z-index: 5; left: 50%; top: 57%; width: 92px; height: 92px; translate: -50% -50%;
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; color: var(--gold-2);
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 38% 32%, #C33A50 0%, #9E1B32 45%, #5E0E1E 100%);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .35), inset 0 3px 6px rgba(255, 255, 255, .2);
  animation: pulse 2.4s ease-out infinite; transition: transform .45s cubic-bezier(.5, -0.5, .5, 1.5), opacity .45s;
}
.seal img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); opacity: .55; animation: spin 40s linear infinite; }
.seal b { position: relative; font: 400 1.5rem/1 var(--display); letter-spacing: .02em; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.seal b i { font-style: normal; font-size: .7em; padding: 0 1px; color: #F6E3AE; }
.seal:hover { transform: scale(1.06); }
html.opening .seal { transform: scale(.2) rotate(40deg); opacity: 0; pointer-events: none; animation: none; }
html.opening .env-flap { transform: rotateX(180deg); z-index: 0; }
html.opening .env-letter { transform: translateY(-46%); }
html.opening .intro-kicker, html.opening .intro-hint { opacity: 0; }
html.opening .intro { opacity: 0; transform: scale(1.08); pointer-events: none; }

/* ---------- 2. hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 130px 16px 90px; overflow: hidden; text-align: center; color: var(--ivory);
  background: radial-gradient(ellipse at 50% 42%, #7E2440 0%, var(--wine) 48%, var(--wine-3) 100%);
}
.hero-mandala { position: absolute; width: min(160vmin, 1150px); left: 50%; top: 52%; translate: -50% -50%; opacity: .14; animation: spin 150s linear infinite; pointer-events: none; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-arch {
  --w: min(88vw, 470px);
  position: relative; z-index: 2; width: var(--w); padding: min(calc(var(--w) * .2), 9vh) 24px min(46px, 5vh);
  border: 1.5px solid rgba(230, 199, 126, .7); border-radius: calc(var(--w) / 2) calc(var(--w) / 2) 22px 22px;
  outline: 1px solid rgba(230, 199, 126, .35); outline-offset: -11px;
  background: linear-gradient(180deg, rgba(44, 10, 21, .15), rgba(44, 10, 21, .55));
  backdrop-filter: blur(1.5px);
}
.hero-arch::before { content: ''; position: absolute; left: 50%; top: -15px; width: 28px; height: 28px; translate: -50% 0; rotate: 45deg; border: 1.5px solid var(--gold-2); background: var(--wine); }
.hero-blessing { font-size: 1.15rem; color: var(--gold-2); letter-spacing: .06em; }
.hero-names { margin: 14px 0 4px; font-weight: 400; }
.hero-names .name { display: block; font: 400 clamp(3.4rem, min(17vw, 11.5vh), 7.2rem)/1 var(--script); padding: 0 .15em; background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
.hero-names .amp { display: block; font-size: clamp(1.4rem, 4vw, 1.9rem); color: var(--gold-2); margin: 2px 0; }
.hero-sub { margin-top: 14px; font: 400 clamp(.9rem, 2.6vw, 1.05rem)/1.4 var(--display); letter-spacing: .3em; text-transform: uppercase; }
.hero-place { margin-top: 10px; font-style: italic; font-size: 1.2rem; color: rgba(251, 245, 234, .85); }
.scroll-cue { position: absolute; z-index: 3; bottom: 22px; left: 50%; translate: -50% 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(230, 199, 126, .5); color: var(--gold-2); animation: float 2.4s ease-in-out infinite; }
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- 3. save the date: scratch card + countdown ---------- */
.savedate { background: var(--ivory); }
.scratch { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.scratch-card { position: relative; width: min(86vw, 380px); aspect-ratio: 19 / 12; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--wine); }
.scratch-date { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ivory); background: radial-gradient(ellipse at 50% 40%, #7E2440, var(--wine) 70%); border: 1px solid rgba(230, 199, 126, .5); border-radius: 22px; box-shadow: inset 0 0 0 8px var(--wine), inset 0 0 0 9px rgba(230, 199, 126, .4); }
.sd-day { font: 500 .85rem/1 var(--ui); letter-spacing: .4em; text-transform: uppercase; color: var(--gold-2); }
.sd-date { font: 400 clamp(2.2rem, 10vw, 3rem)/1.1 var(--display); background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
.sd-time { font-style: italic; font-size: 1.1rem; color: rgba(251, 245, 234, .85); }
.scratch-layer { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .8s ease; }
.scratch-card.done .scratch-layer { opacity: 0; pointer-events: none; }
.scratch-hint { font-style: italic; color: var(--ink-2); }
.scratch-card.done ~ .scratch-hint, .scratch-card.done ~ .reveal-date { visibility: hidden; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2.4vw, 16px); width: min(100%, 520px); margin: 40px auto 0; }
.cd-box { display: flex; flex-direction: column; align-items: center; padding: 14px 4px 12px; border-radius: 16px; background: #fff; border: 1px solid rgba(201, 154, 61, .4); box-shadow: 0 12px 26px -20px rgba(74, 20, 36, .6); }
.cd-num { font: 400 clamp(1.8rem, 7vw, 2.6rem)/1 var(--display); color: var(--wine); font-variant-numeric: tabular-nums; }
.cd-lbl { margin-top: 6px; font: 500 .66rem/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.cd-done { grid-column: 1 / -1; text-align: center; font: 400 2rem/1.3 var(--script); color: var(--wine); }
.countdown.is-done .cd-box { display: none; }

/* ---------- 4. invitation card ---------- */
.invite { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .25 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
.invite-card {
  position: relative; max-width: 640px; margin: 0 auto; padding: clamp(56px, 9vw, 76px) clamp(26px, 7vw, 64px);
  text-align: center; background: var(--ivory); border: 1px solid rgba(201, 154, 61, .5); border-radius: 6px; box-shadow: var(--shadow);
  outline: 1px solid rgba(201, 154, 61, .35); outline-offset: -14px;
}
.corner { position: absolute; width: clamp(62px, 14vw, 92px); height: auto; opacity: .9; }
.c-tl { left: 6px; top: 6px; } .c-tr { right: 6px; top: 6px; transform: scaleX(-1); }
.c-bl { left: 6px; bottom: 6px; transform: scaleY(-1); } .c-br { right: 6px; bottom: 6px; transform: scale(-1); }
.salutation { color: var(--red); font-size: 1.15rem; margin-bottom: 18px; }
.inv-small { font: 500 .74rem/1.5 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-3); margin: 14px 0 6px; }
.inv-elders { font-style: italic; color: var(--ink-2); }
.inv-hosts { font: 400 clamp(1.12rem, 4.2vw, 1.32rem)/1.35 var(--display); color: var(--wine); margin-top: 14px; }
.inv-small + .inv-hosts { margin-top: 0; }
.inv-text { margin: 18px auto 0; max-width: 420px; font-style: italic; color: var(--ink-2); }
.inv-names { margin: 8px 0; font: 400 clamp(2.8rem, 11vw, 4rem)/1.15 var(--script); color: var(--wine); }
.inv-names .amp { font-size: .45em; color: var(--gold); padding: 0 .15em; vertical-align: middle; }
.inv-when { font: 400 clamp(.95rem, 3.6vw, 1.05rem)/1.5 var(--display); letter-spacing: .06em; color: var(--ink); }
.inv-where { margin-top: 6px; font-style: italic; color: var(--ink-2); }

/* ---------- 5. couple ---------- */
.couple { background: var(--ivory); }
.couple-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 980px; margin: 0 auto; align-items: center; }
.person { text-align: center; }
.portrait { width: min(78vw, 330px); aspect-ratio: 4 / 5; margin: 0 auto 22px; padding: 8px; border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px; border: 1.5px solid var(--gold); background: var(--ivory); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px; }
.person-name { font: 400 clamp(2.5rem, 9vw, 3.2rem)/1.15 var(--script); color: var(--wine); }
.person-role { font: 500 .76rem/1.4 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-3); margin-top: 4px; }
.person-parents { margin-top: 10px; color: var(--ink); }
.person-parents span { font-style: italic; color: var(--ink-2); }
.person-bio { margin: 8px auto 0; max-width: 340px; font-style: italic; color: var(--ink-2); }
.couple-amp { display: grid; place-items: center; }
.couple-amp span { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--gold); font: 400 2rem/1 var(--display); color: var(--gold-3); background: var(--paper); }

/* ---------- 6. story ---------- */
.story { background: var(--paper); }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold-2), var(--gold), var(--gold-2)); }
.moment { position: relative; padding: 0 0 34px 62px; }
.moment::before { content: ''; position: absolute; left: 10px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, var(--marigold) 0 30%, var(--ivory) 32%); border: 1.5px solid var(--gold); box-shadow: 0 0 0 5px var(--paper); }
.moment-when { font: 500 .76rem/1.4 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); }
.moment h3 { font: 400 1.6rem/1.25 var(--display); color: var(--wine); margin: 4px 0 6px; }
.moment p:last-child { color: var(--ink-2); }

/* ---------- 7. events ---------- */
.events { background: var(--ivory); }
.event-grid { display: grid; grid-template-columns: 1fr; gap: 26px; max-width: 960px; margin: 0 auto; }
.event {
  --accent: var(--wine);
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 50px 22px 26px; background: #fff; border: 1px solid rgba(201, 154, 61, .45);
  border-radius: 50% 50% 18px 18px / 110px 110px 18px 18px; box-shadow: var(--shadow);
}
.event::before { content: ''; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: inherit; pointer-events: none; }
.event-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, #fff); }
.event-icon svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.event-name { font: 400 clamp(2.1rem, 7vw, 2.5rem)/1.15 var(--script); color: var(--accent); margin-top: 4px; }
.event-when, .event-venue { display: flex; align-items: flex-start; justify-content: center; gap: 8px; font-size: 1.08rem; line-height: 1.45; text-wrap: balance; }
.event-when svg, .event-venue svg, .event-dress svg { width: 18px; height: 18px; flex: none; margin-top: 4px; fill: none; stroke: var(--gold-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.event-when { font-weight: 600; color: var(--ink); }
.event-venue { color: var(--ink-2); }
.event-desc { font-style: italic; color: var(--ink-2); max-width: 300px; }
.event-dress { width: 100%; margin-top: 4px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, #fff); }
.dress-label { display: flex; align-items: center; justify-content: center; gap: 6px; font: 500 .7rem/1.6 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.event-dress .dress-label svg { margin-top: 0; width: 16px; height: 16px; }
.dress-text { margin-top: 2px; font-size: 1.08rem; line-height: 1.4; text-wrap: balance; }
.script-amp { font-family: var(--display); font-size: .55em; padding: 0 .12em; vertical-align: .18em; }
.swatches { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.swatches i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(156, 116, 40, .5); }
.event-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: auto; padding-top: 8px; position: relative; }
.event-actions .btn { padding: 10px 16px; font-size: .78rem; }
.cal-menu { position: absolute; z-index: 10; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; min-width: 230px; display: flex; flex-direction: column; padding: 6px; background: #fff; border: 1px solid rgba(201, 154, 61, .55); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(44, 10, 21, .55); }
.cal-menu a, .cal-menu button { display: block; padding: 11px 14px; border: 0; border-radius: 10px; background: none; text-align: left; font: 500 .9rem/1.3 var(--ui); color: var(--wine); text-decoration: none; cursor: pointer; }
.cal-menu a:hover, .cal-menu button:hover { background: var(--paper); }

/* ---------- 8. venue ---------- */
.venue { background: var(--paper); }
.venue-card { max-width: 760px; margin: 0 auto; padding: 0 22px 34px; text-align: center; background: var(--ivory); border: 1px solid rgba(201, 154, 61, .45); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.venue-art { width: calc(100% + 44px); max-width: none; height: auto; margin: 0 -22px 22px; padding: 26px 18px 0; background: linear-gradient(180deg, #F9EEDC, #F1DDB9); opacity: .95; }
.venue-name { font: 400 clamp(1.7rem, 5vw, 2.2rem)/1.2 var(--display); color: var(--wine); }
.venue-address { margin-top: 6px; font-size: 1.2rem; }
.venue-note { margin: 8px auto 0; max-width: 460px; font-style: italic; color: var(--ink-2); }
.venue-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* ---------- 9. good to know ---------- */
.info { background: var(--ivory); }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 1000px; margin: 0 auto; }
.info-card { padding: 26px 24px; background: #fff; border: 1px solid rgba(201, 154, 61, .35); border-radius: 18px; box-shadow: 0 14px 30px -24px rgba(74, 20, 36, .6); }
.info-card > svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font: 400 1.5rem/1.3 var(--display); color: var(--wine); margin: 10px 0 6px; }
.info-card p { color: var(--ink-2); }
.contacts { max-width: 1000px; margin: 34px auto 0; text-align: center; }
.contacts h3 { font: 400 1.5rem/1.3 var(--display); color: var(--wine); }
.contacts ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.contacts li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; border-radius: 16px; background: var(--paper); }
.c-name { font-weight: 600; font-size: 1.2rem; }
.c-rel { font-style: italic; color: var(--ink-2); margin-bottom: 8px; }

/* ---------- 10. RSVP ---------- */
.rsvp { overflow: hidden; color: var(--ivory); background: radial-gradient(ellipse at 50% 0%, #7E2440 0%, var(--wine) 50%, var(--wine-3) 100%); }
.rsvp-mandala { position: absolute; width: 900px; max-width: none; right: -320px; top: -260px; opacity: .1; animation: spin 180s linear infinite; pointer-events: none; }
.rsvp-form { position: relative; max-width: 560px; margin: 0 auto; display: grid; gap: 18px; padding: clamp(26px, 6vw, 40px); color: var(--ink); background: var(--ivory); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); outline: 1px solid rgba(201, 154, 61, .5); outline-offset: -10px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-label { padding: 0; font: 500 .74rem/1.4 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); }
.field input[type="text"], .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(156, 116, 40, .45); background: #fff; font-size: 1.12rem; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-2); border-color: var(--gold); }
.choices, .checks { display: grid; gap: 10px; }
.choice, .check { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(156, 116, 40, .35); background: #fff; cursor: pointer; }
.choice input, .check input { width: 20px; height: 20px; accent-color: var(--wine); flex: none; }
.choice:has(input:checked), .check:has(input:checked) { border-color: var(--wine); background: #FFF6F2; }
.if-yes { display: grid; gap: 18px; }
.if-yes[aria-hidden="true"] { display: none; }
.form-error { color: #A11D2F; font-weight: 600; }
.form-hint { text-align: center; font-style: italic; color: var(--ink-2); font-size: 1.02rem; }

/* ---------- 11. footer ---------- */
.footer { position: relative; overflow: hidden; padding: 150px 20px 0; text-align: center; color: var(--ivory); background: var(--wine-3); }
.footer .eyebrow { color: var(--gold-2); }
.footer-names { margin: 10px 0 6px; font: 400 clamp(3.2rem, 13vw, 5rem)/1.1 var(--script); background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
.footer-names .amp { font-size: .45em; }
.footer-text { font-style: italic; font-size: 1.25rem; color: rgba(251, 245, 234, .85); }
.hashtag { margin-top: 22px; padding: 8px 18px; border: 1px dashed rgba(230, 199, 126, .6); border-radius: 999px; background: none; color: var(--gold-2); font: 400 1.25rem/1.3 var(--display); letter-spacing: .04em; cursor: pointer; }
.hashtag:hover { background: rgba(230, 199, 126, .12); }
.footer-hint { margin: 6px 0 22px; font-size: 1rem; color: rgba(251, 245, 234, .65); font-style: italic; }
.footer-palace { width: min(100%, 1000px); height: auto; margin: 46px auto 0; opacity: .32; }
.credit { padding: 14px 0 calc(82px + env(safe-area-inset-bottom)); font: 400 .72rem/1.4 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: rgba(251, 245, 234, .5); border-top: 1px solid rgba(230, 199, 126, .2); }

/* ---------- floating buttons + toast ---------- */
.fabs { position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; }
.fab { display: grid; place-items: center; height: 50px; border-radius: 999px; border: 1px solid rgba(230, 199, 126, .7); background: var(--wine); color: var(--gold-2); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); cursor: pointer; text-decoration: none; transition: opacity .3s, transform .3s; }
.fab-rsvp { padding: 0 20px; font: 500 .8rem/1 var(--ui); letter-spacing: .2em; }
.fab-rsvp.away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.fab-music { position: relative; width: 50px; }
.fab-music svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fab-music .eq { position: absolute; bottom: 8px; display: none; gap: 2px; height: 8px; align-items: flex-end; }
.fab-music .eq i { width: 2px; background: var(--gold-2); animation: eq .9s ease-in-out infinite; }
.fab-music .eq i:nth-child(2) { animation-delay: .2s; } .fab-music .eq i:nth-child(3) { animation-delay: .4s; }
.fab-music.on svg { translate: 0 -4px; }
.fab-music.on .eq { display: flex; }
.fab-music:not(.on)::after { content: ''; position: absolute; width: 26px; height: 1.6px; background: var(--gold-2); rotate: -45deg; }
@keyframes eq { 0%, 100% { height: 2px; } 50% { height: 8px; } }
.js.locked .fabs { opacity: 0; pointer-events: none; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); translate: -50% 20px; padding: 10px 18px; border-radius: 999px; background: var(--wine-3); color: var(--ivory); font: 500 .9rem/1.3 var(--ui); opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .toran { height: 124px; background-size: 240px 124px; }
}
@media (min-width: 900px) {
  .couple-grid { grid-template-columns: 1fr auto 1fr; gap: 20px; }
  .timeline::before { left: 50%; translate: -1px 0; }
  .moment { width: 50%; padding: 0 52px 44px 0; text-align: right; }
  .moment::before { left: auto; right: -12px; }
  .moment:nth-child(even) { margin-left: 50%; padding: 0 0 44px 52px; text-align: left; }
  .moment:nth-child(even)::before { right: auto; left: -12px; }
}
@media (min-width: 1180px) {
  .info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
