/* ════════════════════════════════════════════════════════════════
   Sana & Ali Hamza — wedding invitation
   Mobile first. Maroon × ivory, with three event worlds:
   haldi yellow (Mayoun), henna green & pink (Mehndi), bridal red (Barat).
   1 tokens · 2 base · 3 shared · 4 doors · 5 hero · 6 sections
   7 scratch · 8 events · 9 closing · 10 motion · 11 desktop
   ════════════════════════════════════════════════════════════════ */

/* 1 ─ tokens ─────────────────────────────────────────────────── */
:root {
  --ivory: #F7EEDF;
  --ivory-hi: #FFFBF4;
  --sand: #EEDFC7;
  --maroon: #5A0B15;
  --maroon-deep: #3A070C;
  --maroon-hi: #7A1424;
  --crimson: #A51520;
  --gold: #C9A35F;
  --gold-hi: #EAD39C;
  --gold-lo: #9A7435;
  --body: #5E3434;
  --muted: #8A615C;

  --f-script: 'Allura', 'Snell Roundhand', cursive;
  --f-serif: 'Cormorant Infant', 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-arabic: 'Amiri', 'Geeza Pro', 'Noto Naskh Arabic', serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad-x: clamp(18px, 5.5vw, 48px);
  --lattice-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 0 48 24 24 48 0 24z' fill='none' stroke='%23C9A35F' stroke-opacity='.12' stroke-width='.8'/%3E%3Ccircle cx='24' cy='24' r='1.6' fill='%23C9A35F' fill-opacity='.18'/%3E%3C/svg%3E");
  --lattice-sand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 0 48 24 24 48 0 24z' fill='none' stroke='%23A07A3C' stroke-opacity='.14' stroke-width='.8'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* 2 ─ base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--maroon-deep); color: var(--maroon-deep); font: 400 16px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.is-locked { overflow: hidden; }
body.is-booting main { visibility: hidden; }
main { overflow-x: hidden; }
@supports (overflow: clip) { main { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.noscript { padding: 40px 24px; color: var(--ivory); font: 400 20px/1.5 var(--f-serif); text-align: center; }
.icon { width: 18px; height: 18px; flex: none; }

/* 3 ─ shared ─────────────────────────────────────────────────── */
.section { position: relative; padding: 72px var(--pad-x); background: var(--ivory); text-align: center; }
.section > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.section--sand { background: var(--lattice-sand) center / 48px, var(--sand); }
.section--dark {
  background: var(--lattice-gold) center / 48px, radial-gradient(120% 80% at 50% 0%, var(--maroon-hi), var(--maroon) 45%, var(--maroon-deep));
  color: var(--ivory);
}

.eyebrow { display: block; font: 650 11px/1.3 var(--f-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--crimson); }
.section--dark .eyebrow { color: var(--gold); }
.script-h { margin-top: 12px; font: 400 clamp(42px, 11.5vw, 60px)/1.05 var(--f-script); color: var(--maroon); text-wrap: balance; }
.section > .script-h { max-width: none; margin-left: calc(10px - var(--pad-x)); margin-right: calc(10px - var(--pad-x)); }
.script-h--light { color: var(--ivory); }

.rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto 28px; }
.rule::before, .rule::after { content: ''; width: 44px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.rule::before { transform-origin: right; }
.rule::after { transform-origin: left; }
.rule i { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.rule.is-in::before, .rule.is-in::after { transform: none; }

.names-line { font: 400 clamp(36px, 10vw, 56px)/1.15 var(--f-script); color: var(--maroon); }
.names-line .amp { font: italic 400 .6em var(--f-serif); color: var(--gold); margin: 0 .12em; }
.names-line--light { color: var(--ivory); }

/* photographic rose garland laid across each section seam */
.floral-divider { position: relative; z-index: 10; height: 0; pointer-events: none; }
.floral-divider > img, .floral-divider > svg {
  position: absolute; left: 50%; top: 0;
  width: min(108vw, 620px); height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 8px 10px rgba(30, 0, 6, .35));
  opacity: 0; scale: .86;
  transition: opacity 1.1s var(--ease), scale 1.4s cubic-bezier(.2, .9, .25, 1.15);
}
.floral-divider.is-in > img, .floral-divider.is-in > svg { opacity: 1; scale: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  border: 1px solid var(--gold);
  background: transparent; color: inherit;
  font: 600 11px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .icon { width: 15px; height: 15px; }

.cal { position: relative; }
.cal__menu {
  position: absolute; z-index: 20; right: 0; bottom: calc(100% + 8px);
  width: 240px; display: grid; padding: 6px;
  background: var(--ivory-hi); border: 1px solid var(--gold);
  box-shadow: 0 24px 48px -18px rgba(30, 6, 12, .45);
  text-align: left; color: var(--maroon-deep);
}
.cal__menu a, .cal__menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border: 0; background: none; font: 500 14px var(--f-sans); text-decoration: none; color: inherit; }
.cal__menu a + button { border-top: 1px solid rgba(201, 163, 95, .35); }
.cal__menu .icon { width: 15px; height: 15px; color: var(--gold-lo); }

/* 4 ─ opening: maroon palace doors with an ivory invitation card ─ */
.gate { position: fixed; inset: 0; z-index: 100; overflow: hidden; display: grid; place-items: center; perspective: 1500px; transition: opacity .55s var(--ease) 1.05s, visibility 0s linear 1.7s; }
.gate__light { position: absolute; inset: 0; background: radial-gradient(38% 55% at 50% 50%, #FFF6E2, rgba(243, 217, 166, .75) 40%, rgba(122, 20, 36, .4) 75%, transparent); opacity: 0; transition: opacity .7s var(--ease) .25s; }
.gate__door {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  background: var(--lattice-gold) center / 40px, radial-gradient(140% 70% at var(--lx) 45%, #8A1A2C, var(--maroon) 45%, var(--maroon-deep));
  transition: transform 1.35s cubic-bezier(.62, 0, .22, 1) .2s, filter 1.35s ease .2s;
  backface-visibility: hidden; will-change: transform;
}
.gate__door--l { left: 0; --lx: 100%; transform-origin: 0 50%; box-shadow: inset -2px 0 0 var(--gold), inset -5px 0 0 rgba(255, 246, 226, .5); }
.gate__door--r { right: 0; --lx: 0%; transform-origin: 100% 50%; box-shadow: inset 2px 0 0 var(--gold), inset 5px 0 0 rgba(255, 246, 226, .5); }
.door__arch, .door__panel { position: absolute; left: 13%; right: 13%; border: 1px solid rgba(201, 163, 95, .65); outline: 1px solid rgba(201, 163, 95, .25); outline-offset: 5px; }
.door__arch { top: 8%; height: 52%; border-radius: 999px 999px 4px 4px / 34% 34% 4px 4px; background: radial-gradient(80% 60% at 50% 30%, rgba(255, 246, 226, .1), transparent 70%); }
.door__panel { bottom: 7%; height: 22%; border-radius: 4px; }
.door__ring { position: absolute; top: 58%; width: 26px; height: 26px; border: 3px solid var(--gold); border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, .4), inset 0 1px 2px rgba(255, 246, 226, .6); }
.gate__door--l .door__ring { right: 14px; }
.gate__door--r .door__ring { left: 14px; }
.gate__garland { position: absolute; left: 50%; top: 0; z-index: 3; width: min(118vw, 820px); translate: -50% -26%; filter: drop-shadow(0 8px 10px rgba(20, 0, 4, .5)); transition: transform .9s var(--ease), opacity .6s; }
.gate__cluster { position: absolute; bottom: -8px; z-index: 3; width: clamp(150px, 42vw, 300px); filter: drop-shadow(0 -6px 12px rgba(20, 0, 4, .45)); transition: transform .9s var(--ease), opacity .6s; }
.gate__cluster--l { left: -12px; }
.gate__cluster--r { right: -12px; transform: scaleX(-1); }
.gate__card {
  position: relative; z-index: 4;
  width: min(84vw, 340px);
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 24px 30px;
  text-align: center; color: var(--maroon);
  background: radial-gradient(120% 80% at 50% 20%, var(--ivory-hi), var(--ivory) 70%, #EFE1C9);
  border-radius: 170px 170px 8px 8px / 120px 120px 8px 8px;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--ivory-hi), 0 0 0 8px rgba(201, 163, 95, .7), 0 30px 60px -18px rgba(20, 0, 4, .7);
  transition: opacity .4s var(--ease), transform .55s var(--ease);
}
.gate__bismillah { font: 400 clamp(22px, 6vw, 28px)/1.3 var(--f-arabic); opacity: .85; }
.gate__eyebrow { margin-top: 14px; font: 650 10px/1.4 var(--f-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-lo); }
.gate__names { display: flex; flex-direction: column; align-items: center; margin-top: 6px; font: 400 clamp(44px, 12.5vw, 58px)/1 var(--f-script); color: var(--maroon); white-space: nowrap; }
.gate__names .amp { margin: 2px 0; font: italic 400 .48em/1 var(--f-serif); color: var(--gold-lo); }
.gate__guest { margin-top: 10px; font: italic 500 17px/1.3 var(--f-serif); color: var(--crimson); }
.gate__open { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 16px; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.gate__seal { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--maroon-hi), var(--maroon) 55%, var(--maroon-deep)); box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(201, 163, 95, .25), 0 12px 24px -8px rgba(58, 7, 12, .55); color: var(--gold-hi); font: italic 400 22px/1 var(--f-serif); transition: transform .3s var(--ease); }
.gate__seal i { font: normal 400 .7em var(--f-script); margin: 0 2px; }
.gate__seal::after { content: ''; position: absolute; inset: -8px; border: 1px solid rgba(154, 116, 53, .6); border-radius: 50%; animation: ripple 2.4s ease-out infinite; }
.gate__open:hover .gate__seal { transform: scale(1.05); }
.gate__cta { font: 650 10.5px/1 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--maroon); }
/* opening: card lifts away, doors swing in 3D, warm light floods the doorway */
.is-opening .gate__card { opacity: 0; transform: translateY(-14px) scale(.94); }
.is-opening .gate__door--l { transform: rotateY(-104deg); filter: brightness(.6); }
.is-opening .gate__door--r { transform: rotateY(104deg); filter: brightness(.6); }
.is-opening .gate__light { opacity: 1; }
.is-opening .gate__garland { transform: translateY(-40%); opacity: 0; }
.is-opening .gate__cluster--l { transform: translate(-40%, 30%); opacity: 0; }
.is-opening .gate__cluster--r { transform: scaleX(-1) translate(-40%, 30%); opacity: 0; }
.gate.is-opening { opacity: 0; visibility: hidden; pointer-events: none; }

/* 5 ─ hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(56px, 9vh, 96px) var(--pad-x) 44px;
  background: var(--lattice-gold) center / 48px, radial-gradient(100% 70% at 50% 38%, var(--maroon-hi), var(--maroon) 50%, var(--maroon-deep));
  color: var(--ivory); text-align: center;
}
.hero:focus { outline: none; }
.hero__garland { position: absolute; left: 50%; top: 0; width: min(118vw, 820px); translate: -50% -26%; filter: drop-shadow(0 8px 10px rgba(20, 0, 4, .5)); }
.hero__cluster { position: absolute; z-index: 1; bottom: -10px; width: clamp(150px, 42vw, 300px); filter: drop-shadow(0 -6px 12px rgba(20, 0, 4, .45)); }
.hero__cluster--l { left: -14px; }
.hero__cluster--r { right: -14px; transform: scaleX(-1); }
.hero__frame {
  position: relative; width: min(100%, 420px);
  padding: 58px 22px 46px;
  border: 1px solid rgba(201, 163, 95, .65);
  border-radius: 210px 210px 4px 4px / 150px 150px 4px 4px;
  background: radial-gradient(90% 60% at 50% 40%, rgba(30, 3, 8, .35), transparent 80%);
}
.hero__frame::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(201, 163, 95, .28); border-radius: 202px 202px 2px 2px / 142px 142px 2px 2px; pointer-events: none; }
.bismillah { font: 400 clamp(26px, 7vw, 34px)/1.3 var(--f-arabic); color: rgba(247, 238, 223, .92); }
.hero__divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 14px; color: var(--gold); font-size: 10px; }
.hero__divider::before, .hero__divider::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.hero__request, .hero__closing { max-width: 260px; margin: 0 auto; font: 600 clamp(9.5px, 2.5vw, 11px)/1.5 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 238, 223, .82); }
.couple { margin: 20px 0 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.person__name { font: 400 clamp(46px, 13vw, 66px)/.95 var(--f-script); color: var(--ivory-hi); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.person__rel { margin-top: 8px; font: 600 clamp(9.5px, 2.4vw, 10.5px)/1.45 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(247, 238, 223, .7); }
.person__parents { display: block; margin-top: 3px; font: italic 400 clamp(15px, 4vw, 18px)/1.25 var(--f-serif); color: var(--gold-hi); }
.couple__amp { font: italic 400 clamp(34px, 9vw, 46px)/1 var(--f-serif); color: var(--gold); }
.scroll-cue { position: relative; z-index: 5; margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 650 9.5px/1 var(--f-sans); letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--gold-hi); }
.scroll-cue i { position: relative; width: 1px; height: 26px; background: rgba(247, 238, 223, .4); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ivory-hi); animation: cue 2s var(--ease) infinite; }

.hero__frame > *, .hero__garland, .hero__cluster { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.is-open .hero__frame > *, .is-open .hero__garland, .is-open .hero__cluster { opacity: 1; transform: none; }
.is-open .hero__cluster--r { transform: scaleX(-1); }
.is-open .hero__garland { transition-delay: .35s; }
.is-open .hero__frame > :nth-child(2) { transition-delay: .45s; }
.is-open .hero__frame > :nth-child(3), .is-open .hero__frame > :nth-child(4) { transition-delay: .55s; }
.is-open .hero__frame > :nth-child(5) { transition-delay: .7s; }
.is-open .hero__frame > :nth-child(6), .is-open .hero__frame > :nth-child(7) { transition-delay: .9s; }
.is-open .hero__cluster { transition-delay: .6s; }

/* 6 ─ welcome, countdown, gifts ─────────────────────────────── */
.welcome { overflow: hidden; }
.welcome .script-h { margin-top: 0; }
.welcome__body { margin-top: 20px; font: 400 18px/1.85 var(--f-serif); color: var(--body); text-wrap: pretty; }
.welcome .names-line { margin-top: 30px; }

.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 440px; }
.cd { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; border: 1px solid rgba(201, 163, 95, .35); }
.cd strong { font: 400 clamp(38px, 11vw, 60px)/1 var(--f-serif); letter-spacing: -.04em; color: var(--ivory-hi); font-variant-numeric: lining-nums; }
.cd span { font: 650 9px/1.6 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.countdown__done { font: italic 400 22px/1.5 var(--f-serif); color: var(--ivory); max-width: 26ch; }

.gifts__body { font: italic 400 19px/1.75 var(--f-serif); color: var(--body); max-width: 30ch; }

/* 7 ─ scratch card: maroon velvet inside a frame of small real roses ─ */
.scratch__frame { position: relative; width: min(100%, 560px); aspect-ratio: 1000 / 760; margin-top: 14px; }
.scratch__frame-img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(58, 7, 12, .25)); }
.scratch__card {
  position: absolute; z-index: 1; inset: 12% 9.5%;
  overflow: hidden; border-radius: 3px;
  background: radial-gradient(circle at 50% 40%, var(--ivory-hi), #F1E3CA);
}
.scratch__date { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--maroon); text-align: center; }
.scratch__kicker { font: 650 clamp(9px, 2.6vw, 11px)/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--crimson); }
.scratch__main { font: 400 clamp(24px, 7.4vw, 38px)/1 var(--f-serif); letter-spacing: -.02em; color: var(--maroon-deep); font-variant-numeric: lining-nums; }
.scratch__meta { display: flex; align-items: center; gap: 8px; font: 500 clamp(12px, 3.6vw, 15px)/1 var(--f-sans); color: var(--maroon-deep); }
.scratch__meta i { font-style: normal; color: var(--gold-lo); }
.scratch__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .9s var(--ease); }
.scratch__card.is-revealed .scratch__canvas { opacity: 0; }
.scratch__card.is-revealed .scratch__main { animation: glow 1.6s var(--ease) both; }
.scratch__card::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 230, 190, .25) 50%, transparent 60%) -150% 0 / 250% 100% no-repeat; animation: sheen 3.6s ease-in-out 1.2s infinite; }
.scratch__card.is-scratching::after, .scratch__card.is-revealed::after { display: none; }
.scratch__dust { position: absolute; z-index: 3; width: 4px; height: 4px; border-radius: 50%; background: radial-gradient(circle, #FFF3C8, #C9A35F); pointer-events: none; animation: dust .9s ease-in forwards; }
.scratch__spark { position: absolute; left: 50%; top: 50%; z-index: 3; width: 7px; height: 7px; margin: -3.5px; background: var(--gold-hi); transform: rotate(45deg); pointer-events: none; box-shadow: 0 0 8px rgba(233, 210, 154, .9); animation: spark 1.3s var(--ease) forwards; }
.scratch__note { margin-top: 30px; font: italic 400 16px/1.6 var(--f-serif); color: var(--maroon); }
/* until the date is revealed, the invitation ends here */
.is-scratch-locked .scratch ~ * { display: none !important; }
.is-scratch-locked .scratch { min-height: 100svh; }
.is-scratch-locked .scratch__note { animation: nudge 2.4s ease-in-out 1.5s infinite; }
.scratch__next { display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; margin: 26px auto 0; font: 650 10px/1 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; text-decoration: none; color: var(--crimson); animation: rise .8s var(--ease) both; }
.scratch__next i { position: relative; width: 1px; height: 30px; background: rgba(165, 21, 32, .25); overflow: hidden; }
.scratch__next i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--crimson); animation: cue 2s var(--ease) infinite; }

/* 8 ─ the three celebrations ─────────────────────────────────
   Each has its own world, built from real photographs:
   Mayoun  haldi-yellow silk under marigold larhis, a sunlit cream card
   Mehndi  green & gold brocade under fairy lights, an emerald card with gold
   Barat   bridal red brocade under a swag of real roses, an ivory card
   What ties them together: the same arch card, gold rings and type. */
.ev {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 150px 14px 64px;
  background: var(--ev-shade), var(--ev-texture) center / cover;
}
.ev__decor { position: absolute; inset: 0 0 auto; height: 0; pointer-events: none; } /* no z-index: keeps the lights' screen blend working */
.ev__decor > * { z-index: 2; }
.ev__card {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto;
  padding: 74px 20px 44px;
  color: var(--ev-ink); background: var(--ev-card);
  border-radius: 200px 200px 14px 14px / 120px 120px 14px 14px;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--ev-ring), 0 0 0 8px rgba(201, 163, 95, .7), 0 40px 70px -30px rgba(0, 0, 0, .65);
}
.ev__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; text-align: center; }
.ev__day { display: block; font: 650 11px/1.3 var(--f-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ev-accent); }
.ev__name { margin-top: 4px; font: 400 clamp(70px, 20vw, 118px)/1 var(--f-script); color: var(--ev-title); }
.ev__subtitle { margin-top: 2px; font: 600 11px/1.3 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ev-accent); }
.ev__tagline { max-width: 28ch; margin: 12px auto 0; font: italic 400 19px/1.5 var(--f-serif); text-wrap: balance; }
.ev__photo {
  position: relative; width: min(72vw, 360px); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 10px 10px; overflow: hidden;
  border: 5px solid var(--ev-frame);
  box-shadow: 0 0 0 1px var(--gold), 0 26px 40px -20px rgba(0, 0, 0, .5);
  background: var(--ev-frame);
}
.ev__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--ease) .15s; }
.ev__photo.is-in img { transform: none; }
.ev__body { width: min(100%, 400px); display: grid; justify-items: center; gap: 16px; }
.ev__date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: 100%; }
.ev__wk, .ev__my { padding: 10px 0; border-top: 1px solid var(--ev-line); border-bottom: 1px solid var(--ev-line); font: 650 10.5px/1.4 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; }
.ev__num { font: 300 clamp(92px, 27vw, 128px)/.85 var(--f-serif); color: var(--ev-date); font-variant-numeric: lining-nums; text-shadow: var(--ev-date-shadow, none); }
.ev__time { font: 500 22px/1.2 var(--f-serif); }
.ev__venue { display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.ev__venue .icon { margin-top: 3px; color: var(--ev-accent); }
.ev__venue strong { display: block; font: 600 15px/1.35 var(--f-sans); }
.ev__venue span { display: block; font: 400 14.5px/1.45 var(--f-sans); opacity: .85; }
.ev__dress { font: italic 400 16px/1.4 var(--f-serif); opacity: .9; }
.ev__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
.ev__actions .btn, .ev__actions .cal { width: 100%; }
.btn--ev { background: var(--ev-btn); border-color: var(--ev-btn); color: var(--ev-btn-ink); }
.btn--ev-line { background: transparent; border-color: var(--ev-accent); color: var(--ev-ink); }

/* Mayoun — haldi */
.ev--mayoun {
  --ev-texture: url('../together/assets/images/mayoon-bg.webp');
  --ev-shade: linear-gradient(rgba(255, 196, 30, .12), rgba(150, 70, 0, .28));
  --ev-card: radial-gradient(120% 70% at 50% 0%, #FFFBEA, #FFF2C4 55%, #F9DE85);
  --ev-ring: #F6C944; --ev-ink: #4A2A06; --ev-title: #D2570C; --ev-accent: #B5520A;
  --ev-date: #D2570C; --ev-date-shadow: 0 6px 18px rgba(210, 87, 12, .18);
  --ev-line: rgba(181, 82, 10, .35); --ev-frame: #F2BC3A; --ev-btn: #D2570C; --ev-btn-ink: #FFF8E6;
}
.ev__toran { position: absolute; left: 0; right: 0; top: 0; height: 230px; background: center -56px / auto 290px repeat-x; filter: drop-shadow(0 10px 10px rgba(120, 50, 0, .35)); }
.ev__strand { position: absolute; top: 120px; width: 46px; height: auto; filter: drop-shadow(0 8px 8px rgba(120, 50, 0, .35)); }
.ev__strand--l { left: 4px; }
.ev__strand--r { right: 4px; transform: scaleX(-1); }

/* Mehndi — henna green and gold, under fairy lights */
.ev--mehndi {
  --ev-texture: url('../together/assets/images/mehndi-bg.webp');
  --ev-shade: linear-gradient(rgba(4, 30, 18, .55), rgba(4, 30, 18, .35));
  --ev-card: radial-gradient(120% 60% at 50% 0%, rgba(40, 110, 70, .95), rgba(10, 58, 36, .96) 55%, rgba(5, 38, 24, .97));
  --ev-ring: #0B3B25; --ev-ink: #F4F1E4; --ev-title: #EAD39C; --ev-accent: #D9B66E;
  --ev-date: #EAD39C; --ev-line: rgba(217, 182, 110, .4); --ev-frame: #2F7A4C; --ev-btn: #D9B66E; --ev-btn-ink: #0B3B25;
}
.ev__lights { position: absolute; left: 0; right: 0; top: 0; height: 420px; background: url('../assets/ev/lights.jpg') center top / cover; z-index: 0 !important; mix-blend-mode: screen; -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); opacity: .95; }

/* Barat — bridal red and gold, under real roses */
.ev--barat {
  --ev-texture: url('../together/assets/images/background.webp');
  --ev-shade: linear-gradient(rgba(50, 0, 8, .35), rgba(40, 0, 6, .55));
  --ev-card: radial-gradient(120% 70% at 50% 0%, #FFFCF6, #FBF1E1 60%, #F2E0C3);
  --ev-ring: #FFF8EC; --ev-ink: #3E0910; --ev-title: #9E0F1F; --ev-accent: #A87A34;
  --ev-date: #9E0F1F; --ev-line: rgba(168, 122, 52, .45); --ev-frame: var(--gold); --ev-btn: #9E0F1F; --ev-btn-ink: #FFF3DC;
}
.ev--barat .btn--ev-line { border-color: #9E0F1F; }
.ev__garland { position: absolute; left: 50%; top: 62px; width: max(140vw, 640px); max-width: 1400px; translate: -50% 0; filter: drop-shadow(0 10px 12px rgba(30, 0, 4, .5)); }

/* the Barat programme, after the sample's timeline */
.prog { width: min(100%, 420px); padding-top: 30px; border-top: 1px solid var(--ev-line); }
.prog__eyebrow { display: block; font: 650 10.5px/1.3 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ev-accent); }
.prog__title { margin-top: 6px; font: 400 clamp(38px, 10.5vw, 50px)/1.1 var(--f-script); color: var(--ev-title); }
.prog__list { position: relative; margin-top: 26px; display: grid; gap: 26px; text-align: left; }
.prog__list::before { content: ''; position: absolute; left: 96px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(transparent, var(--gold) 8%, var(--gold) 92%, transparent); }
.prog__item { display: grid; grid-template-columns: 82px 1fr; column-gap: 30px; align-items: baseline; position: relative; }
.prog__item::before { content: ''; position: absolute; left: 92px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--ev-ring, #FFF8EC), 0 0 0 5px rgba(201, 163, 95, .5); }
.prog__time { text-align: right; font: 650 11px/1.6 var(--f-sans); letter-spacing: .12em; color: var(--ev-title); white-space: nowrap; }
.prog__what strong { display: block; font: 500 clamp(22px, 6vw, 26px)/1.15 var(--f-serif); color: var(--ev-ink); }
.prog__what span { display: block; margin-top: 3px; font: italic 400 15px/1.4 var(--f-serif); color: var(--muted); }

/* 9 ─ closing ───────────────────────────────────────────────── */
.closing { position: relative; overflow: hidden; padding: 84px var(--pad-x) 96px; text-align: center; }
.closing__cluster { position: absolute; bottom: -8px; width: clamp(150px, 42vw, 300px); filter: drop-shadow(0 -6px 12px rgba(20, 0, 4, .45)); }
.closing__cluster--l { left: -12px; }
.closing__cluster--r { right: -12px; transform: scaleX(-1); }
.closing__arch {
  position: relative; max-width: 420px; margin: 0 auto;
  padding: 78px 26px 48px;
  border: 1px solid rgba(201, 163, 95, .6);
  border-radius: 210px 210px 6px 6px / 150px 150px 6px 6px;
  background: radial-gradient(90% 60% at 50% 35%, rgba(30, 3, 8, .3), transparent 80%);
}
.closing__arch::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(201, 163, 95, .25); border-radius: 201px 201px 4px 4px / 141px 141px 4px 4px; pointer-events: none; }
.closing__arch .rule { margin-top: 0; }
.closing__title { font: italic 300 clamp(30px, 8.4vw, 40px)/1.2 var(--f-serif); color: var(--ivory); text-wrap: balance; }
.closing__names { display: flex; align-items: baseline; justify-content: center; gap: .16em; margin-top: 18px; font: 400 clamp(54px, 15vw, 76px)/1.05 var(--f-script); color: var(--gold-hi); text-shadow: 0 2px 20px rgba(201, 163, 95, .25); }
.closing__names .amp { font: italic 400 .5em var(--f-serif); color: var(--gold); }
.closing__meta { margin-top: 14px; font: 600 10.5px/1.9 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 238, 223, .78); }
.closing__hosts { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(201, 163, 95, .35); display: grid; justify-items: center; gap: 4px; }
.closing__host-line { font: italic 400 17px/1.4 var(--f-serif); color: var(--gold-hi); }
.closing__host { margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; white-space: nowrap; font: 500 clamp(21px, 5.6vw, 28px)/1.2 var(--f-serif); color: var(--ivory-hi); letter-spacing: .01em; }
.closing__host .amp { font: italic 400 .8em/1 var(--f-serif); color: var(--gold); }
.closing__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin-top: 6px; border: 1px solid rgba(201, 163, 95, .55); font: 600 13px/1 var(--f-sans); letter-spacing: .08em; color: var(--gold-hi); text-decoration: none; }
.closing__phone .icon { width: 15px; height: 15px; }
.closing__tag { margin-top: 26px; font: 400 34px/1.2 var(--f-script); color: var(--gold); }

.music-toggle { position: fixed; z-index: 90; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(201, 163, 95, .6); border-radius: 50%; background: rgba(58, 7, 12, .7); color: var(--ivory); }
.music-toggle { transition: transform .3s var(--ease), background-color .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.music-toggle .icon { width: 17px; height: 17px; }
.music-toggle::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; pointer-events: none; }
.music-toggle.is-playing { background: rgba(90, 11, 21, .85); color: var(--gold-hi); }
.music-toggle.is-playing::after { animation: ripple 2.2s ease-out infinite; }
.music-toggle:not(.is-playing) .icon { opacity: .7; }

/* 10 ─ motion ───────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
@keyframes sheen { 0%, 55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes petal-fall { to { transform: translate(var(--dx), 90px) rotate(var(--rot)); opacity: 0; } }
@keyframes petal-burst { 0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 1; } 100% { transform: translate(var(--tx), calc(var(--ty) + 60px)) rotate(var(--rot)) scale(1.1); opacity: 0; } }
@keyframes dust { to { transform: translate(var(--dx), 70px); opacity: 0; } }
@keyframes spark { 0% { transform: translate(0, 0) rotate(45deg) scale(.4); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) rotate(45deg) scale(1); opacity: 0; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes nudge { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0% { text-shadow: 0 0 0 rgba(201, 163, 95, 0); } 40% { text-shadow: 0 0 22px rgba(201, 163, 95, .85); } 100% { text-shadow: 0 0 0 rgba(201, 163, 95, 0); } }

/* 11 ─ larger screens ───────────────────────────────────────── */
@media (max-height: 680px) {
  .gate__card { padding: 40px 22px 22px; }
  .gate__open { margin-top: 12px; }
  .hero { padding-top: 84px; }
  .couple { margin: 14px 0 16px; }
}
@media (min-width: 640px) {
  .section { padding-top: 96px; padding-bottom: 96px; }
}
@media (min-width: 900px) {
  .hero__frame { width: 460px; }
  .ev { padding: 200px 40px 96px; }
  .ev__card { padding: 90px 64px 64px; border-radius: 26px; }
  .ev__inner { grid-template-columns: 1fr 1fr; grid-template-areas: 'photo head' 'photo body' 'prog prog'; column-gap: 64px; row-gap: 22px; align-items: center; }
  .prog { grid-area: prog; justify-self: center; margin-top: 20px; }
  .ev__toran { height: 300px; background-size: auto 370px; background-position: center -72px; }
  .ev__strand { top: 150px; width: 64px; }
  .ev__strand--l { left: calc(50% - 600px); }
  .ev__strand--r { right: calc(50% - 600px); }
  .ev__garland { width: 1400px; top: 30px; }
  .ev__head { grid-area: head; align-self: end; }
  .ev__photo { grid-area: photo; width: min(100%, 400px); justify-self: end; }
  .ev__body { grid-area: body; align-self: start; }
  .ev--mehndi .ev__inner { grid-template-areas: 'head photo' 'body photo'; }
  .ev--mehndi .ev__photo { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal], .hero__frame > *, .hero__garland, .hero__cluster, .ev__photo img { opacity: 1; transform: none; }
  .scratch__card::after { display: none; }
  .floral-divider > img, .floral-divider > svg { opacity: 1; scale: 1; }
  .rule::before, .rule::after { transform: none; }
}

/* New-design photos: keep the couple in view in the Barat arch */
.ev--barat .ev__photo img { object-position: 60% 86%; }
