:root {
  --bg: #faf7f2;
  --tint: #f3ede3;
  --green: #143d30;
  --green-deep: #0f2e24;
  --gold: #c5a05a;
  --gold-light: #e2c98f;
  --gold-soft: #e8dcc4;
  --ink: #1c2420;
  --muted: #5d625e;
  --line: rgba(20, 61, 48, .1);
  --radius: 24px;
  --serif: "Playfair Display", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: Jost, -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 24px 60px -20px rgba(15, 46, 36, .25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100svh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 16px; height: 16px; flex-shrink: 0; }
img { display: block; max-width: 100%; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .34em;
  text-transform: uppercase; color: var(--green);
}
.eyebrow.light { color: rgba(255,255,255,.85); }
.eyebrow.gold { color: var(--gold-light); }
.title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 7vw, 48px);
  color: var(--ink); margin-top: 10px; letter-spacing: -.01em;
}
.head { text-align: center; margin-bottom: 40px; }
.arabic { font-family: Amiri, serif; color: var(--green); font-size: 20px; direction: rtl; }

/* names: stacked with the "&" centred between */
.names {
  font-family: var(--script); font-weight: 400; color: var(--green);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: 46px; line-height: 1.05;
}
.names em { font-style: normal; color: var(--gold); font-size: .72em; line-height: 1; margin: 2px 0; }

.monogram {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid var(--gold); font-family: var(--serif); font-size: 16px; color: var(--green);
}
.monogram em { font-family: var(--script); font-style: normal; color: var(--gold); font-size: 18px; }
.monogram.light { color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.monogram.light em { color: var(--gold-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.sm { padding: 11px 18px; font-size: 11px; letter-spacing: .12em; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 12px 30px -10px rgba(20,61,48,.6); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--green); background: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--green-deep); box-shadow: 0 12px 30px -10px rgba(197,160,90,.7); }
.btn-wa { background: #128c4b; color: #fff; box-shadow: 0 12px 30px -12px rgba(18,140,75,.7); }
.btn-wa svg { width: 18px; height: 18px; }

/* ---------- cover ---------- */
.cover {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: var(--green-deep); transition: opacity 1s ease, visibility 1s;
}
.cover.hide { opacity: 0; visibility: hidden; }
.cover-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(3px) brightness(.55); transform: scale(1.06);
  animation: slowzoom 18s ease-in-out infinite alternate;
}
.cover-card {
  position: relative; width: 100%; max-width: 360px; text-align: center;
  padding: 36px 28px 32px; border-radius: 28px;
  background: rgba(250, 247, 242, .9); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  animation: rise 1s ease both;
}
.cover-card .eyebrow { margin-top: 20px; }
.cover-dear { font-family: var(--serif); font-style: italic; font-size: 18px; margin-top: 8px; color: var(--muted); }
.cover-text { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.6; margin: 8px auto 0; max-width: 260px; }
.cover-card .names { font-size: 42px; margin-top: 14px; }
.cover-date { font-size: 12px; letter-spacing: .4em; color: var(--muted); margin: 14px 0 26px; }
.cover-card .btn svg { width: 18px; height: 18px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- main ---------- */
.main { opacity: 0; transition: opacity 1s ease .2s; }
body.opened .main { opacity: 1; }

/* hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; color: #fff; text-align: center; padding: 0 20px 150px;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  animation: slowzoom 20s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,46,36,.35) 0%, rgba(15,46,36,.15) 30%, rgba(15,46,36,.75) 68%, rgba(15,46,36,.95) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero .arabic { color: var(--gold-light); margin-top: 18px; font-size: 21px; }
.hero .eyebrow { margin-top: 14px; }
.hero-names { color: #fff; font-size: clamp(50px, 14vw, 96px); margin-top: 8px; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.hero-names em { color: var(--gold-light); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px);
}
.scroll-hint {
  position: absolute; z-index: 1; bottom: 96px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.6);
}
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s ease-in-out infinite; }

/* countdown card overlapping the hero */
.countdown-wrap { position: relative; z-index: 2; padding: 0 16px; margin-top: -72px; }
.countdown-card {
  max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius);
  padding: 24px 16px 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.countdown-card .eyebrow { font-size: 10px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.countdown div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.countdown div + div { border-left: 1px solid var(--line); }
.countdown b { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 8vw, 40px); line-height: 1; color: var(--green); font-variant-numeric: lining-nums tabular-nums; }
.countdown span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* sections */
.section { padding: 88px 20px; }
.section.tint { background: var(--tint); }
.message { text-align: center; max-width: 640px; margin: 0 auto; }
.arabic.big { font-size: clamp(32px, 8vw, 44px); color: var(--gold); }
.verse-en { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); margin-top: 10px; }
.verse-ref { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px 0; color: var(--gold); }
.divider i { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider i:last-child { transform: scaleX(-1); }
.divider svg { width: 14px; height: 14px; }
.message-text { font-family: var(--serif); font-size: 17px; line-height: 1.85; color: var(--muted); }

/* couple */
.couple {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 760px; margin: 0 auto;
}
.person {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.3;
  box-shadow: var(--shadow);
}
.person img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.2s ease; }
.person:hover img { transform: scale(1.05); }
.person::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,46,36,.9) 100%); }
.person figcaption {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 10px 16px;
  display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center;
}
.tag {
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px);
}
.person strong { font-family: var(--script); font-weight: 400; font-size: clamp(26px, 7vw, 40px); line-height: 1.1; margin-top: 6px; }
.amp-badge {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--gold); font-family: var(--script); font-size: 30px;
  box-shadow: 0 10px 30px -8px rgba(15,46,36,.4); border: 1px solid var(--gold-soft);
}
.amp-badge.reveal, .amp-badge.reveal.in { transform: translate(-50%, -50%); }

/* event */
.event {
  max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 96px 1fr;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.event-date {
  background: linear-gradient(180deg, var(--green), var(--green-deep)); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px 8px;
}
.event-date span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.event-date b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; }
.event-body { padding: 22px 20px; }
.event-body h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.event-body ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--ink); }
.event-body li { display: flex; align-items: center; gap: 10px; }
.event-body li svg { color: var(--gold); }
.event-note { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-top: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* venue */
.venue {
  position: relative; overflow: hidden; padding: 96px 20px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at top, #1d5442 0%, var(--green) 45%, var(--green-deep) 100%);
}
.venue::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.venue-inner { position: relative; max-width: 560px; margin: 0 auto; }
.venue-pin {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(226,201,143,.5); color: var(--gold-light); background: rgba(255,255,255,.05);
}
.venue-pin svg { width: 28px; height: 28px; }
.venue-name { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 8vw, 46px); line-height: 1.15; margin-top: 12px; }
.venue-addr { font-size: 15px; font-weight: 300; color: rgba(255,255,255,.75); margin-top: 10px; }
.venue-meta {
  display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); backdrop-filter: blur(8px);
}
.venue-meta div { padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.venue-meta div + div { border-left: 1px solid rgba(255,255,255,.14); }
.venue-meta span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.venue-meta b { font-weight: 400; font-size: 15px; }

/* gallery bento */
.bento {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px;
  max-width: 960px; margin: 0 auto;
}
.tile { position: relative; border-radius: 20px; overflow: hidden; padding: 0; box-shadow: 0 12px 30px -16px rgba(15,46,36,.4); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.tile:hover img { transform: scale(1.06); }
.t1 { grid-row: span 2; }
.t2 { grid-row: span 1; }
.t3 { grid-row: span 2; }
.t4 { grid-row: span 1; }
.t4 { grid-column: 1; grid-row: 3; }
.t3 { grid-column: 2; grid-row: 2 / span 2; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .t1, .t2, .t3, .t4 { grid-column: auto; grid-row: span 2; }
  .t2, .t4 { transform: translateY(32px); }
  .t2.reveal.in, .t4.reveal.in { transform: translateY(32px); }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 20, 16, .92); opacity: 0; visibility: hidden; transition: .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86svh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 36px; line-height: 1; }

/* footer */
.footer { text-align: center; padding: 96px 20px 150px; background: var(--tint); }
.footer-quote { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); max-width: 460px; margin: 0 auto; line-height: 1.7; }
.footer-names { font-size: 48px; margin-top: 28px; }
.footer-date { font-size: 12px; letter-spacing: .4em; color: var(--muted); margin: 14px 0 28px; }
.made { font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-top: 34px; }
.made span { color: #d0455e; }

/* floating dock */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%); transition: transform .7s cubic-bezier(.2,.8,.2,1) .4s;
  display: flex; align-items: center; gap: 2px; padding: 6px;
  border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 16px 40px -12px rgba(15,46,36,.35);
}
body.opened .dock { transform: translate(-50%, 0); }
.dock a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 11px; border-radius: 999px; color: var(--muted); transition: .25s;
}
.dock a svg { width: 19px; height: 19px; }
.dock a span { font-size: 9px; letter-spacing: .06em; }
.dock a.active { background: var(--green); color: #fff; }
.dock-music {
  width: 44px; height: 44px; border-radius: 50%; margin-left: 4px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--green-deep); }
.dock-music.playing .bars i { animation: eq 1s ease-in-out infinite; }
.dock-music.playing .bars i:nth-child(2) { animation-delay: .15s; }
.dock-music.playing .bars i:nth-child(3) { animation-delay: .3s; }
.dock-music.playing .bars i:nth-child(4) { animation-delay: .45s; }
@media (max-width: 380px) {
  .dock a { padding: 7px 8px; }
  .dock a span { display: none; }
}

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slowzoom { from { transform: scale(1.06); } to { transform: scale(1.16); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .section { padding: 120px 32px; }
  .names { font-size: 56px; }
  .cover-card .names { font-size: 46px; }
  .couple { gap: 28px; }
  .amp-badge { width: 68px; height: 68px; font-size: 40px; }
  .event { grid-template-columns: 140px 1fr; }
  .event-date b { font-size: 64px; }
  .event-body { padding: 32px 32px; }
  .footer-names { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .cover-bg, .scroll-hint span { animation: none; }
}
