:root {
  /* ── Luxury Palace / White Marble ── */
  --ivory: #f8f6f0;
  --ink-brown: #5b4b3a;
  --ink-brown-soft: #756451;

  /* Champagne gold */
  --gold: #b89b65;
  --gold-light: #d6c092;

  /* Very subtle warm rose accent */
  --rose: #b99b91;
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Noto Naskh Arabic', serif;
  background: #f8f6f0;
  color: #3d2020;
  overscroll-behavior: none;
}

/* ══════════════════════════════════════════════════
   SCROLL CONTAINER (replaces envelope-section + #wedding-content)
══════════════════════════════════════════════════ */
.wedding-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wedding-scroll-container::-webkit-scrollbar {
  display: none;
}
/* Scroll is blocked until the intro video ends */
.wedding-scroll-container.locked{
  overflow-y:hidden;
  touch-action:none;
  overscroll-behavior:none;
}
/* ══════════════════════════════════════════════════
   SCENE / VIDEO HERO
══════════════════════════════════════════════════ */
.scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.scene,
.w-section{
  scroll-snap-stop: always;
}
.film {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ivory);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
/* ══════════════════════════════════════════════════
   VEIL (loading screen + invisible tap-to-play)
══════════════════════════════════════════════════ */
.veil {
  position: absolute;
  inset: 0;
  background: var(--ivory);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease;
  pointer-events: auto;  /* always clickable */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ── Loading spinner (visible until video starts playing) ── */
.veil-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 1;
  transition: opacity .4s ease;
}

/* Hide spinner when video is ready (loaded) OR playing */
.scene.is-ready .veil-spinner,
.scene.is-playing .veil-spinner {
  opacity: 0;
  pointer-events: none;
}

/* When ready: veil transparent, still clickable for play */
.scene.is-ready:not(.is-playing):not(.is-finished) .veil {
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(91,75,58,.10);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: veilSpin 1s linear infinite;   /* ✅ rotates continuously */
}

@keyframes veilSpin {
  to { transform: rotate(360deg); }
}

/* Keep the gentle pulse for extra visual feedback */
.scene:not(.is-ready):not(.is-playing):not(.is-finished) .veil-spinner {
  animation: pulseHint 2s ease-in-out infinite;
}

.spinner-text {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 14px;
  color: var(--ink-brown);
  opacity: 0.7;
}



/* ── Veil visibility: only hide when video is playing or finished ── */
.scene.is-playing .veil {
  opacity: 0;
  pointer-events: none;
}

.scene.is-finished .veil {
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}

/* Optional: subtle pulse hint after 3 seconds (mobile users might wonder what to do) */
.scene:not(.is-playing):not(.is-finished) .veil-spinner {
  animation: pulseHint 2s ease-in-out infinite;
}
@keyframes pulseHint {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner-ring { animation: none !important; }
  .scene:not(.is-playing):not(.is-finished) .veil-spinner { animation: none !important; }
}

/* ══════════════════════════════════════════════════
   TAP HINT — "اضغط لفتح الدعوة" over the poster
   (dusty-rose like the wax seal, Aref Ruqaa calligraphy)
══════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════
   TAP HINT — static, Amiri, positioned higher
══════════════════════════════════════════════════ */
.tap-hint{
  position:absolute;
   bottom:6%;                 /* ← moved higher (was 6.5%) */
  left:0; right:0;
  z-index:3;
  text-align:center;
  font-family:'Amiri', serif;   /* ← new font */
  font-weight:700;
  font-size:clamp(16px, 4.8vw, 22px);
  color:var(--gold);                /* champagne gold = palace railings */
  letter-spacing:.02em;
  opacity:0;
  transition:opacity .8s ease .4s;   /* simple fade only */
  pointer-events:none;
}

/* Visible when loaded & waiting for the click */
.scene.is-ready:not(.is-playing):not(.is-finished) .tap-hint{
  opacity:1;
}

/* Disappears when the user clicks / video plays */
.scene.is-playing .tap-hint,
.scene.is-finished .tap-hint{
  opacity:0;
  transition:opacity .35s ease;
}

/* ══════════════════════════════════════════════════
   LUXURY PALACE INVITATION OVERLAY
   Ivory Marble + Champagne Gold
══════════════════════════════════════════════════ */

.invite {
  position: absolute;

  /* Slightly more space than before */
  top: 7%;
  bottom: 6%;
  left: 8%;
  right: 8%;

  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  text-align: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity .5s ease;
}


/* ── Visible after video finishes ── */

.scene.is-finished .invite {
  opacity: 1;
  pointer-events: auto;
}


/* ── No white glow behind the text ──
   Removed so the letters stay one flat solid color.
*/

.invite::before {
  content: "";

  position: absolute;

  top: -3%;
  bottom: -3%;
  left: -4%;
  right: -4%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, .70) 0%,    /* was .45 → denser center */
      rgba(255, 255, 255, .45) 45%,   /* was .22 → denser middle */
      transparent 75%
    );

  pointer-events: none;

  z-index: -1;
}


/* ── Children animation ── */

.invite > * {
  opacity: 0;
  transform: translateY(14px);

  width: 100%;
}


/* ── Basmala ── */

.invite.is-visible .basmala {
  animation-delay: .05s;
}


/* ── Existing animation sequence ── */

.scene.is-finished .invite.is-visible > * {
  animation-name: riseIn;

  animation-duration: .85s;

  animation-timing-function:
    cubic-bezier(.16, .8, .24, 1);

  animation-fill-mode: forwards;
}


@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Animation timing ── */

.invite.is-visible .basmala      {
  animation-delay: .05s;
}

.invite.is-visible .verse        {
  animation-delay: .22s;
}

.invite.is-visible .divider-1    {
  animation-delay: .55s;
}

.invite.is-visible .eyebrow      {
  animation-delay: .70s;
}

.invite.is-visible .families     {
  animation-delay: .90s;
}

.invite.is-visible .invite-line  {
  animation-delay: 1.25s;
}

.invite.is-visible .divider-2    {
  animation-delay: 1.50s;
}

.invite.is-visible .couple-names {
  animation-delay: 1.75s;
  animation-duration: 1.1s;
}

.invite.is-visible .divider-3    {
  animation-delay: 2.25s;
}

.invite.is-visible .scroll-hint  {
  animation-delay: 2.45s;
}


/* ══════════════════════════════════════════════════
   BASMALA
══════════════════════════════════════════════════ */

.basmala {
  margin: 0;

  font-family: 'Amiri', serif;

  font-weight: 400;

  font-size: clamp(
    19px,
    5vw,
    26px
  );

  line-height: 1.5;

  color: #957236;   /* was: var(--gold) */

  letter-spacing: .01em;
}


/* ══════════════════════════════════════════════════
   QURAN VERSE
══════════════════════════════════════════════════ */

.verse {
  margin: 0;

  font-family: 'Amiri', serif;

  font-weight: 700;

  font-size: clamp(
    14px,
    3.9vw,
    19px
  );

  line-height: 1.9;

  color: var(--ink-brown);
}


/* Quran decorative brackets */

.verse .ornament {
  color: #8a6d3f;

  font-size: .95em;

  margin: 0 .2em;
}


/* ══════════════════════════════════════════════════
   ORNAMENTAL DIVIDERS
══════════════════════════════════════════════════ */

.swirl {
  width: 56%;

  max-width: 180px;

  height: 14px;

  color: var(--gold);

  opacity: .85;
}


.swirl svg {
  width: 100%;
  height: 100%;

  display: block;
}


/* ══════════════════════════════════════════════════
   EYEBROW
══════════════════════════════════════════════════ */

.eyebrow {
  margin: 0;

  font-family: 'Amiri', serif;

  font-size: clamp(
    17px,
    4vw,
    20px
  );

  font-weight:700;

  color: var(--gold);

  letter-spacing: .02em;
}


/* ══════════════════════════════════════════════════
   FAMILY NAMES
══════════════════════════════════════════════════ */

.families {
  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  column-gap: 10px;
}


/* Family column */

.family-col {
  display: flex;

  flex-direction: column;

  gap: 1px;
}


/* السيد / السيدة */

.family-col .title {
  margin: 0;

  font-family: 'Amiri', serif;

   font-size: clamp(
    17px,
    4vw,
    20px
  );

  font-weight: 700;

  letter-spacing: .03em;

  color: var(--gold);
}


/* Second title */

.family-col .title.second {
  margin-top: 6px;
}


/* Parent names */

.family-col .name {
  margin: 1px 0 0;

  font-family: 'Amiri', serif;

  font-weight: 700;

  font-size: clamp(
    16px,
    4.4vw,
    21px
  );

  color: var(--ink-brown);
}


/* ══════════════════════════════════════════════════
   FAMILY CENTER DIVIDER
══════════════════════════════════════════════════ */

.family-divider {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;

  padding: 0 4px;
}


.family-divider .tick {
  width: 1px;

  height: 20px;

  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--gold)
    );
}


.family-divider .tick.down {
  background:
    linear-gradient(
      to top,
      transparent,
      var(--gold)
    );
}


.family-divider .waw {
  font-family: 'Amiri', serif;

  font-weight: 400;

  font-size: clamp(
    18px,
    4.6vw,
    22px
  );

  color: var(--gold);
}


/* ══════════════════════════════════════════════════
   INVITATION LINE
══════════════════════════════════════════════════ */

.invite-line {
  margin: 0;

  font-family: 'Amiri', serif;

  font-size: clamp(
    15px,
    4vw,
    19px
  );

  line-height: 1.7;

  font-weight: 400;

  color: var(--ink-brown);
}


/* ══════════════════════════════════════════════════
   COUPLE NAMES
══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   COUPLE NAMES — cinematic entrance + golden shine
══════════════════════════════════════════════════ */

.couple-names {
  display: flex;

  flex-direction: row;

  align-items: center;

  justify-content: center;

  direction: rtl;

  gap: clamp(
    10px,
    3vw,
    20px
  );
}


/* Main names — hidden until their own animation plays */

.couple-name {
  font-family: 'Aref Ruqaa', serif;

  font-weight: 700;

  font-size: clamp(
    46px,
    14vw,
    70px
  );

  line-height: 1.05;

  color: var(--gold);

  opacity: 0;   /* hidden until entrance */
}


/* Golden shine layer (flat gold at rest, light sweep when animating) */

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .couple-name {
    background: linear-gradient(90deg,
      var(--gold)   15%,
      #f6e7bd       25%,   /* the light band */
      var(--gold)   35%,
      var(--gold)  100%);
    background-size: 200% auto;
    background-position: 100% center;   /* resting = flat gold */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}


/* Groom (right side) — glides in from the right, blur → sharp */

.scene.is-finished .invite.is-visible .couple-name:first-child {
  animation:
    nameFromRight 1s cubic-bezier(.16, .8, .24, 1) 1.95s both,
    goldShimmer 4s ease-in-out 3.5s infinite;
}


/* Bride (left side) — glides in from the left */

.scene.is-finished .invite.is-visible .couple-name:last-child {
  animation:
    nameFromLeft 1s cubic-bezier(.16, .8, .24, 1) 2.15s both,
    goldShimmer 4s ease-in-out 3.7s infinite;
}


/* The "و" — pops in between them with a little spin */

.amp {
  font-family: 'Amiri', serif;

  font-size: clamp(
    23px,
    5.5vw,
    30px
  );

  font-weight: 400;

  color: var(--ink-brown-soft);

  margin: 0;

  opacity: 0;   /* hidden until pop */
}

.scene.is-finished .invite.is-visible .amp {
  animation: ampPop .8s cubic-bezier(.34, 1.56, .64, 1) 2.5s both;
}


/* ── Keyframes ── */

@keyframes nameFromRight {
  0%   { opacity: 0; transform: translateX(45px) scale(1.12); filter: blur(7px); }
  100% { opacity: 1; transform: translateX(0)    scale(1);    filter: blur(0); }
}

@keyframes nameFromLeft {
  0%   { opacity: 0; transform: translateX(-45px) scale(1.12); filter: blur(7px); }
  100% { opacity: 1; transform: translateX(0)     scale(1);    filter: blur(0); }
}

@keyframes ampPop {
  0%   { opacity: 0; transform: scale(0) rotate(-160deg); }
  70%  { opacity: 1; transform: scale(1.25) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* One light sweep per cycle, flat gold the rest of the time */
@keyframes goldShimmer {
  0%   { background-position: 100% center; }
  50%  { background-position: -100% center; }
  100% { background-position: -100% center; }
}


/* Respect reduced-motion: show names instantly, no animation */
@media (prefers-reduced-motion: reduce) {
  .couple-name,
  .amp {
    animation: none !important;
    opacity: 1 !important;
  }
}


/* Main names */

.couple-name {
  font-family: 'Aref Ruqaa', serif;

  font-weight: 700;

  font-size: clamp(
    46px,
    14vw,
    70px
  );

  line-height: 1.05;

  color: var(--gold);
}


/* "و" */

.amp {
  font-family: 'Amiri', serif;

  font-size: clamp(
    23px,
    5.5vw,
    30px
  );

  font-weight: 400;

  color: var(--ink-brown-soft);

  margin: 0;
}


/* ══════════════════════════════════════════════════
   SCROLL HINT
══════════════════════════════════════════════════ */

.scroll-hint {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;
}


.scroll-hint span {
  font-family: 'Amiri', serif;

  font-size: clamp(
    15px,
    3.6vw,
    18px
  );

  letter-spacing: .04em;

  color: var(--ink-brown-soft);

  opacity: .8;
}


.chevrons {
  display: flex;

  flex-direction: column;

  align-items: center;

  color: var(--gold);
}


.chevrons svg {
  width: 18px;

  height: 10px;

  display: block;

  margin-top: -3px;

  animation:
    bob 1.7s ease-in-out infinite;
}


.chevrons svg:nth-child(2) {
  animation-delay: .15s;
}


@keyframes bob {

  0%, 100% {
    transform: translateY(0);
    opacity: .4;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}


/* ══════════════════════════════════════════════════
   WEDDING SECTIONS (inside .wedding-scroll-container)
══════════════════════════════════════════════════ */
.w-section {
  min-height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* ── seam 1↔2 : bottom of page 1 (scene) ── */
.scene::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:110px;
  background:linear-gradient(to bottom,
    rgba(245,236,223,0)   0%,
    rgba(245,236,223,.6)  55%,
    rgba(245,236,223,.4)   100%);
  pointer-events:none;
  z-index:1;
}

/* ── seam 1↔2 : top of page 2 (countdown) ── */
#countdown-section::before{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height:110px;
  background:linear-gradient(to top,
    rgba(245,236,223,0)   0%,
    rgba(245,236,223,.4)  55%,
    rgba(245,236,223,.4)   100%);
  pointer-events:none;
  z-index:1;
}

/* ── PAGE 2 COUNTDOWN (themed to the champagne arch background) ── */
#countdown-section{background:#f6efe3;position:relative;overflow:hidden;}

#countdown-bg-image{
  position:absolute;inset:0;width:100%;height:100%;
  background-size:cover;background-position:center;z-index:0;
}



.countdown-content{position:relative;z-index:2;width:100%;padding:60px 24px 90px;display:flex;flex-direction:column;align-items:center;}

/* Title → warm bronze (candelabra tone) */
.section-title{
  font-family:'Aref Ruqaa',serif;
  font-size:clamp(24px,7vw,32px);
  color:#6b5233;
  margin-bottom:6px;
  text-align:center;
  line-height:1.25;
}
/* Subtitle → candelabra gold */
.section-subtitle{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.5vw,15px);
  color:#b8905a;
  letter-spacing:.08em;
  margin-bottom:32px;
  font-weight:600;
}

.countdown-grid{display:flex;gap:10px;justify-content:center;margin-bottom:36px;}
.cd-unit{display:flex;flex-direction:column;align-items:center;gap:4px;}

/* Boxes → warm champagne glass with gold border */
.cd-box{
  width:clamp(68px,20vw,82px);
  height:clamp(68px,20vw,82px);
  background:rgba(250,245,236,.9);
  border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(120,90,40,.18);
  border:1px solid rgba(193,154,82,.55);
  position:relative;overflow:hidden;
}
.cd-box::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.55) 0%,transparent 60%);
}
/* bottom bar → champagne↔gold gradient */
.cd-box::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,#e4c98f,#bd964f,#e4c98f);
}
.cd-number{
  font-family:'Amiri',serif;
  font-size:clamp(28px,8vw,36px);
  font-weight:700;
  color:#5f4828;
  line-height:1;position:relative;z-index:1;
}
.cd-number.flip{animation:flipNum .4s ease;}
.cd-label{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.5vw,15px);
  color:#8a7048;
  font-weight:600;margin-top:6px;
}

/* ── Heart clock re-themed (champagne / gold / bronze) ── */
#hcTicks line{stroke:#d8b878;}
#hcDots circle{fill:#bd964f;}
#hcMHand{stroke:#bd964f;}
#hcHHand{stroke:#6b5233;}
#hcSHand{stroke:#a97e3f;}
#heartClockSvg > circle:first-of-type{fill:#6b5233;}
#heartClockSvg > circle:last-of-type{fill:#faf5ec;}

.heart-clock-container{position:relative;width:clamp(240px,70vw,300px);height:clamp(240px,70vw,300px);margin:0 auto;}
.heart-svg{position:relative;width:100%;height:100%;overflow:visible;}

/* Scroll hint → gold arrows, warm brown text */
.scroll-hint-2{position:absolute;bottom:28px;left:0;right:0;z-index:10;display:flex;flex-direction:column;align-items:center;gap:6px;}
.scroll-hint-2 span{font-family:'Jost','Noto Naskh Arabic',serif;font-size:11px;letter-spacing:.18em;color:#8a7048;}
.scroll-arrow-2{
  width:20px;height:20px;
  border-right:1.5px solid #bd964f;
  border-bottom:1.5px solid #bd964f;
  transform:rotate(45deg);
  animation:bounce 1.8s ease infinite;
}
/* ── seam 2↔3 : bottom of page 2 (countdown) ── */
#countdown-section::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:110px;
  background:linear-gradient(to bottom,
    rgba(245,236,223,0)   0%,
    rgba(245,236,223,.6)  55%,
    rgba(245,236,223,.8)   100%);
  pointer-events:none;
  z-index:1;
}

/* ── seam 2↔3 : top of page 3 (program) ── */
#program-section::before{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height:110px;
  background:linear-gradient(to top,
    rgba(245,236,223,0)   0%,
    rgba(245,236,223,.6)  55%,
    rgba(245,236,223,.2)   100%);
  pointer-events:none;
  z-index:1;
}
/* ── PAGE 3 PROGRAMME (themed to the champagne arch background) ── */
#program-section{
  background:#f5ecdf;   /* wall cream – fills the area below the image */
  position:relative;
  min-height:100%;
  justify-content:flex-start;
  padding-bottom:60px;
}

/* ── FIX: full width visible, no side cropping ── */
.program-bg{position:absolute;inset:0;z-index:0;overflow:hidden;}
.program-bg img{
  position:absolute;
  top:0;left:0;
  width:100%;          /* ← full width always shown */
  height:auto;         /* ← keeps ratio → sides never cut */
  display:block;
  /* fade the image bottom (floor) into the section cream */
  -webkit-mask-image:linear-gradient(to bottom,#000 72%,transparent 99%);
  mask-image:linear-gradient(to bottom,#000 72%,transparent 99%);
}

.program-content{position:relative;z-index:2;width:100%;padding:52px 0 40px;}
.program-header{text-align:center;margin-bottom:44px;padding:0 24px;}

/* Title → warm bronze, flat single color (no white shadow) */
.program-title-script{
  font-family:'Aref Ruqaa',serif;
  font-size:clamp(24px,7vw,32px);
  color:#6b5233;
  font-weight:700;
  line-height:1.25;
  margin-bottom:12px;
}
.program-ornament{margin:14px auto 0;width:60px;height:1px;background:#bd964f;}

/* ── Timeline ─ */
.timeline{position:relative;max-width:360px;margin:0 auto;padding:0 8px;}
.timeline::before{
  content:'';
  position:absolute;left:50%;top:0;bottom:0;width:1px;
  background:linear-gradient(to bottom,
    rgba(189,150,79,0) 0%,
    rgba(189,150,79,.55) 8%,
    rgba(189,150,79,.55) 92%,
    rgba(189,150,79,0) 100%);
  transform:translateX(-50%);
}
.timeline-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);
  align-items:start;
  margin-bottom:50px;
  opacity:0;transform:translateY(20px);
  transition:opacity .6s ease,transform .6s ease;
}
.timeline-item.visible{opacity:1;transform:translateY(0);}
.tl-left-cell{text-align:right;padding-right:10px;}
.tl-right-cell{text-align:left;padding-left:10px;}
.tl-dot-wrapper{display:flex;justify-content:center;align-items:center;z-index:2;}
.tl-dot{
  width:10px;height:10px;border-radius:50%;
  background:#faf5ec;
  border:2px solid #bd964f;
  box-shadow:0 0 0 3px rgba(189,150,79,.18);
  flex-shrink:0;
}

/* Time & date */
.tl-time{
  display:block;               /* ← own line + obeys text-align */
  font-family:'Jost',sans-serif;
  font-size:clamp(14px,4vw,17px);
  font-weight:500;
  color:#5f4828;
  letter-spacing:.05em;
  line-height:1;
}
.tl-ampm{
  font-family:'Jost',sans-serif;
  font-size:clamp(10px,3vw,12px);
  color:#b8905a;
  font-weight:500;
  letter-spacing:.08em;
  margin-inline-start:6px;     /* space between 16:30 and PM */
}
.tl-date{
  font-family:'Jost',sans-serif;
  font-size:clamp(10px,2.5vw,12px);
  color:#b8905a;
  letter-spacing:.15em;
  margin-bottom:3px;
  display:block;
  font-weight:500;
}

/* Event & location → flat warm brown (no white shadow) */
.tl-event{
  font-family:'Amiri',serif;
  font-size:clamp(18px,5vw,24px);
  font-weight:700;
  color:#5f4828;
  line-height:1.2;
  margin-top:3px;
}
.tl-location{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.5vw,15px);
  color:#8a7048;
  font-weight:600;
  line-height:1.4;
  margin-top:4px;
}
.tl-icon{width:clamp(48px,13vw,64px);height:clamp(48px,13vw,64px);margin-bottom:4px;}

/* Location button → champagne-gold pill */
.tl-location-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  margin-top:8px;margin-left:auto;
  background:rgba(193,154,82,.12);
  border:1px solid rgba(193,154,82,.45);
  border-radius:20px;
  padding:6px 14px;
  font-family:'Noto Naskh Arabic',serif;
  font-size:clamp(12px,3.2vw,14px);
  font-weight:700;
  color:#8a7048;
  cursor:pointer;
  transition:all .2s ease;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(120,90,40,.10);
}
.tl-location-btn:active{background:rgba(193,154,82,.22);transform:scale(.96);}
.tl-location-btn .loc-icon{width:16px;height:16px;object-fit:contain;flex-shrink:0;}
/* ── PAGE 4 DRESS CODE (themed to the champagne arch background) ── */
#dresscode-section {
  position: relative;
  overflow: hidden;
  background: #F5ECDF;   /* ← same solid color as #closing-section */
}
.dresscode-bg {
  display: none;   /* ← background image completely removed */
}
/* background image → UNTOUCHED (original behavior restored) */
.dresscode-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.dresscode-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 56px 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dresscode-title {
  font-family: 'Great Vibes', cursive;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 40px);
  color: #6b5233;   /* warm bronze */
  margin-bottom: 14px;
}
.dresscode-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.dresscode-ornament .line { width: 50px; height: 1px; background: #bd964f; }
.dresscode-ornament .diamond { width: 6px; height: 6px; background: #bd964f; transform: rotate(45deg); }

/* ── dress illustration → reduced ── */
.dresscode-illustration {
  width: 100%;
  max-width: 200px;   /* was 280px */
  height: auto;
  margin-bottom: 30px;
}
.dresscode-intro {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(14px, 4vw, 16px);
  color: #5f4828;
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 36px;
}
/* ── extra intro image → reduced too ── */
.dresscode-intro-image {
  width: 100%;
  max-width: 200px;   /* was 260px */
  height: auto;
  object-fit: contain;
  margin-bottom: 32px;
}
.dresscode-group { margin-bottom: 34px; width: 100%; max-width: 320px; }
.dresscode-group-title {
  font-family: 'Great Vibes', cursive;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 6vw, 28px);
  color: #a97e3f;   /* deep candelabra gold */
  margin-bottom: 10px;
}
.dresscode-group-text {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(13px, 3.6vw, 15px);
  color: #8a7048;
  line-height: 1.7;
  margin-bottom: 18px;
}
.dresscode-swatches { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.dresscode-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(120, 90, 40, 0.20);
  border: 2px solid rgba(255, 255, 255, 0.9);
}
/* ── CLOSING (themed like page 1) ── */
#closing-section{
  min-height:40%;
  background:#F5ECDF;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:40px 28px;gap:10px;
  scroll-snap-align:start;
}
.closing-names{
  font-family:'Aref Ruqaa',serif;
  font-size:clamp(30px,10vw,48px);
  color:var(--ink-brown-soft);
  text-align:center;
  line-height:1.2;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.closing-tagline{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.2vw,15px);
  color:var(--gold);
  text-align:center;
}
.closing-shimmer{
  width:80px;height:1px;
  background:linear-gradient(90deg,transparent,var(--rose),transparent);
  margin:4px auto;
  opacity:.7;
}
/* ── FOOTER (warm bronze / candelabra gold on cream) ── */
.site-footer{
  background:linear-gradient(135deg,#3a2a1a 0%,#5b442a 100%);   /* deep warm bronze */
  padding:40px 24px 32px;
  text-align:center;
  border-top:1px solid rgba(189,150,79,.35);
  margin-top:auto;
}
.footer-content{max-width:400px;margin:0 auto;}
.footer-brand{
  margin-bottom:24px;
  display:flex;align-items:center;justify-content:center;
  gap:8px;flex-wrap:wrap;
}
.footer-text{
  font-family:'Noto Naskh Arabic',serif;
  font-size:14px;
  color:rgba(250,245,236,.72);   /* warm cream */
}
.footer-brand-link{
  font-family:'Playfair Display',serif;
  font-size:18px;font-weight:700;
  color:#bd964f;   /* candelabra gold */
  text-decoration:none;letter-spacing:.5px;
  transition:all .3s ease;
}
.footer-brand-link:hover{opacity:.85;transform:scale(1.05);}
.footer-social{display:flex;justify-content:center;gap:16px;}
.social-link{
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(189,150,79,.12);
  border:1px solid rgba(189,150,79,.40);
  border-radius:50%;
  color:#bd964f;
  transition:all .3s cubic-bezier(.4,0,.2,1);
  text-decoration:none;
}
.social-link:hover{
  background:rgba(189,150,79,.28);
  transform:translateY(-4px);
  box-shadow:0 6px 16px rgba(189,150,79,.30);
}
.social-link svg{width:20px;height:20px;fill:currentColor;}

/* ── MAP MODAL (wall cream sheet, candelabra gold accents) ── */
#map-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:flex-end;justify-content:center;}
#map-modal.open{display:flex;}
.map-backdrop{
  position:absolute;inset:0;
  background:rgba(60,42,26,.45);   /* warm bronze tint */
  backdrop-filter:blur(4px);
}
.map-sheet{
  position:relative;z-index:1;
  width:100%;max-width:480px;
  background:#f5ecdf;   /* wall cream (matches closing/dresscode) */
  border-radius:28px 28px 0 0;
  padding:20px 20px 32px;
  animation:slideUp .4s cubic-bezier(.34,1.4,.64,1);
  max-height:90svh;overflow:hidden;
  display:flex;flex-direction:column;gap:12px;
  border-top:1px solid rgba(189,150,79,.45);
}
.map-sheet-handle{
  width:40px;height:4px;border-radius:2px;
  background:rgba(189,150,79,.60);   /* gold */
  margin:0 auto;
}
.map-sheet-title{
  font-family:'Aref Ruqaa',serif;
  font-size:clamp(18px,5vw,24px);
  color:#6b5233;   /* warm bronze */
  text-align:center;
  line-height:1.3;
}
.map-sheet-address{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.2vw,14px);
  color:#8a7048;   /* soft warm brown */
  opacity:.9;
  text-align:center;
}
#leaflet-map{
  width:100%;height:260px;border-radius:16px;
  z-index:1;flex-shrink:0;
  border:1px solid rgba(189,150,79,.40);
}
.map-no-coords{
  width:100%;height:180px;border-radius:16px;
  background:rgba(189,150,79,.14);   /* gold tint */
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;flex-shrink:0;
}
.map-no-coords .pin{font-size:36px;}
.map-no-coords p{
  font-family:'Amiri',serif;
  font-size:13px;color:#a97e3f;   /* deep candelabra gold (was rose) */
  text-align:center;padding:0 20px;line-height:1.6;
}
.open-maps-btn{
  display:block;width:100%;padding:15px;
  background:linear-gradient(135deg,#a97e3f 0%,#bd964f 50%,#e4c98f 100%);   /* gold gradient */
  color:#ffffff;border:none;border-radius:16px;
  font-family:'Noto Naskh Arabic',serif;
  font-size:clamp(13px,3.5vw,16px);font-weight:700;
  cursor:pointer;flex-shrink:0;
  box-shadow:0 4px 12px rgba(189,150,79,.38);
  transition:opacity .2s;
}
.open-maps-btn:active{opacity:.9;}
.map-close-btn{
  position:absolute;top:20px;left:20px;
  width:32px;height:32px;border-radius:50%;
  background:rgba(189,150,79,.16);
  border:none;cursor:pointer;font-size:16px;
  color:#8a7048;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;
}
.map-close-btn:active{background:rgba(189,150,79,.32);}
.leaflet-container{font-family:sans-serif;}

/* ══════════════════════════════════════════════════
   DESKTOP PHONE FRAME
══════════════════════════════════════════════════ */
@media (min-width: 900px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, #E6E0D4 0%, #DDD7CB 60%, #D2CCBF 100%);
  }
  .wedding-scroll-container {
    width: 330px;
    max-width: calc(100vw - 60px);
    height: calc(100vh - 60px);
    border-radius: 36px;
    box-shadow:
      0 40px 100px rgba(0,0,0,.45),
      0 0 0 10px rgba(0,0,0,.12);
  }
  .scene {
    min-height: 0;
  }
  .map-sheet {
    max-width: 330px;
  }
}