:root {
  --blush: #d8a7b1;
  --blush-soft: #f7e8ec;
  --blush-deep: #c48996;
  --cream: #fff9f5;
  --white: #ffffff;
  --ink: #4a3b40;
  --muted: #7d6a70;
  --gold: #c9a96e;
  --gold-ink: #7a6233;
  --line: rgba(201, 169, 110, 0.45);
  --shadow: 0 22px 50px rgba(216, 167, 177, 0.28);
  --sans: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --display: "Aref Ruqaa", "Traditional Arabic", serif;
  --display-en: "Cormorant Garamond", Georgia, serif;
  --nav-space: calc(92px + env(safe-area-inset-bottom));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(216, 167, 177, 0.35), transparent 46%),
    var(--cream);
  font-family: var(--sans);
  line-height: 1.9;
  overflow-x: hidden;
  padding-bottom: var(--nav-space);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--blush-soft); color: var(--ink); }
section[id] { scroll-margin-top: 72px; scroll-margin-bottom: var(--nav-space); }

.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  inset-block-start: calc(10px + env(safe-area-inset-top));
  inset-inline-start: 10px;
  z-index: 80;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 65;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blush), var(--gold));
}

.topbar {
  position: absolute;
  z-index: 40;
  top: calc(64px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  padding-inline: 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand, .top-nav { display: none; }
.tools { display: flex; align-items: center; gap: 8px; }
.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 245, 0.88);
  backdrop-filter: blur(12px);
}
.language-switcher button, .music-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.language-switcher button { min-width: 36px; min-height: 36px; padding: 4px; }
.language-switcher button.active { color: var(--ink); font-weight: 700; }
.music-button {
  position: fixed;
  z-index: 60;
  top: calc(64px + env(safe-area-inset-top));
  inset-inline-end: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 50%;
  background: rgba(255, 249, 245, 0.72);
  box-shadow: 0 10px 28px rgba(74, 59, 64, 0.08);
  backdrop-filter: blur(14px);
  font-size: 1.05rem;
  line-height: 1;
}
.bottom-nav svg, .lightbox-zoom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.music-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.music-button .icon-off { display: none; }
.music-button:not(.is-playing) .icon-on { display: none; }
.music-button:not(.is-playing) .icon-off { display: block; }

.bottom-nav {
  position: fixed;
  z-index: 40;
  inset-inline: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 64px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 249, 245, 0.92);
  box-shadow: 0 10px 30px rgba(74, 59, 64, 0.08);
  backdrop-filter: blur(16px);
}
.bottom-nav a, .top-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}
.bottom-nav a.active, .top-nav a.active { color: var(--gold-ink); }
.bottom-nav svg { width: 20px; height: 20px; }

.opening {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 167, 177, 0.45), transparent 42%),
    var(--cream);
  animation: veilOut 0.8s ease 1.15s forwards;
  cursor: pointer;
}
.opening-glow {
  position: absolute;
  width: min(70vw, 320px);
  height: min(70vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.28), transparent 68%);
  animation: glow 1.6s ease both;
}
.opening-moon { width: 96px; height: 96px; position: relative; animation: rise 1.1s ease both; }
.opening-dua {
  position: relative;
  max-width: 36rem;
  margin: 8px 0 0;
  padding-inline: 12px;
  color: var(--ink);
  font-size: clamp(1rem, 2.5vw, 1.28rem);
  line-height: 2;
}
@keyframes glow { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes veilOut { to { opacity: 0; visibility: hidden; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: start;
  overflow: visible;
  text-align: center;
  padding: calc(64px + env(safe-area-inset-top)) 18px calc(108px + env(safe-area-inset-bottom));
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-frame {
  position: absolute;
  inset: 12px 12px calc(78px + env(safe-area-inset-bottom));
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 28px;
  pointer-events: none;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(216, 167, 177, 0.55);
  border-radius: 22px;
}
.mote { position: absolute; opacity: 0.45; animation: drift linear infinite; }
.mote-star::before, .mote-heart::before { display: block; }
.mote-star::before { content: "✦"; color: var(--gold); font-size: 11px; }
.mote-heart::before { content: "♡"; color: var(--blush-deep); font-size: 16px; font-style: normal; }
.mote-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blush); }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero-stage {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-copy { display: contents; }
.hero-photo { order: 2; }
.hero-copy > * { order: 3; }
.hero-copy > .hero-hamd { order: 1; }
.hero h1 { margin: 0; font-weight: 600; }
.hero-photo {
  width: min(88vw, 440px);
  margin: 0;
}
.hero-photo img {
  width: 100%;
  height: min(46svh, 560px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(74, 59, 64, 0.14);
}
.hero h1 { width: min(100%, 22rem); }
.beat { animation: rise 1.05s ease both; }
.beat-1 { animation-delay: 0.15s; }
.beat-2 { animation-delay: 0.7s; }
.beat-3 { animation-delay: 1.35s; }
.beat-4 { animation-delay: 1.75s; }
.beat-5 { animation-delay: 2.15s; }
.hero-hamd, .hero-blessing, .hero-name, .hero-date, .hero-time { display: block; }
.hero-hamd {
  font-family: var(--display);
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.7;
}
.hero-blessing {
  margin-top: 14px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
}
.hero-name {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(2.7rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.25;
}
.hero-date {
  margin: 8px 0 0;
  color: var(--gold-ink);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-time { margin: 0; color: var(--gold-ink); font-weight: 600; }
.hero .button { margin-top: 18px; }
.scroll-cue {
  position: absolute;
  inset-block-end: calc(86px + env(safe-area-inset-bottom));
  left: 50%;
  width: 28px;
  height: 42px;
  transform: translateX(-50%);
  border: 1px solid rgba(122, 98, 51, 0.45);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold-ink);
  animation: scrollCue 1.8s ease infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button:disabled { opacity: 0.65; cursor: progress; transform: none; }
.button-gold { color: var(--ink); background: var(--gold); }
.button-soft { color: var(--ink); background: var(--white); border-color: var(--blush); }

.section { padding: clamp(32px, 4.2vw, 56px) 20px; }
.section-inner { width: min(1080px, 100%); margin: 0 auto; }
.centered { text-align: center; }
h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.6;
}
.section-lead { max-width: 38rem; margin: -4px auto 28px; color: var(--muted); }

.story-section { background: linear-gradient(180deg, transparent, rgba(247, 232, 236, 0.65)); }
.story-copy {
  width: min(640px, 100%);
  margin-inline: auto;
  text-align: center;
}
.story-copy p { margin: 0 0 14px; font-size: 1.05rem; }
.letter-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(74, 59, 64, 0.12);
}
.profile-card {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 42px);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.profile-title { margin-bottom: 8px; font-size: clamp(2.8rem, 8vw, 4.8rem); }
.profile-title span[aria-hidden="true"] { font-size: 0.38em; line-height: 1; vertical-align: 0.2em; }
.facts {
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
}
.facts div { padding: 0; }
.facts dt {
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.facts dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
}

.since-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.65), transparent 46%),
    var(--blush-soft);
}
.since {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 28px auto 0;
}
.count-card {
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}
.count-card strong {
  display: block;
  font-family: var(--display-en);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold-ink);
}
.count-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.85rem; }
.before-arrival { color: var(--gold-ink); font-size: 1.15rem; }

.timeline {
  list-style: none;
  max-width: 680px;
  margin: 10px auto 0;
  padding: 0;
  text-align: start;
}
.timeline li {
  position: relative;
  padding-inline-start: 42px;
  padding-bottom: 28px;
}
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(216, 167, 177, 0.2));
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 10px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
}
.timeline time { display: block; color: var(--gold-ink); font-size: 0.85rem; font-weight: 700; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); }

.letter {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.9)),
    var(--blush-soft);
  border: 1px solid var(--line);
  border-radius: 32px;
}
.letter p { margin: 0 0 14px; font-size: 1.08rem; }
.letter-salute { font-family: var(--display); font-size: 1.7rem !important; }
.letter-close { font-weight: 700; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(1080px, 100%);
  margin-inline: auto;
}
.shot {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--blush-soft);
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
}
.shot.feature,
.shot.wide { grid-column: 1 / -1; }
.shot.feature { aspect-ratio: 3 / 4; max-height: 78vh; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.shot.focus-face img { object-position: center 16%; }
.shot-caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(74, 59, 64, 0.45));
  color: var(--white);
  font-size: 0.82rem;
}

.lightbox {
  width: min(960px, calc(100vw - 20px));
  max-height: calc(100svh - 20px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}
.lightbox::backdrop { background: rgba(74, 59, 64, 0.78); backdrop-filter: blur(8px); }
.lightbox-panel {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
}
.lightbox figure {
  width: min(860px, 92vw);
  margin: 0;
  max-height: 74svh;
  overflow: auto;
  border-radius: 18px;
}
.lightbox img {
  max-width: 100%;
  max-height: 74svh;
  margin: auto;
  border-radius: 18px;
  object-fit: contain;
  background: var(--cream);
  transition: transform 0.35s ease;
}
.lightbox img.is-zoomed { width: 165%; max-width: none; max-height: none; cursor: zoom-out; }
.lightbox-count { margin: 0; font-size: 0.85rem; }
.lightbox-close, .lightbox-nav, .lightbox-zoom {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 249, 245, 0.14);
  color: var(--white);
  cursor: pointer;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-close { top: 0; inset-inline-end: 0; }
.lightbox-nav.prev { inset-inline-start: 0; top: 46%; }
.lightbox-nav.next { inset-inline-end: 0; top: 46%; }
.lightbox-zoom {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
}

.dua-card, .wish-form {
  position: relative;
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.dua-text { font-size: 1.12rem; }
.dua-count { margin: 18px 0 0; font-size: 1.05rem; }
.dua-count strong { font-family: var(--display-en); font-size: 2rem; color: var(--gold-ink); font-weight: 500; }
.dua-note { margin: 0; color: var(--muted); font-size: 0.8rem; }
.amen-float {
  position: absolute;
  inset-inline: 0;
  top: 42%;
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--gold-ink);
  opacity: 0;
  pointer-events: none;
}
.amen-float.show { animation: amen 1.3s ease; }
@keyframes amen {
  0% { opacity: 0; transform: translateY(8px); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px); }
}
.heart-bit {
  position: fixed;
  z-index: 45;
  color: var(--blush-deep);
  pointer-events: none;
  animation: heartUp 1.1s ease forwards;
}
@keyframes heartUp {
  to { transform: translateY(-70px); opacity: 0; }
}

.wishes-layout { display: grid; gap: 22px; }
.wishes-intro { text-align: center; }
.wishes-intro p { margin: 0 auto; max-width: 36rem; color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.field { margin-bottom: 8px; text-align: start; }
.field label { display: block; margin-bottom: 6px; color: var(--gold-ink); font-size: 0.88rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blush); border-color: transparent; }
.error { display: block; min-height: 1.2em; margin-top: 4px; color: #8c3a4a; font-size: 0.78rem; }
.form-help { color: var(--muted); font-size: 0.8rem; text-align: start; }
.submit-button { width: 100%; }
.wish-grid { display: grid; gap: 12px; }
.wish-card {
  margin: 0;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.wish-more { margin: 14px auto 0; }
.wish-card p { margin: 0 0 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.wish-card footer { display: flex; justify-content: space-between; gap: 10px; color: var(--gold-ink); font-size: 0.82rem; }
.wish-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 22px;
}

footer {
  padding: 36px 20px 28px;
  text-align: center;
}
footer img { width: 48px; height: 48px; margin: 0 auto 8px; }
footer p { margin: 4px 0; color: var(--muted); font-size: 0.92rem; }
.footer-date { color: var(--gold-ink); letter-spacing: 0.14em; font-size: 0.78rem !important; }

.back-to-top {
  position: fixed;
  z-index: 35;
  inset-inline-end: 16px;
  inset-block-end: calc(86px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--gold-ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.25s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 18px;
  line-height: 1.7;
  text-align: center;
  white-space: pre-line;
  background: var(--ink);
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  font-size: 0.85rem;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.noscript-card {
  margin: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
  text-align: center;
  background: var(--blush-soft);
  border-radius: 18px;
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal:not(.visible) { opacity: 0; transform: translateY(18px); }
}
.reveal { transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .since { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wish-grid { grid-template-columns: 1fr 1fr; }
  .wish-empty { grid-column: 1 / -1; }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  .shot { aspect-ratio: 3 / 4; }
  .shot.feature {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  section[id] { scroll-margin-top: 96px; scroll-margin-bottom: 24px; }
  .topbar {
    position: fixed;
    left: 50%;
    right: auto;
    width: max-content;
    transform: translateX(-50%);
    align-items: center;
    gap: 18px;
    padding: 8px 12px 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 249, 245, 0.86);
    box-shadow: 0 12px 40px rgba(216, 167, 177, 0.25);
    backdrop-filter: blur(16px);
  }
  .brand, .top-nav { display: flex; }
  .brand img { width: 42px; height: 42px; }
  .top-nav { align-items: center; gap: 6px; }
  .top-nav a { flex-direction: row; padding: 8px 12px; font-size: 0.92rem; }
  .bottom-nav { display: none; }
  .language-switcher { background: transparent; }
  .hero { padding: 108px 40px 72px; text-align: start; }
  .hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 540px);
    gap: 56px;
    align-items: center;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    order: 0;
    width: min(100%, 460px);
  }
  .hero-name { font-size: clamp(4.4rem, 6vw, 6.4rem); }
  .hero-photo {
    order: 0;
    width: 100%;
  }
  .hero-photo img { height: min(82vh, 760px); aspect-ratio: auto; }
  .hero-copy > .hero-hamd,
  .hero-copy > * { order: 0; }
  .letter-layout {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
  .letter-photo { margin: 0; }
  .letter { margin: 0; }
  .back-to-top { inset-block-end: 22px; }
  .toast { bottom: 28px; }
  .lightbox-nav.prev { inset-inline-start: -8px; }
  .lightbox-nav.next { inset-inline-end: -8px; }
}

html[lang="en"] .hero-name,
html[lang="en"] .profile-title,
html[lang="en"] h2,
html[lang="en"] .letter-salute {
  font-family: var(--display-en);
  letter-spacing: 0.01em;
}
html[lang="en"] .hero-hamd { font-family: var(--display-en); line-height: 1.25; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .opening { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .mote { display: none; }
}

.letter-photo { margin: 0 auto; width: min(100%, 420px); max-width: 420px; }
.letter-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}
.letter { width: min(34rem, 100%); margin-inline: auto; }

.closing {
  position: relative;
  margin-top: 12px;
}
.closing figure { margin: 0; position: relative; }
.closing img {
  width: 100%;
  height: min(88vh, 920px);
  object-fit: cover;
  object-position: center 28%;
}
.closing figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: 72px 20px 36px;
  text-align: center;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.7;
  background: linear-gradient(transparent, rgba(74, 59, 64, 0.55));
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shot img { transition: transform 0.6s ease; }
  .shot:hover img { transform: scale(1.04); }
}

/* Editorial pass: photography-first, quieter chrome. */
body {
  background: var(--cream);
}
html, body { max-width: 100%; overflow-x: clip; }

.sound-dock {
  position: fixed;
  z-index: 60;
  top: calc(64px + env(safe-area-inset-top));
  inset-inline-end: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.music-button { position: static; }
.music-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.music-button .icon-off { display: none; }
.music-button:not(.is-playing) .icon-on { display: none; }
.music-button:not(.is-playing) .icon-off { display: block; }
.dua-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 245, 0.78);
  backdrop-filter: blur(14px);
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.wave { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.wave i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
  transform-origin: center bottom;
  animation: wave 1.05s ease-in-out infinite;
}
.wave i:nth-child(2) { height: 8px; animation-delay: 0.15s; }
.wave i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wave { 50% { transform: scaleY(1.7); } }

.button-line {
  background: transparent;
  border-color: rgba(122, 98, 51, 0.55);
  color: var(--ink);
}

.hero {
  min-height: 100svh;
  align-items: stretch;
  padding: 0;
  text-align: center;
  overflow: hidden;
}
.hero-sky::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.9), transparent 52%),
    radial-gradient(ellipse at 50% 100%, rgba(247, 232, 236, 0.55), transparent 46%);
  animation: lightIn 2.4s ease both;
}
@keyframes lightIn { from { opacity: 0; } to { opacity: 1; } }
.hero-stage {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: calc(62px + env(safe-area-inset-top)) 0 calc(var(--nav-space) + 10px);
}
.hero-hamd {
  width: min(18em, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 12px;
  font-size: clamp(1.2rem, 4.6vw, 1.65rem);
  line-height: 1.85;
}
.hero-photo {
  order: 0;
  width: 100%;
  margin: 0;
}
.hero-photo img {
  width: 100%;
  height: min(40svh, 420px);
  min-height: 210px;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 0;
  box-shadow: none;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 34rem);
  margin-inline: auto;
  padding: 16px 22px 0;
}
.hero h1 { width: 100%; margin-inline: auto; }
.hero-blessing { margin-top: 0; font-size: clamp(0.98rem, 3.4vw, 1.2rem); }
.hero-name { margin-top: 2px; font-size: clamp(2.35rem, 8vw, 3.3rem); line-height: 1.2; }
.hero-when {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 6px 0 0;
}
.hero-date, .hero-time { display: inline; margin: 0; }
.hero-time::before { content: "·"; margin-inline-end: 12px; color: var(--blush); }
.hero .button { margin-top: 12px; }

.story-section { background: transparent; }
.story-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}
.story-art { margin: 0; }
.story-art img {
  width: 100%;
  height: min(70vh, 620px);
  object-fit: cover;
  object-position: center 36%;
  border-radius: 18px;
}

.seq { animation: rise 1.35s cubic-bezier(0.22, 0.7, 0.2, 1) both; }
.seq-1 { animation-delay: 0.55s; }
.seq-3 { animation-delay: 3.25s; }
.seq-4 { animation-delay: 4.15s; }
.seq-5 { animation-delay: 4.9s; }
.hero-photo.seq {
  animation-name: photoIn;
  animation-duration: 1.7s;
  animation-delay: 1.65s;
}
@keyframes photoIn {
  from { opacity: 0; clip-path: inset(8% 7% 8% 7%); }
  to { opacity: 1; clip-path: inset(0); }
}

.moment { text-align: center; }
.moment h2 { margin-bottom: 8px; }
.since {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 64px);
  max-width: none;
  margin: 28px auto 0;
  background: none;
}
.count-card {
  min-width: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.count-card strong {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  color: var(--ink);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 36px;
  max-width: 640px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.facts div { padding: 0; }
.facts dd {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
}
.story-after {
  margin-top: 8px;
  color: var(--gold-ink);
  font-weight: 600;
}
.letter {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px 0 0;
}
.gallery-section .section-inner { width: min(1120px, 100%); }
.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}
.gallery-grid { align-items: start; }
.shot, .shot.feature, .shot.wide, .shot.tall, .shot.side {
  min-width: 0;
  width: 100%;
  align-self: start;
  grid-column: auto;
  aspect-ratio: 1 / 1;
  max-height: none;
  border-radius: 18px;
}
.shot.feature, .shot.wide, .shot.tall { grid-column: 1 / -1; }
.shot.feature { aspect-ratio: 4 / 5; max-height: none; }
.shot.wide { aspect-ratio: 16 / 9; max-height: none; }
.shot.wide img { object-position: center 34%; }
.top-nav a.active::after {
  content: "";
  width: 14px;
  height: 1px;
  margin-top: 2px;
  background: var(--gold);
}
.bottom-nav { inset-inline: 14px; }
.closing figcaption { padding-bottom: calc(28px + var(--nav-space)); }
.closing figcaption p { margin: 0; }

.closing-thanks {
  margin-top: 6px !important;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  .shot, .shot.side, .shot.tall, .shot.wide, .shot.feature {
    min-width: 0;
    width: 100%;
    align-self: start;
    grid-column: auto;
    grid-row: auto;
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
  }
  .shot.feature {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
  .shot.wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}

@media (min-width: 900px) {
  .hero { padding: 0; text-align: center; }
  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 108px 72px 56px;
  }
  .hero-hamd {
    width: min(16em, 100%);
    margin: 0 auto 12px;
    padding: 0;
    text-align: center;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  }
  .hero-copy {
    align-items: center;
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }
  .hero h1, .hero-when { margin-inline: auto; justify-content: center; }
  .hero-name { font-size: clamp(4rem, 6vw, 6.2rem); }
  .hero .button { margin-top: 22px; }
  .story-layout { display: block; }
  .story-copy { margin-inline: auto; text-align: center; }
  .closing figcaption { padding-bottom: 48px; }
  .top-nav a.active::after { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .seq { opacity: 1 !important; animation: none !important; clip-path: none !important; }
  .wave i { animation: none; }
}

/* Final polish: compact story, shorter motion, one connected page. */
.section { padding: 36px 16px; }
.hero,
.hero-stage { min-height: 0; }
.hero-stage {
  justify-content: flex-start;
  padding: calc(128px + env(safe-area-inset-top)) 18px 20px;
  gap: 8px;
}
.hero-hamd { margin-bottom: 4px; }
.hero-photo {
  width: min(72vw, 320px);
  margin: 6px auto;
}
.hero-photo img {
  width: 100%;
  height: min(32svh, 320px);
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(74, 59, 64, 0.12);
}
.hero-copy { padding-top: 6px; }
.hero .button { margin-top: 10px; }
.story-art img {
  width: min(100%, 420px);
  height: min(42svh, 340px);
  margin-inline: auto;
}
.since { gap: clamp(14px, 4vw, 40px); margin-top: 10px; }
.count-card strong { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.facts { margin-top: 18px; padding-top: 14px; gap: 14px 28px; }
.letter-photo { width: min(100%, 280px); }
.shot.feature { aspect-ratio: 4 / 5; }
.closing { margin-top: 0; }
.closing img {
  height: min(42vh, 380px);
  object-position: center 42%;
}
footer { padding: 16px 16px 8px; }
footer p { font-size: 0.88rem; }
.seq { animation-duration: 0.7s; }
.seq-1 { animation-delay: 0.05s; }
.seq-3 { animation-delay: 0.4s; }
.seq-4 { animation-delay: 0.55s; }
.seq-5 { animation-delay: 0.7s; }
.hero-photo.seq { animation-duration: 0.7s; animation-delay: 0.2s; }
.reveal { transition: opacity 500ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }

@media (min-width: 800px) {
  .section { padding: 56px 24px; }
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .shot, .shot.side, .shot.tall { aspect-ratio: 1 / 1; height: auto; }
  .shot.feature {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
    height: auto;
  }
  .shot.wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
    max-height: none;
  }
}

@media (min-width: 900px) {
  .hero { text-align: center; }
  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    justify-content: center;
    padding: 168px 48px 16px;
  }
  .hero-photo { width: min(28vw, 340px); order: 2; }
  .hero-photo img { height: min(42vh, 460px); }
  .hero-hamd { order: 1; text-align: center; }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 3;
    text-align: center;
  }
  .hero-name { font-size: clamp(3.4rem, 5vw, 5rem); }
  .story-layout { display: block; }
  .story-copy { margin-inline: auto; text-align: center; }
  .letter-layout { align-items: center; }
  .letter-photo { width: min(100%, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .seq { opacity: 1 !important; animation: none !important; clip-path: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Delight: soft color, floating petals, gentle motion. */
:root {
  --peach: #f6c7b0;
  --lilac: #e3cfea;
  --rose: #f3b7c6;
  --mint: #d7efe4;
}

body {
  background:
    radial-gradient(ellipse 42% 28% at 8% 12%, rgba(243, 183, 198, 0.55), transparent 70%),
    radial-gradient(ellipse 36% 24% at 92% 8%, rgba(227, 207, 234, 0.6), transparent 72%),
    radial-gradient(ellipse 40% 26% at 80% 78%, rgba(246, 199, 176, 0.42), transparent 70%),
    radial-gradient(ellipse 34% 22% at 12% 88%, rgba(215, 239, 228, 0.5), transparent 72%),
    var(--cream);
}

.hero-sky::after {
  content: "";
  position: absolute;
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  left: 50%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 224, 0.7), rgba(201, 169, 110, 0.12) 46%, transparent 70%);
  transform: translateX(-50%);
  animation: bloom 7s ease-in-out infinite;
}
@keyframes bloom {
  0%, 100% { transform: translateX(-50%) scale(0.92); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

main, footer { position: relative; z-index: 2; }
.garden {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.petal {
  position: absolute;
  top: -12%;
  line-height: 1;
  animation-name: driftDown;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes driftDown {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  50% { transform: translate3d(18px, 52vh, 0) rotate(90deg); }
  100% { transform: translate3d(-12px, 112vh, 0) rotate(180deg); }
}

.hero-name {
  background: linear-gradient(100deg, #c48996 10%, #c9a96e 35%, #e48aa3 55%, #b98bb8 78%, #c9a96e 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 7s linear infinite, nameFloat 4.8s ease-in-out infinite;
}
@keyframes nameShimmer {
  to { background-position: 220% center; }
}
@keyframes nameFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-hamd { color: #8a5d68; }
.hero .button-line {
  background: linear-gradient(180deg, #fff, #fdeef2);
  border-color: rgba(196, 137, 150, 0.7);
  box-shadow: 0 10px 24px rgba(216, 167, 177, 0.28);
  animation: nameFloat 3.6s ease-in-out infinite;
}

.story-section { background: linear-gradient(180deg, transparent, rgba(243, 183, 198, 0.28) 40%, transparent); }
.moment-section { background: linear-gradient(180deg, rgba(246, 199, 176, 0.22), transparent 80%); }
.letter-section { background: linear-gradient(180deg, rgba(227, 207, 234, 0.28), transparent 70%); }
.gallery-section { background: linear-gradient(180deg, transparent, rgba(215, 239, 228, 0.35), transparent); }
.dua-section { background: linear-gradient(180deg, rgba(243, 183, 198, 0.22), transparent 75%); }
.wishes-section { background: linear-gradient(180deg, rgba(201, 169, 110, 0.12), transparent 80%); }

.count-card {
  min-width: 72px;
  padding: 10px 8px 12px;
  border-radius: 22px;
  animation: bob 3.8s ease-in-out infinite;
}
.count-card:nth-child(1) { background: #fde4eb; animation-delay: 0s; }
.count-card:nth-child(2) { background: #fff0dc; animation-delay: 0.35s; }
.count-card:nth-child(3) { background: #f3e6f6; animation-delay: 0.7s; }
.count-card:nth-child(4) { background: #e5f6ee; animation-delay: 1.05s; }
.count-card strong.tick { animation: tick 0.45s ease; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes tick {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.letter-photo.visible img { animation: sway 6.5s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

.dua-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(243, 183, 198, 0.45), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(227, 207, 234, 0.4), transparent 40%),
    var(--white);
}
.button-soft, .button-gold { position: relative; overflow: hidden; }
.button-soft::after, .button-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: shine 4.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 55% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
.button-gold { background: linear-gradient(180deg, #e4c98a, #c9a96e); }

.shot { transition: transform 0.45s ease, box-shadow 0.45s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shot:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(196, 137, 150, 0.28); }
}

.wish-card:nth-child(odd) { background: linear-gradient(180deg, #fff, #fff6f8); }
.wish-card:nth-child(even) { background: linear-gradient(180deg, #fff, #f8f3fb); }
.wish-card.visible, .wish-form.visible { animation: rise 0.7s ease both; }

.bottom-nav a.active { color: #a56b78; }
.bottom-nav a.active svg { animation: pop 1.8s ease-in-out infinite; }
@keyframes pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}
.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, #f3b7c6, #c9a96e, #e3cfea, #d7efe4);
}

@media (min-width: 900px) {
  section[id] { scroll-margin-top: 168px; }
}

.music-button.is-playing {
  animation: bloomRing 1.8s ease-in-out infinite;
  border-color: rgba(196, 137, 150, 0.8);
}
@keyframes bloomRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 183, 198, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(243, 183, 198, 0); }
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.shot,
.shot.feature,
.shot.wide,
.shot.tall,
.shot.side {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  max-height: none;
  aspect-ratio: 3 / 4;
}
.shot img,
.shot.wide img,
.shot.focus-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.shot.focus-face img { object-position: center 22%; }

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .shot,
  .shot.feature,
  .shot.wide,
  .shot.tall,
  .shot.side {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 4;
    max-height: none;
  }
}
