/* Farhatna link invitation, luxury edition: deep velvet, champagne gold, ivory paper. --deep comes from the design. */
@font-face { font-family: "Aref Ruqaa"; src: url(/static/fonts/ArefRuqaa-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Almarai"; src: url(/static/fonts/Almarai-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Almarai"; src: url(/static/fonts/Almarai-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Almarai"; src: url(/static/fonts/Almarai-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Amiri"; src: url(/static/fonts/Amiri-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url(/static/fonts/Amiri-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --g1: #F6E7BC; --g2: #D4AF6A; --g3: #9C7536; --gold: #D4AF6A;
  --gold-grad: linear-gradient(180deg, #F8EBC4 0%, #E3C482 35%, #C49A55 65%, #8E6A30 100%);
  --ivory: #FBF6EC; --ivory2: #F2E8D6; --ink: #2A1E14; --text: #F3EADB; --dim: rgba(243, 234, 219, .72);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M60 26c9 11 9 22 0 34c-9-12-9-23 0-34z'/%3E%3Cpath d='M60 94c9-11 9-22 0-34c-9 12-9 23 0 34z'/%3E%3Cpath d='M26 60c11-9 22-9 34 0c-12 9-23 9-34 0z'/%3E%3Cpath d='M94 60c-11-9-22-9-34 0c12 9 23 9 34 0z'/%3E%3Ccircle cx='60' cy='60' r='3.5'/%3E%3Cpath d='M40 40c6 2 9 6 8 12M80 40c-6 2-9 6-8 12M40 80c6-2 9-6 8-12M80 80c-6-2-9-6-8-12'/%3E%3Cpath d='M0 9c9 2 13 7 11 15M120 9c-9 2-13 7-11 15M0 111c9-2 13-7 11-15M120 111c-9-2-13-7-11-15'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.inv { margin: 0; background: var(--deep3); color: var(--text); font-family: "Amiri", "Almarai", serif; font-size: 18px; line-height: 1.85; overflow-x: hidden; }
body.inv.locked { overflow: hidden; height: 100vh; }
img, video, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; }
svg use { fill: none; stroke: url(#gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.gold { background: var(--gold-grad); background-size: 100% 220%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .gold { animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0 0; } 50% { background-position: 0 100%; } }

.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
.ribbon { position: fixed; z-index: 90; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px;
  background: rgba(10, 6, 8, .78); color: #F6E7BC; border: 1px solid rgba(212, 175, 106, .5); font: 700 12.5px "Almarai", sans-serif; white-space: nowrap; backdrop-filter: blur(6px); }

/* ---------------------------------------------------------------- the envelope (colours from the invitation) */
.env { position: fixed; inset: 0; z-index: 60; perspective: 1400px; perspective-origin: 50% 50%; overflow: hidden; }
.env.done { pointer-events: none; }
.env.gone { display: none; }
.flap { position: absolute; inset: 0; }
.flap i { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, var(--env2) 0%, var(--env1) 55%, var(--env3) 130%); }
.flap i::before, .flap i::after { content: ""; position: absolute; inset: -2px; pointer-events: none;
  -webkit-mask: var(--damask) 0 0 / 120px 120px repeat; mask: var(--damask) 0 0 / 120px 120px repeat; }
.flap i::before { background: #000; opacity: .28; transform: translate(1px, 1.5px); }
.flap i::after { background: #F3DFA8; opacity: .2; }
.fl-l i { clip-path: polygon(0 0, 50.5% 50%, 0 100%); filter: brightness(.92); }
.fl-r i { clip-path: polygon(100% 0, 49.5% 50%, 100% 100%); filter: brightness(.92); }
.fl-b i { clip-path: polygon(0 100%, 50% 49%, 100% 100%); filter: brightness(1.04); }
.fl-t i { clip-path: polygon(0 0, 100% 0, 50% 56%); filter: brightness(1.1); }
.fl-l { transform-origin: 0 50%; z-index: 1; filter: drop-shadow(4px 0 10px rgba(0, 0, 0, .35)); }
.fl-r { transform-origin: 100% 50%; z-index: 1; filter: drop-shadow(-4px 0 10px rgba(0, 0, 0, .35)); }
.fl-b { transform-origin: 50% 100%; z-index: 2; filter: drop-shadow(0 -6px 12px rgba(0, 0, 0, .35)); }
.fl-t { transform-origin: 50% 0; z-index: 3; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
.flap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flap .edge { fill: none; stroke: #D9B872; stroke-width: 1.3; opacity: .85; vector-effect: non-scaling-stroke; }
.flap .seam { fill: none; stroke: #FFF2C8; stroke-width: 3; opacity: 0; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px #FFD98A) drop-shadow(0 0 14px #F5C46A); }
.env-frame { position: absolute; inset: 14px; z-index: 4; border: 1px solid rgba(217, 184, 114, .55); border-radius: 6px; pointer-events: none; transition: opacity .5s; }
.env-frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(217, 184, 114, .25); border-radius: 3px; }
.env-glow { position: absolute; z-index: 0; left: 50%; top: 52%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%) scale(.1); opacity: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 250, 230, 1) 0%, rgba(255, 226, 150, .85) 16%, rgba(240, 190, 100, .35) 36%, transparent 60%); }
.env-top { position: absolute; z-index: 6; top: calc(9vh + env(safe-area-inset-top, 0px) + 20px); inset-inline: 18px; text-align: center; transition: opacity .4s; }
.e-to { margin: 0; font: 700 12.5px "Almarai", sans-serif; letter-spacing: 3px; color: #E9CF93; }
.e-name { margin: 0; font: 700 clamp(36px, 11vw, 52px)/1.25 "Aref Ruqaa", serif; text-wrap: balance;
  background: linear-gradient(180deg, #FFF6DA, #EBCB86 55%, #C49A55); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.e-sub { margin: 2px 0 0; font: 700 14.5px "Almarai", sans-serif; color: #F2E2BC; opacity: .9; }
.seal { position: absolute; z-index: 7; left: 50%; top: 56%; width: 124px; height: 124px; margin: -62px 0 0 -62px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; outline-offset: 8px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); transition: transform .25s var(--ease); }
.seal::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(245, 220, 160, .9); opacity: 0; animation: ring 2.2s ease-out 1s infinite; }
@keyframes ring { 0% { transform: scale(.95); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
.seal:hover { transform: scale(1.04); }
.seal:active { transform: scale(.96); }
.half { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; transition: transform 1s cubic-bezier(.5, 0, .3, 1), opacity .8s ease .3s;
  background: radial-gradient(circle at 34% 28%, #FFF1C9 0%, #E7C47C 22%, #C99A4E 52%, #8E6427 88%);
  box-shadow: inset 0 -8px 14px rgba(80, 50, 10, .45), inset 0 6px 10px rgba(255, 245, 210, .6), 0 0 0 5px rgba(201, 154, 78, .45); }
.half::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1.5px solid rgba(110, 76, 24, .45); box-shadow: inset 0 0 0 3px rgba(255, 240, 200, .25); }
.half b { position: relative; font: 700 34px/1 "Aref Ruqaa", serif; color: var(--env3); white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 240, 200, .7), 0 -1px 1px rgba(60, 40, 10, .5); }
.h1 { clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%); }
.h2 { clip-path: polygon(55% 0, 100% 0, 100% 100%, 45% 100%); }
.env-hint { position: absolute; z-index: 6; top: calc(56% + 86px); inset-inline: 16px; margin: 0; text-align: center; font: 700 15px "Almarai", sans-serif; color: #F2E2BC;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: opacity .4s; animation: hint 2.4s ease-in-out 1.5s infinite; }
@keyframes hint { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* opening: the seal breaks, light leaks through the seams, the flaps fold back in 3D */
.env.open .seal { pointer-events: none; }
.env.open .seal::after { animation: none; opacity: 0; }
.env.open .h1 { transform: translate(-46px, 40px) rotate(-38deg); opacity: 0; }
.env.open .h2 { transform: translate(46px, 46px) rotate(32deg); opacity: 0; }
.env.open .env-top, .env.open .env-hint, .env.open .env-frame { opacity: 0; animation: none; }
.env.open .seam { animation: seam 1.1s ease-out .15s forwards; }
@keyframes seam { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: .2; } }
.env.open .env-glow { animation: glow 2.2s ease-out .45s forwards; }
@keyframes glow { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.08); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }
.env.open .fl-t { transition: transform 1.3s cubic-bezier(.55, 0, .25, 1) .55s, opacity .5s ease 1.5s; transform: rotateX(-172deg); opacity: 0; }
.env.open .fl-l { transition: transform 1.3s cubic-bezier(.55, 0, .25, 1) .8s, opacity .5s ease 1.7s; transform: rotateY(172deg); opacity: 0; }
.env.open .fl-r { transition: transform 1.3s cubic-bezier(.55, 0, .25, 1) .8s, opacity .5s ease 1.7s; transform: rotateY(-172deg); opacity: 0; }
.env.open .fl-b { transition: transform 1.3s cubic-bezier(.55, 0, .25, 1) 1s, opacity .5s ease 1.9s; transform: rotateX(172deg); opacity: 0; }

/* ---------------------------------------------------------------- layout */
.inv-main { position: relative; max-width: 560px; margin: 0 auto; background: radial-gradient(130% 60% at 50% 0%, var(--deep2) 0%, var(--deep) 45%, var(--deep3) 100%); overflow: hidden; }
.inv-main::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: radial-gradient(circle at 50% 50%, transparent 0 9px, var(--g2) 9.5px 10.5px, transparent 11px) 0 0 / 46px 46px,
              linear-gradient(45deg, transparent 48.5%, var(--g2) 49.5% 50.5%, transparent 51.5%) 0 0 / 46px 46px,
              linear-gradient(-45deg, transparent 48.5%, var(--g2) 49.5% 50.5%, transparent 51.5%) 0 0 / 46px 46px; }
@media (min-width: 700px) {
  body.inv { background: var(--deep3) radial-gradient(80% 60% at 50% 0%, var(--deep), var(--deep3)); }
  .inv-main { box-shadow: 0 0 0 1px rgba(212, 175, 106, .25), 0 0 80px rgba(0, 0, 0, .6); }
}

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 90px 18px 120px; }
.hero-bg { position: absolute; inset: -8% 0; background: center / cover no-repeat; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 42% at 50% 46%, rgba(10, 6, 4, .58), rgba(10, 6, 4, .2) 70%, transparent 90%),
  linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 25%, transparent 65%, var(--deep) 100%); }
.hero-in { position: relative; z-index: 2; }
.kicker { margin: 0 0 6px; font: 700 13px "Almarai", sans-serif; letter-spacing: 4px; color: var(--g1); text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.names { margin: 0; font: 700 clamp(62px, 19vw, 104px)/1.1 "Aref Ruqaa", serif; filter: drop-shadow(0 2px 1px rgba(40, 24, 6, .65)) drop-shadow(0 6px 22px rgba(0, 0, 0, .6)); }
.names span { display: block; padding: .1em .35em; margin: -.1em 0; }
.names em { display: flex; align-items: center; justify-content: center; gap: 14px; font-style: normal; font-size: .38em; color: var(--g1); margin: 2px 0; }
.names em i { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--g2)); }
.names em i:last-child { transform: scaleX(-1); }
.hero-date { margin: 16px 0 0; display: inline-flex; gap: 10px; align-items: center; padding: 8px 20px; border-top: 1px solid rgba(212, 175, 106, .6); border-bottom: 1px solid rgba(212, 175, 106, .6);
  font: 700 17px "Almarai", sans-serif; color: #FFF6E4; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.hero-date b { color: var(--g1); }
.scroll-cue { position: absolute; z-index: 2; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 50%; width: 28px; height: 44px; margin-left: -14px; border: 1.5px solid var(--g1); border-radius: 16px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: var(--g1); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } }

.sec { position: relative; padding: 54px 20px; text-align: center; }
.title { margin: 0 0 22px; font: 700 36px/1.3 "Aref Ruqaa", serif; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title::before, .title::after { content: ""; flex: 0 1 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--g2)); }
.title::after { transform: scaleX(-1); }
.title.dark { background: linear-gradient(180deg, #A07A3A, #6B4E1F); -webkit-background-clip: text; background-clip: text; }
.hint { margin: 8px 0 0; font: 400 14px "Almarai", sans-serif; color: var(--dim); }

/* ivory paper card */
.paper { position: relative; background: linear-gradient(160deg, #FFFBF2 0%, var(--ivory) 40%, var(--ivory2) 100%); color: var(--ink); border-radius: 6px; padding: 54px 26px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(212, 175, 106, .55), inset 0 0 0 8px var(--ivory), inset 0 0 0 9px rgba(184, 146, 80, .55); transform-style: preserve-3d; }
.paper::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, .7), transparent 60%); }
.corner { position: absolute; width: 58px; height: 58px; }
.corner use { stroke-width: 1.2; }
.corner.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.corner.tl { top: 14px; left: 14px; }
.corner.br { bottom: 14px; right: 14px; transform: scale(-1, -1); }
.corner.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.basmala { margin: 0; font: 700 23px/1.8 "Amiri", serif; color: #8E6A30; }
.verse { margin: 8px auto 0; max-width: 30em; font: 400 19px/2.05 "Amiri", serif; color: #4A3A28; }
.orn { display: block; width: 170px; height: 18px; margin: 18px auto; position: relative; background: linear-gradient(90deg, transparent, #B89250, transparent) center / 100% 1px no-repeat; }
.orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg); border: 1px solid #B89250; background: var(--ivory); }
.fam { margin: 0; font-size: 19px; }
.p-names { margin: 12px 0 18px; font: 700 clamp(40px, 11vw, 52px)/1.3 "Aref Ruqaa", serif; color: var(--deep); padding: 0 .2em; }
.when { display: flex; justify-content: center; border-top: 1px solid rgba(184, 146, 80, .5); border-bottom: 1px solid rgba(184, 146, 80, .5); }
.when div { flex: 1; padding: 10px 6px; display: grid; }
.when div + div { border-inline-start: 1px solid rgba(184, 146, 80, .5); }
.when small { font: 700 11.5px "Almarai", sans-serif; letter-spacing: 2px; color: #9C7536; }
.when b { font: 700 18px "Almarai", sans-serif; color: var(--ink); }

/* countdown */
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { position: relative; padding: 14px 4px 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(212, 175, 106, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 24px rgba(0, 0, 0, .3); backdrop-filter: blur(4px); }
.tile b { display: block; height: 1.15em; overflow: hidden; font: 800 34px/1.15 "Almarai", sans-serif; }
.tile b span { display: block; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile b span.flip { animation: flip .45s var(--ease); }
@keyframes flip { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.tile small { font: 700 12px "Almarai", sans-serif; color: var(--dim); }
.today { margin: 0; font: 700 34px/1.4 "Aref Ruqaa", serif; color: var(--g1); }

/* programme */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 380px; position: relative; display: grid; gap: 22px; text-align: start; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 25px; width: 1px; background: linear-gradient(180deg, transparent, var(--g2) 10%, var(--g2) 90%, transparent);
  transform-origin: top; transform: scaleY(var(--draw, 1)); transition: transform 1.6s var(--ease); }
.timeline li { position: relative; display: flex; align-items: center; gap: 16px; }
.timeline .ic { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--deep3);
  border: 1px solid rgba(212, 175, 106, .7); box-shadow: 0 0 0 5px var(--deep), 0 0 22px rgba(212, 175, 106, .25); position: relative; z-index: 1; }
.timeline .ic svg { width: 24px; height: 24px; }
.timeline time { display: block; font: 700 13.5px "Almarai", sans-serif; color: var(--g1); letter-spacing: 1px; }
.timeline b { font: 700 21px/1.4 "Amiri", serif; color: #FFF6E4; }

/* venue */
.arch-pic { position: relative; aspect-ratio: 4 / 4.6; border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px; background: center / cover no-repeat; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(212, 175, 106, .7), 0 0 0 7px var(--deep), 0 0 0 8px rgba(212, 175, 106, .35), 0 24px 50px rgba(0, 0, 0, .5); display: grid; align-items: end; padding: 18px; }
.arch-pic::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); }
.plaque { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 18px; border-radius: 12px; background: rgba(20, 12, 10, .55); backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 106, .55); }
.plaque svg { width: 22px; height: 22px; }
.plaque b { font: 700 clamp(24px, 7vw, 30px)/1.35 "Aref Ruqaa", serif; color: #FFF6E4; text-wrap: balance; }
.plaque small { font: 700 13px "Almarai", sans-serif; color: var(--g1); }
.map { margin-top: 22px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(212, 175, 106, .6), 0 16px 34px rgba(0, 0, 0, .4); background: var(--deep3); }
.map iframe { width: 100%; height: 250px; border: 0; filter: saturate(.85) sepia(.12); }
.btnrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* dress */
.fabrics { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.fabrics i { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), transparent 45%),
  conic-gradient(from 210deg, var(--c), color-mix(in srgb, var(--c) 70%, #000), var(--c), color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  box-shadow: 0 0 0 2px var(--deep), 0 0 0 3px rgba(212, 175, 106, .7), 0 8px 18px rgba(0, 0, 0, .4); }
.dress { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.dress div { padding: 18px 14px; border-radius: 14px; border: 1px solid rgba(212, 175, 106, .4); background: rgba(255, 255, 255, .04); display: grid; justify-items: center; gap: 4px; }
.dress svg { width: 30px; height: 30px; }
.dress b { font: 700 15px "Almarai", sans-serif; color: var(--g1); }
.dress p { margin: 0; color: #FFF6E4; }

/* story */
.photo { margin: 0 auto 26px; max-width: 320px; padding: 10px; background: var(--ivory); border-radius: 4px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(212, 175, 106, .6); transform: rotate(-2deg); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story { list-style: none; margin: 0 auto; padding: 0; max-width: 380px; display: grid; gap: 14px; }
.story li { padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(212, 175, 106, .4); background: rgba(255, 255, 255, .04); }
.story time { display: block; font: 700 13px "Almarai", sans-serif; color: var(--g1); letter-spacing: 1px; }
.story p { margin: 0; color: #FFF6E4; }

/* video, pass, wishes */
.vid { max-width: 290px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(212, 175, 106, .8), 0 0 0 8px var(--deep3), 0 0 0 9px rgba(212, 175, 106, .4), 0 30px 60px rgba(0, 0, 0, .55); }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.pass { max-width: 300px; margin: 0 auto; padding: 22px; border-radius: 18px; background: var(--ivory); color: var(--ink); display: grid; justify-items: center; gap: 4px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5), inset 0 0 0 7px var(--ivory), inset 0 0 0 8px rgba(184, 146, 80, .6); }
.pass .qr { width: 200px; height: 200px; }
.pass .qr svg { width: 100%; height: 100%; }
.pass b { font: 700 26px/1.3 "Aref Ruqaa", serif; color: var(--deep); }
.pass small { font: 700 14px "Almarai", sans-serif; color: #9C7536; }
.pass p { margin: 4px 0 0; font: 400 14px "Almarai", sans-serif; }
.wishes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -20px; padding-inline: 20px; scrollbar-width: none; }
.wishes::-webkit-scrollbar { display: none; }
.wishes blockquote { flex: 0 0 78%; scroll-snap-align: center; margin: 0; padding: 22px 20px 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(212, 175, 106, .4); text-align: start; position: relative; }
.wishes blockquote::before { content: "”"; position: absolute; top: -6px; inset-inline-start: 14px; font: 700 54px/1 "Amiri", serif; color: var(--g2); opacity: .7; }
.wishes p { margin: 0; color: #FFF6E4; }
.wishes cite { display: block; margin-top: 8px; font: 700 13px "Almarai", sans-serif; font-style: normal; color: var(--g1); }

/* rsvp */
.rsvp { text-align: start; }
.rsvp .title { margin-bottom: 14px; }
.note { margin: 0 0 14px; font-size: 16px; text-align: center; color: #5A4632; }
.rform fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.rform fieldset[disabled] { opacity: .55; }
.fl { display: grid; gap: 6px; font: 700 15px "Almarai", sans-serif; color: #5A4632; }
.fl small { font-weight: 400; opacity: .8; }
.fl input, .fl select, .fl textarea { width: 100%; font: 400 17px "Amiri", serif; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(184, 146, 80, .6); background: #FFFDF8; color: var(--ink); }
.fl input:focus, .fl select:focus, .fl textarea:focus { outline: none; border-color: #9C7536; box-shadow: 0 0 0 3px rgba(212, 175, 106, .3); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg2 label { position: relative; cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg2 span { display: block; text-align: center; padding: 14px; border-radius: 10px; border: 1px solid rgba(184, 146, 80, .6); background: #FFFDF8; font: 800 16px "Almarai", sans-serif; color: #5A4632; transition: all .25s var(--ease); }
.seg2 input:checked + span { background: linear-gradient(180deg, #3A2614, #1E140B); color: var(--g1); border-color: #9C7536; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.seg2 input:focus-visible + span { outline: 2px solid #9C7536; outline-offset: 2px; }
.ok { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(47, 122, 80, .1); color: #2F6A47; font: 800 15px "Almarai", sans-serif; text-align: center; }
.err { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #FBE9EA; color: #9E2F3C; font: 700 14px "Almarai", sans-serif; }

/* buttons */
.gbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; overflow: hidden;
  border: 1px solid rgba(212, 175, 106, .75); background: rgba(255, 255, 255, .04); color: var(--g1); font: 800 15.5px "Almarai", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s; }
.gbtn svg { width: 20px; height: 20px; }
.gbtn:hover { box-shadow: 0 0 0 4px rgba(212, 175, 106, .15); }
.gbtn:active { transform: scale(.98); }
.gbtn.solid { width: 100%; border: 0; background: var(--gold-grad); color: #2A1A08; box-shadow: 0 12px 26px rgba(156, 117, 54, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.gbtn.solid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-130%); animation: sweep 3.5s ease-in-out 2s infinite; }

.closing { padding-top: 40px; padding-bottom: 20px; }
.close-line { margin: 10px 0 0; font: 700 30px/1.4 "Aref Ruqaa", serif; color: var(--g1); }
.close-names { margin: 6px 0 22px; font: 700 clamp(46px, 13vw, 62px)/1.25 "Aref Ruqaa", serif; padding: 0 .2em; }
.made { display: block; text-align: center; padding: 18px 16px calc(100px + env(safe-area-inset-bottom, 0px)); font: 400 13px "Almarai", sans-serif; color: var(--dim); text-decoration: none; position: relative; }
.made b { color: var(--g1); }

.pill { position: fixed; z-index: 40; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translate(-50%, 140%); padding: 13px 26px; border-radius: 999px;
  background: var(--gold-grad); color: #2A1A08; font: 800 15px "Almarai", sans-serif; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .45s var(--ease); }
.pill.on { transform: translate(-50%, 0); }
.mus { position: fixed; z-index: 45; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 16px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  background: rgba(20, 12, 8, .55); backdrop-filter: blur(8px); border: 1px solid rgba(212, 175, 106, .7); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--gold-grad); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.mus .off { display: none; width: 22px; height: 22px; }
.mus .off path { stroke: url(#gold); stroke-width: 1.6; stroke-linecap: round; }
.mus[aria-pressed="false"] .eq { display: none; }
.mus[aria-pressed="false"] .off { display: block; }
.democta { position: fixed; z-index: 44; inset-inline: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(0, 0, 0, .55) 40%); }
.democta .gbtn { max-width: 528px; margin: 0 auto; display: flex; }
body:has(.democta) .mus { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* reveal on scroll */
.js [data-rv] { opacity: 0; transform: translateY(26px); filter: blur(4px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js [data-rv="unfold"] { transform: perspective(900px) rotateX(55deg) translateY(30px); transform-origin: top center; }
.js [data-rv].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js [data-rv] { opacity: 1; transform: none; filter: none; }
  .dust { display: none; }
}
.names .gold { background-image: linear-gradient(180deg, #FFF8E2 0%, #F5DEA2 42%, #D9AE62 75%, #B98A42 100%); }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(212, 175, 106, .6), 0 16px 34px rgba(0, 0, 0, .4); background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
