/* ═══ TOKENS ═══ */
:root {
  --maroon-900: #2e070e; --maroon-800: #4e0e1a; --maroon-700: #6b1424; --maroon-600: #8a2233;
  --gold-800: #7a5a22; --gold-600: #a8822f; --gold-500: #c09a48; --gold-300: #e2c886; --gold-100: #f6ebc8;
  --ivory: #faf4e8; --ivory-2: #f1e5cd; --paper: #fffaf0; --ink: #2a1a14; --muted: #6e5a4c; --emerald: #0f3d33;
  --script: "Pinyon Script", cursive; --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cinzel", serif; --arabic: "Amiri", "Noto Naskh Arabic", serif;

  /* box geometry */
  --W: 272px; --D: 196px; --H: 84px; --S: 30px;     /* base width / depth / height, lid skirt */
  --LW: 280px; --LD: 204px;                          /* lid (base + 8) */
  --RB: 30px;                                        /* ribbon width */
  --k: 1;                                            /* fit-to-screen scale, set by JS */

  /* textures (inline SVG tiles) */
  --tx-damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='56'%3E%3Cg fill='%23ffc2cb' fill-opacity='.075'%3E%3Cpath d='M20,40C13,40 9,34 10,27C11,19 17,14 23,10C25,9 27,9 27,11C27,13 25,14 24,15C24,17 27,19 28,23C31,31 27,40 20,40Z'/%3E%3Cpath transform='translate(-20 -28)' d='M20,40C13,40 9,34 10,27C11,19 17,14 23,10C25,9 27,9 27,11C27,13 25,14 24,15C24,17 27,19 28,23C31,31 27,40 20,40Z'/%3E%3Cpath transform='translate(20 -28)' d='M20,40C13,40 9,34 10,27C11,19 17,14 23,10C25,9 27,9 27,11C27,13 25,14 24,15C24,17 27,19 28,23C31,31 27,40 20,40Z'/%3E%3Cpath transform='translate(-20 28)' d='M20,40C13,40 9,34 10,27C11,19 17,14 23,10C25,9 27,9 27,11C27,13 25,14 24,15C24,17 27,19 28,23C31,31 27,40 20,40Z'/%3E%3Cpath transform='translate(20 28)' d='M20,40C13,40 9,34 10,27C11,19 17,14 23,10C25,9 27,9 27,11C27,13 25,14 24,15C24,17 27,19 28,23C31,31 27,40 20,40Z'/%3E%3C/g%3E%3C/svg%3E");
  --tx-zari: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22'%3E%3Cg fill='none' stroke='%23d9bb6c' stroke-width='1'%3E%3Cpath d='M0,1.5H24M0,20.5H24'/%3E%3Cpath d='M0,4.5A6,6 0 0 0 12,4.5A6,6 0 0 0 24,4.5'/%3E%3Cpath d='M0,17.5A6,6 0 0 1 12,17.5A6,6 0 0 1 24,17.5'/%3E%3C/g%3E%3Cg fill='%23e6cc84'%3E%3Cpath d='M12,7.5Q14,11 12,14.5Q10,11 12,7.5ZM8.5,11Q12,9 15.5,11Q12,13 8.5,11Z'/%3E%3Ccircle cx='0' cy='11' r='1.5'/%3E%3Ccircle cx='24' cy='11' r='1.5'/%3E%3Ccircle cx='6' cy='10.8' r='.8'/%3E%3Ccircle cx='18' cy='10.8' r='.8'/%3E%3C/g%3E%3C/svg%3E");
  --tx-jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='54'%3E%3Cg fill='none' stroke='%23c09a48' stroke-width='1.1'%3E%3Cpath d='M0,0C0,16 18,11 18,27C18,43 36,38 36,54'/%3E%3Cpath d='M36,0C36,16 18,11 18,27C18,43 0,38 0,54'/%3E%3C/g%3E%3Cg fill='%23c09a48'%3E%3Ccircle cx='18' cy='27' r='1.6'/%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='36' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='54' r='1.6'/%3E%3Ccircle cx='36' cy='54' r='1.6'/%3E%3Ccircle cx='0' cy='27' r='2.2'/%3E%3Ccircle cx='36' cy='27' r='2.2'/%3E%3Ccircle cx='18' cy='0' r='2.2'/%3E%3Ccircle cx='18' cy='54' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  --tx-girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23a8822f' stroke-width='1'%3E%3Cpolygon points='24,7 29,12 36,12 36,19 41,24 36,29 36,36 29,36 24,41 19,36 12,36 12,29 7,24 12,19 12,12 19,12'/%3E%3Cpolygon points='0,-17 5,-12 12,-12 12,-5 17,0 12,5 12,12 5,12 0,17 -5,12 -12,12 -12,5 -17,0 -12,-5 -12,-12 -5,-12'/%3E%3Cpolygon points='48,-17 53,-12 60,-12 60,-5 65,0 60,5 60,12 53,12 48,17 43,12 36,12 36,5 31,0 36,-5 36,-12 43,-12'/%3E%3Cpolygon points='0,31 5,36 12,36 12,43 17,48 12,53 12,60 5,60 0,65 -5,60 -12,60 -12,53 -17,48 -12,43 -12,36 -5,36'/%3E%3Cpolygon points='48,31 53,36 60,36 60,43 65,48 60,53 60,60 53,60 48,65 43,60 36,60 36,53 31,48 36,43 36,36 43,36'/%3E%3C/g%3E%3C/svg%3E");
  --cord: repeating-linear-gradient(115deg, #f6e3a6 0 1.6px, #c79f4b 1.6px 3.2px, #6d4d16 3.2px 4.4px);
  --satin-h: linear-gradient(180deg, #6d4d16 0%, #b48a3a 14%, #f4e0a2 40%, #e3c47a 52%, #a8802f 80%, #5e4212 100%);
  --satin-v: linear-gradient(90deg, #6d4d16 0%, #b48a3a 14%, #f4e0a2 40%, #e3c47a 52%, #a8802f 80%, #5e4212 100%);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--serif); color: var(--ink); background: var(--ivory);
  font-size: 19px; line-height: 1.5; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; height: 100svh; }
button { font: inherit; cursor: pointer; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ═════════════ INTRO SCREEN ═════════════ */
.intro {
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(70% 45% at 50% 48%, #fffaf0 0%, rgba(255,250,240,0) 70%),
    radial-gradient(140% 100% at 50% 40%, #f6ecd8 30%, #e8d6b2 100%);
  text-align: center;
  cursor: pointer;
}
.intro::before { /* faint girih silk */
  content: ""; position: absolute; inset: 0; background: var(--tx-girih); opacity: .12; pointer-events: none;
  -webkit-mask: radial-gradient(70% 60% at 50% 50%, transparent 30%, #000 85%);
          mask: radial-gradient(70% 60% at 50% 50%, transparent 30%, #000 85%);
}
.intro-head { position: relative; z-index: 2; }
.intro-eyebrow { font-family: var(--caps); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-800); }
.intro-title { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--maroon-700); margin-top: 6px; }
.intro-hint {
  position: relative; z-index: 2;
  font-family: var(--caps); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--maroon-700);
  display: flex; align-items: center; gap: 10px;
}
.intro-hint::before, .intro-hint::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.intro-hint::after { transform: scaleX(-1); }
.intro-sound { position: relative; z-index: 2; font-style: italic; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* scene */
.scaler { position: relative; width: 360px; height: 430px; transform: scale(var(--k)); margin: calc((var(--k) - 1) * 215px) 0; flex: none; }
.float { position: absolute; inset: 0; }
.floor-shadow {
  position: absolute; left: 50%; top: 318px; width: 360px; height: 120px; margin-left: -180px;
  background: radial-gradient(closest-side, rgba(58,18,10,.42), rgba(58,18,10,.18) 55%, transparent);
}
.stage { position: absolute; inset: 0; perspective: 1050px; perspective-origin: 50% 20%; }
.tilt, .spin, .base, .lid { position: absolute; transform-style: preserve-3d; }
.tilt { left: 50%; top: 58%; width: 0; height: 0; }
.spin { left: 0; top: 0; width: 0; height: 0; }
.base { left: calc(var(--W) / -2); top: calc(var(--D) / -2); width: var(--W); height: var(--D); }
.lid  { left: calc(var(--LW) / -2); top: calc(var(--LD) / -2); width: var(--LW); height: var(--LD); }

.face {
  position: absolute; left: 50%; top: 50%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  overflow: hidden;
}
/* velvet: sheen + brocade + base tone (per-face lighting via --tone) */
.velvet {
  background:
    radial-gradient(120% 90% at 25% 10%, rgba(255,170,180,.14), transparent 55%),
    var(--tx-damask),
    linear-gradient(170deg, var(--tone-a, #7a1729), var(--tone-b, #4e0e1a) 62%, var(--tone-c, #33080f));
}

/* ── base walls (outer) ── */
.wall { width: var(--W); height: var(--H); margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2); }
.wall.side { width: var(--D); margin-left: calc(var(--D) / -2); }
.wall-f { transform: translate3d(0, calc(var(--D) / 2), calc(var(--H) / 2)) rotateX(-90deg); --tone-a: #651223; --tone-b: #4a0d18; --tone-c: #2e070e; }
.wall-b { transform: translate3d(0, calc(var(--D) / -2), calc(var(--H) / 2)) rotateX(90deg) rotateZ(180deg); }
.wall-r { transform: translate3d(calc(var(--W) / 2), 0, calc(var(--H) / 2)) rotateZ(-90deg) rotateX(-90deg); --tone-a: #4a0d18; --tone-b: #360912; --tone-c: #22050a; }
.wall-l { transform: translate3d(calc(var(--W) / -2), 0, calc(var(--H) / 2)) rotateZ(90deg) rotateX(-90deg); --tone-a: #7a1729; --tone-b: #58101e; }
.wall::after { /* cord trim at the foot + thin gota line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--cord);
  box-shadow: 0 -5px 0 -4px #c79f4b;
}
/* inner lining walls */
.inwall { width: var(--W); height: var(--H); margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2);
  background: linear-gradient(0deg, #2a060d, #5a1120 70%, #7d1a2c); }
.inwall.side { width: var(--D); margin-left: calc(var(--D) / -2); }
.inwall-f { transform: translate3d(0, calc(var(--D) / 2 - 3px), calc(var(--H) / 2)) rotateX(90deg) rotateZ(180deg); }
.inwall-b { transform: translate3d(0, calc(var(--D) / -2 + 3px), calc(var(--H) / 2)) rotateX(-90deg); }
.inwall-r { transform: translate3d(calc(var(--W) / 2 - 3px), 0, calc(var(--H) / 2)) rotateZ(-90deg) rotateX(90deg) rotateZ(180deg); }
.inwall-l { transform: translate3d(calc(var(--W) / -2 + 3px), 0, calc(var(--H) / 2)) rotateZ(90deg) rotateX(90deg) rotateZ(180deg); }
.floor {
  width: var(--W); height: var(--D); margin: calc(var(--D) / -2) 0 0 calc(var(--W) / -2);
  transform: translateZ(1px);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(255,200,170,.16), transparent 70%),
    var(--tx-jaali),
    linear-gradient(135deg, #6d1526, #4a0d18 55%, #6a1526);
  background-blend-mode: normal;
}
.floor::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(74,13,24,.78), rgba(74,13,24,.6)); }

/* ── lid ── */
.lid-top {
  width: var(--LW); height: var(--LD); margin: calc(var(--LD) / -2) 0 0 calc(var(--LW) / -2);
  transform: translateZ(.5px);
  --tone-a: #8a1b2f; --tone-b: #5a1020; --tone-c: #3e0a15;
  box-shadow: inset 0 0 0 3px #b48a3a, inset 0 0 0 4px #5e4212;
}
.lid-frame { position: absolute; inset: 14px; border: 1.5px solid #c9a24e; }
.lid-frame::before { content: ""; position: absolute; inset: 4px; border: .8px solid rgba(201,162,78,.75); }
.lid-frame::after { /* zari field between the two frames */
  content: ""; position: absolute; inset: 9px; border: 1px dotted rgba(230,204,132,.55);
}
.lid-rosette { position: absolute; width: 20px; height: 20px; }
.lid-rosette.tl { left: 4px; top: 4px; } .lid-rosette.tr { right: 4px; top: 4px; }
.lid-rosette.bl { left: 4px; bottom: 4px; } .lid-rosette.br { right: 4px; bottom: 4px; }
.lid-medallion {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #8a1b2f, #4e0e1a 70%);
  box-shadow: 0 0 0 2px #c9a24e, 0 0 0 5px #5a1020, 0 0 0 6px rgba(201,162,78,.7);
  display: grid; place-items: center;
  font-family: var(--script); font-size: 27px; color: #ecd28f; line-height: 1;
}
.sheen {
  position: absolute; inset: -20% 0; width: 60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,236,196,.0) 30%, rgba(255,236,196,.20) 50%, rgba(255,236,196,0) 70%, transparent 100%);
  transform: translateX(-120%);
  pointer-events: none;
}
.bow-anchor { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px; }

.lid-under {
  width: calc(var(--LW) - 6px); height: calc(var(--LD) - 6px);
  margin: calc((var(--LD) - 6px) / -2) 0 0 calc((var(--LW) - 6px) / -2);
  transform: translateZ(-1px) rotateX(180deg);
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(255,250,235,.9), rgba(255,250,235,0) 70%),
    var(--tx-jaali),
    linear-gradient(160deg, #f6ead0, #e8d3a8);
  box-shadow: inset 0 0 0 6px #5a1020, inset 0 0 0 8px #c9a24e;
  display: grid; place-items: center;
}
.lid-under span { font-family: var(--script); font-size: 34px; color: var(--maroon-700); }

.skirt { width: var(--LW); height: var(--S); margin: calc(var(--S) / -2) 0 0 calc(var(--LW) / -2);
  -webkit-backface-visibility: visible; backface-visibility: visible; }
.skirt.side { width: var(--LD); margin-left: calc(var(--LD) / -2); }
.skirt-f { transform: translate3d(0, calc(var(--LD) / 2), calc(var(--S) / -2)) rotateX(-90deg); --tone-a: #6e1426; --tone-b: #4e0e1a; }
.skirt-b { transform: translate3d(0, calc(var(--LD) / -2), calc(var(--S) / -2)) rotateX(90deg) rotateZ(180deg); }
.skirt-r { transform: translate3d(calc(var(--LW) / 2), 0, calc(var(--S) / -2)) rotateZ(-90deg) rotateX(-90deg); --tone-a: #4a0d18; --tone-b: #360912; --tone-c: #22050a; }
.skirt-l { transform: translate3d(calc(var(--LW) / -2), 0, calc(var(--S) / -2)) rotateZ(90deg) rotateX(-90deg); }
.skirt::before { /* zari band */
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 22px; background: var(--tx-zari); opacity: .95;
}
.skirt::after { /* cords top & bottom */
  content: ""; position: absolute; inset: 0;
  background: var(--cord) top / 100% 4px no-repeat, var(--cord) bottom / 100% 4px no-repeat;
}

/* ── ribbon on the box ── */
.band { position: absolute; z-index: 3; }
.band::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 .6px rgba(94,66,18,.8); }
.band.v { left: calc(50% - var(--RB) / 2); width: var(--RB); background: var(--satin-v); }
.band.h { top: calc(50% - var(--RB) / 2); height: var(--RB); background: var(--satin-h); }
.lid-top .band.v.back  { top: 0; height: 50%; transform-origin: 50% 0; }
.lid-top .band.v.front { bottom: 0; height: 50%; transform-origin: 50% 100%; }
.lid-top .band.h.left  { left: 0; width: 50%; transform-origin: 0 50%; }
.lid-top .band.h.right { right: 0; width: 50%; transform-origin: 100% 50%; }
.wall .band.v, .skirt .band.v { top: 0; bottom: 0; transform-origin: 50% 100%; }

/* ── card (3D copy lies in the box; 2D copy takes over for the hand-off) ── */
.card {
  width: 22.8em; height: 16em;
  position: relative;
  padding: 1em 1.2em;
  background:
    radial-gradient(80% 70% at 50% 40%, #fffdf7, #f7ecd6 100%);
  box-shadow: inset 0 0 0 .12em #c9a24e, inset 0 0 0 .5em #fffaf0, inset 0 0 0 .56em rgba(168,130,47,.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--ink);
}
.card::before { content: ""; position: absolute; inset: .9em; border: .06em solid rgba(192,154,72,.55); pointer-events: none; }
.card .c-bism { font-family: var(--arabic); font-weight: 700; font-size: 1.3em; color: var(--maroon-700); line-height: 1.5; direction: rtl; }
.card .c-eyebrow { font-family: var(--caps); font-size: .6em; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-800); margin-top: .5em; }
.card .c-names { font-family: var(--script); font-size: 3em; line-height: 1.15; color: var(--maroon-700); white-space: nowrap; }
.card .c-names i { font-family: var(--serif); font-style: italic; font-size: .7em; color: var(--gold-600); padding: 0 .15em; }
.card .c-rule { width: 9em; height: 1em; margin: .1em 0 .2em; }
.card .c-date { font-family: var(--caps); font-size: .68em; letter-spacing: .18em; color: var(--maroon-800); }
.card .c-corner { position: absolute; width: 1.6em; height: 2.4em; color: var(--gold-600); }
.card .c-corner.l { left: 1.3em; bottom: 1.1em; transform: rotate(-20deg); }
.card .c-corner.r { right: 1.3em; bottom: 1.1em; transform: scaleX(-1) rotate(-20deg); }

.card3d {
  position: absolute; left: 50%; top: 50%;
  font-size: 10px; margin: -8em 0 0 -11.4em;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.card2d {
  position: fixed; left: 50%; top: 50%; z-index: 60;
  font-size: calc(min(100vw - 36px, 360px) / 22.8);
  margin: -8em 0 0 -11.4em;
  visibility: hidden; opacity: 0;
  box-shadow: 0 30px 60px -30px rgba(46,7,14,.5);
}

/* ── bow + tassel overlay (2D, above the 3D scene) ── */
.bow-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 5; pointer-events: none; }
.bow { position: absolute; left: -100px; top: -72px; width: 200px; height: 170px; overflow: visible; }
.bow-shadow { position: absolute; left: -90px; top: -30px; width: 180px; height: 80px;
  background: radial-gradient(closest-side, rgba(30,4,8,.55), transparent); }
.tassel { position: absolute; left: -16px; top: 4px; width: 32px; height: 128px; overflow: visible; }

.sparks { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; }
.spark { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d8, #e6c46e 45%, rgba(230,196,110,0) 70%); opacity: 0; }

.tap-target { position: absolute; inset: 0; z-index: 10; background: none; border: 0; cursor: pointer; }
.tap-target:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -8px; border-radius: 24px; }

/* ═════════════ HERO (copy this block) ═════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: max(14px, env(safe-area-inset-top)) 14px 22px;
  display: grid; place-items: center;
  isolation: isolate;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(226,200,134,.35), transparent 70%),
    radial-gradient(120% 80% at 50% 100%, rgba(107,20,36,.10), transparent 60%),
    var(--ivory);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .16; }

.frame { position: relative; width: min(100%, 440px); }
.frame-crown { display: block; width: 100%; height: auto; overflow: visible; }
.frame-body { position: relative; margin-top: -1px; display: flow-root;
  background: linear-gradient(#fffaf0 0, #fffaf0 30%, #f8eedb 100%); }
.frame-jambs { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-plinth { display: block; width: 100%; height: 30px; }

.frame-content {
  position: relative;
  /* pull content up into the arch opening */
  margin-top: calc(min(100vw - 28px, 440px) * -0.40);
  padding: 0 11% 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.bismillah {
  font-family: var(--arabic); font-weight: 700;
  font-size: clamp(21px, 6.2vw, 27px); line-height: 1.7;
  color: var(--maroon-700);
  direction: rtl;
  white-space: nowrap;
}
.orn-divider { width: 150px; height: 16px; color: var(--gold-600); margin: 4px 0 12px; }
.orn-divider.small { width: 110px; margin: 14px 0 10px; }
.eyebrow {
  font-family: var(--caps); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-800);
}
.names { font-weight: 400; display: flex; flex-direction: column; align-items: center; line-height: .95; margin: 10px 0 6px; }
.name { font-family: var(--script); font-size: clamp(54px, 16vw, 78px); color: var(--maroon-700); padding: 0 .12em; }
.amp {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-600); font-size: clamp(34px, 10vw, 46px);
  display: flex; align-items: center; gap: 12px; margin: 2px 0;
}
.amp::before, .amp::after { content: ""; width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.amp::after { transform: scaleX(-1); }
.lede { font-style: italic; font-size: 17px; color: var(--muted); line-height: 1.35; max-width: 16em; }
.event-title {
  font-family: var(--caps); font-weight: 600; font-size: 19px; letter-spacing: .2em;
  color: var(--maroon-800); margin-top: 6px; text-transform: uppercase;
}
.event-title small { display: block; font-family: var(--arabic); font-weight: 400; letter-spacing: 0; font-size: 18px; color: var(--gold-800); text-transform: none; margin-top: -2px; }
.when { font-family: var(--caps); font-size: 13px; letter-spacing: .16em; color: var(--ink); }
.when b { font-weight: 600; color: var(--maroon-700); }
.where { font-size: 18px; font-style: italic; color: var(--muted); margin-top: 2px; }

.verse { margin-top: 18px; padding-top: 14px; position: relative; max-width: 19em; }
.verse::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); }
.verse-ar { font-family: var(--arabic); font-size: 19px; line-height: 1.9; color: var(--maroon-700); direction: rtl; }
.verse-en { font-style: italic; font-size: 15px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.verse-ref { font-family: var(--caps); font-size: 9.5px; letter-spacing: .25em; color: var(--gold-800); margin-top: 6px; }

.corner-buta { position: absolute; width: 30px; height: 45px; color: var(--gold-600); bottom: 6px; }
.corner-buta.l { left: 7%; transform: rotate(-18deg); }
.corner-buta.r { right: 7%; transform: scaleX(-1) rotate(-18deg); }

/* ═══ SITE SECTIONS ═══ */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

.bismillah-en { font-style: italic; font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.music-btn[hidden] { display: none; }

/* scroll hint */
.scroll-hint {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 18px 6px; border-radius: 999px;
  border: 1px solid var(--gold-500); background: rgba(78,14,26,.92); color: var(--gold-100);
  font-family: var(--caps); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(46,7,14,.6);
  animation: hintIn .6s ease-out both;
  transition: opacity .4s, transform .4s;
}
.scroll-hint[hidden] { display: none; }
.scroll-hint svg { width: 20px; height: 20px; color: var(--gold-300); animation: bob 1.4s ease-in-out infinite; }
.scroll-hint.gone { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
@keyframes bob { 50% { transform: translateY(5px); } }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 16px); } }
.person-of { max-width: 21em !important; }
.insha { font-style: italic; font-size: 15px; color: var(--gold-800); margin-top: 6px; }
.eyebrow.light { color: var(--gold-300); }

.block { position: relative; isolation: isolate; padding: 88px 16px; text-align: center; overflow: hidden; }
.bg-pat { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.orn-divider { display: block; margin-left: auto; margin-right: auto; }
.rosette { display: block; width: 34px; height: 34px; margin: 26px auto; }
.ref { font-family: var(--caps); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-800); margin-top: 10px; }

/* families */
.family { background: var(--paper); }
.family .bg-pat { opacity: .07; }
.family .eyebrow { margin-bottom: 18px; }
.person-name { font-family: var(--script); font-size: clamp(50px, 14vw, 66px); line-height: 1.15; color: var(--maroon-700); }
.person-of { font-style: italic; font-size: 19px; color: var(--muted); max-width: 18em; margin: 2px auto 0; }

/* details */
.details { background: var(--maroon-800); color: var(--gold-100); padding: 112px 16px; }
.zari-band { position: absolute; left: 0; right: 0; width: 100%; height: 30px; }
.zari-band.top { top: 0; } .zari-band.bottom { bottom: 0; }
.details h2, .rsvp h2 { font-family: var(--script); font-weight: 400; font-size: clamp(54px, 15vw, 76px); line-height: 1.1; margin: 4px 0 26px; }
.details h2 { color: var(--gold-300); }
.info { display: grid; gap: 20px; max-width: 420px; margin: 0 auto 32px; }
.info-row dt { font-family: var(--caps); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-500); }
.info-row dd { margin: 4px 0 0; font-size: 23px; color: var(--ivory); }
.map-frame {
  width: min(100%, 440px); aspect-ratio: 4 / 3; margin: 0 auto 26px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--gold-500), 0 0 0 6px var(--maroon-900), 0 0 0 7px rgba(192,154,72,.6), 0 24px 40px -20px rgba(0,0,0,.6);
  background: var(--maroon-900);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.2) saturate(.9); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  font-family: var(--caps); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--gold-500); background: none; transition: transform .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.96); }
.btn.gold { background: linear-gradient(180deg, #f1dea2, #c9a24e 55%, #a8822f); color: var(--maroon-900); font-weight: 600; border-color: #8f6b2a; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.btn.light { color: var(--gold-100); border-color: rgba(226,200,134,.55); }
.btn.light:hover { background: rgba(226,200,134,.12); }
.btn.ghost { color: var(--maroon-700); }
.btn.ghost:hover { background: var(--maroon-700); color: var(--ivory); }
.btn.big { padding: 16px 30px; font-size: 13.5px; }

/* rsvp */
.rsvp { background: var(--ivory); }
.rsvp .bg-pat { opacity: .07; }
.dua { max-width: 26em; margin: 0 auto 8px; }
.dua-ar { font-family: var(--arabic); font-size: clamp(22px, 6.2vw, 28px); line-height: 1.9; color: var(--maroon-700); }
.dua-en { font-style: italic; font-size: 17px; color: var(--muted); line-height: 1.4; }
.rsvp .orn-divider { width: 150px; height: 16px; margin: 30px auto 26px; }
.rsvp h2 { color: var(--maroon-700); margin-bottom: 6px; }
.rsvp-sub { font-style: italic; color: var(--muted); margin-bottom: 26px; }
.rsvp-buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rsvp-note { margin-top: 20px; font-style: italic; color: var(--maroon-600); min-height: 1.5em; }
.shake { animation: shake .5s; }
@keyframes shake { 20%,60% { transform: translateX(-6px) rotate(-2deg); } 40%,80% { transform: translateX(6px) rotate(2deg); } }

/* closing */
.closing { background: var(--maroon-900); color: var(--gold-100); padding: 96px 16px calc(100px + env(safe-area-inset-bottom)); }
.closing .rosette { margin-top: 0; }
.closing .verse-ar { font-family: var(--arabic); font-size: clamp(22px, 6.2vw, 28px); line-height: 2; color: var(--gold-300); max-width: 22em; margin: 0 auto 16px; }
.closing .verse-en { font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ivory); opacity: .85; max-width: 24em; margin: 0 auto; }
.closing .ref { color: var(--gold-500); }
.sign { font-family: var(--script); font-size: 46px; color: var(--gold-300); margin-top: 44px; }
.sign i { font-family: var(--serif); font-size: .6em; color: var(--gold-500); }

/* music */
.music-btn {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--gold-500); background: rgba(78,14,26,.92); color: var(--gold-300);
  display: grid; place-items: center;
}
.bars { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.bars i { width: 3px; height: 4px; background: currentColor; border-radius: 2px; }
.music-btn.playing .bars i { animation: eq .9s ease-in-out infinite; }
.music-btn.playing .bars i:nth-child(2) { animation-delay: -.3s; }
.music-btn.playing .bars i:nth-child(3) { animation-delay: -.6s; }
.music-btn.playing .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 50% { height: 16px; } }

@media (min-width: 700px) { .rsvp-buttons { flex-direction: row; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

