/* ============================================================
   Rawan & Ahmad — wedding invitation · shared design system
   Surfaces: warm ivory & gold over cream panels; envelope is
   damask paper. Type: warm brown ink with antique-gold accents,
   deep burgundy (--burg) for the verse art and the couple's
   dress-code anchor.
   NOTE: this file descends from the M&D engagement engine, so the
   CSS variable NAMES still read blue (--ice, --dusty, --periwinkle,
   --blue-deep). The names are historical; the VALUES below are
   Rawan's white-and-gold. Retheme by editing :root, not the names.
   ============================================================ */

:root {
  /* RAWAN white-&-gold retheme (2026 — was the M&D blue palette; the var NAMES
     are kept so the whole cascade re-tints in place). */
  --ivory:      #f7f1e2;   /* Warm Ivory base */
  --ice:        #f3ead4;   /* Soft Cream — panels (was Ice Blue) */
  --dusty:      #cdb274;   /* soft gold — surfaces/borders (was Dusty Blue) */
  --powder:     #dcc999;   /* light champagne */
  --periwinkle: #e7d8b6;   /* pale gold */
  --sage:       #cdbb8c;   /* muted gold-sage */
  --silver:     #e3d9c1;   /* warm cream-silver */
  --steel:      #9c7a2e;   /* deep gold — links/accents (was Steel Blue) */
  --blue-deep:  #7a5a1f;   /* deep bronze-gold — buttons, countdown (was navy) */
  --gold:       #8a6624;   /* titles, ornaments */
  --gold-soft:  #c2a258;   /* champagne borders */
  --brown:      #4a3a20;   /* names, headings — warm brown */
  --ink:        #382c18;   /* body text */
  --muted:      #7a6a4a;   /* secondary text */

  --burg:       #6e1322;   /* deep burgundy — verse art, «على»; anchors to the couple's dress-code palette */

  /* TWO typefaces (Founder, 2026-07-11): Amiri carries ALL Arabic;
     Nastaliq is reserved for the couple's names alone.
     (Cormorant Garamond remains the single Latin companion for English.) */
  --font-display: "Amiri", serif;          /* section titles, big Arabic flourish */
  --font-names:   "Noto Nastaliq Urdu", "Amiri", serif; /* the couple's names — flowing Nastaliq */
  --font-amiri:   "Amiri", serif;          /* Arabic body / phrases */
  --font-cairo:   "Amiri", serif;          /* Arabic UI / labels (was Cairo/Naskh) */
  --font-latin:   "Cormorant Garamond", serif; /* English elegance */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  /* white laid paper: fine ribbing over a soft vertical sheen */
  background-color: #fbfbfa;
  background-image:
    repeating-linear-gradient(0deg, rgba(118,112,96,0.05) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #fefefd, #f2f1ec);
  color: var(--ink);
  font-family: var(--font-cairo);
  line-height: 1.8;
  overflow-x: hidden;            /* guard against accidental horizontal scroll */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.invitation {
  max-width: 680px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) clamp(1.2rem, 5vw, 2.5rem) env(safe-area-inset-bottom);
}

/* ============================================================
   Compact sections — each is only as tall as its content, with
   tidy, even spacing between them (no full-screen gaps). The
   sealed-letter cover is a separate fixed layer and still fills.
   ============================================================ */
.panel {
  margin: 0;
  box-sizing: border-box;
  padding-block: clamp(1.75rem, 6vw, 3rem);   /* even spacing between sections */
}

/* the opening panel fills the first screen; the invitation sits centered
   and breathes across the full height */
.panel--opening {
  min-height: 100vh;
  min-height: 100svh;            /* the opening fills exactly one vertical screen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(0.9rem, 3vh, 1.6rem);
}
/* bismillah pinned to the top, scroll cue at the bottom, the rest spread evenly to fill the screen */
.panel--opening .hero { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(0.3rem, 1.4vh, 0.9rem); }
.panel--opening .divider { margin-block: clamp(1.2rem, 3.5vh, 2.4rem); }
.panel--opening .formula--cols { margin-block: clamp(0.6rem, 2.5vh, 1.8rem); }

/* ---------- Watercolor iris dividers + scattered accents ---------- */
.divider { display: block; margin: 1.2rem auto; width: min(82vw, 440px); height: auto; }
.divider.sm { width: min(62vw, 300px); margin: 0.4rem auto 1rem; }

.iris {
  position: absolute;
  width: clamp(56px, 14vw, 104px);
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.hero { position: relative; }
/* flank the garland divider (decor-on-decor) instead of the formula text */
.iris.hero-start { inset-inline-start: -8px; top: 3.4rem; width: clamp(44px, 10vw, 78px); transform: rotate(-6deg); }
.iris.hero-end   { inset-inline-end: -8px; top: 3.4rem; width: clamp(44px, 10vw, 78px); transform: scaleX(-1) rotate(-4deg); }
.when { position: relative; }
.iris.when-corner {
  top: -30px; inset-inline-start: -10px;
  width: clamp(40px, 9vw, 64px);
  transform: rotate(16deg);
}
.guestbook { position: relative; }
.iris.gb-corner {
  top: -16px; inset-inline-end: -8px;
  width: clamp(36px, 8vw, 58px);
  transform: scaleX(-1) rotate(12deg);
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 1rem; }

/* Thuluth bismillah art (bronze-gold), small and quiet above the verse */
.bismillah-art {
  display: block;
  width: clamp(60px, 15vw, 82px);
  height: auto;
  margin: 0 auto 0.7rem;
}
/* calligraphic heart of the verse (deep burgundy) — the hero's art moment;
   carries the verse alone now (text line removed as redundant), −30% */
.ayah-art {
  display: block;
  width: clamp(161px, 43vw, 224px);
  height: auto;
  margin: 0.5rem auto 0.1rem;
}

.event-label {
  font-family: var(--font-cairo);
  font-weight: 300;
  word-spacing: 6px;          /* airiness without breaking Arabic letter joins */
  color: var(--gold);
  font-size: clamp(1rem, 3vw, 1.2rem);
}
.event-label-en {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--muted);
  letter-spacing: 3px;
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.names {
  font-family: var(--font-display);
  color: var(--brown);
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: clamp(2rem, 8vw, 3.2rem);
}
.names .amp {
  color: var(--gold);
  font-family: var(--font-latin);
  font-size: 0.6em;
  margin: 0.1rem 0;
}
.names-en {
  font-family: var(--font-latin);
  color: var(--muted);
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  letter-spacing: 1px;
  margin-top: 0.8rem;
}

/* ---------- Classical invitation formula (hero) ---------- */
.formula { margin-top: 0.6rem; }
.formula p { margin: 0; }
.formula .f-line {
  font-family: var(--font-amiri);
  color: var(--ink);
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  line-height: 1.9;
}
.formula .f-host {
  font-family: var(--font-display);   /* Aref Ruqaa — the family names get display calligraphy */
  color: var(--brown);
  font-weight: 700;
}
.formula .f-name {
  font-family: var(--font-display);
  color: var(--brown);
  font-weight: 700;
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  line-height: 1.7;
  margin: 0.2rem 0 0.45rem;
}

/* two columns: groom right (read first in RTL), bride left, gold hairline between */
.formula--cols {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.7rem, 2.6vw, 1.4rem);
  max-width: 560px;
  margin-inline: auto;
}
.formula--cols .f-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.formula--cols .f-col + .f-col {
  border-inline-start: 1px solid rgba(138, 102, 36, 0.35);
  padding-inline-start: clamp(0.7rem, 2.6vw, 1.4rem);
}
.formula--cols .f-line { font-size: clamp(1.05rem, 3.4vw, 1.4rem); line-height: 2.25; }
/* the lineage labels take classical Naskh — a quiet contrast to the Amiri formula lines */
.formula--cols .f-title { font-family: var(--font-cairo); }
/* title block sits right above the name; the whole block is pinned to the
   column bottom so both names land on the same line (only the FIRST title
   line carries the auto margin — the bride's side stacks two title lines) */
.formula--cols .f-title { line-height: 1.9; }
.formula--cols .f-title:first-child {
  margin-top: auto;
  padding-top: 0.9rem;
}
.formula--cols .f-name {
  font-family: var(--font-names);            /* flowing Nastaliq (the Leen name treatment) */
  font-size: clamp(2.7rem, 11.5vw, 4.3rem);  /* Nastaliq draws taller — same visual weight */
  line-height: 1.95;                          /* room for the Nastaliq bowls — never crop */
  padding-bottom: 0.12em;
  margin: 0;
}

/* gold shimmer on the couple's names (same treatment as the Da3wati logo) */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.gold-shimmer,
.formula .f-name.gold-shimmer {
  /* gold-leaf gradient with a bright #f5e7b6 highlight (richer than the flat logo gold) */
  background: linear-gradient(100deg, #8a6b28 0%, #b8963f 26%, #c9a85c 40%, #f5e7b6 50%, #c9a85c 60%, #b8963f 74%, #8a6b28 100%);
  background-size: 230% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .gold-shimmer { animation: none; }
}

/* ---------- Invitation phrase ---------- */
.phrase { text-align: center; margin: 0.6rem 0 0; }
.phrase-ar {
  font-family: var(--font-amiri);
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  color: var(--ink);
  line-height: 2.1;
}
.phrase-en {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-top: 1rem;
  line-height: 1.7;
}
/* English mirror inside the hero: tucked right under the Arabic formula,
   justified as a block with a centered last line; the families line
   must hold as ONE line (Founder) — nowrap span + a size that fits 320px */
.phrase-en--hero {
  margin-top: 0.6rem;
  max-width: 46ch; margin-inline: auto;
  font-size: clamp(0.82rem, 3vw, 1.12rem);
  text-align: justify; text-align-last: center;
}
.phrase-en--hero .en-oneline { white-space: nowrap; }
.placeholder-note {
  font-family: var(--font-cairo);
  font-size: 0.78rem;
  color: var(--gold);
  opacity: 0.8;
  margin-top: 1rem;
  letter-spacing: 0.5px;
}

/* ---------- When + Countdown ---------- */
.when {
  background: linear-gradient(180deg, rgba(255,255,255,0.93), rgba(235,243,249,0.93));
  border: 1px solid rgba(194,162,88,0.6);
  border-radius: 14px;
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 0;
}
.date-block { margin-bottom: 1.6rem; }
.day-ar  { font-family: var(--font-cairo); color: var(--gold); font-weight:600; font-size: 1.1rem; }
.date-ar { font-family: var(--font-display); color: var(--brown); font-size: clamp(1.6rem, 6vw, 2.2rem); }
.time-ar { font-family: var(--font-amiri); color: var(--ink); font-size: 1.15rem; margin-top: 0.3rem; }
.date-en { font-family: var(--font-latin); font-style: italic; color: var(--muted); margin-top: 0.5rem; letter-spacing: 1px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 420px;
  margin: 0 auto;
  direction: ltr;
}
.cd-box {
  background: var(--blue-deep);
  color: var(--ivory);
  border-radius: 10px;
  padding: 0.9rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.cd-num { font-family: var(--font-latin); font-weight: 500; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1; }
.cd-label { font-family: var(--font-cairo); font-size: 0.8rem; color: var(--gold-soft); display:flex; flex-direction:column; }
.cd-label small { font-family: var(--font-latin); font-style: italic; font-size: 0.7rem; opacity: 0.85; }

/* ---------- Venue ---------- */
.venue { text-align: center; margin: 0; }
.section-title {
  font-family: var(--font-display);
  color: var(--brown);
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 0.8rem;
}
.section-title small {
  display: block;
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 2px;
}
/* Venue hierarchy: the hall's Latin name is the PRIMARY line,
   its Arabic an elegant secondary title — not a caption */
.venue-name {
  font-family: var(--font-latin);
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  color: var(--brown);
  letter-spacing: 1.5px;
  line-height: 1.25;
}
.venue-name-ar {
  font-family: var(--font-amiri);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  color: var(--ink);
  margin-top: 0.2rem;
}
.venue-loc {
  font-family: var(--font-cairo);
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.venue-tbd     { font-family: var(--font-cairo); font-size: 0.85rem; color: var(--gold); margin-top: 0.4rem; opacity: 0.85; }

.map-wrap {
  margin: 1.4rem auto 1.6rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(194,162,88,0.6);
  max-width: 560px;
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.btn {
  display: inline-block;
  font-family: var(--font-cairo);
  /* explicit size: <button> does NOT inherit text size, and the UA default
     (~13px) made the RSVP buttons small and hard to tap on phones */
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--ivory);
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn:hover { background: var(--steel); }
.btn:active { transform: translateY(1px); }

/* secondary action (e.g. "نعتذر عن الحضور") — quieter than the primary,
   so the main choice reads instantly on a small screen */
.btn--ghost {
  color: var(--blue-deep);
  background: #fbfcfd;
  border: 1px solid var(--powder);
}
.btn--ghost:hover { background: rgba(122,162,205,0.12); }

/* visible keyboard-focus ring on every interactive control */
.btn:focus-visible,
.scroll-btn:focus-visible,
.gb-walllink:focus-visible,
.wax-seal:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */
.foot { text-align: center; margin-top: 3rem; color: var(--brown); }
/* keepsake relocated here: counter-rotate + a touch more air before the farewell */
.foot .keepsake { margin: 0.6rem auto 2.4rem; transform: rotate(2.5deg); }
.foot-ar { font-family: var(--font-amiri); font-size: 1.2rem; }
.foot-en { font-family: var(--font-latin); font-style: italic; color: var(--muted); }

@media (max-width: 380px) {
  .countdown { gap: 0.4rem; }
  .cd-box { padding: 0.7rem 0.2rem; }
}

/* Older mobile WebViews without aspect-ratio support: give the
   iframe wrappers an explicit height so they don't collapse. */
@supports not (aspect-ratio: 16 / 10) {
  .map-wrap    { height: 56vw; max-height: 350px; }
  .songs-embed { height: 50vw; max-height: 315px; }
}

/* ============================================================
   Names: his on the RIGHT, hers on the LEFT (RTL order)
   ============================================================ */
.invitation { text-align: center; }

.names-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 1.6rem);
}
.name-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  max-width: 46%;
}
.name-col .name {
  font-family: var(--font-display);
  color: var(--brown);
  font-weight: 700;
  line-height: 1.4;
  font-size: clamp(1.3rem, 5.5vw, 2.1rem);
}
.name-col .name-en {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--muted);
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  letter-spacing: 0.5px;
  margin-top: 0.35rem;
}
.names-row .amp {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--font-latin);
  font-size: clamp(1.3rem, 5vw, 2.2rem);
}
.name-title {
  font-family: var(--font-amiri);
  color: var(--gold);
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  margin-bottom: 0.15rem;
}

/* ---------- Dress code (compact) ---------- */
.dresscode { text-align: center; }
.dc-groups {
  display: flex;
  justify-content: center;
  align-items: flex-end;            /* align both groups by the hem line */
  flex-wrap: wrap;
  gap: clamp(1.6rem, 8vw, 3.2rem);
}
.dc-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.dc-figs {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.45rem, 2.2vw, 0.9rem);
}
.dc-cap {
  font-family: var(--font-cairo);
  font-size: 0.85rem;
  color: var(--ink);
}
.dc-cap em {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--muted);
  margin-inline-start: 0.25rem;
}
.dc-dots { display: flex; justify-content: center; gap: 0.45rem; }
.dc-dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.dc-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.dc-svg {
  width: clamp(34px, 9vw, 46px);    /* smaller — keeps this section modest */
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.18));
}
.dc-fig small {
  font-family: var(--font-cairo);
  font-size: 0.78rem;
  color: var(--muted);
}
/* smaller heading + tighter padding so dress code is the most modest section */
.section-title.sm { font-size: clamp(1.2rem, 4vw, 1.5rem); margin-bottom: 0.3rem; }
.section-title.sm small { font-size: 0.85rem; }
.panel--tight { padding-block: clamp(1rem, 4vw, 1.75rem); }

/* ---------- Song suggestions (collaborative playlist) ---------- */
.songs { text-align: center; }
.songs-sub {
  font-family: var(--font-amiri);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.songs-embed {
  max-width: 560px;
  margin: 0 auto 1.4rem;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(194,162,88,0.6);
  background: #000;
}
.songs-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Guestbook ---------- */
.guestbook { text-align: center; }
.gb-sub { font-family: var(--font-amiri); color: var(--muted); font-size: 1.05rem; margin-bottom: 1.1rem; }
.gb-form {
  max-width: 440px;
  margin: 0 auto 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.gb-input {
  font-family: var(--font-cairo);
  font-size: 1rem;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid rgba(122,162,205,0.4);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  box-sizing: border-box;
}
.gb-input::placeholder { color: var(--muted); opacity: 0.85; }
.gb-input:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(122,162,205,0.18); }
textarea.gb-input { resize: vertical; }
/* honeypot: hidden from humans without pushing the page sideways */
.gb-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.gb-form .btn { align-self: center; cursor: pointer; }
/* status / inline-error line: large + dark enough to actually be noticed
   mid-flow on a phone (was 0.85rem steel-blue — easy to miss) */
.gb-status { font-family: var(--font-cairo); font-size: 0.95rem; font-weight: 600; color: var(--blue-deep); min-height: 1.2em; margin: 0; }
.gb-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.gb-item {
  background: #fbfcfd;
  border: 1px solid rgba(122,162,205,0.25);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  text-align: start;
  box-shadow: 0 4px 10px rgba(48,63,80,0.08);
}
.gb-msg { font-family: var(--font-amiri); color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.gb-name { font-family: var(--font-cairo); color: var(--gold); font-size: 0.85rem; margin-top: 0.3rem; }
.gb-empty { font-family: var(--font-cairo); color: var(--muted); font-size: 0.9rem; }

/* main-page form extras: the صلة القرابة / side select row + the wall link */
.gb-selrow { display: flex; gap: 0.6rem; }
.gb-selrow .gb-select { flex: 1 1 0; min-width: 0; }
.gb-select { cursor: pointer; }
.gb-status a { color: var(--steel); }
/* brief highlight when arriving via the poster's ?write deep-link */
@keyframes gbflash { 0%, 100% { box-shadow: 0 0 0 0 rgba(122,162,205,0); } 30% { box-shadow: 0 0 0 6px rgba(122,162,205,0.4); } }
.gb-form.flash { border-radius: 12px; animation: gbflash 1.6s ease 0.3s 2; }
.gb-walllink {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-cairo);
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-deep);
  background: #fbfcfd;
  border: 1px solid var(--powder);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
}
.gb-walllink:hover { background: rgba(122,162,205,0.1); }

/* ============================================================
   Wishes wall (sub-page /wall) — elegant sticky notes
   ============================================================ */
.wall-page { padding: 0; text-align: center; }
.wall-head { text-align: center; padding: clamp(2rem, 7vw, 3.5rem) 1.2rem 1.2rem; color: var(--gold); }
.wall-head h1 { font-family: var(--font-display); color: var(--brown); font-size: clamp(2rem, 8vw, 3rem); margin: 0.2rem 0; }
.wall-head p { font-family: var(--font-amiri); color: var(--muted); font-size: 1.05rem; }
.wall-btn {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-cairo);
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-deep);
  background: #fbfcfd;
  border: 1px solid var(--powder);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
}
.wall-btn:hover { background: rgba(122,162,205,0.1); }
.wall-foot { padding: 0.5rem 1rem 3rem; }

.wall-form { max-width: 440px; margin: 0 auto 2.2rem; padding: 0 1.2rem; }

.wall {
  column-count: 1;
  column-gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1rem 3.5rem;
}
@media (min-width: 520px) { .wall { column-count: 2; } }
@media (min-width: 860px) { .wall { column-count: 3; } }

.note {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  position: relative;
  margin: 0.5rem 0 1.3rem;
  padding: 1.3rem 1.1rem 1.2rem;
  border-radius: 4px;
  background: #fbfcfd;
  box-shadow: 0 9px 20px rgba(48,63,80,0.16), 0 2px 4px rgba(0,0,0,0.08);
}
.note-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 72px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(180deg, rgba(199,211,223,0.7), rgba(173,199,223,0.55));
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  border-left: 1px dashed rgba(255,255,255,0.45);
  border-right: 1px dashed rgba(255,255,255,0.45);
}
.note-title { font-family: var(--font-display); color: var(--brown); font-size: 1.2rem; margin-bottom: 0.25rem; }
.note-meta { font-family: var(--font-cairo); color: var(--gold); font-size: 0.78rem; margin-bottom: 0.5rem; }
.note-body { font-family: var(--font-amiri); color: var(--ink); font-size: 1.05rem; line-height: 1.7; word-wrap: break-word; overflow-wrap: anywhere; }
.note-orn { display: block; text-align: center; color: var(--gold); margin-top: 0.7rem; font-size: 1rem; }

/* varied tints + slight tilts for a hand-pinned look */
.note:nth-child(5n+1) { background: #fdfdfa; transform: rotate(-2deg); }
.note:nth-child(5n+2) { background: #e9f1f7; transform: rotate(1.5deg); }
.note:nth-child(5n+3) { background: #f2efe6; transform: rotate(-1deg); }
.note:nth-child(5n+4) { background: #dce8f3; transform: rotate(2deg); }
.note:nth-child(5n+5) { background: #e3e8ed; transform: rotate(-1.5deg); }

.wall-empty { column-span: all; width: 100%; text-align: center; color: var(--muted); font-family: var(--font-cairo); font-size: 0.95rem; }

/* ---------- Keepsake polaroid (childhood photo) ---------- */
.keepsake {
  position: relative;
  width: min(64vw, 230px);
  margin: 0.4rem auto 1.8rem;
  padding: 11px 11px 0;
  background: #fbfcfd;
  border: 1px solid rgba(90,112,137,0.15);
  border-radius: 2px;
  box-shadow: 0 12px 24px rgba(48,63,80,0.22), 0 2px 5px rgba(0,0,0,0.12);
  transform: rotate(-3deg);
}
.keepsake img {
  display: block;
  width: 100%;
  height: auto;                    /* natural ratio — full photo, no crop */
  border-radius: 1px;
  filter: saturate(0.9) contrast(1.02) sepia(0.07);
}
.keepsake figcaption {
  font-family: var(--font-amiri);
  color: var(--brown);
  text-align: center;
  padding: 0.45rem 0 0.7rem;
  font-size: 1.1rem;
  line-height: 1.25;
}
.keepsake figcaption small {
  display: block;
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
/* a strip of "washi" tape holding it to the page */
.keepsake .tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 88px;
  height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: linear-gradient(180deg, rgba(199,211,223,0.7), rgba(173,199,223,0.6));
  box-shadow: 0 1px 3px rgba(0,0,0,0.14);
  border-left: 1px dashed rgba(255,255,255,0.45);
  border-right: 1px dashed rgba(255,255,255,0.45);
}

/* ============================================================
   Rustic fold COVER over the invitation (scroll to open)
   Two kraft folds fill the viewport and swing away to reveal
   the real invitation underneath — top fold first, then bottom.
   ============================================================ */
body.locked { overflow: hidden; }

.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  perspective: 1800px;          /* applies to the folds (direct children) */
}

/* the two kraft folds, each covering half the viewport */
.fold {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  /* iris damask envelope paper under a light blue wash */
  background-color: #e9f0f6;
  background-image:
    linear-gradient(rgba(217,231,238,0.45), rgba(217,231,238,0.45)),
    url("assets/bg-tile.jpg");
  background-size: auto, 460px;
  box-shadow: 0 0 60px rgba(0,0,0,0.25);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.fold-top {
  top: 0;
  z-index: 2;                   /* top fold (with seal) sits above the bottom one */
  transform-origin: top center;
  transform: rotateX(0deg);
  border-bottom: 1px solid rgba(150,143,125,0.4);
  box-shadow: inset 0 -14px 22px rgba(135,135,128,0.18);
  transition: transform 0.9s cubic-bezier(0.62, 0.04, 0.3, 1);
}
.fold-bottom {
  bottom: 0;
  z-index: 1;
  transform-origin: bottom center;
  transform: rotateX(0deg);
  border-top: 1px solid rgba(150,143,125,0.4);
  box-shadow: inset 0 14px 22px rgba(135,135,128,0.18);
  transition: transform 0.9s cubic-bezier(0.62, 0.04, 0.3, 1);
}
.cover.opening .fold-top    { transform: rotateX(-180deg); }
.cover.bottom  .fold-bottom { transform: rotateX(180deg); }

/* once both folds are open, fade the (now empty) cover away */
.cover.done { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }

/* wax seal image straddling the seam, riding on the top fold */
.wax-seal {
  position: absolute;
  bottom: 0;                      /* sit on the seam... */
  left: 50%;
  transform: translate(-50%, 50%); /* ...centered vertically on the fold edge */
  width: clamp(131px, 35.5vw, 180px);   /* −30% per the Founder (2026-07-11) */
  z-index: 3;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.wax-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.4));
}
.cover.opening .wax-seal { opacity: 0; transform: translate(-50%, 50%) scale(0.7); }

/* scroll hint, centered on the seam */
.hint {
  position: absolute;
  top: 67%;                       /* nudged down, clear of the wax seal */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-cairo);
  color: #57452c;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.hint small { font-family: var(--font-latin); font-style: italic; opacity: 0.85; }

/* elegant SVG chevron, inherits color via currentColor */
.chev { display: inline-flex; line-height: 0; }
.chev svg { display: block; width: 26px; height: auto; }
.hint .chev { color: var(--gold); animation: bob 1.8s ease-in-out infinite; }
.cover.opening .hint { opacity: 0; transition: opacity 0.3s ease; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* "scroll to the details" button inside the invitation */
.scroll-btn {
  font-family: var(--font-cairo);
  font-size: 1rem;              /* buttons don't inherit text size — keep it tappable */
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ivory);
  background: var(--blue-deep);
  border: 1px solid var(--gold-soft);
  padding: 0.8rem 1.9rem;
  margin: 1.8rem auto 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.1s ease;
}
.scroll-btn:hover { background: var(--steel); }
.scroll-btn:active { transform: translateY(1px); }
.scroll-btn .chev { color: var(--gold-soft); }
.scroll-btn .chev svg { width: 20px; }

/* Respect reduced-motion / no-JS: don't trap the page behind the cover */
@media (prefers-reduced-motion: reduce) {
  .cover { display: none; }
  body.locked { overflow: auto; }
  html { scroll-behavior: auto; }   /* no smooth-scroll animation either */
}

/* ===== RSVP (added 2026-06-12) — reuses the guestbook form styling ===== */
/* same soft card as .when, so the page's ONE action stands out from the flow */
.rsvp {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.93), rgba(235,243,249,0.93));
  border: 1px solid rgba(194,162,88,0.6);
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
}
.rsvp .gb-form { margin-bottom: 0; }
.rsvp-after { text-align: center; }
.rsvp-thanks {
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  margin: 0.4rem 0 1rem;
}
.rsvp-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* footer note — children kindly stay home (small, soft) */
.foot-note {
  font-family: "Amiri", serif;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.7rem;
}

/* ===== Founder directives 2026-06-12: count menu + children notice ===== */
/* compact guest-count menu, revealed below the accept button */
.rsvp-count {
  display: block;
  max-width: 290px;
  margin: 10px auto 0;
  text-align: center;
}

/* children notice — discreet, right under the RSVP card */
.kids-note {
  font-family: "Amiri", serif;
  font-size: 0.88rem;
  opacity: 0.75;
  text-align: center;
  max-width: 420px;
  margin: 14px auto 0;
  line-height: 1.9;
}

/* parents' names must stay on ONE line on any display (Founder):
   nowrap + viewport-scaled size so the line shrinks instead of wrapping */
.en-hosts {
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  font-size: min(1.2rem, 3.9vw);
  letter-spacing: 0;
}

/* fathers' columns (Founder layout v2): the gold hairline runs the full block
   height between the columns (cols adjacent again), the واو sits as a small
   badge ON the line, names are visibly LARGER than the host's honorific title
   and can never wrap (nowrap + viewport-scaled). */
.formula--hosts { position: relative; }
.formula--hosts .f-host {
  white-space: nowrap;
  font-size: min(1.32rem, 4.2vw);
}
.formula--hosts .f-title {
  font-size: clamp(0.64rem, 2.1vw, 0.85rem);
  opacity: 0.85;
}
.f-waw {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Amiri", serif;
  color: var(--gold);
  font-weight: 700;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  background: #fbfbfa;
  padding: 0.18em 0.2em;        /* clear breathing room so the hairline doesn't pierce the letter */
  line-height: 1;
  margin: 0;
}

/* RSVP choice buttons: ALWAYS side by side, even on the narrowest phones —
   they shrink (flex + viewport-scaled text) instead of stacking (Founder) */
.rsvp .rsvp-actions {
  flex-wrap: nowrap;
}
.rsvp .rsvp-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding-inline: 0.6rem;
  font-size: min(1rem, 3.6vw);
}

/* guest-allowance ribbon (?g=N from the QR) + in-card allowance note */
.allowance-ribbon {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 30;             /* under the fold cover, above the page */
  text-align: center;
  padding: 0.45rem 0.8rem;
  background: #8a6624;
  color: #fdfaf3;
  font-family: "Cairo", sans-serif;
  font-size: 0.85rem;
}
.rsvp-allowance {
  font-family: "Amiri", serif;
  color: #8a6624;
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0.2rem 0 0.6rem;
}

/* "made with Da3wati" signature — the very last line of the page */
.made-by {
  display: block;
  text-align: center;
  margin-top: 1.6rem;
  font-family: "Amiri", serif;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.85;
}
.made-by b { color: var(--gold); font-weight: 700; }
.made-by:hover { opacity: 1; }

/* ============================================================
   RAWAN — white & gold retheme (art + readability)
   The Founder's gold «روان» seal, white-gold damask page, soft
   blush envelope cover. Per Founder: EVERY text block is boxed on
   an ivory card so it always reads over the patterned background.
   ============================================================ */

/* the page wears the gold damask, veiled so cards + text always read
   (veil lifted toward white — Founder, 2026-07-19: whiter tone) */
body {
  background-color: #fbf9f3;
  background-image:
    linear-gradient(rgba(252,250,245,0.88), rgba(250,246,237,0.89)),
    url("assets/bg-page.jpg");
  background-size: auto, clamp(320px, 60vw, 460px);
}

/* envelope folds wear the ivory damask handmade-paper texture, tiled seamlessly */
.fold {
  background-color: #f4ebd7;
  background-image: url("assets/envelope_bg2.png");
  background-size: 560px auto;
  background-repeat: repeat;
}
.fold-top    { background-position: center top; }
.fold-bottom { background-position: center bottom; }

/* retired blue-iris art (img tags removed; belt-and-braces) */
.iris { display: none !important; }

/* the gold «روان» seal — cover + hero crown + footer flourish */
.wax-img { filter: drop-shadow(0 12px 22px rgba(60,40,15,0.40)) drop-shadow(0 0 20px rgba(212,180,120,0.5)); }
.hero-seal {
  display: block; width: clamp(96px, 26vw, 148px); height: auto;
  margin: 0 auto 0.5rem; filter: drop-shadow(0 6px 14px rgba(74,46,18,0.22));
}
.foot-seal {
  display: block; width: clamp(74px, 20vw, 104px); height: auto;
  margin: 0 auto 0.8rem; opacity: 0.96; filter: drop-shadow(0 5px 12px rgba(74,46,18,0.18));
}

/* gold hairline divider with a centered diamond (replaces the iris dividers) */
.sep {
  position: relative; width: min(74vw, 340px); height: 18px; margin: 1.1rem auto;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 24%, var(--gold-soft) 76%, transparent) center / 100% 1.2px no-repeat;
}
.sep::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); background: var(--gold);
}

/* ---- BOX EVERY TEXT BLOCK on an ivory card (Founder: must read over BG) ---- */
.hero, .when, .rsvp, .venue, .dresscode, .guestbook, .foot {
  position: relative;
  background: linear-gradient(180deg, rgba(253,249,240,0.96), rgba(247,239,223,0.96));
  border: 1px solid rgba(194,162,88,0.55);
  border-radius: 16px;
  padding: clamp(1.5rem, 5vw, 2.2rem) clamp(1.15rem, 4.5vw, 1.7rem);
  box-shadow: 0 10px 30px rgba(90,60,20,0.08);
}
/* elegant inset double-hairline frame on each card */
.hero::after, .when::after, .rsvp::after, .venue::after,
.dresscode::after, .guestbook::after, .foot::after {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(194,162,88,0.30); border-radius: 11px; pointer-events: none;
}
.foot { margin-top: 2.2rem; }

/* the واو / على connector badge sits on the ivory card now */
.f-waw { background: #fbf6ea; }
/* the couple block is the positioning context for «على» */
.formula--couple { position: relative; }
/* «على» drops to the line of the names (below the lineage), not the column centre */
.f-ala {
  font-size: clamp(1rem, 3.6vw, 1.3rem); padding: 0.22em 0.34em;
  top: auto; bottom: clamp(2.6rem, 10.6vw, 4rem);   /* slightly higher */
  transform: translate(-50%, 50%);
  color: var(--burg);                                /* rosewood accent, echoes the verse art */
}

/* couple columns: a lineage line under each name; groom placeholder reads as a placeholder */
.f-sub {
  font-family: var(--font-amiri); color: var(--muted);
  font-size: clamp(0.9rem, 3vw, 1.06rem) !important; line-height: 1.7 !important; margin-top: 0.1rem !important;
}
.f-name--ph { opacity: 0.55; font-style: italic; }

/* warm closing line in the hero */
.hero-warm {
  font-family: var(--font-amiri); color: var(--brown);
  font-size: clamp(1rem, 3.4vw, 1.18rem); line-height: 1.9; margin-top: 0.6rem;
}

/* Qur'anic verse the couple chose — full text, quieter now that its
   calligraphic heart (.ayah-art) carries the visual weight below it */
.ayah {
  font-family: var(--font-amiri); color: var(--brown);
  font-size: clamp(0.95rem, 3.1vw, 1.18rem); line-height: 2.0; opacity: 0.92;
  max-width: 36ch; margin: -0.3rem auto 0; text-align: center;
}
.ayah-en {
  font-family: var(--font-latin); font-style: italic; color: var(--muted);
  font-size: clamp(0.86rem, 2.6vw, 1rem); line-height: 1.65;
  max-width: 46ch; margin: 0.15rem auto 0;
}
/* the couple's own opening words */
.couple-intro {
  font-family: var(--font-amiri); color: var(--ink);
  font-size: clamp(1.02rem, 3.5vw, 1.3rem); line-height: 1.9;
  max-width: 34ch; margin: 0.1rem auto 0.25rem; text-align: center;
}

/* dress code: single centered group (burgundy & red) */
.dc-groups--one { justify-content: center; }

/* ============================================================
   RAWAN — the Founder's scatter art (gold filigree + florals)
   ============================================================ */

/* the gold filigree divider is now a TOP-BORDER CREST on cards (.crest-div);
   the hero's inner .sep keep the quiet CSS gold hairline + diamond above */

/* ambient scatter — decorative, never intercepts a tap, tucked in card corners */
.scatter {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
}
/* hero: gold leaf branches flank the top; rose cluster anchors the lower-left */
.sc-branch-l { top: -4px;  inset-inline-start: 2px; width: clamp(46px, 12vw, 78px); transform: rotate(-6deg); opacity: 0.9; }
.sc-branch-r { top: -4px;  inset-inline-end: 2px;   width: clamp(46px, 12vw, 78px); transform: scaleX(-1) rotate(-6deg); opacity: 0.9; }
/* rose cluster CENTERED ON the hero's lower-left corner (covers/straddles it) */
.sc-roses    { bottom: 0; left: 0; right: auto; transform: translate(-25%, 25%); width: clamp(116px, 31vw, 172px); opacity: 0.96; }
/* date card: a single flower in the top corner */
.sc-flower   { top: -10px; inset-inline-end: 2px;   width: clamp(78px, 20vw, 116px); opacity: 0.95; }
/* venue card: a small gold branch */
.sc-branch-v { top: 6px;   inset-inline-start: 2px; width: clamp(40px, 10vw, 60px); transform: rotate(8deg); opacity: 0.82; }

/* CHOSEN treatment (Founder): a decorative crest straddling each card's TOP
   border — ruby ornament on the dress-code card, gold filigree divider elsewhere. */
.crest {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  height: auto; pointer-events: none; z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(74,46,18,0.16));
}
.crest-div { width: clamp(140px, 42vw, 220px); }
.crest-orn { width: clamp(90px, 24.8vw, 130px); }   /* ruby jewel −20% per the couple */
/* give crested cards a touch more top room so the crest sits in the gap cleanly */
.when, .rsvp, .venue, .dresscode, .guestbook { margin-top: 0.7rem; }
/* extra top padding INSIDE the dress-code card: drops «الزيّ» clear of the top border/jewel */
.dresscode { padding-top: clamp(2.2rem, 6.5vw, 3rem); }
/* the closing note sits further down and stays simple (no crest) */
.foot { margin-top: 3.6rem; }

/* contain the rose-cluster corner bleed so it can never make the page scroll sideways */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* ============================================================
   RAWAN — childhood keepsake (Rawan & Ahmad), white-gold frame
   with two soft gold washi-tape strips at the top corners.
   ============================================================ */
.foot .keepsake { width: min(72vw, 286px); margin: 0.4rem auto 1.7rem; transform: rotate(-2deg); }
.keepsake {
  background: #fdfaf2;
  border: 1px solid rgba(138,102,36,0.18);
  box-shadow: 0 14px 28px rgba(74,46,18,0.18), 0 2px 5px rgba(0,0,0,0.10);
}
.keepsake img { filter: saturate(0.92) contrast(1.02) sepia(0.06); }
.keepsake figcaption { color: var(--brown); }
.keepsake figcaption small { color: var(--muted); }
/* two diagonal gold tape strips holding the photo to the page */
.keepsake .tape {
  top: -12px; width: 74px; height: 23px;
  background: linear-gradient(180deg, rgba(226,205,150,0.80), rgba(194,162,88,0.62));
  border-left: 1px dashed rgba(255,255,255,0.5);
  border-right: 1px dashed rgba(255,255,255,0.5);
  box-shadow: 0 1px 3px rgba(74,46,18,0.18);
}
.keepsake .tape--l { left: 18px; right: auto; transform: rotate(-11deg); }
.keepsake .tape--r { left: auto; right: 18px; transform: rotate(11deg); }

/* keepsake hung on the BARE background (outside any card), Founder request */
.keepsake--bare { width: min(72vw, 286px); margin: 2.6rem auto 1.6rem; transform: rotate(-2deg); }

/* ============================================================
   2026-07-11 — Leen-playbook elevation (Da3wati house elements)
   silk-moire hero texture (Charter 10.8) + champagne-graded
   Leen scatters + engraved envelope title + tap-to-open hint
   ============================================================ */

/* silk moire on the hero card: watered-silk diagonal weave + soft light
   sheen; z 0 under scatters (1) and content (2) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none; border-radius: 16px;
  background:
    linear-gradient(118deg, transparent 32%, rgba(255,247,224,0.4) 50%, transparent 68%),
    repeating-linear-gradient(104deg, rgba(154,122,46,0.028) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(97deg, rgba(154,122,46,0.022) 0 3px, transparent 3px 14px);
}
.hero > :not(.scatter) { position: relative; z-index: 2; }

/* champagne-graded Leen scatters, tucked on card corners (crest-style straddle) */
.sc-hang    { top: -4px;   inset-inline-end: -6px;    width: clamp(68px, 18vw, 106px);  opacity: 0.55; }
.sc-hang2   { top: -10px;  inset-inline-start: -8px;  width: clamp(58px, 15vw, 92px);   opacity: 0.5;  transform: scaleX(-1); }
.sc-branch-d{ top: -6px;   inset-inline-start: 2px;   width: clamp(42px, 11vw, 64px);   opacity: 0.85; transform: rotate(-6deg); }
.sc-sprig-w { top: -12px; inset-inline-start: -16px; width: clamp(90px, 24vw, 132px); opacity: 0.45; transform: rotate(8deg); }
.sc-bq-v    { bottom: -12px; inset-inline-end: -18px;   width: clamp(110px, 30vw, 160px); opacity: 0.4; }
.sc-sprig-r { top: -8px;   inset-inline-end: -12px;   width: clamp(80px, 22vw, 118px);  opacity: 0.4; transform: scaleX(-1); }
.sc-bq-g    { bottom: -12px; inset-inline-start: -16px; width: clamp(108px, 30vw, 155px); opacity: 0.4; transform: scaleX(-1); }

/* ---------- envelope title plate: engraved ivory mist on the top flap ---------- */
.cover-plate {
  position: absolute; left: 50%; top: 34%;
  transform: translate(-50%, -50%);
  width: min(80vw, 360px);
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  background: radial-gradient(ellipse 100% 130% at 50% 50%,
    rgba(251,246,234,0.96) 30%, rgba(251,246,234,0.72) 60%, transparent 100%);
  pointer-events: none;
}
/* engraved gold rules with a small diamond finial, above and below the title */
.cover-plate::before, .cover-plate::after {
  content: "\25C6";
  display: block;
  color: var(--gold-soft);
  font-size: 0.5rem; line-height: 1;
  background: linear-gradient(90deg,
    transparent, rgba(194,162,88,0.65) 20%, transparent 45%,
    transparent 55%, rgba(194,162,88,0.65) 80%, transparent)
    center / 100% 1px no-repeat;
}
.cover-plate::before { margin-bottom: 0.8rem; }
.cover-plate::after  { margin-top: 0.8rem; }
.cover-eyebrow { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.cover-eyebrow .ar {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.6;
  color: var(--brown);
}
.cover-eyebrow .sub-en {
  font-family: var(--font-latin); font-variant: small-caps;
  letter-spacing: 0.24em; font-size: 0.8rem; color: var(--steel);
}

/* ---------- tap-to-open hint: quiet ivory pill under the seal ---------- */
.hint {
  background: linear-gradient(180deg, rgba(251,246,234,0.92), rgba(247,239,223,0.92));
  border: 1px solid rgba(194,162,88,0.55);
  border-radius: 999px;
  padding: 0.55rem 1.5rem 0.5rem;
  box-shadow: 0 8px 24px rgba(90,60,20,0.14);
  width: max-content; max-width: 86vw;
  gap: 0.1rem;
}
.hint .ar {
  font-family: var(--font-amiri); font-weight: 700;
  font-size: 1.05rem; color: var(--brown);
}

/* ===== سهرة الشباب — compact subsection under the venue (Founder, 2026-07-19) ===== */
.soiree-sub  { margin-top: 2.1rem; text-align: center; }
.soiree-rule { display: block; width: 130px; height: 1px; margin: 0 auto 1.15rem;
               background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.soiree-title { font-family: var(--font-display); color: var(--gold);
                font-size: 1.18rem; font-weight: 700; margin: 0 0 0.3rem; }
.soiree-title small { display: block; font-family: var(--font-latin); font-weight: 400;
                      font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
                      color: var(--gold-soft); margin-top: 0.2rem; }
.soiree-line { font-family: var(--font-amiri); font-size: 0.98rem; margin: 0.15rem 0 0; }
.soiree-line-en { font-family: var(--font-latin); font-size: 0.8rem; opacity: 0.75;
                  margin: 0.3rem 0 0; }
