:root {
  --cream: #fbeee0;
  --peach: #f4d9c6;
  --paper: #fff6ec;
  --rose: #b0506a;
  --burgundy: #7b2d45;
  --gold: #bf9645;
  --gold-light: #e3c88a;
  --ink: #5a3a3f;
  --col: 520px;
  --corner: clamp(120px, 44vw, 240px);  /* size of the corner flower clusters */
  --gutter: clamp(34px, 11vw, 72px);  /* width of the blossom strip on each side */
  --pad-x: calc(var(--gutter) + clamp(10px, 4vw, 24px));  /* text side padding */
  --brown: #5a3a3a;
  --vis: .5;                          /* fraction of the border image that holds the blossoms */
  --ratio: .558;                      /* border image width / height */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg, var(--cream), var(--peach) 60%, var(--cream));
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Amiri", serif;
  font-size: 20px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; height: 100vh; }
html[lang="ar"] body { font-family: "Amiri", serif; font-size: 22px; }
.script { font-family: "Dancing Script", cursive; font-weight: 500; color: var(--rose); line-height: 1.25; }
html[lang="ar"] .script { font-family: "Aref Ruqaa", "Amiri", serif; font-weight: 700; }
.hidden { display: none !important; }

/* ---------- Intro ---------- */
#intro { perspective: 1000px; perspective-origin: 50% 50%; position: fixed; inset: 0; z-index: 100; background: linear-gradient(180deg, var(--cream), var(--peach)); transition: opacity 1.4s ease; overflow: hidden; }
#intro.fade { opacity: 0; pointer-events: none; }
/* ---- 3D doors: each door is a thick slab (front face, plaster back face, visible edge) hinged at the outer side ---- */
.door { --thick: 28px; position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; transform-style: preserve-3d; transition: transform 2.4s cubic-bezier(.5, .05, .3, 1); will-change: transform; }
.door.l { left: 0; transform-origin: left center; }
.door.r { right: 0; transform-origin: right center; }
.door i { position: absolute; display: block; transition: filter 2.4s ease-in; }
.door .face, .door .back { inset: 0; backface-visibility: hidden; overflow: hidden; }
.door .face { background: linear-gradient(90deg, #efe0cc, #f8ecdc 40%, #efe0cc); transform: translateZ(calc(var(--thick) / 2)); }
.door .back { background: linear-gradient(90deg, #d7c4a6, #e8d8bf 50%, #d2bd9c); transform: translateZ(calc(var(--thick) / -2)) rotateY(180deg); }
/* Soft shading on the face: darker toward the center gap, like real doors meeting in a recess */
.door .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.door.l .face::after { background: linear-gradient(to left, rgba(55, 32, 20, .38), rgba(55, 32, 20, .12) 9%, transparent 24%); }
.door.r .face::after { background: linear-gradient(to right, rgba(55, 32, 20, .38), rgba(55, 32, 20, .12) 9%, transparent 24%); }
.has-doors .door .face::before { content: ""; position: absolute; top: 0; bottom: 0; width: 100vw; background: var(--doors-img) center / cover no-repeat; }
.has-doors .door.l .face::before { left: 0; }
.has-doors .door.r .face::before { right: 0; }
/* The thick inner edge (the side you see as the door swings toward you) */
.door .side { top: 0; bottom: 0; width: var(--thick); backface-visibility: hidden; background: linear-gradient(90deg, #b39c74, #eadcc4 42%, #cbb48b 70%, #a98f66); }
.door.l .side { right: calc(var(--thick) / -2); transform: rotateY(90deg); }
.door.r .side { left: calc(var(--thick) / -2); transform: rotateY(-90deg); }
/* Swing open toward the viewer; surfaces darken as they turn away from the light */
#intro.open .door.l { transform: rotateY(-102deg); }
#intro.open .door.r { transform: rotateY(102deg); }
#intro.open .door .face, #intro.open .door .back { filter: brightness(.5); }
#intro.open .door .side { filter: brightness(.6); }
/* Contact shadow that grows on the wall behind the doors as they open */
#intro::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(40, 22, 14, .0) 100%); opacity: 0; transition: opacity 2.4s ease-in; }
#intro.open::before { opacity: 1; background: radial-gradient(ellipse at 50% 50%, rgba(255, 246, 236, 0) 35%, rgba(60, 35, 25, .35) 100%); }
.medallion { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; transition: opacity .6s .6s; }
.seal { width: clamp(130px, 42vw, 200px); height: auto; filter: drop-shadow(0 10px 16px rgba(60, 20, 30, .45)); animation: pulse 2.4s ease-in-out infinite; }
.tap { font: 600 clamp(20px, 6vw, 28px) "Dancing Script", cursive; color: var(--burgundy); text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 0 14px rgba(255, 246, 236, .95); }
html[lang="ar"] .tap { font-family: "Aref Ruqaa", serif; font-size: clamp(20px, 5.6vw, 26px); }
#intro.open .medallion { opacity: 0; pointer-events: none; }
#intro.open .seal { animation: sealOpen .9s ease-in forwards; }
@keyframes pulse { 50% { transform: scale(1.06); } }
@keyframes sealOpen { 25% { transform: scale(1.2) rotate(-5deg); } 100% { transform: scale(.7) rotate(8deg); opacity: 0; } }

/* ---------- Fixed controls / atmosphere ---------- */
.controls { position: fixed; top: calc(env(safe-area-inset-top) + 12px); inset-inline-end: 12px; z-index: 50; display: flex; gap: 8px; }
.ctl {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--rose); color: #fff;
  font: 600 14px "Cormorant Garamond", serif; cursor: pointer; box-shadow: 0 3px 10px rgba(123,45,69,.3);
}
.light { position: fixed; inset: -10%; z-index: 3; pointer-events: none; mix-blend-mode: multiply; background-size: cover; background-position: center; opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(2.5%, 1.5%) scale(1.04); } }
.petals { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -30px; background: linear-gradient(135deg, #f7b6c4, #e48aa0);
  border-radius: 150% 0 150% 0; opacity: .85; animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0deg); }
  50% { transform: translate3d(var(--sway), 55vh, 0) rotate(180deg); }
  100% { transform: translate3d(calc(var(--sway) * -.4), 108vh, 0) rotate(360deg); opacity: .5; }
}

/* ---------- Page column with blossom edges ---------- */
.page { position: relative; max-width: var(--col); margin: 0 auto; overflow: clip; }
.page::before, .page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-light)); z-index: 0; opacity: .85; }
.page::before { left: var(--gutter); } .page::after { right: var(--gutter); }
/* Organic vine clumps (built in JS, irregular on purpose). They sit above the gold lines and below the text. */
.edge { direction: ltr; position: absolute; top: 0; bottom: 0; width: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply; }
.edge.l { left: 0; }
.edge.r { right: 0; transform: scaleX(-1); }
.vine {
  position: absolute; background-image: var(--border-img); background-repeat: no-repeat; transform-origin: 0 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.section { padding: clamp(56px, 12vw, 84px) var(--pad-x); text-align: center; position: relative; z-index: 2; }
.hero { display: flex; padding: 14px calc(var(--gutter) + 4px); min-height: 100vh; min-height: max(100svh, 560px); }
/* Royal arched frame: the cap is an SVG (scales uniformly), the sides are CSS lines that line up with it via cqw. */
.frame { position: relative; flex: 1; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; }
.frame-cap { display: block; flex: none; width: 100%; height: auto; aspect-ratio: 404 / 112; overflow: visible; }
.frame-cap path { fill: none; vector-effect: non-scaling-stroke; }
.frame-cap .o { stroke: var(--gold); stroke-width: 3; }
.frame-cap .i { stroke: var(--gold-light); stroke-width: 1.4; }
.frame-body {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 clamp(14px, 6cqw, 30px) 14px; margin-top: -1px;
  background:
    linear-gradient(var(--gold), var(--gold)) left calc(.5cqw - 1.5px) top 0 / 3px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) right calc(.5cqw - 1.5px) top 0 / 3px 100% no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) left calc(2.475cqw - .7px) top 0 / 1.4px 100% no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) right calc(2.475cqw - .7px) top 0 / 1.4px 100% no-repeat;
}
.hero-in { position: relative; z-index: 1; width: 100%; }
.heart-ico { color: var(--brown); font-size: clamp(18px, 5.5cqw, 26px); line-height: 1; margin-bottom: 4px; }
.med { font-size: clamp(26px, 8.5cqw, 40px); color: var(--brown) !important; }
html[lang="ar"] .med { font-size: clamp(24px, 7.5cqw, 34px); }
.name { font-family: "Great Vibes", "Dancing Script", cursive !important; font-weight: 400 !important; font-size: clamp(42px, min(19cqw, 10svh), 92px); color: var(--brown) !important; line-height: 1.05; margin: .1em 0; }
html[lang="ar"] .name { font-family: "Aref Ruqaa", "Amiri", serif !important; font-weight: 700 !important; font-size: clamp(46px, min(19cqw, 10svh), 84px); }
.parents { font-family: "Playfair Display", "Amiri", serif; font-style: italic; color: var(--rose); font-size: clamp(12px, 3.6cqw, 17px); line-height: 1.5; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
html[lang="ar"] .parents { font-style: normal; font-family: "Amiri", serif; font-size: clamp(15px, 4.2cqw, 19px); }
.hero .divider { width: clamp(110px, 40cqw, 190px); margin: 12px auto 6px; background: linear-gradient(90deg, transparent, rgba(90,58,58,.5), transparent); }
.hero .divider::after { color: var(--brown); }
html[lang="ar"] .amp { font-family: "Amiri", serif; font-style: normal; font-weight: 700; }
.amp { font-size: clamp(22px, 6.5cqw, 32px); color: var(--rose); margin: .15em 0; font-family: "Playfair Display", serif; font-style: italic; line-height: 1.2; }
.scroll-hint { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 clamp(11px, 3cqw, 13px) "Cormorant Garamond", serif; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); z-index: 1; }
html[lang="ar"] .scroll-hint { letter-spacing: 0; }
.scroll-hint i { width: 1px; height: 30px; background: var(--ink); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.title { font-size: clamp(32px, 10vw, 44px); }
html[lang="ar"] .title { font-size: clamp(28px, 8.5vw, 38px); }
.divider { width: 150px; height: 1px; background: linear-gradient(90deg, transparent, var(--rose), transparent); margin: 16px auto 26px; position: relative; }
.divider::after { content: "♥"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); color: var(--rose); font-size: 14px; padding: 0 8px; background: transparent; }
.body-text { font-size: clamp(18px, 5.2vw, 23px); }
.big { font-size: clamp(32px, 10.5vw, 50px); }
html[lang="ar"] .big { font-size: clamp(28px, 8.5vw, 40px); }
.sign { font-size: clamp(28px, 8.5vw, 38px); color: var(--burgundy); margin-top: 20px; }

/* Buttons */
.btn { display: inline-flex; gap: 8px; align-items: center; font: 600 16px "Cormorant Garamond", "Amiri", serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: none; padding: 13px 30px; border-radius: 40px; border: 0; transition: transform .2s; }
html[lang="ar"] .btn { letter-spacing: 0; font-size: 19px; font-family: "Amiri", serif; }
.btn:active { transform: scale(.97); }
.btn.rose { background: var(--rose); color: #fff; box-shadow: 0 6px 16px rgba(123,45,69,.3); }
.btn.ghost { background: transparent; color: var(--rose); border: 1px solid var(--rose); margin-top: 18px; }

/* Scratch heart */
.heart-wrap { filter: drop-shadow(0 8px 14px rgba(176, 80, 106, .35)); width: min(300px, 100%); margin: 0 auto; }
.heart { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 1.1 / 1; clip-path: url(#heartClip); background: #fff; }
.heart-under { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 6%; background: radial-gradient(circle at 50% 35%, #fffdfb, #f6e6ea); }
.h-inv { font-size: 9cqw; color: var(--ink); font-family: "Dancing Script", cursive; }
html[lang="ar"] .h-inv { font-family: "Aref Ruqaa", serif; }
.h-date { font-weight: 700; font-size: 7.2cqw; color: var(--burgundy); line-height: 1.3; margin-top: 1cqw; }
.h-week { font-size: 6cqw; color: var(--rose); line-height: 1.2; }
.h-time { font-size: 5.6cqw; color: var(--ink); opacity: .8; }
#scratchCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity 1s; }
#scratchCanvas.done { opacity: 0; pointer-events: none; }
.scratch-hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: #fff; font-size: 20px; letter-spacing: .08em; text-shadow: 0 1px 4px rgba(90,30,50,.4); transition: opacity .4s; }
.scratch-hint.gone { opacity: 0; }
.spark-host { position: absolute; inset: 0; pointer-events: none; }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #f4c3cf; box-shadow: 0 0 8px #fff; pointer-events: none; animation: spark 1s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

.cal { margin-top: 28px; }
.cal-menu { margin-top: 12px; display: inline-flex; flex-direction: column; background: var(--paper); border: 1px solid var(--gold-light); border-radius: 14px; overflow: hidden; }
.cal-menu a, .cal-menu button { padding: 12px 26px; font: inherit; font-size: 18px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.cal-menu a + button { border-top: 1px solid var(--gold-light); }

/* Carousel + countdown */
.carousel-wrap { margin-bottom: 44px; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 2 / 3; max-width: min(100%, 340px); margin: 0 auto; }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.dots:empty { display: none; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #e2bfc6; transition: all .3s; }
.dots i.on { width: 22px; border-radius: 6px; background: var(--rose); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(5px, 2vw, 10px); direction: ltr; }
.countdown div { background: rgba(255, 246, 236, .75); border: 1px solid #ecc9cf; border-radius: 12px; padding: 12px 2px; }
.countdown b { display: block; font-size: clamp(22px, 7.5vw, 34px); color: var(--burgundy); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.countdown span { font-size: clamp(10px, 2.9vw, 13px); letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .countdown span { letter-spacing: 0; font-size: 16px; }
.today { font-size: 34px; }

/* Map */
.pin { font-size: 34px; }
.venue { font-size: 28px; font-weight: 700; color: var(--burgundy); }
.addr { opacity: .85; margin-bottom: 20px; }
.map { border-radius: 14px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(90,58,40,.2); margin-bottom: 26px; }
.map iframe { width: 100%; height: clamp(210px, 58vw, 300px); border: 0; display: block; }
.closing { padding-bottom: 140px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .petals { display: none; }
  .light, .seal, .scroll-hint i { animation: none; }
  html { scroll-behavior: auto; }
}

/* Landscape phones / very short screens */
@media (max-height: 520px) {
  .name { font-size: clamp(40px, 12svh, 70px); }
  .frame-body { padding-bottom: 54px; }
}

/* Flower clusters in the page corners (white background is removed by multiply) */
.corner { position: absolute; z-index: 3; width: var(--corner); aspect-ratio: 1; background: var(--corner-img) 0 0 / 100% 100% no-repeat; mix-blend-mode: multiply; pointer-events: none; }
.corner.tl { top: 0; left: 0; }
.corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner.br { bottom: 0; right: 0; transform: scale(-1, -1); }
/* Bottom corners of the hero (the page-bottom ones belong to the closing section) */
.corner.hbl { top: calc(var(--hero-h, max(100svh, 560px)) - var(--corner)); left: 0; transform: scaleY(-1); }
.corner.hbr { top: calc(var(--hero-h, max(100svh, 560px)) - var(--corner)); right: 0; transform: scale(-1, -1); }

/* Basmala at the top of the hero (always Arabic, always right-to-left) */
.basmala { font-family: "Amiri Quran", "Amiri", serif; font-weight: 700; font-size: clamp(22px, 7.4cqw, 34px); line-height: 1.6; color: var(--gold); margin-bottom: clamp(4px, 1.5svh, 14px); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
@media (max-height: 640px) { .basmala { font-size: clamp(20px, 6cqw, 26px); margin-bottom: 2px; } .heart-ico { display: none; } }

/* Quran verse under the Basmala (always Arabic, right-to-left). The ornamental brackets are added by CSS, not part of the text. */
.verse { font-family: "Amiri Quran", "Amiri", serif; font-size: clamp(15px, 4.5cqw, 21px); line-height: 2; color: var(--brown); margin: 0 auto clamp(4px, 1.2svh, 12px); max-width: 30em; }
.verse::before { content: "\FD3F\00A0"; color: var(--gold); }
.verse::after { content: "\00A0\FD3E"; color: var(--gold); }
@media (max-height: 700px) { .verse { font-size: clamp(13px, 3.9cqw, 17px); line-height: 1.8; } }
@media (max-height: 640px) { .heart-ico { display: none; } }

/* Arabic hero: hosts, invitation line, titled names */
.host { font-family: "Amiri", serif; font-weight: 700; font-size: clamp(18px, 5.6cqw, 25px); line-height: 1.7; color: var(--brown); }
.invite-line { font-family: "Amiri", serif; font-size: clamp(15px, 4.6cqw, 20px); line-height: 1.9; color: var(--rose); margin: 2px auto 0; max-width: 24em; }
.title-sm { font-size: clamp(13px, 4cqw, 18px); letter-spacing: .12em; text-transform: uppercase; font-style: normal; margin-bottom: -4px; }

/* Hero layout (both languages): Basmala + verse, then the hosts and names, form ONE group with a modest gap between them.
   The whole group is centered in the frame, so the space above and below it is equal. */
.hero-in { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sacred { margin: 0 0 clamp(16px, 4svh, 40px); }
.names-block { margin: 0; padding: 0; }
html[lang="ar"] .hero .divider { margin-bottom: 20px; }
html[lang="ar"] .name { margin-top: .32em; }

/* ================= Royal typography =================
   EN: Pinyon Script (names/script lines) + Cinzel Decorative (headings) + Cinzel (labels/buttons) + Cormorant (body)
   AR: Amiri bold (names/headings) + Amiri Quran (verses)                                              */
:root { --font-script: "Pinyon Script", cursive; --font-display: "Cinzel Decorative", "Cinzel", serif; --font-caps: "Cinzel", serif; --font-ar: "Amiri", serif; }
.script { font-family: var(--font-script); font-weight: 400; }
html[lang="ar"] .script { font-family: var(--font-ar); font-weight: 700; }
.name { font-family: var(--font-script) !important; font-weight: 400 !important; font-size: clamp(40px, min(17.5cqw, 10.5svh), 84px); }
html[lang="ar"] .name { font-family: var(--font-ar) !important; font-weight: 700 !important; font-size: clamp(46px, min(19cqw, 10svh), 84px); }
.title.script { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 5.4vw, 28px); letter-spacing: .04em; line-height: 1.45; }
html[lang="ar"] .title.script { font-family: var(--font-ar); letter-spacing: 0; font-size: clamp(30px, 8.6vw, 40px); }
.h-inv, .tap { font-family: var(--font-script); font-weight: 400; }
html[lang="ar"] .h-inv, html[lang="ar"] .tap { font-family: var(--font-ar); font-weight: 700; }
.tap { font-size: clamp(22px, 6.6vw, 31px); }
.btn, .scroll-hint, .countdown span { font-family: var(--font-caps); font-weight: 600; }
html[lang="ar"] .btn, html[lang="ar"] .scroll-hint, html[lang="ar"] .countdown span { font-family: var(--font-ar); font-weight: 700; }
.countdown b { font-family: var(--font-caps); font-weight: 600; }
html[lang="ar"] .countdown b { font-family: var(--font-ar); font-weight: 700; }
.title-sm { font-family: var(--font-caps); font-weight: 600; letter-spacing: .24em; }
html[lang="ar"] .title-sm { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; text-transform: none; font-size: clamp(26px, 8.5cqw, 38px); color: var(--rose); margin-bottom: -4px; line-height: 1.2; }
/* Fathers' names on a single line (font scales with the frame width so it never wraps) */
.hosts { display: flex; justify-content: center; gap: .5em; white-space: nowrap; margin-inline: calc(-1 * clamp(14px, 6cqw, 30px)); }
.hosts .host { font-size: clamp(11px, 5.2cqw, 25px); line-height: 1.8; }

/* Arabic hosts: «السيد» above each name, names bigger and bold; invitation line = two deliberate lines (no orphan word). */
.hosts { align-items: flex-start; gap: clamp(10px, 5cqw, 24px); }
.host-col { display: flex; flex-direction: column; align-items: center; }
.host-title { font-family: var(--font-ar); font-weight: 400; font-size: clamp(12px, 4.6cqw, 21px); line-height: 1.3; color: var(--rose); }
.hosts .host { font-weight: 700; font-size: clamp(13px, 6.1cqw, 28px); line-height: 1.5; }
.invite-line { white-space: pre; max-width: none; font-size: clamp(13px, 6cqw, 24px); line-height: 1.8; margin-inline: calc(-1 * clamp(14px, 6cqw, 30px)); }

/* Couple names: stacked in English; side by side with a heart between them in Arabic */
html[lang="ar"] .couple { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 4.5cqw, 22px); }
html[lang="ar"] .couple .name { font-size: clamp(40px, min(17cqw, 10svh), 88px); margin: .1em 0 0; }
html[lang="ar"] .couple .amp { margin: 0; padding-top: .5em; font-family: sans-serif; font-style: normal; font-size: clamp(20px, 6.5cqw, 32px); color: var(--rose); line-height: 1; }

/* The scroll hint is part of the flow (not floating), so the names block centers exactly between the verse and the hint. */
.scroll-hint { position: static; width: 100%; flex: none; margin-top: 0; padding-bottom: 18px; }

/* When a section title is hidden (empty text), hide the divider that belongs under it too. */
.title.hidden + .divider { display: none; }

/* ================= Wide screens (tablet / laptop / desktop) =================
   The page fills the whole width: blossoms and corner flowers go to the screen edges, gold lines frame the page,
   the hero arch stays a centered portal, and content sits in a comfortable centered column. */
@media (min-width: 700px) {
  :root { --gutter: clamp(60px, 8vw, 140px); --corner: clamp(190px, 21vw, 380px); }
  .page { max-width: none; }
  .section { width: min(780px, calc(100% - 2 * (var(--gutter) + 24px))); margin-inline: auto; padding-inline: 0; }
  .hero { width: auto; max-width: none; margin-inline: 0; padding: 18px calc(var(--gutter) + 8px); }
  .frame { max-width: min(820px, 70svh); margin-inline: auto; width: 100%; }   /* the arch scales with the screen height, so it never gets too tall on landscape monitors */
  .title.script { font-size: clamp(24px, 2.6vw, 34px); }
  html[lang="ar"] .title.script { font-size: clamp(34px, 3.4vw, 46px); }
  .body-text { font-size: clamp(21px, 1.9vw, 26px); }
  .hosts .host { font-size: clamp(13px, 5.4cqw, 34px); }
  .host-title { font-size: clamp(12px, 4.4cqw, 24px); }
  .invite-line { font-size: clamp(13px, 5.4cqw, 28px); }
  .verse { font-size: clamp(15px, 3.8cqw, 28px); }
  .basmala { font-size: clamp(22px, 6.4cqw, 44px); }
  .name { font-size: clamp(38px, min(17.5cqw, 7.2svh), 84px); }
  html[lang="ar"] .couple .name { font-size: clamp(38px, min(17cqw, 7.4svh), 88px); }
  .sacred { margin-bottom: clamp(12px, 2.6svh, 36px); }
}
@media (min-width: 960px) {
  .section.split-sec { width: min(1080px, calc(100% - 2 * (var(--gutter) + 24px))); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; text-align: center; }
  .count-sec .carousel-wrap { margin-bottom: 0; }
  .count-sec .carousel { max-width: 360px; }
  .venue-sec .venue-info { grid-column: 1; grid-row: 1; }
  .venue-sec .venue-btn { grid-column: 1; grid-row: 2; align-self: start; }
  .venue-sec .map { grid-column: 2; grid-row: 1 / span 2; margin-bottom: 0; }
  .venue-sec .map iframe { height: clamp(300px, 34vw, 400px); }
}

/* Arabic closing: two sentences (a short prayer), smaller than the old one-line heading; each line wraps evenly. */
html[lang="ar"] .closing .big { font-family: var(--font-ar); font-weight: 700; font-size: clamp(19px, 5.4vw, 30px); line-height: 1.95; white-space: pre; }
@media (min-width: 700px) { html[lang="ar"] .closing .big { font-size: clamp(24px, 2.4vw, 34px); } }
