:root{
  --ivory:#F7F2E8;
  --ivory-deep:#EFE7D8;
  --ink:#33402F;
  --sage:#8A9A7B;
  --rose:#C4808A;
  --rose-deep:#A85D68;
  --gold:#B08D57;
  --blush:#F0DDD8;
  --font-display:'Amiri',serif;
  --radius:16px;            /* corner radius shared by every box after the hero (countdown boxes set it) */
  --font-script:'Pinyon Script',cursive;
  --font-ui:'Jost',sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--ivory)}
body{
  background:var(--ivory);
  color:var(--ink);
  font-family:var(--font-display);
  font-size:19px;
  line-height:1.6;
  overflow-x:hidden;
}
h1,h2,h3{font-weight:500}

/* ============ ENVELOPE INTRO OVERLAY ============ */
#envelope{
  position:fixed;inset:0;z-index:100;
  background:var(--ivory);
  overflow:hidden;
  transition:opacity .9s ease,visibility .9s ease;
}
#envelope.opened{opacity:0;visibility:hidden}
/* The video box has the video's own shape (1440x2508). Portrait screens: it fills the screen (cover).
   Landscape screens: it fits inside the screen (contain, off-white on the sides). The seal hotspot lives
   inside this box, so it always sits exactly on the wax seal at any screen size. */
.env-video-wrap{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  aspect-ratio:1440/2508;
  width:max(100vw,calc(100vh*.5742));width:max(100vw,calc(100svh*.5742));
}
@media (min-aspect-ratio:1/1){
  .env-video-wrap{width:min(100vw,calc(100vh*.5742));width:min(100vw,calc(100svh*.5742))}
}
.env-video{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;background:var(--ivory)}
.env-seal-hit{
  position:absolute;left:50%;top:49.8%;transform:translate(-50%,-50%);
  width:30%;aspect-ratio:1;border-radius:50%;z-index:2;
  border:none;background:transparent;cursor:pointer;padding:0;
}
.env-seal-ring{
  position:absolute;inset:6%;border-radius:50%;
  border:1.5px solid rgba(176,141,87,.6);
  opacity:0;
  animation:sealRing 2.6s ease-in-out infinite;
}
@keyframes sealRing{
  0%,100%{transform:scale(.9);opacity:0}
  50%{transform:scale(1.08);opacity:.85}
}
#envelope.opening .env-seal-hit{pointer-events:none}
/* الحرفين اللي على الختم في الفيديو (A&J) بيتغطّوا بضبابية خفيفة مكانهم بالظبط،
   وفوقهم حرفَي العروسين بلون الدهب زي الختم الأصلي */
.env-seal-mono{
  position:absolute;left:50.9%;top:50.9%;transform:translate(-50%,-50%);
  width:27%;aspect-ratio:1;z-index:2;pointer-events:none;
  display:flex;align-items:center;justify-content:center;container-type:size;
  border-radius:50%;
  -webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);
  -webkit-mask-image:radial-gradient(circle,#000 50%,rgba(0,0,0,.92) 62%,rgba(0,0,0,0) 79%);
  mask-image:radial-gradient(circle,#000 50%,rgba(0,0,0,.92) 62%,rgba(0,0,0,0) 79%);
}
/* تلوين الشمع تاني بعد الضبابية عشان المنطقة ما تبانش فاتحة */
.env-seal-mono::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 46% 36%,rgba(163,87,94,.62),rgba(118,55,62,.72) 58%,rgba(104,48,55,0) 88%);
}
.env-seal-mono span{
  position:relative;z-index:1;
  font-family:'Pinyon Script','Aref Ruqaa',cursive;font-size:30cqw;line-height:1;
  color:#EFCB86;
  text-shadow:0 1px 2px rgba(30,5,10,.8),0 0 7px rgba(255,214,140,.22),0 -1px 1px rgba(255,248,225,.3);
  transform:translateY(-5%);
}
.env-tap{
  position:absolute;left:50%;bottom:44px;transform:translateX(-50%);z-index:2;
  font-family:var(--font-ui);font-size:12px;letter-spacing:.3em;text-transform:uppercase;color:var(--rose-deep);
  transition:opacity .3s;
}
#envelope.opening .env-tap{opacity:.35}
.env-names{font-family:var(--font-script);font-size:clamp(44px,9vw,60px);color:var(--ink);line-height:1.15}
.wax-seal{
  width:92px;height:92px;
  border-radius:47% 53% 51% 49%/50% 48% 52% 50%;
  margin:30px auto 14px;
  background:radial-gradient(circle at 34% 28%,#DBA0A9,var(--rose-deep) 52%,#7E3B46 88%);
  box-shadow:0 6px 16px rgba(126,59,70,.45),inset 0 -5px 10px rgba(0,0,0,.22),inset 0 4px 7px rgba(255,255,255,.3);
  display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;
  font-family:var(--font-script);font-size:34px;color:#F8ECE4;
  text-shadow:0 -1px 1px rgba(0,0,0,.35),0 1px 1px rgba(255,255,255,.25);
  animation:sealPulse 2.6s ease-in-out infinite;
}
.wax-seal::before{content:"";position:absolute;inset:9px;border-radius:inherit;border:1.5px solid rgba(248,236,228,.5);box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
.wax-seal::after{
  content:"";position:absolute;top:-60%;left:-40%;width:55%;height:220%;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.35),rgba(255,255,255,0));
  transform:translateX(-10%) rotate(25deg);
  animation:sheen 4s ease-in-out infinite;
  will-change:transform;
}
@keyframes sheen{0%,55%{transform:translateX(-10%) rotate(25deg)}100%{transform:translateX(310%) rotate(25deg)}}
@keyframes sealPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}

/* ============ SHARED SECTION STYLES ============ */
section{padding:110px 24px;position:relative}
.wrap{max-width:760px;margin:0 auto;text-align:center;position:relative;z-index:2}
.eyebrow{
  font-family:var(--font-ui);font-size:11px;letter-spacing:.45em;
  text-transform:uppercase;color:var(--gold);margin-bottom:22px;
}
.section-title{font-size:clamp(28px,5vw,38px)}
.ornament{color:var(--rose);font-size:22px;letter-spacing:.6em;margin:26px 0 0;opacity:.8}
.reveal{opacity:0;transform:translateY(28px);transition:opacity 1s ease,transform 1s ease}
.reveal.in{opacity:1;transform:none}


/* ============ HERO ============ */
#hero{
  position:relative;background:transparent;
  min-height:100vh;min-height:100svh;display:flex;align-items:center;justify-content:center;
  padding:56px 20px 78px;
}
/* one full-screen video behind the first section; later sections have solid backgrounds and slide over it */
.hero-video-bg{position:fixed;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;display:block}
.hero-video-bg{transform-origin:50% 0;transform:scale(1.035)}   /* pushes the video's bottom-right watermark off-screen */
/* landscape screens (laptop): the portrait video is shown a little wider than tall (zoomed out), centred with crisp
   edges on a flat, matte off-white (#F7F2E8) - no glow, no blur, no decoration on the sides */
@media (min-aspect-ratio:1/1){
  .hero-video-bg{
    inset:0 auto 0 50%;transform-origin:50% 50%;transform:translateX(-50%);
    width:min(100vw,112vh);width:min(100vw,112svh);
  }
  /* '#hero' in front: the base .hero-light rule (inset:0) comes later in the file and would otherwise win - in RTL that shoved the light ~300px left */
  #hero .hero-light{inset:0 auto 0 50%;transform:translateX(-50%);width:min(100vw,112vh);width:min(100vw,112svh)}
}
#petals{transition:opacity .6s ease;position:fixed;top:0;left:50%;transform:translateX(-50%);width:min(100%,900px);height:100%;z-index:1;pointer-events:none}


/* ============ SECTION 1 SEQUENCE: light -> bismillah -> ayah (10s) -> invitation ============ */
.hero-light{
  position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 2.4s ease;
  background:radial-gradient(ellipse 88% 52% at 50% 50%,rgba(247,242,232,.9) 0%,rgba(247,242,232,.68) 50%,rgba(247,242,232,.16) 84%,rgba(247,242,232,0) 100%);
}
#hero.s-light .hero-light{opacity:1}
.intro{
  position:relative;z-index:2;container-type:inline-size;
  /* on short screens the column narrows (text scales with it) so ayah / invitation stay inside one screen */
  width:max(300px,min(440px,100%,calc((100vh - 140px)*.62)));
  width:max(300px,min(440px,100%,calc((100svh - 140px)*.62)));
  display:flex;flex-direction:column;align-items:center;
}
.intro-stage{display:grid;width:100%}
.intro-stage>*{grid-area:1/1;min-width:0}

/* ayah: each word fades in (soft blur -> sharp), stays, then the whole block fades out */
.ayah-block{
  align-self:start;position:relative;
  /* bismillah + ayah sit below the chandelier, together. 5.7cqw offsets the re-centring caused by the taller (2-line) invitation */
  top:calc(5vh + 5px + 5.7cqw);top:calc(5svh + 5px + 5.7cqw);
  text-align:center;transition:opacity 1.4s ease,visibility 0s linear 1.4s}
#hero.s-invite .ayah-block{opacity:0;visibility:hidden}
.ayah-text{
  font-family:'Amiri',serif;font-size:6.3cqw;line-height:2.15;color:#2B2418;
  text-shadow:0 0 14px rgba(255,248,230,.95),0 0 30px rgba(255,232,180,.6);
}
.ayah-w{
  display:inline-block;white-space:nowrap;opacity:0;filter:blur(7px);transform:translateY(6px);
  transition:opacity 1s ease var(--d,0s),filter 1s ease var(--d,0s),transform 1s ease var(--d,0s);
}
#hero.s-ayah .ayah-w{opacity:1;filter:none;transform:none}
.ayah-ref{
  margin-top:.9em;font-family:var(--font-ui);font-size:4.1cqw;color:#6B5A3A;
  opacity:0;transition:opacity 1.2s ease;
}
#hero.s-ayah .ayah-ref{opacity:1;transition-delay:5.4s}

/* invitation: hidden until the ayah is gone, then its lines rise in one after another */
.invite-card{visibility:hidden}
#hero.s-invite .invite-card{visibility:visible}
.invite-content>*{opacity:0;transform:translateY(12px);transition:opacity 1.1s ease,transform 1.1s ease}
#hero.s-invite .invite-content>*{opacity:1;transform:none}
.invite-content>:nth-child(2){transition-delay:.15s}
.invite-content>:nth-child(3){transition-delay:.3s}
.invite-content>:nth-child(4){transition-delay:.45s}
.invite-content>:nth-child(5){transition-delay:.6s}
.invite-content>:nth-child(6){transition-delay:.75s}
.invite-content>:nth-child(7){transition-delay:.9s}
/* all sizes are in cqw so the text scales with the column width */
.invite-content{
  display:flex;flex-direction:column;align-items:center;
  padding:0 4%;text-align:center;color:#2B2418;
  font-family:var(--font-display);font-size:5.2cqw;line-height:1.6;
  position:relative;top:calc(10px + 5.7cqw);   /* 10px lower, incl. everything under it (5.7cqw = re-centring offset) */
}
.invite-bismillah{
  display:block;width:62%;height:auto;margin:0 auto 2cqw;      /* ayah sits directly under it */
  opacity:0;transform:translateY(10px) scale(.97);
  transition:opacity 1.8s ease,transform 1.8s ease,filter 2.6s ease;
}
#hero.s-light .invite-bismillah{
  opacity:1;transform:none;
  filter:drop-shadow(0 0 12px rgba(255,238,200,.95)) drop-shadow(0 0 28px rgba(255,220,150,.55));
}
.inv-honor{font-size:1.02em;color:#54462B}
.inv-parents{display:grid;grid-template-columns:1fr 1fr;gap:3cqw;width:100%;margin:3cqw 0 5cqw}
.inv-parent{display:flex;flex-direction:column;align-items:center;line-height:1.5}
.inv-title{font-size:.86em;color:#54462B}
.inv-parent-name{font-family:var(--font-script);font-weight:700;font-size:1.28em;color:#1F1A10;line-height:1.5}
.inv-family{font-size:.86em;color:#54462B}
.inv-invite{font-size:1.02em;font-weight:400;color:#54462B;white-space:nowrap}
.invite-diwani{display:block;color:var(--rose-deep)}
.inv-couple{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:1.5cqw;width:100%;margin:3cqw 0 7cqw}
.inv-person{display:flex;flex-direction:column;align-items:center}
.inv-rel{font-size:.82em;color:#54462B;line-height:1.4}
.inv-name{font-family:var(--font-script);font-weight:700;font-size:1.3em;line-height:1.35;color:#1F1A10;white-space:nowrap}
.inv-and{font-family:var(--font-script);font-size:1.05em;color:var(--rose);padding-bottom:.35em}

/* الكارت بقى فيه العرسان بس بأسمائهم الكاملة: الاسمين فوق بعض في سطرين */
.inv-couple-stacked{display:flex;flex-direction:column;align-items:center;gap:0;margin:2.2cqw 0 4.5cqw;width:100%}
.inv-couple-stacked .inv-person{width:100%}
.inv-couple-stacked .inv-name{white-space:normal;font-size:1.3em;line-height:1.4}
.inv-couple-stacked .inv-and{font-size:1em;line-height:1.1;padding:0;margin:.06em 0}
body[data-lang="ar"] .invite-content .inv-couple-stacked .inv-name{font-size:calc(1.3em*var(--k-name));line-height:1.4}

.scroll-arrow{
  position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:3;
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  color:#fff;filter:drop-shadow(0 1px 4px rgba(0,0,0,.45));
}
.scroll-arrow svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;animation:arrowBob 1.8s ease-in-out infinite}
.scroll-arrow .second{opacity:.5}
@keyframes arrowBob{0%,100%{transform:translateY(-4px);opacity:.6}50%{transform:translateY(5px);opacity:1}}

/* ============ COUNTDOWN ============ */
#countdown{
  color:#F7F2E8;text-align:center;
  background:radial-gradient(ellipse at 50% 0%,rgba(232,200,128,.22),rgba(232,200,128,0) 60%),linear-gradient(165deg,#8E4550 0%,#5E2B35 100%);
}
#countdown .eyebrow{color:#E9CE9B}
.cd-title{font-size:clamp(30px,6vw,44px);font-weight:500;font-style:italic;color:#FBF3E4}
.cd-when{
  font-size:clamp(19px,4.6vw,24px);line-height:1.95;color:#FBF3E4;margin:0 auto 34px;
}
.cd-when::after{content:"";display:block;width:70px;height:1px;background:#E9CE9B;margin:26px auto 0}
body[data-lang="ar"] .cd-when{font-family:'Tajawal',sans-serif;font-weight:500}
.cd-grid{display:flex;justify-content:center;gap:clamp(8px,2.6vw,16px);margin-top:38px}
.cd-unit{display:flex;flex-direction:column;align-items:center;gap:12px}
.cd-box{
  width:clamp(64px,19.5vw,92px);aspect-ratio:1;border-radius:var(--radius);overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 10px 24px rgba(40,15,20,.25),inset 0 1px 0 rgba(255,255,255,.25);
}
.cd-box span{font-family:var(--font-display);font-size:clamp(28px,8.4vw,44px);font-weight:400;line-height:1;color:#FFF8EA;font-variant-numeric:tabular-nums}
.cd-box span.tick{animation:cdTick .35s ease-out}
@keyframes cdTick{from{transform:translateY(-12px);opacity:0}to{transform:none;opacity:1}}
.cd-label{font-family:var(--font-ui);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#E9CE9B}
.cd-done{font-family:var(--font-script);font-size:clamp(28px,6vw,40px);margin-top:34px;color:#FBF3E4}
body[data-lang="ar"] .cd-title{font-family:var(--font-script);font-weight:700;font-style:normal;line-height:1.5}
body[data-lang="ar"] .cd-label{font-size:16px}
body[data-lang="ar"] .cd-box span{font-size:clamp(30px,9vw,48px);font-weight:700}
body[data-lang="ar"] .cd-done{font-weight:700}

/* ============ SCHEDULE ============ */
#schedule{background:var(--ivory)}
.timeline{margin-top:46px;display:grid;gap:0;text-align:start;max-width:430px;margin-inline:auto}
.tl-item{display:grid;grid-template-columns:74px 30px 1fr;align-items:center;padding:17px 0}
.tl-time{font-family:var(--font-ui);font-size:14px;letter-spacing:.14em;color:var(--gold);text-align:end}
.tl-item-notime .tl-time{visibility:hidden}
.tl-dot{position:relative;height:100%;min-height:52px}
.tl-dot::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(176,141,87,.4);transform:translateX(-50%)}
.tl-dot::after{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;border-radius:50%;background:var(--rose);transform:translate(-50%,-50%);box-shadow:0 0 0 4px var(--ivory),0 0 0 5px rgba(196,128,138,.45)}
.tl-item:first-child .tl-dot::before{top:50%}
.tl-item:last-child .tl-dot::before{bottom:50%}
.tl-event{font-size:23px}

/* ============ LOCATION ============ */
#location{background:linear-gradient(180deg,var(--ivory),var(--ivory-deep))}
.venue-name{font-size:clamp(28px,5vw,38px);margin-top:8px}
.venue-addr{margin:14px auto 0;max-width:440px;color:#5A6653;font-size:clamp(16px,3.9vw,19px);line-height:1.9}
.map-frame{
  margin:38px auto 0;max-width:640px;border:1px solid rgba(176,141,87,.5);
  outline:1px solid rgba(176,141,87,.22);outline-offset:6px;
  background:var(--blush);
  border-radius:var(--radius);overflow:hidden;
}
.map-frame iframe{display:block;width:100%;height:340px;border:0;filter:sepia(.22) saturate(.85)}

.map-link{
  display:inline-block;margin-top:26px;padding:12px 32px;border:1px solid var(--gold);color:var(--gold);border-radius:var(--radius);
  text-decoration:none;font-family:var(--font-ui);font-size:13px;letter-spacing:.2em;text-transform:uppercase;
  transition:background .3s,color .3s;
}
.map-link:hover{background:var(--gold);color:var(--ivory)}
body[data-lang="ar"] .map-link{font-size:17px}

/* ============ WISHES / DUAA ============ */
#wishes{background:linear-gradient(180deg,var(--ivory-deep),var(--blush))}
.wishes-quote{font-style:italic;color:var(--rose-deep);max-width:480px;margin:22px auto 0;font-size:21px}
.wishes-sub{max-width:460px;margin:12px auto 0;color:#5A6653}
.wish-form{position:relative;max-width:460px;margin:34px auto 0}
/* spam-trap field: invisible but kept inside the page (an off-screen offset creates ~10,000px of sideways scroll in RTL) */
.hp{position:absolute;top:0;left:0;width:1px;height:1px;margin:0;padding:0;border:0;opacity:0;overflow:hidden;clip-path:inset(50%);pointer-events:none}
.wish-error{color:var(--rose-deep);font-size:16px;margin:0 0 12px}
.field{text-align:start;margin-bottom:18px}
.field label{display:block;font-family:var(--font-ui);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--sage);margin-bottom:7px}
.field input[type=text],.field textarea{
  width:100%;padding:11px 13px;border:1px solid rgba(176,141,87,.5);border-radius:var(--radius);
  background:rgba(255,253,248,.8);font-family:var(--font-display);font-size:17px;color:var(--ink);
}
.field input:focus,.field textarea:focus{outline:2px solid var(--rose);outline-offset:1px}
.btn-submit{
  margin-top:10px;padding:14px 46px;border:none;cursor:pointer;border-radius:var(--radius);
  background:var(--rose-deep);color:var(--ivory);
  font-family:var(--font-ui);font-size:13px;letter-spacing:.3em;text-transform:uppercase;
  transition:background .3s;
}
.btn-submit:hover{background:#8E4550}
.thanks{display:none;padding:30px 0 10px}
.thanks.show{display:block}
.thanks .env-names{font-size:40px}

/* ============ MUSIC TOGGLE (top corner, above the envelope): music-on icon | switch | music-off icon ============ */
.music-toggle-wrap{
  position:fixed;top:calc(18px + env(safe-area-inset-top,0px));right:18px;z-index:120;
  display:flex;align-items:center;gap:10px;direction:ltr;
  background:rgba(255,255,255,.78);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid rgba(176,141,87,.45);border-radius:999px;padding:8px 12px;
  box-shadow:0 8px 22px rgba(51,64,47,.1);
}
.music-ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:color .25s,opacity .25s}
.ico-on{color:#B9B2A4;opacity:.7}
.ico-off{color:var(--rose-deep);opacity:1}
.music-toggle-wrap.on .ico-on{color:var(--gold);opacity:1}
.music-toggle-wrap.on .ico-off{color:#B9B2A4;opacity:.7}
.music-switch{
  position:relative;width:54px;height:28px;border:none;border-radius:999px;cursor:pointer;padding:0;
  background:linear-gradient(90deg,#D5B8BA,#E6D7D8);
  box-shadow:inset 0 0 0 1px rgba(138,154,123,.35);transition:background .3s ease;
}
.music-toggle-wrap.on .music-switch{background:linear-gradient(90deg,#DCC58F,#EBDDB8)}
.music-knob{
  position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;
  background:linear-gradient(135deg,#fff,#F7EFE8);box-shadow:0 3px 10px rgba(51,64,47,.22);
  transform:translateX(26px);transition:transform .25s ease;      /* off = knob on the right (music-off icon side) */
}
.music-toggle-wrap.on .music-knob{transform:none}                 /* on = knob on the left (music-on icon side) */
.music-switch:focus-visible{outline:2px solid var(--rose);outline-offset:3px}

/* ============ SITE TEXT FONT: GE Thuluth Light (fonts/GE-Thuluth-Light.ttf) ============
   Used for every section after the hero. Lateef Light below is only a backup if the file fails to load. */
@font-face{
  font-family:'Site Thuluth';font-weight:100 900;font-display:swap;
  src:url(fonts/GE-Thuluth-Light.ttf?v=1790412875) format('truetype');
}
@font-face{
  font-family:'Site Thuluth Fallback';font-weight:100 900;font-display:swap;size-adjust:125%;
  src:url(fonts/lateef-light-arabic.woff2) format('woff2');
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EEFF;
}
@font-face{
  font-family:'Site Thuluth Fallback';font-weight:100 900;font-display:swap;size-adjust:125%;
  src:url(fonts/lateef-light-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ============ ARABIC TYPOGRAPHY ============ */
/* Latin display fonts have no Arabic glyphs, so Arabic gets its own stack.
   Letter-spacing must be 0 in Arabic: it breaks the joined letterforms. */
body[data-lang="ar"]{
  --font-display:'Site Thuluth','Site Thuluth Fallback','Amiri',serif;
  --font-script:'Aref Ruqaa','Amiri',serif;
  --font-ui:'Tajawal','Jost',sans-serif;
  line-height:1.9;
}
body[data-lang="ar"] *{letter-spacing:0!important}
body[data-lang="ar"]{font-weight:300}
/* every section after the hero uses the one Thuluth font (titles, countdown, times, buttons, form) */
body[data-lang="ar"] :is(#countdown,#location,#schedule,#wishes){
  --font-display:'Site Thuluth','Site Thuluth Fallback','Amiri',serif;
  --font-script:'Site Thuluth','Site Thuluth Fallback','Amiri',serif;
  --font-ui:'Site Thuluth','Site Thuluth Fallback','Amiri',serif;
}
body[data-lang="ar"] :is(#countdown,#location,#schedule,#wishes) *{font-weight:300!important;font-family:var(--font-display)}
body[data-lang="ar"] .eyebrow{font-size:16px;font-weight:500}
body[data-lang="ar"] .env-tap{font-size:15px}
body[data-lang="ar"] .section-title,
body[data-lang="ar"] .venue-name{font-family:var(--font-script);font-weight:700;line-height:1.5}
body[data-lang="ar"] .section-title{font-size:clamp(32px,5vw,42px)}
body[data-lang="ar"] .wishes-quote{font-style:normal;font-size:22px;line-height:1.9;max-width:520px}
body[data-lang="ar"] .tl-time{font-size:23px;font-weight:600}
body[data-lang="ar"] .tl-event{font-size:24px}
body[data-lang="ar"] .field label{font-family:var(--font-display);font-size:18px;font-weight:700}
body[data-lang="ar"] .btn-submit{font-size:17px}
body[data-lang="ar"] .wax-seal{font-size:34px}
body[data-lang="ar"] .env-names{font-weight:700}


/* Amiri draws the 3 dots under چ as three clear dots (Aref Ruqaa merges them into a caret) */

body[data-lang="en"] .ayah-text{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:5.6cqw;line-height:1.7}
body[data-lang="en"] .ayah-ref{letter-spacing:.14em;text-transform:uppercase;font-size:3.4cqw}
body[data-lang="ar"] .ayah-ref{font-size:4.4cqw;font-weight:500}

/* Invitation wording: Reem Kufi throughout (line / title / names / labels) */
.invite-content{--f-line:'Reem Kufi',serif;--w-line:600;--z-line:1.25;--f-name:'Reem Kufi',serif;--w-name:700;--k-name:0.95;--f-label:'Reem Kufi',sans-serif;--w-label:400;--k-label:1}
body[data-lang="ar"] .invite-content .inv-honor{font-family:var(--f-line);font-weight:var(--w-line);font-size:calc(var(--z-line)*.75em);line-height:1.6}
body[data-lang="ar"] .invite-content .inv-invite{font-family:var(--f-line);font-weight:var(--w-line);font-size:calc(var(--z-line)*1em);line-height:1.5;letter-spacing:0}
body[data-lang="ar"] .invite-content .inv-parent-name{font-family:var(--f-name);font-weight:var(--w-name);font-size:calc(1.3em*var(--k-name));line-height:1.5}
body[data-lang="ar"] .invite-content .inv-name{font-family:var(--f-name);font-weight:var(--w-name);font-size:calc(1.4em*var(--k-name));line-height:1.4}
body[data-lang="ar"] .invite-content .inv-and{font-family:var(--f-name);font-weight:var(--w-name)}
body[data-lang="ar"] .invite-content .inv-title,
body[data-lang="ar"] .invite-content .inv-family,
body[data-lang="ar"] .invite-content .inv-rel{font-family:var(--f-label);font-weight:var(--w-label);font-size:calc(.78em*var(--k-label))}

/* English keeps the calligraphic script on the invitation card */
body[data-lang="en"] .invite-content{--font-script:'Pinyon Script',cursive}
body[data-lang="en"] .inv-parent-name{font-weight:500;font-size:1.3em}
body[data-lang="en"] .invite-content{font-size:4.9cqw;line-height:1.5}
body[data-lang="en"] .invite-bismillah{margin-bottom:3cqw}
body[data-lang="en"] .inv-parents{margin:1.5cqw 0 3cqw}
body[data-lang="en"] .inv-couple{grid-template-columns:1fr;justify-items:center;align-items:center;gap:0;margin:3cqw 0 3cqw}
body[data-lang="en"] .inv-person{flex-direction:column-reverse}
body[data-lang="en"] .inv-name{font-weight:400;font-size:1.75em;line-height:1.1}
body[data-lang="en"] .inv-rel{font-size:.8em;line-height:1.3;margin-top:-.2em}
body[data-lang="en"] .inv-and{font-weight:400;font-size:1.3em;line-height:1.1;padding:.1em 0}

@media (max-height:520px) and (min-aspect-ratio:1/1){
  #hero{padding:22px 20px 56px}
  .scroll-arrow{bottom:8px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important;transition-delay:0s!important}
  .reveal{opacity:1;transform:none}
}

/* ============ DESKTOP TYPE SCALE ============ */
/* Bigger body/UI copy on desktop. Script names are excluded on purpose. */
@media (min-width:900px){
  body{font-size:21px}
  .eyebrow{font-size:13px}
  .section-title{font-size:clamp(32px,3.4vw,44px)}
  .tl-time{font-size:15px}
  .tl-event{font-size:26px}
  .venue-name{font-size:clamp(30px,3.4vw,42px)}
  .field label{font-size:12px}
  .field input[type=text],.field textarea{font-size:18px}
  .btn-submit{font-size:14px}
}

@media (max-width:520px){
  section{padding:84px 18px}
}

