:root {
  --ivory: #fbf7f1;
  --paper: #fffdf9;
  --blush: #efcbd2;
  --blush-soft: #f7e7e8;
  --rose-gold: #b77b6b;
  --emerald: #153f36;
  --emerald-deep: #0c2b25;
  --ink: #1f2926;
  --muted: #66706c;
  --line: rgba(31, 41, 38, 0.16);
  --white-line: rgba(255, 255, 255, 0.2);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Italiana", "Cormorant Garamond", serif;
  --sans: "Cairo", Arial, sans-serif;
  --container: min(1240px, calc(100vw - 96px));
  --radius: 28px;
  --shadow: 0 28px 80px rgba(21, 63, 54, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--blush);
  color: var(--emerald-deep);
}

img {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--rose-gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--paper);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose-gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #e6b8ae;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  background: var(--emerald);
  color: white;
  box-shadow: 0 12px 30px rgba(21, 63, 54, 0.2);
}

.button--primary:hover {
  background: var(--emerald-deep);
  box-shadow: 0 16px 36px rgba(21, 63, 54, 0.26);
}

.button--quiet {
  background: transparent;
  border-color: var(--line);
}

.button--quiet:hover {
  background: rgba(255, 255, 255, 0.75);
}

.button--dark {
  background: var(--emerald-deep);
  color: white;
}

.button--full {
  width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: clamp(24px, 5vw, 72px);
  color: var(--emerald);
  background: rgba(251, 247, 241, 0.66);
  border-bottom: 1px solid rgba(183, 123, 107, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    height 0.35s var(--ease),
    color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  height: 68px;
  color: var(--ink);
  background: rgba(251, 247, 241, 0.88);
  box-shadow: 0 8px 32px rgba(21, 63, 54, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.blessing {
  min-height: 100svh;
  padding: 128px 24px 88px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, #f9eeed, #f4dedf 56%, #fbf7f1);
  text-align: center;
}

.blessing::before,
.blessing::after {
  content: "";
  position: absolute;
  width: min(58vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(183, 123, 107, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.blessing::before {
  top: -42%;
  left: -18%;
}

.blessing::after {
  right: -22%;
  bottom: -52%;
}

.blessing__inner {
  width: min(900px, 100%);
  position: relative;
  z-index: 1;
}

.blessing__ornament,
.dua__ornament {
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  color: var(--rose-gold);
  border: 1px solid rgba(183, 123, 107, 0.28);
  border-radius: 50%;
  font-size: 0.7rem;
}

.blessing__label {
  margin: 0 0 20px;
  color: var(--rose-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.blessing__bismillah {
  margin: 0 0 30px;
  color: var(--emerald);
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.8;
}

.blessing blockquote {
  margin: 0;
}

.blessing blockquote p {
  margin: 0 auto;
  color: var(--emerald-deep);
  font-family: var(--sans);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 2;
}

.blessing blockquote cite {
  margin-top: 22px;
  display: block;
  color: var(--rose-gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

.blessing__continue {
  margin-top: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 700;
}

.blessing__continue i {
  width: 1px;
  height: 34px;
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(21, 63, 54, 0.18);
}

.blessing__continue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose-gold);
  animation: blessingLine 2.2s var(--ease) infinite;
}

@keyframes blessingLine {
  0% {
    transform: translateY(-105%);
  }
  60%,
  100% {
    transform: translateY(105%);
  }
}

.brand,
.site-footer__mark,
.hero__monogram {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: 0.015em;
  line-height: 1;
}

.brand b,
.site-footer__mark b,
.hero__monogram b {
  color: var(--rose-gold);
  font-family: var(--serif);
  font-size: 0.68em;
  font-style: italic;
  font-weight: 400;
  transform: translateY(0.08em);
}

.brand__m,
.brand__a {
  position: relative;
  display: inline-block;
  min-width: 0.72em;
  color: inherit;
  line-height: 0.86;
  text-align: center;
  text-shadow: 0 8px 22px rgba(21, 63, 54, 0.12);
}

.brand {
  padding-top: 8px;
  color: var(--emerald);
}

/* Tailored rose-gold bow tie above the groom's M. */
.brand__m i {
  position: absolute;
  left: 50%;
  bottom: 1.03em;
  width: 0.17em;
  height: 0.17em;
  background: linear-gradient(145deg, #f0c7bc, var(--rose-gold) 62%, #8b5447);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow:
    0 3px 9px rgba(105, 56, 45, 0.28),
    0 0 0 2px rgba(183, 123, 107, 0.1);
  font-style: normal;
  transform: translateX(-50%);
}

.brand__m i::before,
.brand__m i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.62em;
  height: 0.38em;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), transparent 38%),
    linear-gradient(135deg, #dca99c, var(--rose-gold) 58%, #8c5549);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 4px 10px rgba(105, 56, 45, 0.2);
  clip-path: polygon(0 4%, 100% 30%, 100% 70%, 0 96%);
}

.brand__m i::before {
  right: 55%;
  border-radius: 58% 20% 20% 58%;
  transform: translateY(-50%) rotate(7deg);
}

.brand__m i::after {
  left: 55%;
  border-radius: 20% 58% 58% 20%;
  transform: translateY(-50%) rotate(173deg);
}

/* An illuminated couture crown above the bride's A. */
.brand__a i {
  position: absolute;
  left: 50%;
  bottom: 0.9em;
  color: #cf9789;
  font-family: var(--serif);
  font-size: 0.82em;
  font-style: normal;
  line-height: 1;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75),
    0 0 12px rgba(231, 195, 189, 0.72),
    0 7px 15px rgba(90, 49, 41, 0.2);
  transform: translateX(-50%) scaleX(0.94);
}

.brand__a i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.04em;
  width: 1.05em;
  height: 0.42em;
  border-top: 1px solid rgba(231, 195, 189, 0.88);
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(231, 195, 189, 0.72));
  transform: translateX(-50%);
}

.brand__a i::after {
  content: "•  ◆  •";
  position: absolute;
  left: 50%;
  top: 0.58em;
  width: 4em;
  color: #f2d2ca;
  font-family: var(--sans);
  font-size: 0.13em;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translateX(-50%);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.desktop-nav a,
.language-toggle {
  position: relative;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}

.desktop-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.language-toggle {
  min-width: 50px;
  min-height: 40px;
  padding: 8px;
}

.header-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.header-rsvp:hover {
  background: white;
  color: var(--emerald);
}

.site-header.is-scrolled .header-rsvp:hover {
  background: var(--emerald);
  color: white;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 46% 54%;
  position: relative;
  background: var(--blush-soft);
}

.hero__copy {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 124px clamp(42px, 7vw, 112px) 80px;
  position: relative;
  z-index: 2;
}

.hero__copy::before,
.hero__copy::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(183, 123, 107, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.hero__copy::before {
  width: 340px;
  height: 340px;
  top: -170px;
  left: -110px;
}

.hero__copy::after {
  width: 140px;
  height: 140px;
  right: -42px;
  bottom: 72px;
}

.hero__eyebrow {
  margin-bottom: 26px;
}

.hero__monogram {
  margin-bottom: 30px;
  padding: 0.72em 56px 0.08em;
  display: flex;
  position: relative;
  color: var(--emerald);
  font-size: clamp(3.25rem, 4.6vw, 4.8rem);
  filter: drop-shadow(0 16px 25px rgba(21, 63, 54, 0.1));
}

.hero__monogram::before,
.hero__monogram::after {
  content: "";
  position: absolute;
  top: 52%;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold));
}

.hero__monogram::before {
  left: 0;
}

.hero__monogram::after {
  right: 0;
  transform: rotate(180deg);
}

.hero__monogram .brand__m,
.hero__monogram .brand__a {
  background: linear-gradient(155deg, #0c2b25 8%, #2e6b5d 52%, #102f28 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__monogram .brand__m i {
  animation: bowGleam 4.6s var(--ease) infinite;
}

.hero__monogram .brand__a i {
  animation: crownGleam 4.6s var(--ease) 0.7s infinite;
}

@keyframes bowGleam {
  0%,
  100% {
    filter: brightness(1);
    transform: translateX(-50%) translateY(0);
  }
  48% {
    filter: brightness(1.14);
    transform: translateX(-50%) translateY(-0.035em);
  }
}

@keyframes crownGleam {
  0%,
  100% {
    filter: brightness(1);
    transform: translateX(-50%) translateY(0) scaleX(0.94);
  }
  48% {
    filter: brightness(1.18);
    transform: translateX(-50%) translateY(-0.045em) scaleX(0.98);
  }
}

.hero h1 {
  margin: 0;
  display: grid;
  color: var(--emerald);
  font-family: var(--display);
  font-size: clamp(4.7rem, 7.2vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.79;
}

.hero h1 em {
  margin-block: 0.09em 0.06em;
  color: var(--rose-gold);
  font-family: var(--serif);
  font-size: 0.52em;
  font-weight: 400;
  justify-self: center;
  letter-spacing: 0;
}

.hero__invitation {
  max-width: 460px;
  margin: 34px 0 28px;
  color: #46534f;
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.45;
}

.hero__date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: var(--emerald);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__date strong {
  padding-inline: 14px;
  border-inline: 1px solid rgba(21, 63, 54, 0.28);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--emerald);
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 43, 37, 0.18), transparent 28%),
    linear-gradient(0deg, rgba(12, 43, 37, 0.62), transparent 30%);
}

.hero__visual img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroDrift 16s ease-out both;
}

@keyframes heroDrift {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero__image-caption {
  position: absolute;
  right: clamp(28px, 5vw, 74px);
  bottom: 54px;
  z-index: 2;
  display: grid;
  color: white;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-align: right;
  text-transform: uppercase;
}

.hero__image-caption span:first-child {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.hero__scroll {
  position: absolute;
  left: 46%;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll i {
  width: 44px;
  height: 1px;
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateX(-105%);
  }
  55%,
  100% {
    transform: translateX(105%);
  }
}

.countdown {
  min-height: 520px;
  padding: 110px max(48px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  align-items: center;
  gap: 68px;
  background:
    radial-gradient(circle at 80% 20%, rgba(239, 203, 210, 0.13), transparent 30%),
    var(--emerald);
  color: white;
}

.countdown h2 {
  max-width: 440px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.countdown__units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--white-line);
}

.countdown__units div {
  min-width: 0;
  padding: 36px 16px;
  border-inline-start: 1px solid var(--white-line);
  text-align: center;
}

.countdown__units div:first-child {
  border-inline-start: 0;
}

.countdown__units strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 1;
}

.countdown__units span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown__note {
  grid-column: 2;
  margin: -36px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  align-items: center;
  gap: clamp(70px, 10vw, 150px);
  padding-block: 150px;
}

.story__portrait {
  min-height: 680px;
  position: relative;
}

.story__portrait::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 66%;
  height: 48%;
  border: 1px solid var(--rose-gold);
  border-radius: 250px 250px 0 0;
}

.story__portrait img {
  height: 680px;
  position: relative;
  object-fit: cover;
  object-position: center;
  border-radius: 250px 250px 18px 18px;
  filter: saturate(0.62) sepia(0.12);
}

.story__number {
  position: absolute;
  right: -24px;
  bottom: 28px;
  color: var(--rose-gold);
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 1;
}

.story__copy h2,
.section-heading h2,
.location__card h2,
.rsvp h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 6.3rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.story__lead {
  margin: 38px 0 18px;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.35;
}

.story__copy > p:last-of-type {
  max-width: 560px;
  color: var(--muted);
}

.signature {
  margin-top: 30px;
  color: var(--rose-gold);
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
}

.details {
  padding: 130px 0 150px;
  background: var(--paper);
}

.section-heading {
  width: var(--container);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  max-width: 780px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.details__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 54px;
}

.details__image {
  min-height: 740px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.details__image img {
  height: 100%;
  object-fit: cover;
}

.details__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 43, 37, 0.72), transparent 48%);
}

.details__image-label {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 36px;
  z-index: 1;
  display: grid;
  color: white;
}

.details__image-label span {
  color: #e6b8ae;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.details__image-label strong {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 400;
}

.details__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.detail-card {
  min-height: 310px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}

.detail-card:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}

.detail-card__index {
  margin-bottom: auto;
  color: var(--rose-gold);
  font-family: var(--display);
  font-size: 1rem;
}

.detail-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 0;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  font-weight: 500;
  line-height: 1.1;
}

.detail-card > span:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.moments {
  padding: 140px 0 150px;
  background: var(--emerald-deep);
  color: white;
}

.section-heading--light {
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
}

.gallery {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 14px;
}

.gallery__item {
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #183831;
  cursor: zoom-in;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
  transition:
    transform 0.8s var(--ease),
    filter 0.5s ease;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 31, 27, 0.72), transparent 48%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery__item span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  text-align: start;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1);
}

.gallery__item:hover::after,
.gallery__item:hover span,
.gallery__item:focus-visible::after,
.gallery__item:focus-visible span {
  opacity: 1;
}

.gallery__item:hover span,
.gallery__item:focus-visible span {
  transform: translateY(0);
}

.location {
  width: var(--container);
  margin: 0 auto;
  padding-block: 150px;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  align-items: center;
}

.location__image {
  min-height: 690px;
  overflow: hidden;
  border-radius: var(--radius);
}

.location__image img {
  height: 690px;
  object-fit: cover;
}

.location__card {
  min-height: 540px;
  margin-inline-start: -90px;
  padding: clamp(46px, 6vw, 84px);
  position: relative;
  z-index: 2;
  background: rgba(255, 253, 249, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.location__card h2 {
  color: var(--emerald);
  font-size: clamp(3.2rem, 5.3vw, 5.2rem);
}

.location__card address {
  margin: 30px 0;
  display: grid;
  color: var(--muted);
  font-style: normal;
}

.location__facts {
  margin-bottom: 34px;
  padding-block: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-block: 1px solid var(--line);
}

.location__facts div {
  display: grid;
}

.location__facts span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.location__facts strong {
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.rsvp {
  padding: 140px max(48px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(70px, 10vw, 160px);
  align-items: start;
  color: white;
  background:
    radial-gradient(circle at 12% 84%, rgba(183, 123, 107, 0.25), transparent 30%),
    var(--emerald);
}

.rsvp__intro {
  position: sticky;
  top: 120px;
}

.rsvp__intro > p:not(.eyebrow) {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.rsvp__date {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.rsvp__date > span {
  padding-inline-end: 18px;
  border-inline-end: 1px solid var(--white-line);
  font-family: var(--display);
  font-size: 4.8rem;
  line-height: 1;
}

.rsvp__date div {
  display: grid;
}

.rsvp__date strong {
  color: #e6b8ae;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.rsvp__date small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.rsvp__panel {
  min-height: 620px;
  padding: clamp(34px, 5vw, 64px);
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(5, 24, 20, 0.28);
}

.rsvp__panel form {
  display: grid;
  gap: 26px;
}

.rsvp__panel fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp__panel legend,
.rsvp__panel label > span {
  margin-bottom: 10px;
  display: block;
  color: #5b6561;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp__panel label > span em {
  color: #909792;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.attendance-options label {
  min-height: 94px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition:
    border 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease);
}

.attendance-options label:hover {
  transform: translateY(-2px);
}

.attendance-options label:has(input:checked) {
  border-color: var(--emerald);
  background: rgba(21, 63, 54, 0.06);
}

.attendance-options input {
  position: absolute;
  opacity: 0;
}

.attendance-options span {
  color: var(--rose-gold);
  font-size: 1.1rem;
}

.attendance-options b {
  font-size: 0.78rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 18px;
}

.rsvp__panel input,
.rsvp__panel select,
.rsvp__panel textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.25s ease;
}

.rsvp__panel input:focus,
.rsvp__panel select:focus,
.rsvp__panel textarea:focus {
  border-bottom-color: var(--emerald);
}

.rsvp__panel input::placeholder,
.rsvp__panel textarea::placeholder {
  color: #9aa19e;
}

.rsvp__panel textarea {
  resize: vertical;
}

.field-error {
  margin-top: 5px;
  display: none;
  color: #a04444;
  font-size: 0.72rem;
}

label.has-error .field-error {
  display: block;
}

label.has-error input {
  border-bottom-color: #a04444;
}

.form-note {
  margin: -12px 0 0;
  color: #7b8580;
  font-size: 0.7rem;
  text-align: center;
}

.rsvp-success {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rsvp-success[hidden] {
  display: none;
}

.rsvp-success__heart {
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  color: var(--rose-gold);
  background: var(--blush-soft);
  border-radius: 50%;
  font-size: 1.7rem;
}

.rsvp-success h3 {
  margin: 0;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.rsvp-success > p:not(.eyebrow) {
  max-width: 360px;
  color: var(--muted);
}

.rsvp-success .button {
  margin-top: 18px;
}

.text-button {
  margin-top: 18px;
  padding: 6px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.text-button--light {
  color: white;
}

.site-footer {
  min-height: 420px;
  padding: 80px 24px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--emerald-deep);
  text-align: center;
}

.dua {
  min-height: 560px;
  padding: 110px 24px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 50% 50%, rgba(183, 123, 107, 0.18), transparent 36%),
    var(--emerald);
  text-align: center;
}

.dua::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(231, 195, 189, 0.18);
  border-radius: var(--radius);
  pointer-events: none;
}

.dua__inner {
  width: min(860px, 100%);
  position: relative;
  z-index: 1;
}

.dua__ornament {
  color: #efc8bf;
  border-color: rgba(239, 200, 191, 0.28);
}

.dua h2 {
  margin: 0;
  color: white;
  font-family: var(--sans);
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.7;
}

.dua__inner > p:last-child {
  max-width: 650px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
}

.site-footer__mark {
  margin-bottom: 30px;
  padding-top: 24px;
  color: white;
  font-size: 3.8rem;
}

.site-footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-style: italic;
}

.site-footer > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.music-player {
  --music-progress: 0%;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 130;
  width: min(390px, calc(100vw - 32px));
  min-height: 74px;
  padding: 9px 12px 9px 9px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(231, 195, 189, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(9, 38, 33, 0.97), rgba(17, 57, 49, 0.94));
  border: 1px solid rgba(231, 195, 189, 0.34);
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(6, 22, 19, 0.32);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;
}

.music-player:hover,
.music-player:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(6, 22, 19, 0.4);
}

.music-player::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(transparent, #e7c3bd 28% 72%, transparent);
  opacity: 0.72;
}

.music-player.has-error {
  opacity: 0.58;
}

.music-player button {
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.music-player__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  outline-offset: 3px;
}

.music-player__disc {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  position: relative;
  color: #fff8f5;
  background:
    radial-gradient(circle at center, #fff7f3 0 5%, #b97670 6% 12%, transparent 13%),
    repeating-radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.18) 0 1px,
      rgba(3, 26, 22, 0.06) 2px 4px
    ),
    linear-gradient(145deg, #d9a7a1, #9f655f);
  border: 1px solid rgba(255, 247, 243, 0.82);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.music-player__disc::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(231, 195, 189, 0.42);
  border-radius: inherit;
  opacity: 0;
}

.music-player__disc i {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transform: translateX(1px);
}

.music-player.is-playing .music-player__disc {
  animation: musicDisc 6s linear infinite;
}

.music-player.is-playing .music-player__disc::after {
  animation: musicPulse 2s var(--ease) infinite;
}

.music-player.is-playing .music-player__disc i {
  animation: musicIconCounter 6s linear infinite;
}

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

@keyframes musicIconCounter {
  to {
    transform: translateX(1px) rotate(-360deg);
  }
}

@keyframes musicPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.94);
  }
  45% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.music-player__content {
  min-width: 0;
}

.music-player__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.music-player__heading span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.music-player__heading strong {
  overflow: hidden;
  color: white;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  text-overflow: ellipsis;
}

.music-player__equalizer {
  width: 28px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.music-player__equalizer i {
  width: 2px;
  height: 4px;
  display: block;
  background: linear-gradient(to top, #b97670, #fff5f1);
  border-radius: 99px;
  opacity: 0.52;
  transform-origin: center;
}

.music-player.is-playing .music-player__equalizer i {
  opacity: 1;
  animation: musicEqualizer 0.82s ease-in-out infinite alternate;
}

.music-player.is-playing .music-player__equalizer i:nth-child(2) {
  animation-delay: -0.42s;
}

.music-player.is-playing .music-player__equalizer i:nth-child(3) {
  animation-delay: -0.18s;
}

.music-player.is-playing .music-player__equalizer i:nth-child(4) {
  animation-delay: -0.58s;
}

.music-player.is-playing .music-player__equalizer i:nth-child(5) {
  animation-delay: -0.28s;
}

@keyframes musicEqualizer {
  from {
    transform: scaleY(0.65);
  }
  to {
    transform: scaleY(3.6);
  }
}

.music-player__timeline {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
}

.music-player__timeline span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.52rem;
  font-variant-numeric: tabular-nums;
}

.music-player__timeline span:last-child {
  text-align: end;
}

.music-player__timeline input {
  width: 100%;
  height: 16px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.music-player__timeline input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #e7c3bd 0 var(--music-progress),
    rgba(255, 255, 255, 0.2) var(--music-progress) 100%
  );
}

.music-player__timeline input::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  appearance: none;
  background: white;
  border: 2px solid var(--rose-gold);
  border-radius: 50%;
}

.music-player__timeline input::-moz-range-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.music-player__timeline input::-moz-range-progress {
  height: 2px;
  background: #e7c3bd;
}

.music-player__timeline input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: white;
  border: 2px solid var(--rose-gold);
  border-radius: 50%;
}

.music-player__volume {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 50% !important;
}

.music-player__volume span {
  font-size: 0.46rem;
  font-weight: 800;
}

.music-player__volume[aria-pressed="true"] {
  color: rgba(255, 255, 255, 0.42);
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status {
  min-height: 1.45em;
  margin: 10px 0 0;
  color: #8f3f3f;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

#rsvp-form[aria-busy="true"] {
  cursor: wait;
}

#rsvp-form[aria-busy="true"] .button__signal {
  animation: rsvpHeartbeat 0.9s ease-in-out infinite;
}

@keyframes rsvpHeartbeat {
  50% {
    opacity: 0.45;
    transform: scale(0.76);
  }
}

.mobile-dock {
  display: none;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 40px;
  border: 0;
  background: rgba(6, 22, 19, 0.96);
  color: white;
}

.lightbox::backdrop {
  background: rgba(6, 22, 19, 0.96);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
}

.lightbox figure {
  width: min(100%, 1080px);
  height: min(80vh, 780px);
  margin: auto;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox figcaption {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
}

.lightbox button {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.2rem;
}

.lightbox__nav {
  font-size: 1.8rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 500;
  max-width: min(90vw, 460px);
  padding: 12px 20px;
  color: white;
  background: var(--emerald-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(6, 22, 19, 0.3);
  font-size: 0.78rem;
  text-align: center;
  transform: translate(-50%, 18px);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[dir="rtl"] body {
  font-family: var(--sans);
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero__monogram,
html[dir="rtl"] .brand,
html[dir="rtl"] .site-footer__mark,
html[dir="rtl"] .signature {
  direction: ltr;
}

html[dir="rtl"] .hero h1 {
  align-items: end;
}

html[dir="rtl"] .hero__image-caption {
  text-align: left;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .desktop-nav a,
html[dir="rtl"] .header-rsvp,
html[dir="rtl"] .language-toggle,
html[dir="rtl"] .button,
html[dir="rtl"] .detail-card p,
html[dir="rtl"] .rsvp__panel legend,
html[dir="rtl"] .rsvp__panel label > span {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .story__copy h2,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .countdown h2,
html[dir="rtl"] .detail-card h3,
html[dir="rtl"] .rsvp h2,
html[dir="rtl"] .rsvp-success h3,
html[dir="rtl"] .site-footer p {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

html[dir="rtl"] .story__copy h2,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .countdown h2,
html[dir="rtl"] .rsvp h2 {
  font-size: clamp(2.65rem, 5vw, 4.9rem);
}

html[dir="rtl"] .hero__invitation,
html[dir="rtl"] .countdown__note,
html[dir="rtl"] .story__lead,
html[dir="rtl"] .story__copy > p:last-of-type,
html[dir="rtl"] .section-heading > p:not(.eyebrow),
html[dir="rtl"] .rsvp__intro > p:not(.eyebrow) {
  font-family: var(--sans);
  font-style: normal;
  line-height: 1.9;
}

html[dir="rtl"] .hero__eyebrow {
  max-width: 100%;
  margin-bottom: 20px;
  color: var(--rose-gold);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: normal;
}

html[dir="rtl"] .story__lead {
  font-size: 1.3rem;
}

html[dir="rtl"] .section-heading,
html[dir="rtl"] .story__copy,
html[dir="rtl"] .rsvp__intro {
  text-align: right;
}

@media (max-width: 1080px) {
  :root {
    --container: min(100% - 48px, 960px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero__copy {
    padding-inline: 48px;
  }

  .countdown {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .countdown__intro {
    text-align: center;
  }

  .countdown h2 {
    margin-inline: auto;
  }

  .countdown__note {
    grid-column: 1;
    margin: -22px 0 0;
  }

  .story {
    gap: 70px;
  }

  .story__portrait,
  .story__portrait img {
    min-height: 560px;
    height: 560px;
  }

  .section-heading,
  .section-heading--light {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .details__layout {
    grid-template-columns: 1fr;
  }

  .details__image {
    min-height: 620px;
  }

  .detail-card {
    min-height: 230px;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .rsvp {
    gap: 70px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: calc(100% - 36px);
    --radius: 20px;
  }

  html {
    scroll-padding-top: 62px;
  }

  body {
    padding-bottom: 146px;
  }

  .site-header {
    height: 64px;
    padding-inline: 20px;
  }

  .site-header,
  .site-header.is-scrolled {
    color: var(--ink);
    background: rgba(251, 247, 241, 0.84);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .site-header.is-scrolled {
    height: 60px;
  }

  .header-rsvp {
    display: none;
  }

  .language-toggle {
    min-width: 44px;
  }

  .blessing {
    min-height: 100svh;
    padding: 108px 20px 70px;
  }

  .blessing::before,
  .blessing::after {
    width: 92vw;
  }

  .blessing__ornament {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
  }

  .blessing__label {
    margin-bottom: 16px;
  }

  .blessing__bismillah {
    margin-bottom: 22px;
    font-size: 1rem;
  }

  .blessing blockquote p {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    line-height: 2.05;
  }

  .blessing blockquote cite {
    margin-top: 18px;
  }

  .blessing__continue {
    margin-top: 34px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .hero__visual {
    min-height: 58svh;
    grid-row: 1;
    margin: 12px 12px 0;
    border-radius: 18px;
  }

  .hero__visual img {
    position: absolute;
    inset: 0;
  }

  .hero__copy {
    min-height: auto;
    padding: 58px 24px 70px;
    align-items: center;
    text-align: center;
  }

  .hero__copy::before {
    width: 230px;
    height: 230px;
  }

  .hero__copy::after {
    display: none;
  }

  .hero__monogram {
    margin-bottom: 32px;
    padding-inline: 46px;
    display: flex;
    font-size: clamp(3rem, 14vw, 4.1rem);
  }

  .hero h1 {
    font-size: clamp(3.9rem, 19vw, 6rem);
    line-height: 0.84;
  }

  .hero__invitation {
    margin-top: 28px;
    font-size: 1.27rem;
  }

  .hero__date {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__actions {
    width: 100%;
    display: grid;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__image-caption {
    right: 22px;
    bottom: 22px;
  }

  .hero__scroll {
    display: none;
  }

  .countdown {
    min-height: auto;
    padding: 90px 18px;
  }

  .countdown h2 {
    font-size: 3.5rem;
  }

  .countdown__units strong {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .countdown__units div {
    padding: 28px 6px;
  }

  .countdown__units span {
    font-size: 0.54rem;
    letter-spacing: 0.06em;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-block: 104px;
  }

  .story__portrait,
  .story__portrait img {
    min-height: 520px;
    height: 520px;
  }

  .story__portrait::before {
    left: -8px;
  }

  .story__number {
    right: -4px;
    font-size: 4.5rem;
  }

  .story__copy h2,
  .section-heading h2,
  .location__card h2,
  .rsvp h2 {
    font-size: 3.6rem;
  }

  .story__lead {
    font-size: 1.45rem;
  }

  .details,
  .moments {
    padding-block: 96px;
  }

  .section-heading {
    margin-bottom: 46px;
  }

  .details__image {
    min-height: 560px;
  }

  .details__image-label {
    left: 26px;
    right: 26px;
    bottom: 24px;
  }

  .details__cards {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 190px;
    padding: 28px 10px;
  }

  .detail-card:nth-child(odd) {
    border-inline-end: 0;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 230px;
    gap: 8px;
  }

  .gallery__item:nth-child(3) {
    grid-column: span 2;
  }

  .gallery__item::after {
    opacity: 0.6;
  }

  .gallery__item span {
    left: 14px;
    right: 14px;
    bottom: 12px;
    font-size: 1rem;
    opacity: 1;
    transform: none;
  }

  .location {
    width: 100%;
    padding: 90px 18px;
    grid-template-columns: 1fr;
  }

  .location__image,
  .location__image img {
    min-height: 480px;
    height: 480px;
  }

  .location__card {
    min-height: 0;
    margin: -76px 14px 0;
    padding: 42px 26px;
  }

  .location__facts {
    grid-template-columns: 1fr;
  }

  .location__card .button {
    width: 100%;
  }

  .dua {
    min-height: 500px;
    padding: 88px 28px;
  }

  .dua::before {
    inset: 14px;
  }

  .dua h2 {
    font-size: clamp(1.75rem, 8.2vw, 2.55rem);
    line-height: 1.75;
  }

  .dua__inner > p:last-child {
    font-size: 0.9rem;
  }

  .rsvp {
    padding: 96px 18px;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .rsvp__intro {
    position: static;
  }

  .rsvp__panel {
    min-height: 0;
    padding: 30px 22px;
  }

  .attendance-options,
  .form-row {
    grid-template-columns: 1fr;
  }

  .attendance-options label {
    min-height: 74px;
  }

  .site-footer {
    min-height: 380px;
    padding-bottom: 110px;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 120;
    height: 64px;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 4px;
    background: rgba(255, 253, 249, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 14px 44px rgba(6, 22, 19, 0.24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .music-player {
    left: 12px;
    right: 12px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 72px);
    width: auto;
    min-height: 62px;
    padding: 6px 10px 6px 6px;
    grid-template-columns: 50px minmax(0, 1fr) 36px;
    gap: 9px;
    border-radius: 19px;
  }

  .music-player:hover,
  .music-player:focus-within {
    transform: none;
  }

  .music-player__toggle {
    width: 50px;
    height: 50px;
  }

  .music-player__disc {
    width: 44px;
    height: 44px;
  }

  .music-player__heading span {
    display: none;
  }

  .music-player__heading .music-player__equalizer {
    display: flex;
  }

  .music-player__heading strong {
    font-size: 1rem;
  }

  .music-player__volume {
    width: 34px;
    height: 34px;
  }

  .mobile-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 15px;
    color: var(--emerald);
    font-size: 0.68rem;
  }

  .mobile-dock a span {
    color: var(--rose-gold);
  }

  .mobile-dock a b {
    font-weight: 700;
  }

  .mobile-dock__primary {
    background: var(--emerald);
    color: white !important;
  }

  .mobile-dock__primary span {
    color: #e9bab0 !important;
  }

  .lightbox {
    padding: 56px 16px 26px;
  }

  .lightbox[open] {
    grid-template-columns: 40px 1fr 40px;
  }

  .toast {
    bottom: 158px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Editorial identity v3
   A disciplined bilingual type system and a single visual rhythm.
   ========================================================================== */

:root {
  --font-en-display: "Italiana", "Cormorant Garamond", Georgia, serif;
  --font-en-serif: "Cormorant Garamond", Georgia, serif;
  --font-en-sans: "Manrope", Arial, sans-serif;
  --font-ar-display: "Noto Naskh Arabic", "Traditional Arabic", serif;
  --font-ar-sans: "Noto Kufi Arabic", Arial, sans-serif;
  --display: var(--font-en-display);
  --serif: var(--font-en-serif);
  --sans: var(--font-en-sans);
  --ivory: #faf6f0;
  --paper: #fffdf9;
  --blush-soft: #f6e6e5;
  --rose-gold: #b67969;
  --emerald: #123f35;
  --emerald-deep: #092d27;
  --ink: #1c2925;
  --muted: #65716c;
  --radius: 32px;
  --section-space: clamp(100px, 10vw, 156px);
}

body {
  font-family: var(--font-en-sans);
  line-height: 1.75;
}

.hero__visual picture,
.story__portrait picture,
.details__image picture,
.gallery__item picture,
.location__image picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__visual picture,
.details__image picture {
  position: absolute;
  inset: 0;
}

.story__portrait picture {
  position: relative;
}

html[dir="rtl"] body {
  font-family: var(--font-ar-sans);
  font-weight: 400;
  line-height: 2;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rose-gold);
  font-family: var(--font-en-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.55;
}

html[dir="rtl"] .eyebrow {
  font-family: var(--font-ar-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.8;
  text-transform: none;
}

.section-heading,
.section-heading--light {
  width: min(940px, var(--container));
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.section-heading h2 {
  max-width: 820px;
  text-wrap: balance;
}

.section-heading > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px auto 0;
  text-wrap: balance;
}

html[dir="rtl"] .section-heading {
  align-items: center;
  text-align: center;
}

html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .story__copy h2,
html[dir="rtl"] .countdown h2,
html[dir="rtl"] .rsvp h2,
html[dir="rtl"] .rsvp-success h3 {
  font-family: var(--font-ar-sans);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.42;
}

html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .story__copy h2,
html[dir="rtl"] .countdown h2,
html[dir="rtl"] .rsvp h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.6rem);
}

html[dir="rtl"] .hero__invitation,
html[dir="rtl"] .countdown__note,
html[dir="rtl"] .story__lead,
html[dir="rtl"] .story__copy > p:last-of-type,
html[dir="rtl"] .section-heading > p:not(.eyebrow),
html[dir="rtl"] .rsvp__intro > p:not(.eyebrow) {
  font-family: var(--font-ar-display);
  font-style: normal;
  line-height: 1.95;
}

/* The opening verse is a calm editorial title page, not a wall of text. */
.blessing {
  min-height: 100svh;
  padding: 124px 24px 82px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), transparent 37%),
    linear-gradient(145deg, #fbf2ef 0%, #f3dcde 58%, #faf6f0 100%);
}

.blessing__inner {
  width: min(980px, 100%);
}

.blessing__inner::before,
.blessing__inner::after {
  content: "";
  width: min(180px, 22vw);
  height: 1px;
  position: absolute;
  top: 22px;
  background: linear-gradient(90deg, transparent, rgba(182, 121, 105, 0.58));
}

.blessing__inner::before {
  right: calc(50% + 38px);
}

.blessing__inner::after {
  left: calc(50% + 38px);
  transform: scaleX(-1);
}

.blessing__ornament {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: rgba(255, 253, 249, 0.48);
  box-shadow: 0 14px 36px rgba(93, 49, 42, 0.07);
}

.blessing__label {
  margin-bottom: 16px;
  font-family: var(--font-ar-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0;
}

.blessing__bismillah {
  margin-bottom: 24px;
  font-family: var(--font-ar-display);
  font-size: clamp(1.2rem, 2vw, 1.58rem);
  font-weight: 600;
  line-height: 1.8;
}

.blessing blockquote p {
  max-width: 960px;
  color: #173d34;
  font-family: var(--font-ar-display);
  font-size: clamp(1.55rem, 2.55vw, 2.2rem);
  font-weight: 500;
  line-height: 1.82;
  text-wrap: balance;
}

.blessing blockquote p span {
  display: block;
}

.blessing blockquote cite {
  margin-top: 20px;
  font-family: var(--font-ar-sans);
  font-size: 0.65rem;
  font-weight: 400;
}

.blessing__continue {
  margin-top: 34px;
  font-family: var(--font-ar-sans);
  font-size: 0.64rem;
  font-weight: 500;
}

/* The monogram is the couture seal of the invitation. */
.hero {
  grid-template-columns: minmax(440px, 47%) 1fr;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.7), transparent 30%),
    var(--blush-soft);
}

.hero__copy {
  padding: 120px clamp(46px, 6.7vw, 108px) 82px;
}

.hero__monogram {
  margin-bottom: 34px;
  padding: 0.7em 66px 0.08em;
  font-size: clamp(4.8rem, 6.5vw, 6.8rem);
}

.hero__monogram::before,
.hero__monogram::after {
  width: 48px;
}

.hero__eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(4.9rem, 6.7vw, 7.35rem);
  letter-spacing: -0.055em;
  line-height: 0.83;
}

.hero__invitation {
  max-width: 440px;
  margin: 28px 0 26px;
  font-size: clamp(1.18rem, 1.65vw, 1.45rem);
  line-height: 1.5;
  text-wrap: balance;
}

.hero__date {
  margin-bottom: 28px;
  font-family: var(--font-en-sans);
  font-size: 0.68rem;
}

html[dir="rtl"] .hero__copy {
  align-items: flex-end;
  text-align: right;
}

html[dir="rtl"] .hero__monogram {
  align-self: center;
}

html[dir="rtl"] .hero__eyebrow {
  margin-bottom: 14px;
  font-size: 0.7rem;
  line-height: 1.8;
}

html[dir="rtl"] .hero__invitation {
  max-width: 500px;
  margin-block: 24px;
  font-size: clamp(1.25rem, 1.8vw, 1.52rem);
  text-wrap: balance;
}

html[dir="rtl"] .hero__date {
  font-family: var(--font-ar-sans);
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: none;
}

.countdown {
  min-height: 560px;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 42px;
  padding-block: var(--section-space);
  text-align: center;
}

.countdown__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown h2 {
  max-width: 760px;
  margin-inline: auto;
  text-wrap: balance;
}

.countdown__units {
  width: min(940px, 100%);
}

.countdown__note {
  grid-column: 1;
  max-width: 620px;
  margin: -20px auto 0;
  text-wrap: balance;
}

.story {
  padding-block: var(--section-space);
}

.story__copy > p:last-of-type,
.story__lead {
  text-wrap: pretty;
}

html[dir="rtl"] .story__copy {
  text-align: right;
}

html[dir="rtl"] .story__lead {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

html[dir="rtl"] .story__copy > p:last-of-type {
  font-size: 1.06rem;
}

.details,
.moments {
  padding-block: var(--section-space);
}

.detail-card {
  align-content: center;
}

html[dir="rtl"] .detail-card h3 {
  font-family: var(--font-ar-sans);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.55;
}

html[dir="rtl"] .detail-card > span:last-child,
html[dir="rtl"] .location__facts strong {
  font-family: var(--font-ar-sans);
  line-height: 1.8;
}

html[dir="rtl"] .gallery__item span {
  font-family: var(--font-ar-display);
  font-style: normal;
}

.location {
  padding-block: var(--section-space);
}

.location__card h2 {
  text-wrap: balance;
}

.rsvp {
  padding-block: var(--section-space);
}

html[dir="rtl"] .rsvp__intro {
  text-align: right;
}

html[dir="rtl"] .rsvp__intro > p:not(.eyebrow) {
  font-size: 1.22rem;
  text-wrap: pretty;
}

html[dir="rtl"] .rsvp__panel legend,
html[dir="rtl"] .rsvp__panel label > span,
html[dir="rtl"] .attendance-options b,
html[dir="rtl"] .form-note {
  font-family: var(--font-ar-sans);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.8;
  text-transform: none;
}

.dua h2 {
  max-width: 900px;
  margin-inline: auto;
  text-wrap: balance;
}

.dua__inner > p:last-child {
  text-wrap: balance;
}

html[dir="rtl"] .dua h2 {
  font-family: var(--font-ar-display);
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 500;
  line-height: 1.75;
}

html[dir="rtl"] .dua__inner > p:last-child {
  font-family: var(--font-ar-display);
  font-size: 1.15rem;
  line-height: 2;
}

html[dir="rtl"] .site-footer p {
  font-family: var(--font-ar-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.8;
}

html[dir="rtl"] .music-player {
  right: auto;
  left: 24px;
}

@media (max-width: 1080px) {
  .section-heading,
  .section-heading--light {
    display: flex;
  }

  .hero__copy {
    padding-inline: 44px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: calc(100% - 32px);
    --radius: 24px;
    --section-space: 92px;
  }

  body {
    padding-bottom: 92px;
  }

  .site-header {
    height: 66px;
    padding-inline: 18px;
  }

  .site-header.is-scrolled {
    height: 62px;
  }

  .brand {
    padding-top: 10px;
    font-size: 1.82rem;
  }

  .blessing {
    min-height: 100svh;
    padding: 94px 22px 118px;
  }

  .blessing::before,
  .blessing::after {
    width: 116vw;
    opacity: 0.72;
  }

  .blessing__inner::before,
  .blessing__inner::after {
    width: 72px;
  }

  .blessing__ornament {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
  }

  .blessing__label {
    margin-bottom: 10px;
    font-size: 0.58rem;
  }

  .blessing__bismillah {
    margin-bottom: 16px;
    font-size: 1.08rem;
  }

  .blessing blockquote p {
    max-width: 340px;
    font-size: clamp(1.06rem, 5vw, 1.26rem);
    line-height: 1.82;
  }

  .blessing blockquote cite {
    margin-top: 14px;
    font-size: 0.58rem;
  }

  .blessing__continue {
    margin-top: 24px;
    gap: 8px;
    font-size: 0.59rem;
  }

  .blessing__continue i {
    height: 26px;
  }

  /* One cinematic mobile composition instead of two disconnected screens. */
  .hero {
    min-height: 100svh;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    isolation: isolate;
    background: var(--emerald-deep);
  }

  .hero__visual,
  .hero__copy {
    min-height: calc(100svh - 16px);
    grid-area: 1 / 1;
  }

  .hero__visual {
    margin: 76px 14px 16px;
    border-radius: 26px;
  }

  .hero__visual::after {
    background:
      linear-gradient(180deg, rgba(8, 34, 29, 0.1) 10%, rgba(8, 34, 29, 0.34) 48%, rgba(8, 34, 29, 0.94) 88%),
      linear-gradient(90deg, rgba(8, 34, 29, 0.16), transparent 50%);
  }

  .hero__visual img {
    object-position: 58% center;
  }

  .hero__copy,
  html[dir="rtl"] .hero__copy {
    min-height: 100svh;
    padding: 116px 34px 212px;
    align-items: center;
    justify-content: flex-end;
    color: white;
    text-align: center;
  }

  .hero__copy::before,
  .hero__copy::after {
    display: none;
  }

  .hero__monogram {
    margin-bottom: 18px;
    padding: 0.7em 52px 0.05em;
    font-size: clamp(3.8rem, 17vw, 4.8rem);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3));
  }

  .hero__monogram::before,
  .hero__monogram::after {
    width: 38px;
    background: linear-gradient(90deg, transparent, #e7bdb4);
  }

  .hero__monogram .brand__m,
  .hero__monogram .brand__a {
    background: linear-gradient(155deg, #fff8ed 10%, #ecc6bc 55%, #fff8ed 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero__eyebrow,
  html[dir="rtl"] .hero__eyebrow {
    margin-bottom: 10px;
    color: #f1c8bf;
    font-size: 0.6rem;
    justify-content: center;
  }

  .hero h1 {
    color: white;
    font-size: clamp(3.55rem, 16.5vw, 4.75rem);
    line-height: 0.86;
    text-shadow: 0 10px 32px rgba(4, 24, 20, 0.36);
  }

  .hero h1 em {
    color: #eabcb2;
  }

  .hero__invitation,
  html[dir="rtl"] .hero__invitation {
    max-width: 310px;
    margin: 18px auto 14px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.72;
    text-align: center;
  }

  .hero__date,
  html[dir="rtl"] .hero__date {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.58rem;
    justify-content: center;
  }

  .hero__date strong {
    border-color: rgba(255, 255, 255, 0.32);
  }

  .hero__actions {
    width: min(100%, 320px);
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero__actions .button {
    min-height: 48px;
    padding: 12px 10px;
    border-color: rgba(255, 255, 255, 0.42);
    font-size: 0.58rem;
  }

  .hero__actions .button--primary {
    background: white;
    color: var(--emerald-deep);
  }

  .hero__actions .button--quiet {
    color: white;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero__image-caption {
    display: none;
  }

  .section-heading,
  .section-heading--light {
    width: min(100% - 40px, 620px);
    margin-bottom: 48px;
  }

  .section-heading .eyebrow {
    margin-bottom: 12px;
  }

  .section-heading h2,
  .story__copy h2,
  .rsvp h2 {
    font-size: clamp(2.75rem, 13vw, 3.65rem);
    line-height: 0.98;
    text-wrap: balance;
  }

  html[dir="rtl"] .section-heading h2,
  html[dir="rtl"] .story__copy h2,
  html[dir="rtl"] .countdown h2,
  html[dir="rtl"] .rsvp h2 {
    font-size: clamp(2rem, 9.2vw, 2.75rem);
    line-height: 1.5;
  }

  .section-heading > p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1.08rem;
    line-height: 1.65;
  }

  .countdown {
    min-height: auto;
    gap: 34px;
    padding: var(--section-space) 18px;
  }

  .countdown h2 {
    font-size: clamp(2.7rem, 13vw, 3.5rem);
  }

  .countdown__units {
    width: 100%;
  }

  .countdown__units div {
    padding: 24px 4px;
  }

  .countdown__units strong {
    font-size: clamp(2rem, 10.5vw, 3rem);
  }

  .countdown__note {
    max-width: 320px;
    margin-top: -12px;
    font-size: 1.04rem;
  }

  .story {
    gap: 58px;
    padding-block: var(--section-space);
  }

  .story__portrait,
  .story__portrait img {
    min-height: 480px;
    height: 480px;
  }

  .story__copy {
    text-align: center;
  }

  html[dir="rtl"] .story__copy {
    text-align: right;
  }

  .story__lead {
    margin-top: 28px;
  }

  html[dir="rtl"] .story__lead {
    font-size: 1.27rem;
    line-height: 1.95;
  }

  html[dir="rtl"] .story__copy > p:last-of-type {
    font-size: 0.92rem;
    line-height: 2;
  }

  .details,
  .moments {
    padding-block: var(--section-space);
  }

  .details__image {
    min-height: 500px;
  }

  .detail-card {
    min-height: 168px;
    padding: 24px 12px;
  }

  .location {
    padding-block: var(--section-space);
  }

  .location__image,
  .location__image img {
    min-height: 440px;
    height: 440px;
  }

  .location__card {
    margin: -62px 12px 0;
    padding: 38px 24px;
  }

  .location__card h2 {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
    line-height: 0.98;
  }

  .dua {
    min-height: 520px;
    padding: 84px 34px 112px;
  }

  html[dir="rtl"] .dua h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.55rem);
    line-height: 1.75;
  }

  html[dir="rtl"] .dua__inner > p:last-child {
    font-size: 1.03rem;
  }

  .rsvp {
    gap: 52px;
    padding: var(--section-space) 18px;
  }

  .rsvp__intro,
  html[dir="rtl"] .rsvp__intro {
    text-align: center;
  }

  .rsvp__intro .eyebrow {
    margin-inline: auto;
  }

  html[dir="rtl"] .rsvp__intro > p:not(.eyebrow) {
    margin-inline: auto;
    font-size: 1.1rem;
  }

  .rsvp__date {
    justify-content: center;
  }

  .site-footer {
    min-height: 330px;
    padding-bottom: 102px;
  }

  /* The music remains present without covering the invitation. */
  .music-player {
    left: 16px;
    right: auto;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 68px);
    width: min(206px, calc(100vw - 32px));
    min-height: 48px;
    padding: 5px 12px 5px 5px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    border-radius: 16px;
  }

  html[dir="rtl"] .music-player {
    left: 16px;
  }

  .music-player__toggle {
    width: 40px;
    height: 40px;
  }

  .music-player__disc {
    width: 36px;
    height: 36px;
  }

  .music-player__heading strong {
    font-size: 0.78rem;
  }

  .music-player__heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .music-player__timeline,
  .music-player__volume {
    display: none !important;
  }

  .mobile-dock {
    left: 10px;
    right: 10px;
    height: 58px;
    padding: 5px;
    border-radius: 18px;
  }

  .mobile-dock a {
    border-radius: 13px;
    font-size: 0.62rem;
  }

  .toast {
    bottom: 126px;
  }
}

@media (max-width: 390px), (max-height: 760px) and (max-width: 760px) {
  .hero__copy,
  html[dir="rtl"] .hero__copy {
    padding: 104px 28px 180px;
  }

  .hero__monogram {
    margin-bottom: 10px;
    font-size: clamp(3.35rem, 15.5vw, 4.1rem);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14.8vw, 4.2rem);
  }

  .hero__invitation,
  html[dir="rtl"] .hero__invitation {
    margin-block: 12px 10px;
    font-size: 0.94rem;
  }

  .hero__date,
  html[dir="rtl"] .hero__date {
    margin-bottom: 12px;
  }
}

/* Short phones need a scrollable composition instead of squeezed controls. */
@media (max-width: 760px) and (max-height: 700px) {
  .blessing {
    min-height: 720px;
    padding-bottom: 180px;
  }

  .hero {
    min-height: 760px;
    grid-template-rows: 760px;
  }

  .hero__copy,
  html[dir="rtl"] .hero__copy {
    min-height: 760px;
    padding: 92px 28px 176px;
  }

  .hero__visual {
    min-height: 668px;
  }
}

/* Keep every primary action clear on narrow and short phone screens. */
@media (max-width: 340px), (max-width: 760px) and (max-height: 650px) {
  .music-player,
  html[dir="rtl"] .music-player {
    width: 48px;
    padding: 4px;
    grid-template-columns: 40px;
  }

  .music-player__content {
    display: none;
  }
}

/* The 3D monogram introduces the invitation and doubles as its install icon. */
.blessing__app-icon {
  width: clamp(118px, 12vw, 154px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 24%;
  filter: drop-shadow(0 18px 24px rgba(20, 58, 49, 0.18));
  animation: blessingIconFloat 5.5s ease-in-out infinite;
}

.blessing__app-icon::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  background: rgba(220, 164, 150, 0.28);
  border-radius: 50%;
  filter: blur(30px);
}

.blessing__app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.blessing__inner::before,
.blessing__inner::after {
  width: min(150px, 18vw);
  top: clamp(58px, 6vw, 76px);
}

.blessing__inner::before {
  right: calc(50% + 92px);
}

.blessing__inner::after {
  left: calc(50% + 92px);
}

@keyframes blessingIconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 760px) {
  .blessing__app-icon {
    width: 96px;
    margin-bottom: 16px;
    filter: drop-shadow(0 13px 18px rgba(20, 58, 49, 0.17));
  }

  .blessing__inner::before,
  .blessing__inner::after {
    width: 48px;
    top: 47px;
  }

  .blessing__inner::before {
    right: calc(50% + 61px);
  }

  .blessing__inner::after {
    left: calc(50% + 61px);
  }
}

@media (max-width: 340px), (max-width: 760px) and (max-height: 650px) {
  .blessing {
    place-items: start center;
    padding-top: 82px;
    padding-bottom: 180px;
  }

  .blessing__app-icon {
    width: 72px;
    margin-bottom: 10px;
  }

  .blessing__inner::before,
  .blessing__inner::after {
    width: 38px;
    top: 35px;
  }

  .blessing__inner::before {
    right: calc(50% + 47px);
  }

  .blessing__inner::after {
    left: calc(50% + 47px);
  }

  .blessing__continue {
    margin-top: 14px;
    gap: 7px;
  }

  .blessing__continue i {
    height: 18px;
  }
}
