@charset "UTF-8";
:root {
  --paper: #f7f4e9;
  --paper-deep: #e9eadf;
  --ink: #505a45;
  --muted: #727667;
  --wine: #687457;
  --wine-deep: #566248;
  --gold: #897957;
  --pale-gold: #e1d7b8;
  --line: #c9cbb9;
  --display: 'Cormorant Garamond', Georgia, serif;
  --caps: 'Cinzel', Georgia, serif;
  --malayalam: 'Noto Serif Malayalam', serif;
  --rail: 88px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 20px/1.55 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.js body:not(.invitation-open) { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
p, h1, h2, h3, blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.paper { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 25% 0, #fffdf5 0%, transparent 70%); }
.paper::after { content: ''; position: absolute; inset: 0; opacity: .09; background: url('assets/lotus-pattern.svg') center / 260px 230px; }
.eyebrow { font: 400 10px/1.75 var(--caps); letter-spacing: .19em; text-transform: uppercase; color: var(--gold); }
h2 { font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
h2 em { font-weight: 400; color: var(--wine); }
.section-heading > .eyebrow { margin-bottom: 22px; }
.gold-rule, .blue-rule { width: 46px; height: 1px; margin: 24px 0; background: var(--gold); }
.malayalam-title { font: 400 23px/1.7 var(--malayalam); color: var(--wine); }
.section-space { padding: 104px 0; }
.couple-name { font: 400 clamp(68px, 8.6vw, 136px)/.89 var(--display); letter-spacing: -.065em; color: var(--ink); }
.couple-name > span { display: block; }
.couple-name em { display: block; width: fit-content; font-size: 28px; line-height: 1.1; font-weight: 400; letter-spacing: -.02em; margin: 13px 0 10px 46%; color: var(--wine); }
#heroNames:focus { outline: none; }

/* The desktop index stays at the edge, leaving the page as a quiet canvas. */
#invitation { margin-left: var(--rail); }
.reading-progress { position: fixed; top: 0; left: var(--rail); width: calc(100% - var(--rail)); height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; z-index: 81; }
.navigation { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 70; display: flex; flex-direction: column; align-items: center; padding: 28px 0; background: var(--paper); border-right: 1px solid var(--line); opacity: 1; }
.js body:not(.invitation-open) .navigation { visibility: hidden; }
.monogram { font: italic 25px/1 var(--display); color: var(--wine); text-decoration: none; letter-spacing: -.06em; white-space: nowrap; padding: 12px 5px; }
.nav-items { margin: auto 0; display: flex; flex-direction: column; gap: 52px; }
.nav-items a { display: grid; place-items: center; width: 84px; min-height: 40px; text-decoration: none; font: 10px/1.3 var(--caps); letter-spacing: .12em; transform: rotate(-90deg); color: var(--muted); transition: color .2s; }
.nav-items a:hover, .nav-items a[aria-current] { color: var(--wine); }

/* An asymmetric portrait spread instead of a full-screen image overlay. */
.hero { max-width: 1256px; margin: auto; padding: 76px 60px 64px; }
.hero-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(40px, 5vw, 84px); }
.hero-caption { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero-caption > .eyebrow { order: -1; margin-bottom: 42px; max-width: 300px; color: var(--muted); font-size: 10px; line-height: 2; }
.hero .couple-name { width: 100%; }
.hero .couple-name > span:last-child { margin-left: 13%; }
.hero .couple-name em { margin-left: 48%; }
.hero-caption .gold-rule { width: 88px; margin: 42px 0 0; }
.hero-visual { min-width: 0; }
.hero-photo-frame { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 48% 48% 0 0; background: var(--paper-deep); isolation: isolate; }
.hero-photo-frame::after { content: ''; position: absolute; inset: 13px; border: 1px solid #fff6d691; border-radius: inherit; pointer-events: none; z-index: 2; }
.hero-still { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 43%; transform-origin: 50% 40%; }
.scene-running .ceremony-scene { animation: portrait-reveal 2.8s cubic-bezier(.2,.7,.3,1) both; }
.scene-running .hero-caption { animation: type-reveal 1.1s ease both; }
.intro-light { position: absolute; inset: 0; z-index: 1; opacity: 0; background: #fff9e8; pointer-events: none; }
.scene-running .intro-light { animation: light-reveal 1.8s ease-out both; }
@keyframes portrait-reveal { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes type-reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes light-reveal { from { opacity: .4; } to { opacity: 0; } }
.skip-film { position: absolute; right: 21px; bottom: 21px; z-index: 4; min-height: 40px; padding: 10px 13px; border: 1px solid #a9916799; background: #faf5e9e8; color: var(--ink); font: 9px/1.4 var(--caps); letter-spacing: .1em; }
.skip-film span { font: 17px/1 var(--display); margin-left: 8px; }
.scroll-prompt { display: flex; gap: 18px; align-items: center; margin-top: 42px; font: 9px/1.5 var(--caps); text-transform: uppercase; letter-spacing: .16em; color: var(--wine); text-decoration: none; }
.scroll-circle { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 20px/1 Georgia, serif; transition: transform .2s; }
.scroll-prompt:hover .scroll-circle { transform: translateY(3px); }
.countdown-section { border-bottom: 1px solid var(--line); padding: 23px 0 19px; }
.countdown-section h2 { text-align: center; font-size: 9px; color: var(--muted); margin-bottom: 10px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.countdown > div { display: flex; align-items: center; flex-direction: column; min-width: 0; padding: 0 5px; }
.countdown > div + div { border-left: 1px solid var(--line); }
.countdown strong { font-size: 31px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.countdown span { font: 8px/1.8 var(--caps); letter-spacing: .1em; margin-top: 5px; color: var(--muted); }

/* The invitation reads as a letter, with its date in a small ledger. */
.invitation-letter { max-width: 1136px; margin: 0 auto; padding: 64px 0 76px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.letter-layout { display: grid; grid-template-columns: .82fr 1.8fr; gap: 35px 72px; }
.letter-heading .malayalam-title { font-size: 22px; line-height: 1.8; }
.letter-heading .eyebrow { margin-top: 15px; font-size: 9px; }
.letter-copy blockquote { max-width: 740px; font-size: clamp(27px, 3vw, 38px); font-weight: 400; line-height: 1.23; letter-spacing: -.018em; }
.grace { font-style: italic; color: var(--muted); font-size: 20px; margin-top: 20px; }
.date-strip { grid-column: 2; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); padding-top: 22px; }
.date-strip > div { display: flex; flex-direction: column; padding: 0 10px; border-left: 1px solid var(--line); }
.date-strip > div:first-child { padding-left: 0; border-left: 0; }
.date-strip strong { font-size: 24px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.date-strip > div:last-child strong { font-size: 21px; }
.date-strip span { font: 8px/1.6 var(--caps); color: var(--muted); letter-spacing: .1em; margin-top: 9px; }

/* Two unequal columns pair ceremony details with a vertical programme. */
.celebration-spread { max-width: 1136px; margin: 108px auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 76px; align-items: start; }
.reception, .celebration-day { min-width: 0; }
.invitation-copy { color: var(--muted); font-size: 20px; line-height: 1.6; }
.invitation-copy strong { color: var(--ink); font-weight: 600; }
.event { position: relative; margin-top: 38px; padding: 30px; background: var(--paper-deep); border-top: 3px double #bca580; }
.event-number { position: absolute; top: 9px; right: 22px; color: #bbab91; font: italic 65px/1 var(--display); opacity: .42; pointer-events: none; }
.event > .eyebrow { position: relative; font-size: 9px; padding-right: 36px; }
.event h3 { position: relative; font-size: 32px; font-weight: 500; line-height: 1.15; margin: 14px 0 28px; letter-spacing: -.02em; }
.event-row { display: flex; align-items: flex-start; gap: 16px; }
.event-row > div { min-width: 0; }
.event-icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; color: var(--gold); margin-top: 7px; }
.event-row .eyebrow { font-size: 9px; margin-bottom: 4px; color: #74613f; }
.event-value { font-size: 23px; font-weight: 500; line-height: 1.3; }
.event-address { font-size: 18px; color: var(--muted); margin-top: 4px; }
.event-separator { height: 1px; background: var(--line); margin: 21px 0; }
.event-actions { display: grid; gap: 9px; margin-top: 27px; }
.button { display: flex; justify-content: center; align-items: center; gap: 11px; min-height: 48px; padding: 13px 16px; text-decoration: none; border: 1px solid var(--wine); font: 9px/1.6 var(--caps); text-transform: uppercase; letter-spacing: .09em; transition: background .2s, color .2s; }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }
.button-navy { background: var(--wine); color: var(--paper); }
.button-navy:hover { background: var(--wine-deep); }
.button-paper { background: transparent; color: var(--wine); }
.button-paper:hover { background: #fffaf075; }
.button[disabled] { color: var(--muted); border-color: #c6b99f; opacity: .72; cursor: default; }
.celebration-day { margin-top: 70px; padding: 41px 36px 44px; background: var(--wine); color: var(--paper); }
.celebration-day .eyebrow { color: var(--pale-gold); }
.celebration-day h2 { font-size: clamp(35px, 3.3vw, 45px); }
.celebration-day h2 em { color: #e9e3c9; }
.celebration-day .blue-rule { background: #ab8866; margin: 27px 0 0; }
.ceremony-timeline { list-style: none; padding: 0; margin: 40px 0 0; }
.ceremony-timeline li { display: grid; grid-template-columns: 34px minmax(0,1fr); column-gap: 18px; position: relative; padding-bottom: 37px; }
.ceremony-timeline li:last-child { padding-bottom: 0; }
.ceremony-timeline li:not(:last-child)::before { content: ''; position: absolute; top: 35px; bottom: 0; left: 16px; width: 1px; background: #b18f7259; }
.timeline-number { display: grid; place-items: center; border: 1px solid #bfa07a99; width: 34px; height: 34px; border-radius: 50%; font: 9px/1 var(--caps); color: #efd7b1; }
.timeline-copy > .eyebrow { font-size: 9px; letter-spacing: .08em; padding-top: 6px; }
.ceremony-timeline h3 { font-size: 28px; font-weight: 500; line-height: 1.15; margin: 11px 0 9px; }
.timeline-copy > p:last-child { font-size: 18px; color: #e8e6d5; line-height: 1.5; }

/* Family names sit as two open columns, alongside their shared heading. */
.family { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.family-container { max-width: 1136px; margin: auto; display: grid; grid-template-columns: .82fr 1.8fr; gap: 72px; }
.family .section-heading h2 { font-size: 43px; }
.family-body { min-width: 0; }
.family-grid { display: grid; grid-template-columns: 1fr 38px 1fr; gap: 23px; }
.family-card { min-width: 0; }
.family-card h3 { font-size: 65px; line-height: 1.1; font-weight: 400; letter-spacing: -.04em; color: var(--wine); margin-bottom: 20px; }
.family-card > .eyebrow { font-size: 9px; }
.parents { font-size: 28px; line-height: 1.25; margin: 15px 0 22px; }
.family-address { font-size: 18px; line-height: 1.5; color: var(--muted); }
.family-ornament { display: flex; flex-direction: column; align-items: center; align-self: stretch; padding: 11px 0; gap: 17px; }
.family-ornament > span { flex: 1; width: 1px; min-height: 20px; background: var(--line); }
.family-ornament svg { width: 32px; height: 32px; stroke-width: .8; color: var(--gold); }
.compliments { margin-top: 36px; padding-top: 23px; border-top: 1px solid #c5b698; }
.compliments .eyebrow { font-size: 9px; }
.compliments > p:last-child { font-size: 27px; font-style: italic; color: var(--wine); margin-top: 7px; }

/* A quiet blessing spread links the family story to the handwritten wishes. */
.prayer { padding: 96px 0; }
.prayer-container { max-width: 1136px; margin: auto; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: start; }
.prayer-heading .eyebrow { margin-bottom: 20px; }
.prayer h2 { font-size: 42px; }
.prayer .blue-rule { display: none; }
.prayer-dedication { font-size: 29px; font-style: italic; color: var(--wine); margin-top: 24px; }
.malayalam-greeting { font: 400 18px/1.9 var(--malayalam); color: var(--gold); margin-top: 13px; }
.prayer-words { padding-top: 34px; }
.prayer blockquote { font-size: 31px; line-height: 1.25; font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.blessing-signoff { font-size: 18px; color: var(--muted); margin-top: 24px; }

/* A ruled letter form replaces the centered stack of fields and cards. */
.wishes { background: #e7eade; border-top: 1px solid var(--line); }
.wishes-container { max-width: 1136px; margin: auto; display: grid; grid-template-columns: .82fr 1.8fr; gap: 48px 72px; }
.wishes .section-heading { grid-column: 1; grid-row: 1 / 3; }
.wishes .section-heading h2 { font-size: 52px; }
.wish-form { min-width: 0; padding: 34px 38px 30px; background: var(--paper); box-shadow: 8px 8px 0 #c4b49b38; border: 1px solid #d5c7b0; }
.form-label { display: block; font: 9px/1.6 var(--caps); color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.wish-form input, .wish-form textarea { display: block; width: 100%; padding: 9px 0 12px; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; font: 22px/1.5 var(--display); resize: vertical; }
.wish-form input { margin-bottom: 23px; }
.wish-form textarea { min-height: 130px; margin-bottom: 25px; background: repeating-linear-gradient(transparent 0, transparent 32px, #d1c3a844 32px, #d1c3a844 33px); line-height: 33px; padding-top: 0; }
.wish-form input::placeholder, .wish-form textarea::placeholder { color: #8d8579; opacity: 1; font-style: italic; }
.wish-form :is(input, textarea):focus-visible { outline: none; border-bottom-color: var(--wine); box-shadow: 0 1px var(--wine); }
.wish-form .button { justify-content: space-between; width: 100%; padding-left: 20px; padding-right: 20px; }
.wish-form .button span { font: 21px/1 var(--display); }
.guestbook-note { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.wish-wall { grid-column: 2; min-width: 0; }
.wish-wall > .eyebrow { margin-bottom: 20px; font-size: 9px; color: var(--muted); }
.wish-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.empty-wishes { grid-column: 1 / -1; padding: 0 0 10px; color: var(--muted); font-size: 20px; font-style: italic; }
.wish-card { min-width: 0; padding: 21px; background: #faf5ec; border-top: 2px solid #b5976d; }
.wish-card > header { display: flex; align-items: center; gap: 11px; }
.wish-card > header > div { min-width: 0; }
.wish-avatar { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: var(--paper); font-size: 20px; }
.wish-name { font: 600 20px/1.2 var(--display); overflow-wrap: anywhere; }
.wish-time { font: 12px/1.5 Georgia, serif; color: var(--muted); }
.wish-message { font-size: 19px; line-height: 1.5; margin: 18px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.wish-card > footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #ddd2c2; padding-top: 6px; }
.like-wish, .remove-wish { border: 0; min-height: 40px; background: transparent; color: var(--wine); padding: 8px 0; }
.like-wish { font-size: 23px; min-width: 34px; text-align: left; }
.remove-wish { font: 9px/1.4 var(--caps); letter-spacing: .07em; }

/* A separate RSVP keeps confirmations distinct from guestbook wishes. */
.rsvp-section { background: #f4f2ea; border-top: 1px solid var(--line); }
.rsvp-container { max-width: 1136px; margin: auto; display: grid; grid-template-columns: .82fr 1.8fr; gap: 48px 72px; align-items: start; }
.rsvp-section .section-heading h2 { font-size: 52px; }
.rsvp-form { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 24px; padding: 34px 38px 30px; background: var(--paper); border: 1px solid #d5c7b0; box-shadow: 8px 8px 0 #c4b49b38; }
.rsvp-field { min-width: 0; }
.rsvp-field-full, .rsvp-attendance, .rsvp-submit-row, .rsvp-status { grid-column: 1 / -1; }
.rsvp-field[hidden] { display: none; }
.rsvp-form input:not([type="radio"]), .rsvp-form select, .rsvp-form textarea { display: block; width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); border: 1px solid #cfc4b1; background: #fbf9f3; font: 18px/1.5 var(--display); }
.rsvp-form textarea { min-height: 96px; resize: vertical; }
.rsvp-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.rsvp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.rsvp-attendance label { display: flex; align-items: center; gap: 10px; min-height: 42px; font: 17px/1.4 var(--display); color: var(--ink); }
.rsvp-attendance input { width: 17px; height: 17px; margin: 0; accent-color: var(--wine); }
.rsvp-submit-row .button { width: 100%; justify-content: space-between; padding: 13px 20px; }
.rsvp-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rsvp-status { display: none; margin: 0; padding: 14px 16px; background: #e7eade; border-left: 3px solid var(--gold); color: var(--ink); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.rsvp-status.visible { display: block; }
.rsvp-deadline { margin: 20px 0 0; color: var(--muted); font: italic 18px/1.5 var(--display); }

/* The original running text becomes a restrained closing line. */
.ribbon { background: var(--wine); color: var(--pale-gold); padding: 15px 0; overflow: hidden; border-bottom: 1px solid #e0c9a63b; }
.ribbon-track { display: flex; width: max-content; animation: ribbon-drift 55s linear infinite; }
.ribbon-copy { display: flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap; font: 9px/1.7 var(--caps); letter-spacing: .12em; }
.ribbon-copy i { font-size: 10px; font-style: normal; }
@keyframes ribbon-drift { to { transform: translateX(-50%); } }
.footer { position: relative; background: var(--wine-deep); color: var(--paper); padding: 62px max(50px, calc((100% - 1136px) / 2)) 34px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.1fr; align-items: end; column-gap: 50px; row-gap: 20px; }
.footer-couple { grid-column: 1; grid-row: 1 / 3; font: 400 clamp(50px, 6vw, 82px)/.95 var(--display); letter-spacing: -.05em; max-width: 470px; color: #f3efdf; }
.footer-note { grid-column: 2; padding-left: 25px; border-left: 1px solid #a482674d; font-size: 18px; color: #e2e3d2; }
.footer-venue { grid-column: 2; padding-left: 25px; border-left: 1px solid #a482674d; font-size: 18px; color: #e2e3d2; }
.footer-actions { margin-top: 36px; }
.card-download { display: inline-flex; align-items: center; min-height: 48px; padding: 13px 20px; border: 1px solid #c1a37b88; color: #e9d4b4; font: 9px/1.5 var(--caps); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.card-download:hover { background: #fff1d80d; }
.footer-tools { margin-top: 38px; padding: 23px 0; border-top: 1px solid #c1a37b40; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer-tools button { padding: 8px 0; min-height: 40px; background: none; border: 0; color: #e2dfc7; font: 9px/1.4 var(--caps); letter-spacing: .08em; }
.footer-tools button:hover { color: white; }
.footer-tools > span { color: #9a7954; font-size: 9px; }
.closing-line { font: italic 19px/1.5 var(--display); color: #e5e2cc; }
.sample-disclaimer { margin-top: 10px; max-width: 600px; font: 14px/1.5 var(--display); color: #d4d7c4; }
.sound-button { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 75; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #baa582; border-radius: 50%; background: #fbf6ebeF; color: var(--wine); box-shadow: 0 3px 17px #322c2417; }
.sound-button svg { width: 19px; height: 19px; }
.sound-button .sound-off, .sound-button[aria-pressed='true'] .sound-on { display: none; }
.sound-button[aria-pressed='true'] .sound-off { display: block; }
.toast { position: fixed; bottom: 82px; left: calc(50% + var(--rail) / 2); transform: translate(-50%, 12px); max-width: min(440px, calc(100% - 40px)); padding: 15px 21px; z-index: 90; background: var(--ink); color: var(--paper); font: 17px/1.4 var(--display); box-shadow: 0 8px 30px #2223; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .75s ease, transform .75s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1340px) {
  .hero { padding-left: 52px; padding-right: 52px; }
  .invitation-letter, .celebration-spread, .family-container, .prayer-container, .wishes-container { margin-left: 52px; margin-right: 52px; }
  .letter-layout, .family-container, .wishes-container { column-gap: 46px; }
  .celebration-spread { gap: 48px; }
  .celebration-day { padding: 36px 29px; }
  .hero .couple-name { font-size: clamp(72px, 10.2vw, 125px); }
  .prayer-container { gap: 28px; grid-template-columns: 1fr 1fr; }
  .prayer h2 { font-size: 37px; }
  .prayer blockquote { font-size: 29px; }
}
@media (max-width: 1100px) {
  :root { --rail: 70px; }
  .navigation { padding-top: 20px; }
  .nav-items a { width: 66px; font-size: 9px; }
  .monogram { font-size: 23px; }
  .hero { padding: 65px 38px 50px; }
  .hero-layout { gap: 36px; }
  .hero .couple-name { font-size: clamp(72px, 10.5vw, 108px); }
  .hero-caption > .eyebrow { margin-bottom: 30px; font-size: 9px; }
  .invitation-letter, .celebration-spread, .family-container, .prayer-container, .wishes-container { margin-left: 38px; margin-right: 38px; }
  .letter-layout { grid-template-columns: .85fr 1.5fr; gap: 30px 40px; }
  .letter-heading .malayalam-title { font-size: 19px; }
  .celebration-spread { grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 80px; margin-bottom: 80px; }
  .reception h2 { font-size: 41px; }
  .celebration-day { padding: 31px 23px; margin-top: 70px; }
  .celebration-day h2 { font-size: 37px; }
  .event { padding: 26px 22px; }
  .event h3 { font-size: 30px; }
  .event-value { font-size: 21px; }
  .event-row { gap: 10px; }
  .event-icon { flex-basis: 26px; }
  .family-container { grid-template-columns: 1fr 2fr; gap: 38px; }
  .family .section-heading h2 { font-size: 37px; }
  .family-grid { gap: 13px; grid-template-columns: 1fr 28px 1fr; }
  .family-card h3 { font-size: 56px; }
  .parents { font-size: 25px; }
  .prayer-container { grid-template-columns: 1fr 1fr; gap: 35px; }
  .prayer-words { padding-top: 35px; }
  .wishes-container { grid-template-columns: .8fr 1.5fr; gap: 35px; }
  .rsvp-container { grid-template-columns: .8fr 1.5fr; gap: 35px; }
  .wish-form { padding: 29px; }
  .rsvp-form { padding: 29px; }
  .wishes .section-heading h2 { font-size: 44px; }
  .wish-grid { grid-template-columns: 1fr; }
  .footer { padding-left: 38px; padding-right: 38px; }
}
@media (max-width: 820px) {
  :root { --rail: 0px; }
  html { scroll-padding-top: 86px; }
  .navigation { inset: 0 0 auto; width: auto; height: 65px; padding: 0 25px; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .monogram { font-size: 25px; }
  .nav-items { flex-direction: row; gap: 20px; margin: 0; }
  .nav-items a { width: auto; min-height: 44px; transform: none; font-size: 9px; letter-spacing: .07em; }
  .hero { padding-top: 105px; }
  .hero-layout { gap: 36px; }
  .hero .couple-name { font-size: clamp(75px, 12vw, 108px); }
  .hero .couple-name > span:last-child { margin-left: 9%; }
  .hero-caption > .eyebrow { font-size: 8px; letter-spacing: .13em; }
  .hero-caption .gold-rule { margin-top: 30px; }
  .scroll-prompt { margin-top: 30px; }
  .letter-layout { grid-template-columns: 1fr 1.5fr; gap: 28px; }
  .letter-copy blockquote { font-size: 29px; }
  .date-strip strong { font-size: 21px; }
  .date-strip > div:last-child strong { font-size: 17px; }
  .date-strip span { font-size: 7px; }
  .celebration-spread { gap: 26px; }
  .reception h2 { font-size: 36px; }
  .invitation-copy { font-size: 19px; }
  .celebration-day h2 { font-size: 34px; }
  .ceremony-timeline li { column-gap: 12px; grid-template-columns: 30px minmax(0,1fr); }
  .timeline-number { width: 30px; height: 30px; }
  .ceremony-timeline li:not(:last-child)::before { left: 14px; top: 31px; }
  .timeline-copy > .eyebrow { font-size: 8px; }
  .ceremony-timeline h3 { font-size: 27px; }
  .event { padding: 24px 19px; }
  .event-value { font-size: 20px; }
  .family-container { grid-template-columns: 1fr; gap: 36px; }
  .family .section-heading h2 { font-size: 44px; }
  .family .section-heading .blue-rule { display: none; }
  .family-grid { grid-template-columns: 1fr 40px 1fr; gap: 30px; }
  .family-card h3 { font-size: 63px; }
  .parents { font-size: 28px; }
  .section-space { padding: 76px 0; }
  .prayer { padding: 76px 0; }
  .wishes-container { grid-template-columns: .85fr 1.5fr; gap: 28px; }
  .wishes .section-heading h2 { font-size: 40px; }
  .wish-form { padding: 25px; }
}
@media (max-width: 620px) {
  .welcome { padding: 16px; }
  .welcome-card { grid-template-columns: 1fr; width: min(100%, 430px); min-height: 0; max-height: calc(100svh - 32px); overflow-y: auto; }
  .welcome-art { height: min(28svh, 220px); min-height: 150px; }
  .welcome-photo { object-position: 50% 25%; }
  .welcome-art::after { inset: 11px; }
  .welcome-note { padding: 23px 27px 26px; background: none; }
  .welcome-heading .malayalam-title { font-size: 20px; }
  .welcome-heading .eyebrow { font-size: 8px; margin-top: 4px; }
  .welcome-lamp { width: 25px; height: 39px; right: 0; }
  .sample-badge { font-size: 12px; margin-top: 8px; }
  .welcome-content { padding-top: 24px; }
  .welcome .couple-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-size: clamp(41px, 10.8vw, 53px); letter-spacing: -.05em; }
  .welcome .couple-name > span:last-child { margin: 0; }
  .welcome .couple-name em { display: inline; font-size: 19px; margin: 0; }
  .welcome-content .gold-rule { margin: 20px 0 12px; }
  .welcome-date { font-size: 16px; margin-bottom: 19px; }
  .open-button { min-height: 49px; padding: 13px 18px; font-size: 9px; }
  .navigation { padding: 0 21px; height: 60px; }
  .nav-items { gap: 17px; }
  .nav-items a { font-size: 8px; }
  .hero { padding: 98px 25px 44px; }
  .hero-layout { display: flex; flex-direction: column; gap: 34px; }
  .hero-caption { width: 100%; position: relative; }
  .hero-caption > .eyebrow { margin-bottom: 26px; max-width: none; font-size: 9px; }
  .hero .couple-name { font-size: clamp(74px, 19vw, 110px); width: 100%; padding-right: 18px; }
  .hero .couple-name > span:last-child { margin-left: 31%; }
  .hero .couple-name em { font-size: 23px; margin: 5px 0 4px 43%; }
  .hero-caption .gold-rule { position: absolute; bottom: 25px; left: 0; width: 36px; margin: 0; }
  .scroll-prompt { position: absolute; bottom: 5px; left: 52px; margin: 0; gap: 0; }
  .scroll-prompt > span:first-child { display: none; }
  .scroll-circle { width: 37px; height: 37px; font-size: 18px; }
  .hero-visual { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) 70px; column-gap: 17px; align-items: stretch; }
  .hero-photo-frame { aspect-ratio: 3 / 4; border-radius: 46% 46% 0 0; }
  .hero-photo-frame::after { inset: 9px; }
  .countdown-section { border: 0; border-left: 1px solid var(--line); padding: 12px 0 8px 10px; display: flex; flex-direction: column; justify-content: center; }
  .countdown-section h2 { font-size: 7px; letter-spacing: .02em; margin-bottom: 18px; line-height: 1.8; }
  .countdown { display: flex; flex-direction: column; gap: 13px; }
  .countdown > div { padding: 0; }
  .countdown > div + div { border: 0; }
  .countdown strong { font-size: 27px; }
  .countdown span { font-size: 7px; margin-top: 3px; }
  .skip-film { right: 15px; bottom: 15px; min-height: 36px; padding: 9px 10px; font-size: 8px; }
  .invitation-letter, .celebration-spread, .family-container, .prayer-container, .wishes-container { margin-left: 25px; margin-right: 25px; }
  .invitation-letter { padding: 39px 0 43px; }
  .letter-layout { grid-template-columns: 1fr; gap: 26px; }
  .letter-heading .malayalam-title { font-size: 23px; }
  .letter-heading .eyebrow { margin-top: 10px; font-size: 8px; }
  .letter-copy blockquote { font-size: 30px; line-height: 1.25; }
  .grace { font-size: 19px; margin-top: 17px; }
  .date-strip { grid-column: auto; padding-top: 24px; }
  .date-strip strong { font-size: 25px; }
  .date-strip > div:last-child strong { font-size: 20px; }
  .date-strip span { font-size: 8px; letter-spacing: .03em; }
  .date-strip > div { padding: 0 9px; }
  .celebration-spread { grid-template-columns: 1fr; gap: 38px; margin-top: 64px; margin-bottom: 64px; }
  .section-heading > .eyebrow { margin-bottom: 17px; font-size: 9px; }
  .reception h2 { font-size: clamp(37px, 8.4vw, 48px); }
  .blue-rule { margin: 22px 0; }
  .invitation-copy { font-size: 20px; }
  .event { margin-top: 29px; padding: 29px 24px; }
  .event h3 { font-size: 33px; }
  .event-value { font-size: 23px; }
  .event-row { gap: 14px; }
  .celebration-day { margin-top: 0; padding: 33px 29px 36px; }
  .celebration-day h2 { font-size: 40px; }
  .ceremony-timeline { margin-top: 33px; }
  .ceremony-timeline li { grid-template-columns: 34px minmax(0,1fr); column-gap: 19px; padding-bottom: 32px; }
  .timeline-number { width: 34px; height: 34px; }
  .ceremony-timeline li:not(:last-child)::before { left: 16px; top: 35px; }
  .timeline-copy > .eyebrow { font-size: 9px; }
  .ceremony-timeline h3 { font-size: 29px; }
  .timeline-copy > p:last-child { font-size: 19px; }
  .section-space { padding: 60px 0; }
  .family-container { gap: 33px; }
  .family .section-heading h2 { font-size: 41px; }
  .family-grid { grid-template-columns: 1fr 18px 1fr; gap: 12px; }
  .family-card h3 { font-size: clamp(45px, 12vw, 64px); margin-bottom: 18px; }
  .family-card > .eyebrow { font-size: 8px; letter-spacing: .1em; }
  .parents { font-size: 23px; margin: 14px 0 17px; }
  .family-address { font-size: 16px; }
  .family-ornament svg { width: 23px; height: 23px; }
  .compliments { margin-top: 28px; padding-top: 20px; }
  .compliments .eyebrow { font-size: 8px; }
  .compliments > p:last-child { font-size: 26px; }
  .prayer { padding: 62px 0; }
  .prayer-container { grid-template-columns: 1fr; gap: 24px; }
  .prayer h2 { font-size: 40px; }
  .prayer-heading .eyebrow { font-size: 9px; margin-bottom: 15px; }
  .prayer-dedication { font-size: 30px; margin-top: 20px; }
  .malayalam-greeting { font-size: 19px; margin-top: 11px; }
  .prayer-words { padding-top: 24px; border-top: 1px solid var(--line); }
  .prayer blockquote { font-size: 29px; }
  .blessing-signoff { margin-top: 19px; }
  .wishes-container { display: block; }
  .rsvp-container { display: block; margin-left: 25px; margin-right: 25px; }
  .rsvp-section .section-heading h2 { font-size: 44px; }
  .rsvp-section .section-heading { margin-bottom: 29px; }
  .rsvp-form { grid-template-columns: 1fr; padding: 26px 24px; }
  .rsvp-field-full, .rsvp-attendance, .rsvp-submit-row, .rsvp-status { grid-column: 1; }
  .rsvp-form input:not([type="radio"]), .rsvp-form select, .rsvp-form textarea { font-size: 20px; }
  .rsvp-attendance label { font-size: 18px; }
  .rsvp-note { font-size: 13px; }
  .wishes .section-heading h2 { font-size: 44px; }
  .wishes .section-heading { margin-bottom: 29px; }
  .wish-form { padding: 26px 24px; }
  .form-label { font-size: 8px; letter-spacing: .08em; }
  .wish-form input, .wish-form textarea { font-size: 21px; }
  .guestbook-note { font-size: 13px; }
  .wish-wall { margin-top: 39px; }
  .wish-wall > .eyebrow { font-size: 8px; }
  .wish-grid { grid-template-columns: 1fr; }
  .ribbon { padding: 14px 0; }
  .ribbon-copy { font-size: 8px; gap: 20px; padding-right: 20px; }
  .footer { padding: 43px 25px 85px; }
  .footer-top { grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 25px; align-items: start; }
  .footer-couple { grid-row: 1; grid-column: 1 / -1; font-size: clamp(49px, 13vw, 72px); line-height: 1; }
  .footer-note { grid-column: 1; grid-row: 2; padding: 0; border: 0; font-size: 17px; }
  .footer-venue { grid-column: 2; grid-row: 2; padding-left: 17px; font-size: 17px; }
  .footer-actions { margin-top: 28px; }
  .card-download { font-size: 8px; }
  .footer-tools { margin-top: 27px; gap: 6px 14px; padding: 14px 0; }
  .footer-tools button { font-size: 8px; letter-spacing: .02em; }
  .footer-tools > span { font-size: 7px; }
  .closing-line { font-size: 18px; }
  .sample-disclaimer { font-size: 13px; margin-top: 13px; }
  .sound-button { width: 43px; height: 43px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .toast { bottom: 73px; font-size: 16px; }
}
@media (max-width: 360px) {
  .hero, .footer { padding-left: 20px; padding-right: 20px; }
  .invitation-letter, .celebration-spread, .family-container, .prayer-container, .wishes-container { margin-left: 20px; margin-right: 20px; }
  .hero .couple-name { font-size: 72px; }
  .hero-visual { grid-template-columns: minmax(0,1fr) 59px; column-gap: 12px; }
  .countdown { gap: 10px; }
  .countdown strong { font-size: 24px; }
  .countdown-section h2 { margin-bottom: 12px; }
  .welcome-note { padding: 22px; }
  .welcome .couple-name { font-size: 40px; gap: 0 10px; }
  .welcome .couple-name em { font-size: 17px; }
  .date-strip > div { padding: 0 6px; }
  .date-strip strong { font-size: 23px; }
  .date-strip > div:last-child strong { font-size: 18px; }
  .celebration-day { padding: 29px 23px; }
  .parents { font-size: 21px; }
}
@media (max-height: 660px) and (min-width: 621px) {
  .welcome { padding: 20px; }
  .welcome-card { min-height: calc(100svh - 40px); }
  .welcome-note { padding: 24px 34px; }
  .welcome .couple-name { font-size: 62px; }
  .welcome-content { padding-top: 17px; }
  .welcome-heading .malayalam-title { font-size: 20px; }
  .welcome-heading .eyebrow { font-size: 8px; }
  .sample-badge { font-size: 12px; margin-top: 5px; }
  .welcome-content .gold-rule { margin: 18px 0 12px; }
  .welcome-date { font-size: 16px; margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  .ceremony-scene, .hero-caption { transform: none !important; opacity: 1 !important; }
  .intro-light { display: none; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  :root { --rail: 0px; }
  html, body { background: white !important; overflow: visible !important; font-size: 11pt; }
  .no-print, .welcome, .paper, #petals, .intro-light, .toast { display: none !important; }
  #invitation { margin: 0; }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  .hero { padding: 7mm 0 12mm; max-width: none; }
  .hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 15mm; }
  .hero-visual { display: block; }
  .hero .couple-name { font-size: 62pt; }
  .hero-caption > .eyebrow { font-size: 8pt; margin-bottom: 8mm; }
  .hero-photo-frame { height: 92mm; aspect-ratio: auto; }
  .hero-still { transform: none !important; animation: none !important; }
  .hero-caption { opacity: 1 !important; transform: none !important; }
  .invitation-letter, .celebration-spread, .family-container, .prayer-container { margin: 0; max-width: none; }
  .invitation-letter { padding: 9mm 0; }
  .letter-layout { grid-template-columns: 1fr 2fr; gap: 7mm; }
  .letter-heading .malayalam-title { font-size: 13pt; }
  .letter-copy blockquote { font-size: 20pt; }
  .grace { font-size: 12pt; }
  .date-strip { padding-top: 5mm; }
  .date-strip strong { font-size: 15pt; }
  .date-strip > div:last-child strong { font-size: 12pt; }
  .date-strip span { font-size: 6pt; }
  .celebration-spread { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10mm; padding: 12mm 0; }
  .reception h2, .celebration-day h2, .family .section-heading h2, .prayer h2 { font-size: 24pt; }
  .invitation-copy { font-size: 12pt; }
  .event { margin-top: 7mm; padding: 6mm; break-inside: avoid; }
  .event h3 { font-size: 19pt; }
  .event-value { font-size: 14pt; }
  .event-address { font-size: 11pt; }
  .event-number { display: none; }
  .celebration-day { margin: 0; padding: 7mm; background: #eee7da !important; color: var(--ink) !important; }
  .celebration-day .eyebrow, .celebration-day h2 em, .timeline-number, .timeline-copy > p:last-child { color: var(--ink) !important; }
  .ceremony-timeline { margin-top: 7mm; }
  .ceremony-timeline li { padding-bottom: 8mm; gap: 4mm; grid-template-columns: 8mm 1fr; }
  .timeline-number { width: 8mm; height: 8mm; }
  .ceremony-timeline h3 { font-size: 17pt; }
  .timeline-copy > p:last-child { font-size: 11pt; }
  .section-heading > .eyebrow { font-size: 7pt; margin-bottom: 4mm; }
  .family { padding: 9mm 0; break-inside: avoid; }
  .family-container { display: grid; grid-template-columns: 1fr 2fr; gap: 9mm; }
  .family-grid { grid-template-columns: 1fr 8mm 1fr; gap: 5mm; }
  .family-card h3 { font-size: 31pt; margin-bottom: 5mm; }
  .parents { font-size: 15pt; margin: 4mm 0; }
  .family-address { font-size: 11pt; }
  .compliments { margin-top: 6mm; padding-top: 4mm; }
  .compliments > p:last-child { font-size: 16pt; }
  .prayer { padding: 10mm 0; break-inside: avoid; }
  .prayer-container { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; }
  .prayer-words { border: 0; padding-top: 7mm; }
  .prayer blockquote { font-size: 18pt; }
  .prayer-dedication { font-size: 17pt; margin-top: 5mm; }
  .malayalam-greeting { font-size: 11pt; }
  .blessing-signoff { font-size: 11pt; margin-top: 4mm; }
  .footer { background: #eee7da !important; color: var(--ink) !important; padding: 8mm; break-inside: avoid; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 5mm; }
  .footer-couple { grid-column: 1; grid-row: 1 / 3; color: var(--ink); font-size: 34pt; }
  .footer-note, .footer-venue { grid-column: 2; padding-left: 6mm; font-size: 11pt; color: var(--ink); }
  .footer-note { grid-row: 1; }
  .footer-venue { grid-row: 2; }
  .closing-line { margin-top: 7mm; font-size: 12pt; color: var(--ink); }
  .sample-disclaimer { font-size: 9pt; color: var(--muted); }
}

/* Ivory paper, botanical sage and a delicate butterfly, drawn from the reference. */
:root { --rail: 0px; }
html { scroll-padding-top: 94px; }
body { background: var(--paper); }
.paper { background: radial-gradient(ellipse at 14% 4%, #fffcf4, transparent 60%), #f7f4e9; }
.paper::after { opacity: .75; background: url('assets/paper-grain.svg') repeat; background-size: 320px; }
#invitation { margin-left: 0; }
.eyebrow { color: #7b795e; }
.navigation { inset: 0 0 auto; width: 100%; height: 70px; padding: 0 max(30px, calc((100% - 1100px) / 2)); display: flex; flex-direction: row; justify-content: space-between; background: #f8f5ebed; border: 0; border-bottom: 1px solid #c8c9b680; backdrop-filter: blur(10px); }
.monogram { font-size: 27px; color: #687457; }
.nav-items { flex-direction: row; gap: 32px; margin: 0; }
.nav-items a { width: auto; min-height: 45px; transform: none; font-size: 9px; }
.reading-progress { left: 0; width: 100%; }
.hero { padding-top: 127px; max-width: 1230px; padding-bottom: 64px; }
.hero-caption > .eyebrow { color: #757a67; }
.hero .couple-name { font-size: clamp(76px, 9.5vw, 124px); color: #5a654d; }
.hero .couple-name em { color: #8a8064; }
.hero-visual { position: relative; }
.hero-photo-frame { border: 1px solid #b4b99f; padding: 10px; background: var(--paper); border-radius: 49% 49% 0 0; }
.hero-still { position: relative; inset: auto; height: 100%; border-radius: inherit; }
.hero-photo-frame::after { display: none; }
.portrait-butterfly { position: absolute; z-index: 5; width: 102px; height: 102px; top: 9%; right: -42px; transform: rotate(23deg); }
.section-butterfly { margin: -14px 0 12px; width: 68px; height: 68px; object-fit: contain; }
.invitation-letter { border-color: #c9cbb9; }
.event { background: #efefe3; border-top-color: #a6af92; }
.event-number { color: #a3ab94; }
.event .eyebrow, .event-icon { color: #7b7e63; }
.celebration-day { background: #697557; border: 1px solid #859175; box-shadow: inset 0 0 0 8px #697557, inset 0 0 0 9px #dce1ca30; }
.celebration-day .eyebrow { color: #ebe5ce; }
.celebration-day .blue-rule { background: #c2c5a1; }
.timeline-number { border-color: #c8d0ac88; color: #f2ead4; }
.ceremony-timeline li:not(:last-child)::before { background: #c7cdaa70; }
.family { background: #eceee2; }
.family-card h3, .compliments > p:last-child { color: #667354; }
.family-ornament > div { width: 70px; height: 70px; display: grid; place-items: center; }
.family-ornament img { width: 70px; height: 70px; object-fit: contain; max-width: none; }
.compliments { border-color: #c6ccb6; }
.prayer { background: #f7f4e9; }
.prayer blockquote { color: #687355; }
.wishes { background: #e6e9dc; }
.wish-form { border-color: #c7cdb8; box-shadow: 8px 8px 0 #aab59729; }
.wish-form input::placeholder, .wish-form textarea::placeholder { color: #7b7e6d; }
.wish-card { border-color: #99a581; }
.ribbon { background: #717b60; color: #f3edda; }
.footer { background: #59674b; }
.footer-butterfly { width: 78px; height: 78px; object-fit: contain; margin: -15px 0 25px; filter: drop-shadow(0 4px 7px #26301c30); }
.footer-note, .footer-venue { color: #e1e5d1; border-color: #b3be9466; }
.footer-tools { border-color: #bbc5a24a; }
.footer-tools > span { color: #c3cba9; }
.card-download { color: #eeedd9; border-color: #bdc7a48c; }
.closing-line { color: #e4e6d0; }
.sound-button { color: #667354; border-color: #a9b196; background: #faf7eeef; }

/* The two wing halves pivot around the butterfly's real central body. */
.butterfly-figure { position: relative; display: block; width: 100%; height: 100%; perspective: 600px; filter: drop-shadow(2px 7px 5px #535a3826); }
.butterfly-wing { position: absolute; top: 0; width: 50%; height: 100%; background-image: url('assets/butterfly.webp'); background-repeat: no-repeat; background-size: 200% 100%; backface-visibility: visible; }
.wing-left { left: 0; background-position: left center; transform-origin: right 54%; animation: wing-left 1.45s ease-in-out infinite; }
.wing-right { right: 0; background-position: right center; transform-origin: left 54%; animation: wing-right 1.45s ease-in-out infinite; }
.butterfly-body { position: absolute; inset: 0; background: url('assets/butterfly.webp') center / 100% 100% no-repeat; clip-path: inset(0 47% 0 47%); }
@keyframes wing-left { 0%, 100% { transform: rotateY(10deg); } 50% { transform: rotateY(56deg); } }
@keyframes wing-right { 0%, 100% { transform: rotateY(-10deg); } 50% { transform: rotateY(-56deg); } }

/* A full-screen paper invitation; no promotional phone frame. */
.welcome { display: none; position: fixed; inset: 0; z-index: 100; overflow: auto; padding: 22px; background: #eae8dc; transition: opacity .4s, visibility .4s; isolation: isolate; }
.js .welcome { display: grid; place-items: center; }
.welcome::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(123deg, #faf7eebb 8%, #b8b7a426 16%, #f9f7f0aa 25%, #b7b69e20 37%, #faf8eecc 43%, #ede9dc88 65%, #a8b09436); filter: blur(10px); }
.welcome.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-card { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; width: min(470px, 100%); min-height: 0; max-height: calc(100svh - 44px); overflow-y: auto; padding: 31px 42px 36px; background: #f7f4e9 url('assets/paper-grain.svg'); box-shadow: 0 22px 70px #53573c24; border: 1px solid #b9c0a4; scrollbar-width: thin; }
.welcome-card::before { content: ''; position: absolute; inset: 9px; border: 1px solid #c4c9b17a; pointer-events: none; }
.welcome-heading { position: static; padding: 0; width: 100%; }
.welcome-heading .malayalam-title { font-size: 16px; color: #818369; }
.welcome-heading .eyebrow { font-size: 8px; letter-spacing: .17em; margin-top: 5px; }
.sample-badge { position: absolute; right: 19px; bottom: 13px; border: 0; color: #7c806c; font: italic 10px/1.2 var(--display); padding: 0; margin: 0; }
.welcome-butterfly { width: 166px; height: 166px; margin: 8px 0 0; }
.welcome-salutation { color: #7a8068; line-height: 1.06; }
.welcome-salutation span, .envelope-greeting span { display: block; font: italic 24px/1.3 var(--display); }
.welcome-salutation strong, .envelope-greeting strong { display: block; font: 400 39px/1.1 var(--display); text-transform: uppercase; letter-spacing: .1em; margin: 1px 0; }
.welcome-salutation em, .envelope-greeting em { display: block; font: italic 31px/1.15 var(--display); }
.welcome-content { width: 100%; padding-top: 24px; }
.welcome .couple-name { font: 400 34px/1.1 var(--display); letter-spacing: -.025em; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 9px; color: #637050; }
.welcome .couple-name > span { display: inline; margin: 0; }
.welcome .couple-name > span:last-child { margin: 0; }
.welcome .couple-name em { display: inline; font: italic 18px/1 var(--display); color: #8b8065; margin: 0; width: auto; }
.welcome-content .gold-rule { width: 45px; margin: 16px auto 13px; background: #a5ae91; }
.welcome-date { font: italic 16px/1.4 var(--display); color: #757a67; margin-bottom: 22px; }
.open-button { width: min(285px, 100%); min-height: 49px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 1px solid #7e8b67; background: #6e7b5b; color: #f8f4e7; font: 9px/1.5 var(--caps); letter-spacing: .15em; text-transform: uppercase; transition: background .2s, transform .2s; }
.open-button::after { content: '↗'; font: 21px/1 var(--display); }
.open-button:hover { background: #5c6a4b; transform: translateY(-2px); }
.welcome-corner { position: absolute; width: 10px; height: 10px; border: 1px solid #a8b395; transform: rotate(45deg); opacity: .65; pointer-events: none; }
.corner-top { top: 5px; left: calc(50% - 5px); background: #f7f4e9; }
.corner-bottom { bottom: 5px; left: calc(50% - 5px); background: #f7f4e9; }

/* The sage envelope opens, then the butterfly lifts off the letter. */
body.intro-playing { overflow: hidden; }
.opening-film { position: fixed; inset: 0; z-index: 110; background: #eeeee2 url('assets/paper-grain.svg'); overflow: hidden; isolation: isolate; }
.opening-film::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0, #fffcf3, transparent 60%); pointer-events: none; }
.envelope-scene { position: absolute; inset: 0; margin: auto; width: min(520px, 100%); height: min(760px, 100svh); perspective: 1300px; }
.envelope-back { position: absolute; inset: 22px; background: #758060; border: 1px solid #929d7c; box-shadow: 0 20px 70px #57644424; }
.envelope-letter { position: absolute; inset: 27px; background: #f7f4e9 url('assets/paper-grain.svg'); overflow: hidden; }
.envelope-letter-frame { position: absolute; inset: 13px; border: 1px solid #c8cdb6; }
.envelope-flap { position: absolute; top: 22px; left: 22px; right: 22px; height: 57%; background: linear-gradient(115deg, #7e886a, #687454); clip-path: polygon(0 0, 100% 0, 100% 42%, 50% 100%, 0 42%); transform-origin: 50% 0; backface-visibility: hidden; z-index: 4; }
.envelope-flap::before { content: ''; position: absolute; inset: 14px 15px 23px; border: 1px solid #d8d5b889; clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%); }
.envelope-flap > span { display: block; margin-top: 72px; text-align: center; color: #e6e0c7; font: italic 42px/1 var(--display); }
.envelope-greeting { position: absolute; top: 39%; left: 0; right: 0; text-align: center; color: #7a8068; }
.envelope-greeting strong { font-size: 41px; }
.opening-butterfly { position: absolute; top: 41%; left: 50%; width: 195px; height: 195px; transform: translate(-50%, -50%); z-index: 6; }
.opening-butterfly .butterfly-wing { animation-duration: .34s; }
.film-caption { position: absolute; left: 18px; right: 18px; bottom: 72px; text-align: center; }
.film-caption .eyebrow { font-size: 8px; letter-spacing: .15em; color: #84866d; }
.film-couple { font: 400 42px/1.15 var(--display); letter-spacing: -.03em; color: #657151; margin: 12px 0 9px; }
.film-date { font: italic 17px/1.5 var(--display); color: #777d69; }
.film-skip { position: absolute; top: max(22px, env(safe-area-inset-top)); right: 22px; z-index: 8; min-height: 43px; padding: 11px 16px; display: flex; gap: 12px; align-items: center; border: 1px solid #aeb79b99; background: #f9f7eced; color: #61704f; font: 9px/1.5 var(--caps); letter-spacing: .1em; text-transform: uppercase; }
.film-skip span { font: 18px/1 var(--display); }
.film-sound { z-index: 8; }
.film-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #929c7c26; z-index: 8; }
.film-progress > span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #8a9772; }
.intro-playing .envelope-scene { animation: opening-complete 3.6s linear both; }
.intro-playing .envelope-flap { animation: envelope-unfold 3.6s ease both; }
.intro-playing .opening-butterfly { animation: butterfly-launch 3.6s cubic-bezier(.36,.05,.55,1) both; }
.intro-playing .envelope-greeting, .intro-playing .film-caption { animation: letter-reveal 3.6s ease both; }
.intro-playing .film-progress > span { animation: opening-progress 3.6s linear both; }
@keyframes opening-complete { 0%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.025); } }
@keyframes envelope-unfold { 0%, 8% { transform: rotateX(0); opacity: 1; } 45% { transform: rotateX(-170deg); opacity: .5; } 58%, 100% { transform: rotateX(-178deg); opacity: 0; } }
@keyframes butterfly-launch { 0%, 12% { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; } 38% { transform: translate(-65%, -95%) rotate(-15deg); opacity: 1; } 70% { transform: translate(6vw, -34vh) scale(.72) rotate(17deg); opacity: 1; } 91%, 100% { transform: translate(24vw, -57vh) scale(.43) rotate(30deg); opacity: 0; } }
@keyframes letter-reveal { 0%, 25% { opacity: 0; transform: translateY(13px); } 48%, 100% { opacity: 1; transform: none; } }
@keyframes opening-progress { to { transform: scaleX(1); } }

/* Three quiet flights across the page; mobile keeps just one. */
#butterflies { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; contain: strict; }
body:not(.invitation-open) #butterflies, body.intro-playing #butterflies { visibility: hidden; }
.floating-butterfly { position: absolute; top: 0; left: 0; width: 49px; height: 49px; animation: butterfly-crossing 34s linear infinite; opacity: 0; will-change: transform; }
.floating-butterfly .butterfly-wing { animation-duration: .67s; }
.floating-butterfly:nth-child(2) { width: 35px; height: 35px; animation-duration: 43s; animation-delay: -17s; animation-direction: reverse; }
.floating-butterfly:nth-child(3) { width: 58px; height: 58px; animation-duration: 51s; animation-delay: -32s; }
@keyframes butterfly-crossing { 0% { transform: translate3d(-8vw, 75vh, 0) rotate(-28deg); opacity: 0; } 12% { opacity: .64; } 40% { transform: translate3d(30vw, 33vh, 0) rotate(8deg); } 70% { transform: translate3d(78vw, 50vh, 0) rotate(-17deg); opacity: .64; } 100% { transform: translate3d(111vw, 7vh, 0) rotate(22deg); opacity: 0; } }
#petals { position: fixed; inset: 0; z-index: 59; pointer-events: none; overflow: hidden; contain: strict; }
body:not(.invitation-open) #petals, body.intro-playing #petals { visibility: hidden; }
.falling-petal { position: absolute; top: -30px; left: var(--x); width: var(--size); height: calc(var(--size) * 1.4); opacity: .4; animation: petal-fall var(--duration) linear var(--delay) infinite; }
.falling-petal > i { display: block; width: 100%; height: 100%; border-radius: 85% 18% 78% 28%; background: linear-gradient(135deg, #fffdf6, #e9e8d9 62%, #b4bea2); box-shadow: inset -1px -1px 2px #78835e20; animation: petal-turn 4s ease-in-out var(--delay) infinite alternate; }
@keyframes petal-fall { from { transform: translate3d(-20px, -12vh, 0); } to { transform: translate3d(65px, 112vh, 0); } }
@keyframes petal-turn { 0% { transform: translateX(-12px) rotate(0deg) rotateY(15deg); } 50% { transform: translateX(13px) rotate(95deg) rotateY(145deg); } 100% { transform: translateX(-7px) rotate(195deg) rotateY(250deg); } }
.page-hidden .falling-petal, .page-hidden .falling-petal > i { animation-play-state: paused; }
.page-hidden .butterfly-wing, .page-hidden .floating-butterfly, .page-hidden .envelope-scene, .page-hidden .envelope-flap, .page-hidden .opening-butterfly, .page-hidden .envelope-greeting, .page-hidden .film-caption, .page-hidden .film-progress > span { animation-play-state: paused !important; }

@media (max-width: 1100px) {
  .hero { padding-top: 112px; }
  .hero .couple-name { font-size: clamp(74px, 10.8vw, 108px); }
  .portrait-butterfly { width: 83px; height: 83px; right: -27px; }
}
@media (max-width: 820px) {
  .navigation { height: 65px; padding: 0 26px; }
  .nav-items { gap: 22px; }
  .hero { padding-top: 103px; }
  .hero .couple-name { font-size: clamp(75px, 12vw, 105px); }
}
@media (max-width: 620px) {
  .navigation { height: 61px; padding: 0 22px; }
  .monogram { font-size: 25px; }
  .nav-items { gap: 18px; }
  .nav-items a { font-size: 8px; }
  .hero { padding: 99px 26px 45px; }
  .hero .couple-name { font-size: clamp(75px, 19vw, 108px); }
  .hero-photo-frame { padding: 7px; }
  .hero-visual { column-gap: 20px; }
  .portrait-butterfly { right: 65px; top: 8%; width: 75px; height: 75px; }
  .section-butterfly { margin-top: -5px; width: 56px; height: 56px; }
  .family-ornament > div, .family-ornament img { width: 45px; height: 45px; }
  .welcome { padding: 16px; }
  .welcome-card { width: min(430px, 100%); max-height: calc(100svh - 32px); padding: 27px 26px 32px; }
  .welcome-heading .malayalam-title { font-size: 15px; }
  .welcome-butterfly { width: 149px; height: 149px; margin-top: 5px; }
  .welcome-salutation strong { font-size: 36px; letter-spacing: .08em; }
  .welcome-salutation span { font-size: 22px; }
  .welcome-salutation em { font-size: 29px; }
  .welcome-content { padding-top: 22px; }
  .welcome .couple-name { font-size: 32px; gap: 9px; }
  .welcome .couple-name em { font-size: 17px; }
  .welcome-date { font-size: 15px; margin-bottom: 20px; }
  .envelope-scene { width: 100%; height: 100svh; }
  .envelope-back { inset: 10px; }
  .envelope-letter { inset: 15px; }
  .envelope-flap { top: 10px; left: 10px; right: 10px; }
  .envelope-flap > span { margin-top: 81px; }
  .opening-butterfly { width: 170px; height: 170px; }
  .envelope-greeting strong { font-size: 37px; }
  .film-caption { bottom: max(95px, 13svh); }
  .film-couple { font-size: 40px; }
  .film-skip { top: max(17px, env(safe-area-inset-top)); right: 17px; font-size: 8px; }
  .floating-butterfly:nth-child(n+2) { display: none; }
  .falling-petal:nth-child(n+7) { display: none; }
  .footer-butterfly { width: 65px; height: 65px; margin-top: -10px; }
}
@media (max-height: 700px) {
  .welcome-card { padding-top: 21px; padding-bottom: 25px; }
  .welcome-butterfly { width: 119px; height: 119px; }
  .welcome-content { padding-top: 17px; }
  .welcome-salutation strong { font-size: 33px; }
  .welcome-date { margin-bottom: 17px; }
  .film-caption { bottom: 60px; }
  .envelope-greeting { top: 37%; }
}
@media (max-height: 460px) and (min-width: 621px) {
  .welcome-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(720px, 100%); padding: 25px 27px; column-gap: 24px; }
  .welcome-heading { grid-column: 1; }
  .welcome-butterfly { grid-column: 1; margin: 0 auto; width: 125px; height: 125px; }
  .welcome-salutation { grid-column: 1; }
  .welcome-salutation strong { font-size: 28px; }
  .welcome-content { grid-column: 2; grid-row: 1 / 4; padding: 0; }
  .envelope-greeting { top: 28%; }
  .envelope-greeting strong { font-size: 29px; }
  .envelope-greeting span, .envelope-greeting em { font-size: 20px; }
  .film-caption { bottom: 37px; }
  .film-couple { font-size: 29px; margin: 6px 0; }
  .film-date { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #butterflies, #petals, .opening-film { display: none !important; }
  .butterfly-wing { animation: none !important; transform: none !important; }
}
@media print {
  #butterflies, .opening-film, .welcome, .portrait-butterfly { display: none !important; }
  .navigation { display: none !important; }
  .hero { padding: 7mm 0 12mm; }
  .hero .couple-name { font-size: 62pt; }
  .footer-butterfly { width: 12mm; height: 12mm; }
  .hero-still { height: 100%; }
}
